@ruby/wasm-wasi 2.4.0 → 2.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -2
- package/dist/cjs/node.js +1 -1
- package/dist/esm/node.js +1 -1
- package/package.json +2 -3
package/README.md
CHANGED
|
@@ -10,8 +10,9 @@ See [Cheat Sheet](https://github.com/ruby/ruby.wasm/blob/main/docs/cheat_sheet.m
|
|
|
10
10
|
|
|
11
11
|
| Version | Package |
|
|
12
12
|
| ------- | -------------------------------------------------- |
|
|
13
|
-
| `head` | [`@ruby/head-wasm-wasi`](
|
|
14
|
-
| `3.
|
|
13
|
+
| `head` | [`@ruby/head-wasm-wasi`](https://github.com/ruby/ruby.wasm/tree/main/packages/npm-packages/ruby-head-wasm-wasi) |
|
|
14
|
+
| `3.3` | [`@ruby/3.3-wasm-wasi`](https://github.com/ruby/ruby.wasm/tree/main/packages/npm-packages/ruby-3.3-wasm-wasi) |
|
|
15
|
+
| `3.2` | [`@ruby/3.2-wasm-wasi`](https://github.com/ruby/ruby.wasm/tree/main/packages/npm-packages/ruby-3.2-wasm-wasi) |
|
|
15
16
|
|
|
16
17
|
## API
|
|
17
18
|
|
package/dist/cjs/node.js
CHANGED
|
@@ -4,7 +4,7 @@ exports.DefaultRubyVM = void 0;
|
|
|
4
4
|
const wasi_1 = require("wasi");
|
|
5
5
|
const index_js_1 = require("./index.js");
|
|
6
6
|
const DefaultRubyVM = async (rubyModule, options = {}) => {
|
|
7
|
-
const wasi = new wasi_1.WASI({ env: options.env });
|
|
7
|
+
const wasi = new wasi_1.WASI({ env: options.env, version: "preview1" });
|
|
8
8
|
const vm = new index_js_1.RubyVM();
|
|
9
9
|
const imports = {
|
|
10
10
|
wasi_snapshot_preview1: wasi.wasiImport,
|
package/dist/esm/node.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { WASI } from "wasi";
|
|
2
2
|
import { RubyVM } from "./index.js";
|
|
3
3
|
export const DefaultRubyVM = async (rubyModule, options = {}) => {
|
|
4
|
-
const wasi = new WASI({ env: options.env });
|
|
4
|
+
const wasi = new WASI({ env: options.env, version: "preview1" });
|
|
5
5
|
const vm = new RubyVM();
|
|
6
6
|
const imports = {
|
|
7
7
|
wasi_snapshot_preview1: wasi.wasiImport,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ruby/wasm-wasi",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.1",
|
|
4
4
|
"description": "WebAssembly port of CRuby with WASI",
|
|
5
5
|
"main": "./dist/cjs/index.js",
|
|
6
6
|
"module": "./dist/esm/index.js",
|
|
@@ -58,10 +58,9 @@
|
|
|
58
58
|
"@rollup/plugin-node-resolve": "^15.1.0",
|
|
59
59
|
"@rollup/plugin-typescript": "^11.1.2",
|
|
60
60
|
"@types/jest": "^29.5.3",
|
|
61
|
-
"@types/node": "20.
|
|
61
|
+
"@types/node": "20.10.4",
|
|
62
62
|
"jest": "^29.6.2",
|
|
63
63
|
"prettier": "^3.0.0",
|
|
64
|
-
"rollup": "^4.6.1",
|
|
65
64
|
"@bjorn3/browser_wasi_shim": "^0.2.17",
|
|
66
65
|
"typescript": "^5.3.2"
|
|
67
66
|
},
|