diff --git a/package.json b/package.json index 69726785..47c319b5 100644 --- a/package.json +++ b/package.json @@ -24,13 +24,13 @@ "postinstall": "husky install" }, "devDependencies": { - "@napi-rs/cli": "^3.0.0-alpha.53", + "@napi-rs/cli": "^3.0.0-alpha.54", "@napi-rs/wasm-runtime": "^0.2.3", "@swc-node/core": "^1.13.0", "@swc-node/register": "^1.9.0", "@swc/core": "^1.4.16", "@taplo/cli": "^0.7.0", - "@tybys/wasm-util": "^0.8.1", + "@tybys/wasm-util": "^0.8.3", "@types/node": "^20.12.7", "ava": "^6.1.2", "benchmark": "^2.1.4", diff --git a/packages/argon2/package.json b/packages/argon2/package.json index e0b45877..ead2d042 100644 --- a/packages/argon2/package.json +++ b/packages/argon2/package.json @@ -62,7 +62,7 @@ "version": "napi version && git add npm" }, "devDependencies": { - "@napi-rs/cli": "^3.0.0-alpha.53", + "@napi-rs/cli": "^3.0.0-alpha.54", "argon2": "^0.40.1", "cross-env": "^7.0.3" } diff --git a/packages/argon2/wasi-worker-browser.mjs b/packages/argon2/wasi-worker-browser.mjs index ffc3d871..8b1b1722 100644 --- a/packages/argon2/wasi-worker-browser.mjs +++ b/packages/argon2/wasi-worker-browser.mjs @@ -1,14 +1,8 @@ -import { instantiateNapiModuleSync, MessageHandler, WASI, createFsProxy } from '@napi-rs/wasm-runtime' - -const fs = null +import { instantiateNapiModuleSync, MessageHandler, WASI } from '@napi-rs/wasm-runtime' const handler = new MessageHandler({ onLoad({ wasmModule, wasmMemory }) { const wasi = new WASI({ - fs, - preopens: { - '/': '/', - }, print: function () { // eslint-disable-next-line no-console console.log.apply(console, arguments) diff --git a/packages/bcrypt/package.json b/packages/bcrypt/package.json index 6fcfa1e6..416ca929 100644 --- a/packages/bcrypt/package.json +++ b/packages/bcrypt/package.json @@ -70,7 +70,7 @@ "url": "https://github.com/napi-rs/node-rs/issues" }, "devDependencies": { - "@napi-rs/cli": "^3.0.0-alpha.53", + "@napi-rs/cli": "^3.0.0-alpha.54", "@types/bcrypt": "^5.0.2", "bcrypt": "^5.1.1", "bcryptjs": "^2.4.3", diff --git a/packages/bcrypt/wasi-worker-browser.mjs b/packages/bcrypt/wasi-worker-browser.mjs index ffc3d871..8b1b1722 100644 --- a/packages/bcrypt/wasi-worker-browser.mjs +++ b/packages/bcrypt/wasi-worker-browser.mjs @@ -1,14 +1,8 @@ -import { instantiateNapiModuleSync, MessageHandler, WASI, createFsProxy } from '@napi-rs/wasm-runtime' - -const fs = null +import { instantiateNapiModuleSync, MessageHandler, WASI } from '@napi-rs/wasm-runtime' const handler = new MessageHandler({ onLoad({ wasmModule, wasmMemory }) { const wasi = new WASI({ - fs, - preopens: { - '/': '/', - }, print: function () { // eslint-disable-next-line no-console console.log.apply(console, arguments) diff --git a/packages/crc32/package.json b/packages/crc32/package.json index 72e5e637..d30cb930 100644 --- a/packages/crc32/package.json +++ b/packages/crc32/package.json @@ -64,7 +64,7 @@ "url": "https://github.com/napi-rs/node-rs/issues" }, "devDependencies": { - "@napi-rs/cli": "^3.0.0-alpha.53", + "@napi-rs/cli": "^3.0.0-alpha.54", "@types/crc": "^3.8.3", "buffer": "^6.0.3", "crc": "^4.3.2", diff --git a/packages/crc32/wasi-worker-browser.mjs b/packages/crc32/wasi-worker-browser.mjs index ffc3d871..8b1b1722 100644 --- a/packages/crc32/wasi-worker-browser.mjs +++ b/packages/crc32/wasi-worker-browser.mjs @@ -1,14 +1,8 @@ -import { instantiateNapiModuleSync, MessageHandler, WASI, createFsProxy } from '@napi-rs/wasm-runtime' - -const fs = null +import { instantiateNapiModuleSync, MessageHandler, WASI } from '@napi-rs/wasm-runtime' const handler = new MessageHandler({ onLoad({ wasmModule, wasmMemory }) { const wasi = new WASI({ - fs, - preopens: { - '/': '/', - }, print: function () { // eslint-disable-next-line no-console console.log.apply(console, arguments) diff --git a/packages/deno-lint/package.json b/packages/deno-lint/package.json index 8b833dec..d935c392 100644 --- a/packages/deno-lint/package.json +++ b/packages/deno-lint/package.json @@ -73,7 +73,7 @@ "typanion": "^3.14.0" }, "devDependencies": { - "@napi-rs/cli": "^3.0.0-alpha.53", + "@napi-rs/cli": "^3.0.0-alpha.54", "@types/webpack": "^5.28.5" }, "funding": { diff --git a/packages/jieba/package.json b/packages/jieba/package.json index d26e0808..3e90631c 100644 --- a/packages/jieba/package.json +++ b/packages/jieba/package.json @@ -64,7 +64,7 @@ "url": "https://github.com/napi-rs/node-rs/issues" }, "devDependencies": { - "@napi-rs/cli": "^3.0.0-alpha.53", + "@napi-rs/cli": "^3.0.0-alpha.54", "nodejieba": "^2.6.0" }, "funding": { diff --git a/packages/jieba/wasi-worker-browser.mjs b/packages/jieba/wasi-worker-browser.mjs index ffc3d871..8b1b1722 100644 --- a/packages/jieba/wasi-worker-browser.mjs +++ b/packages/jieba/wasi-worker-browser.mjs @@ -1,14 +1,8 @@ -import { instantiateNapiModuleSync, MessageHandler, WASI, createFsProxy } from '@napi-rs/wasm-runtime' - -const fs = null +import { instantiateNapiModuleSync, MessageHandler, WASI } from '@napi-rs/wasm-runtime' const handler = new MessageHandler({ onLoad({ wasmModule, wasmMemory }) { const wasi = new WASI({ - fs, - preopens: { - '/': '/', - }, print: function () { // eslint-disable-next-line no-console console.log.apply(console, arguments) diff --git a/packages/jsonwebtoken/package.json b/packages/jsonwebtoken/package.json index 1572480f..f5f1cffc 100644 --- a/packages/jsonwebtoken/package.json +++ b/packages/jsonwebtoken/package.json @@ -64,7 +64,7 @@ "node": ">= 10" }, "devDependencies": { - "@napi-rs/cli": "^3.0.0-alpha.53", + "@napi-rs/cli": "^3.0.0-alpha.54", "@types/jsonwebtoken": "^9.0.6", "jsonwebtoken": "^9.0.2" } diff --git a/packages/jsonwebtoken/wasi-worker-browser.mjs b/packages/jsonwebtoken/wasi-worker-browser.mjs index ffc3d871..8b1b1722 100644 --- a/packages/jsonwebtoken/wasi-worker-browser.mjs +++ b/packages/jsonwebtoken/wasi-worker-browser.mjs @@ -1,14 +1,8 @@ -import { instantiateNapiModuleSync, MessageHandler, WASI, createFsProxy } from '@napi-rs/wasm-runtime' - -const fs = null +import { instantiateNapiModuleSync, MessageHandler, WASI } from '@napi-rs/wasm-runtime' const handler = new MessageHandler({ onLoad({ wasmModule, wasmMemory }) { const wasi = new WASI({ - fs, - preopens: { - '/': '/', - }, print: function () { // eslint-disable-next-line no-console console.log.apply(console, arguments) diff --git a/packages/xxhash/package.json b/packages/xxhash/package.json index d791f643..632dd061 100644 --- a/packages/xxhash/package.json +++ b/packages/xxhash/package.json @@ -66,7 +66,7 @@ "url": "https://github.com/napi-rs/node-rs/issues" }, "devDependencies": { - "@napi-rs/cli": "^3.0.0-alpha.53", + "@napi-rs/cli": "^3.0.0-alpha.54", "@types/xxhashjs": "^0.2.4", "webpack": "^5.91.0", "xxhash": "^0.3.0", diff --git a/packages/xxhash/wasi-worker-browser.mjs b/packages/xxhash/wasi-worker-browser.mjs index ffc3d871..8b1b1722 100644 --- a/packages/xxhash/wasi-worker-browser.mjs +++ b/packages/xxhash/wasi-worker-browser.mjs @@ -1,14 +1,8 @@ -import { instantiateNapiModuleSync, MessageHandler, WASI, createFsProxy } from '@napi-rs/wasm-runtime' - -const fs = null +import { instantiateNapiModuleSync, MessageHandler, WASI } from '@napi-rs/wasm-runtime' const handler = new MessageHandler({ onLoad({ wasmModule, wasmMemory }) { const wasi = new WASI({ - fs, - preopens: { - '/': '/', - }, print: function () { // eslint-disable-next-line no-console console.log.apply(console, arguments) diff --git a/yarn.lock b/yarn.lock index 2fb09390..4a22b171 100644 --- a/yarn.lock +++ b/yarn.lock @@ -260,9 +260,9 @@ __metadata: languageName: node linkType: hard -"@napi-rs/cli@npm:^3.0.0-alpha.53": - version: 3.0.0-alpha.53 - resolution: "@napi-rs/cli@npm:3.0.0-alpha.53" +"@napi-rs/cli@npm:^3.0.0-alpha.54": + version: 3.0.0-alpha.54 + resolution: "@napi-rs/cli@npm:3.0.0-alpha.54" dependencies: "@napi-rs/cross-toolchain": "npm:^0.0.14" "@napi-rs/wasm-tools": "npm:^0.0.1" @@ -289,7 +289,7 @@ __metadata: bin: napi: dist/cli.js napi-raw: cli.mjs - checksum: 10c0/9d40ae06c536d289a03aa5abf8832fd2c9e42d148a6c4f8f1516192ca9ab4fbd3bcc223e4775c27ce16818c2408927af2f13cd24625dc2af663527725271d152 + checksum: 10c0/61fe51bce4495b571dc8af84c5e89c654a9cb705827607e613df5fd0da732067b4a8bf820f9e53375bfe9c05842949c4a62b489437719ffd39d132542fa0122b languageName: node linkType: hard @@ -776,7 +776,7 @@ __metadata: version: 0.0.0-use.local resolution: "@node-rs/argon2@workspace:packages/argon2" dependencies: - "@napi-rs/cli": "npm:^3.0.0-alpha.53" + "@napi-rs/cli": "npm:^3.0.0-alpha.54" argon2: "npm:^0.40.1" cross-env: "npm:^7.0.3" languageName: unknown @@ -786,7 +786,7 @@ __metadata: version: 0.0.0-use.local resolution: "@node-rs/bcrypt@workspace:packages/bcrypt" dependencies: - "@napi-rs/cli": "npm:^3.0.0-alpha.53" + "@napi-rs/cli": "npm:^3.0.0-alpha.54" "@types/bcrypt": "npm:^5.0.2" bcrypt: "npm:^5.1.1" bcryptjs: "npm:^2.4.3" @@ -798,7 +798,7 @@ __metadata: version: 0.0.0-use.local resolution: "@node-rs/crc32@workspace:packages/crc32" dependencies: - "@napi-rs/cli": "npm:^3.0.0-alpha.53" + "@napi-rs/cli": "npm:^3.0.0-alpha.54" "@types/crc": "npm:^3.8.3" buffer: "npm:^6.0.3" crc: "npm:^4.3.2" @@ -810,7 +810,7 @@ __metadata: version: 0.0.0-use.local resolution: "@node-rs/deno-lint@workspace:packages/deno-lint" dependencies: - "@napi-rs/cli": "npm:^3.0.0-alpha.53" + "@napi-rs/cli": "npm:^3.0.0-alpha.54" "@types/webpack": "npm:^5.28.5" clipanion: "npm:^4.0.0-rc.3" typanion: "npm:^3.14.0" @@ -831,7 +831,7 @@ __metadata: version: 0.0.0-use.local resolution: "@node-rs/jieba@workspace:packages/jieba" dependencies: - "@napi-rs/cli": "npm:^3.0.0-alpha.53" + "@napi-rs/cli": "npm:^3.0.0-alpha.54" nodejieba: "npm:^2.6.0" languageName: unknown linkType: soft @@ -840,7 +840,7 @@ __metadata: version: 0.0.0-use.local resolution: "@node-rs/jsonwebtoken@workspace:packages/jsonwebtoken" dependencies: - "@napi-rs/cli": "npm:^3.0.0-alpha.53" + "@napi-rs/cli": "npm:^3.0.0-alpha.54" "@types/jsonwebtoken": "npm:^9.0.6" jsonwebtoken: "npm:^9.0.2" languageName: unknown @@ -850,7 +850,7 @@ __metadata: version: 0.0.0-use.local resolution: "@node-rs/xxhash@workspace:packages/xxhash" dependencies: - "@napi-rs/cli": "npm:^3.0.0-alpha.53" + "@napi-rs/cli": "npm:^3.0.0-alpha.54" "@types/xxhashjs": "npm:^0.2.4" webpack: "npm:^5.91.0" xxhash: "npm:^0.3.0" @@ -6209,13 +6209,13 @@ __metadata: version: 0.0.0-use.local resolution: "node-rs@workspace:." dependencies: - "@napi-rs/cli": "npm:^3.0.0-alpha.53" + "@napi-rs/cli": "npm:^3.0.0-alpha.54" "@napi-rs/wasm-runtime": "npm:^0.2.3" "@swc-node/core": "npm:^1.13.0" "@swc-node/register": "npm:^1.9.0" "@swc/core": "npm:^1.4.16" "@taplo/cli": "npm:^0.7.0" - "@tybys/wasm-util": "npm:^0.8.1" + "@tybys/wasm-util": "npm:^0.8.3" "@types/node": "npm:^20.12.7" ava: "npm:^6.1.2" benchmark: "npm:^2.1.4"