Skip to content

Commit b0c4f7b

Browse files
Merge pull request #337 from ruby/katei/node20
Add `version: "preview1"` field to Node.js WASI options
2 parents 5b2141b + 776bdc1 commit b0c4f7b

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

package-lock.json

Lines changed: 8 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/npm-packages/ruby-wasm-wasi/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
"@rollup/plugin-node-resolve": "^15.1.0",
5959
"@rollup/plugin-typescript": "^11.1.2",
6060
"@types/jest": "^29.5.3",
61-
"@types/node": "20.8.10",
61+
"@types/node": "20.10.4",
6262
"jest": "^29.6.2",
6363
"prettier": "^3.0.0",
6464
"rollup": "^4.6.1",

packages/npm-packages/ruby-wasm-wasi/src/node.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export const DefaultRubyVM = async (
55
rubyModule: WebAssembly.Module,
66
options: { env?: Record<string, string> | undefined } = {},
77
) => {
8-
const wasi = new WASI({ env: options.env });
8+
const wasi = new WASI({ env: options.env, version: "preview1" });
99
const vm = new RubyVM();
1010
const imports = {
1111
wasi_snapshot_preview1: wasi.wasiImport,

0 commit comments

Comments
 (0)