close
Skip to content

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

Merged
ospencer merged 4 commits into
grain-lang:mainfrom
spotandjake:spotandjake-node-v23
Jan 17, 2025
Merged

feat(cli): Support node v22 and v23#2207
ospencer merged 4 commits into
grain-lang:mainfrom
spotandjake:spotandjake-node-v23

Conversation

@spotandjake
Copy link
Copy Markdown
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
Copy Markdown
Member

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

@spotandjake
Copy link
Copy Markdown
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.

Comment thread cli/bin/grainrun.js Outdated
Co-authored-by: Oscar Spencer <oscar.spen@gmail.com>
Comment thread cli/bin/grainrun.js Outdated
Co-authored-by: Oscar Spencer <oscar.spen@gmail.com>
@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
@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