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

[DRAFT] feat(deps): update to node 18, yarn 4 #427

Merged

Conversation

billhimmelsbach
Copy link
Contributor

@billhimmelsbach billhimmelsbach commented Apr 28, 2024

Found this bug when trying to run tests locally:

Screenshot 2024-04-27 at 4 43 24 PM

This bug is caused by running on an old version of node on older versions of yarn when using vitest, which has been fixed in later updates. Updating to the latest version of yarn fixes this issue (the DS did it earlier this year), but v4 of yarn also requires at least node 18. We should at least update from node 16 to node 18 anyway for the engine, since it's at EOL. We could also update all the way to node 20, or even 22 if we're ok with it not being a LTS release for a few months. We can probably wait till post-mvp for that change.

Changes

  • update yarn to v4
  • update node to 18, maybe even 20/22 post-mvp if we're ok not being on a LTS release for a few months

How to test this PR

  • make sure you're using node 18, if you're using nvm, it's nvm use 18
  • make sure you're using the prescribed version of yarn, it's yarn set version 4.1.1 or use corepack
  • does vite still build things correctly? yarn run dev
  • can you run your tests locally? yarn test

Screenshots

Before

Screenshot 2024-04-27 at 4 43 24 PM

After

Screenshot 2024-04-28 at 9 34 36 AM

@billhimmelsbach billhimmelsbach changed the title feat(deps): update to node 18, yarn 4 [DRAFT] feat(deps): update to node 18, yarn 4 Apr 28, 2024
@billhimmelsbach billhimmelsbach marked this pull request as ready for review April 29, 2024 16:27
@billhimmelsbach
Copy link
Contributor Author

Confirmed there's no node version stated in the DDD, so we're good to go for a review for this one @shindigira and @meissadia 👍

Copy link
Collaborator

@meissadia meissadia left a comment

Choose a reason for hiding this comment

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

Tests run successfully 👌🏾

I was trying to update .nvmrc but accidentally pushed the commit to branch 418-bump-deps-for-security-audit instead of this one 😞

@billhimmelsbach
Copy link
Contributor Author

Tests run successfully 👌🏾

I was trying to update .nvmrc but accidentally pushed the commit to branch 418-bump-deps-for-security-audit instead of this one 😞

Good catch though on the .nvmrc file over here. I'll merge this one, and then we can incorporate that change in that other PR?

@billhimmelsbach
Copy link
Contributor Author

billhimmelsbach commented Apr 30, 2024

Ok, I went ahead and put the .nvmrc commit over here, so good to go! 👍

@billhimmelsbach billhimmelsbach merged commit 2a64e27 into 418-bump-deps-for-security-audit Apr 30, 2024
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.

None yet

2 participants