Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chore/update node v20 and get scripts working #116

Merged

Conversation

coolsoftwaretyler
Copy link
Collaborator

This PR does a few things to get the repo a little more up to date:

  1. Bumps the node version to 20.17.0 in both .nvmrc and .tool-versions (I use asdf so I added that for me at least haha)
  2. Adds --legacy-peer-deps flag to a bunch of the installation scripts for backwards compatibility with the node upgrade. Eventually we should upgrade the dependencies so we won't need this, but this works for now.
  3. I monkey-patched the Node crypto algorithm for the playground Webpack config because we couldn't run --openssl-legacy-provider against electron. Again, I think we'll want to actually fix this, probably by upgrading to Webpack 5 and using their actual configuration that works with new open ssl versions. Again, this works for now.
  4. The end to end tests were failing because I upgraded chromedriver, so the old getServerAddr was no longer relevant, and in fact was sending ECONNREFUSED errors because it was trying to connect to ports that are longer valid.
  5. Then I updated the e2e tests because they seem to be looking for component tabs that no longer get shipped (please correct me if I'm wrong). I figured I'd leave a basic passing test here so we don't lose the e2e setup that already exists.

To test out these changes, pull the branch, then run npm run bootstrap to get all the dependencies up to date.

After that, run through every script in package.json. They all seem to be working now. I didn't any publish scripts since I doubt I have access there. @andykog let me know if there are any remaining issues on those scripts.

Copy link
Member

@andykog andykog left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@coolsoftwaretyler nice job!

I didn't any publish scripts since I doubt I have access there

Publish scripts stopped working at some point because of some new API restrictions or because of deprecation of the Travis version they relied on, anyway it's not trivial to make them working again. Also I don't think Chrome Web Store has functionality of adding contributors for extensions, so I suggest to just ping me whenever you want to publish

@coolsoftwaretyler
Copy link
Collaborator Author

Sweet. I'll merge this and probably open a follow up to remove those scripts for clarity. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants