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

feat(cli): Support node v22 and v23 #2207

Merged
merged 4 commits into from
Jan 17, 2025

Conversation

spotandjake
Copy link
Member

@spotandjake spotandjake commented Nov 21, 2024

I don't know if this is the best title for this but before if you tried to run the grain cli with node v22 or above it would error because the --experimental-wasm-return-call flag was used, this just checks if we are on those versions and doesn't apply the flag as the behaviour is the default.

I think this pr might be controversial the goal here isn't to change the version of js we use with the pkg binaries just to allow newer versions of node to be used when you've built the compiler from source.

@ospencer
Copy link
Member

I would reverse the logic and only apply the flag for versions of Node that support it.

@spotandjake
Copy link
Member Author

spotandjake commented Dec 29, 2024

I would reverse the logic and only apply the flag for versions of Node that support it.

I flipped that logic, I just did a manual check for 18, 19, 20 and 21 as We only support down to 18 and didn't really feel like parsing the semvar.

cli/bin/grainrun.js Outdated Show resolved Hide resolved
cli/bin/grainrun.js Outdated Show resolved Hide resolved
@ospencer ospencer enabled auto-merge January 17, 2025 04:33
@ospencer ospencer added this pull request to the merge queue Jan 17, 2025
Merged via the queue into grain-lang:main with commit 130c494 Jan 17, 2025
12 checks passed
@github-actions github-actions bot mentioned this pull request Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants