Skip to content

Update minimum node version to 20 #443

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

Merged
merged 2 commits into from
Jul 4, 2025
Merged

Conversation

FranjoMindek
Copy link
Contributor

Fixes: #442

@FranjoMindek FranjoMindek self-assigned this Jul 2, 2025
@FranjoMindek FranjoMindek marked this pull request as ready for review July 2, 2025 11:10
@@ -10,7 +10,7 @@ on:

env:
WASP_TELEMETRY_DISABLE: 1
WASP_VERSION: 0.16.4
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This one is extra, but we might as well update?

@@ -29,6 +29,6 @@
"prisma": "5.19.1"
},
"devDependencies": {
"@types/node": "^18.0.0"
Copy link
Contributor Author

@FranjoMindek FranjoMindek Jul 2, 2025

Choose a reason for hiding this comment

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

Not related to template or wasp,
we could actually have this at v24 if we wanted to.

Edit: maybe best to leave it at 20 so it follows wasp's minimum req

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We could have this one at lts/* since its not related to template or wasp.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Is there a reason not to change it now?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Just wanted somebody else to agree with me on this.

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Same as above. lts/* possible.

Copy link
Collaborator

@sodic sodic left a comment

Choose a reason for hiding this comment

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

Looks good!

When doing changes like this, I recommend always explaining how you searched for the references in the PR description (e.g., what you grepped for).

For example, I ran rg -i 'node.*18' and see some package-lock.json files listed. Should we update those too?

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is there a reason not to change it now?

@FranjoMindek
Copy link
Contributor Author

FranjoMindek commented Jul 3, 2025

I've grep'd for both node and 18 separately.
Left over package-lock.json don't seem to be something we can change.
It's mostly:

"engines": {
  "node": ">=18"
}

I'm then gonna bump blog to lts/* and e2e to 24.
EDIT: not gonna bump e2e, because while it's not wasp project code, people might be using node@20 with wasp, so it seems weird to force v24 types on e2e, i'll leave it on v20 so it follows wasp

@FranjoMindek FranjoMindek requested a review from sodic July 3, 2025 15:39
@sodic
Copy link
Collaborator

sodic commented Jul 3, 2025

EDIT: not gonna bump e2e, because while it's not wasp project code, people might be using node@20 with wasp, so it seems weird to force v24 types on e2e, i'll leave it on v20 so it follows wasp

Good thinking!

@FranjoMindek FranjoMindek merged commit 1dcbaf3 into main Jul 4, 2025
3 checks passed
@FranjoMindek FranjoMindek deleted the franjo/update-node-to-20 branch July 4, 2025 07:08
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.

Update minimum node requirements to 20
2 participants