Skip to content

Commit 02d2bd9

Browse files
authored
fix(*): update browser worker bindings (#830)
1 parent fe7fafd commit 02d2bd9

15 files changed

+26
-56
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"postinstall": "husky install"
2525
},
2626
"devDependencies": {
27-
"@napi-rs/cli": "^3.0.0-alpha.51",
27+
"@napi-rs/cli": "^3.0.0-alpha.52",
2828
"@napi-rs/wasm-runtime": "^0.2.0",
2929
"@swc-node/core": "^1.13.0",
3030
"@swc-node/register": "^1.9.0",

packages/argon2/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
"version": "napi version && git add npm"
6363
},
6464
"devDependencies": {
65-
"@napi-rs/cli": "^3.0.0-alpha.51",
65+
"@napi-rs/cli": "^3.0.0-alpha.52",
6666
"argon2": "^0.40.1",
6767
"cross-env": "^7.0.3"
6868
}

packages/argon2/wasi-worker-browser.mjs

+1-6
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
import { instantiateNapiModuleSync, MessageHandler, WASI } from '@napi-rs/wasm-runtime'
2-
import { Volume, createFsFromVolume } from '@napi-rs/wasm-runtime/fs'
32

4-
const fs = createFsFromVolume(
5-
Volume.fromJSON({
6-
'/': null,
7-
}),
8-
)
3+
const fs = null
94

105
const handler = new MessageHandler({
116
onLoad({ wasmModule, wasmMemory }) {

packages/bcrypt/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
"url": "https://github.com/napi-rs/node-rs/issues"
7171
},
7272
"devDependencies": {
73-
"@napi-rs/cli": "^3.0.0-alpha.51",
73+
"@napi-rs/cli": "^3.0.0-alpha.52",
7474
"@types/bcrypt": "^5.0.2",
7575
"bcrypt": "^5.1.1",
7676
"bcryptjs": "^2.4.3",

packages/bcrypt/wasi-worker-browser.mjs

+1-6
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
import { instantiateNapiModuleSync, MessageHandler, WASI } from '@napi-rs/wasm-runtime'
2-
import { Volume, createFsFromVolume } from '@napi-rs/wasm-runtime/fs'
32

4-
const fs = createFsFromVolume(
5-
Volume.fromJSON({
6-
'/': null,
7-
}),
8-
)
3+
const fs = null
94

105
const handler = new MessageHandler({
116
onLoad({ wasmModule, wasmMemory }) {

packages/crc32/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
"url": "https://github.com/napi-rs/node-rs/issues"
6565
},
6666
"devDependencies": {
67-
"@napi-rs/cli": "^3.0.0-alpha.51",
67+
"@napi-rs/cli": "^3.0.0-alpha.52",
6868
"@types/crc": "^3.8.3",
6969
"buffer": "^6.0.3",
7070
"crc": "^4.3.2",

packages/crc32/wasi-worker-browser.mjs

+1-6
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
import { instantiateNapiModuleSync, MessageHandler, WASI } from '@napi-rs/wasm-runtime'
2-
import { Volume, createFsFromVolume } from '@napi-rs/wasm-runtime/fs'
32

4-
const fs = createFsFromVolume(
5-
Volume.fromJSON({
6-
'/': null,
7-
}),
8-
)
3+
const fs = null
94

105
const handler = new MessageHandler({
116
onLoad({ wasmModule, wasmMemory }) {

packages/deno-lint/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
"typanion": "^3.14.0"
7474
},
7575
"devDependencies": {
76-
"@napi-rs/cli": "^3.0.0-alpha.51",
76+
"@napi-rs/cli": "^3.0.0-alpha.52",
7777
"@types/webpack": "^5.28.5"
7878
},
7979
"funding": {

packages/jieba/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
"url": "https://github.com/napi-rs/node-rs/issues"
6565
},
6666
"devDependencies": {
67-
"@napi-rs/cli": "^3.0.0-alpha.51",
67+
"@napi-rs/cli": "^3.0.0-alpha.52",
6868
"nodejieba": "^2.6.0"
6969
},
7070
"funding": {

packages/jieba/wasi-worker-browser.mjs

+1-6
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
import { instantiateNapiModuleSync, MessageHandler, WASI } from '@napi-rs/wasm-runtime'
2-
import { Volume, createFsFromVolume } from '@napi-rs/wasm-runtime/fs'
32

4-
const fs = createFsFromVolume(
5-
Volume.fromJSON({
6-
'/': null,
7-
}),
8-
)
3+
const fs = null
94

105
const handler = new MessageHandler({
116
onLoad({ wasmModule, wasmMemory }) {

packages/jsonwebtoken/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
"node": ">= 10"
6565
},
6666
"devDependencies": {
67-
"@napi-rs/cli": "^3.0.0-alpha.51",
67+
"@napi-rs/cli": "^3.0.0-alpha.52",
6868
"@types/jsonwebtoken": "^9.0.6",
6969
"jsonwebtoken": "^9.0.2"
7070
}

packages/jsonwebtoken/wasi-worker-browser.mjs

+1-6
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
import { instantiateNapiModuleSync, MessageHandler, WASI } from '@napi-rs/wasm-runtime'
2-
import { Volume, createFsFromVolume } from '@napi-rs/wasm-runtime/fs'
32

4-
const fs = createFsFromVolume(
5-
Volume.fromJSON({
6-
'/': null,
7-
}),
8-
)
3+
const fs = null
94

105
const handler = new MessageHandler({
116
onLoad({ wasmModule, wasmMemory }) {

packages/xxhash/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
"url": "https://github.com/napi-rs/node-rs/issues"
6767
},
6868
"devDependencies": {
69-
"@napi-rs/cli": "^3.0.0-alpha.51",
69+
"@napi-rs/cli": "^3.0.0-alpha.52",
7070
"@types/xxhashjs": "^0.2.4",
7171
"webpack": "^5.91.0",
7272
"xxhash": "^0.3.0",

packages/xxhash/wasi-worker-browser.mjs

+1-6
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
import { instantiateNapiModuleSync, MessageHandler, WASI } from '@napi-rs/wasm-runtime'
2-
import { Volume, createFsFromVolume } from '@napi-rs/wasm-runtime/fs'
32

4-
const fs = createFsFromVolume(
5-
Volume.fromJSON({
6-
'/': null,
7-
}),
8-
)
3+
const fs = null
94

105
const handler = new MessageHandler({
116
onLoad({ wasmModule, wasmMemory }) {

yarn.lock

+12-12
Original file line numberDiff line numberDiff line change
@@ -260,9 +260,9 @@ __metadata:
260260
languageName: node
261261
linkType: hard
262262

263-
"@napi-rs/cli@npm:^3.0.0-alpha.51":
264-
version: 3.0.0-alpha.51
265-
resolution: "@napi-rs/cli@npm:3.0.0-alpha.51"
263+
"@napi-rs/cli@npm:^3.0.0-alpha.52":
264+
version: 3.0.0-alpha.52
265+
resolution: "@napi-rs/cli@npm:3.0.0-alpha.52"
266266
dependencies:
267267
"@napi-rs/cross-toolchain": "npm:^0.0.14"
268268
"@napi-rs/wasm-tools": "npm:^0.0.1"
@@ -289,7 +289,7 @@ __metadata:
289289
bin:
290290
napi: dist/cli.js
291291
napi-raw: cli.mjs
292-
checksum: 10c0/427f1bab4cd7efcf6ca8e997b253bfc6b6a646f4e7ced918b115b2d5df3fc8ff8ed9c7e81fb3d93368f0949388adc2aa7376415cc8ab97c589caf03869585696
292+
checksum: 10c0/0976c5bc3714c74c8236d1b48e087a7579448efa4a0b4e8f0fc7ce05a2af9e18e20e7cfc91ac75b67f0f3f459c5363047b17116b32d2eda602da651e9593824b
293293
languageName: node
294294
linkType: hard
295295

@@ -776,7 +776,7 @@ __metadata:
776776
version: 0.0.0-use.local
777777
resolution: "@node-rs/argon2@workspace:packages/argon2"
778778
dependencies:
779-
"@napi-rs/cli": "npm:^3.0.0-alpha.51"
779+
"@napi-rs/cli": "npm:^3.0.0-alpha.52"
780780
argon2: "npm:^0.40.1"
781781
cross-env: "npm:^7.0.3"
782782
languageName: unknown
@@ -786,7 +786,7 @@ __metadata:
786786
version: 0.0.0-use.local
787787
resolution: "@node-rs/bcrypt@workspace:packages/bcrypt"
788788
dependencies:
789-
"@napi-rs/cli": "npm:^3.0.0-alpha.51"
789+
"@napi-rs/cli": "npm:^3.0.0-alpha.52"
790790
"@types/bcrypt": "npm:^5.0.2"
791791
bcrypt: "npm:^5.1.1"
792792
bcryptjs: "npm:^2.4.3"
@@ -798,7 +798,7 @@ __metadata:
798798
version: 0.0.0-use.local
799799
resolution: "@node-rs/crc32@workspace:packages/crc32"
800800
dependencies:
801-
"@napi-rs/cli": "npm:^3.0.0-alpha.51"
801+
"@napi-rs/cli": "npm:^3.0.0-alpha.52"
802802
"@types/crc": "npm:^3.8.3"
803803
buffer: "npm:^6.0.3"
804804
crc: "npm:^4.3.2"
@@ -810,7 +810,7 @@ __metadata:
810810
version: 0.0.0-use.local
811811
resolution: "@node-rs/deno-lint@workspace:packages/deno-lint"
812812
dependencies:
813-
"@napi-rs/cli": "npm:^3.0.0-alpha.51"
813+
"@napi-rs/cli": "npm:^3.0.0-alpha.52"
814814
"@types/webpack": "npm:^5.28.5"
815815
clipanion: "npm:^4.0.0-rc.3"
816816
typanion: "npm:^3.14.0"
@@ -831,7 +831,7 @@ __metadata:
831831
version: 0.0.0-use.local
832832
resolution: "@node-rs/jieba@workspace:packages/jieba"
833833
dependencies:
834-
"@napi-rs/cli": "npm:^3.0.0-alpha.51"
834+
"@napi-rs/cli": "npm:^3.0.0-alpha.52"
835835
nodejieba: "npm:^2.6.0"
836836
languageName: unknown
837837
linkType: soft
@@ -840,7 +840,7 @@ __metadata:
840840
version: 0.0.0-use.local
841841
resolution: "@node-rs/jsonwebtoken@workspace:packages/jsonwebtoken"
842842
dependencies:
843-
"@napi-rs/cli": "npm:^3.0.0-alpha.51"
843+
"@napi-rs/cli": "npm:^3.0.0-alpha.52"
844844
"@types/jsonwebtoken": "npm:^9.0.6"
845845
jsonwebtoken: "npm:^9.0.2"
846846
languageName: unknown
@@ -850,7 +850,7 @@ __metadata:
850850
version: 0.0.0-use.local
851851
resolution: "@node-rs/xxhash@workspace:packages/xxhash"
852852
dependencies:
853-
"@napi-rs/cli": "npm:^3.0.0-alpha.51"
853+
"@napi-rs/cli": "npm:^3.0.0-alpha.52"
854854
"@types/xxhashjs": "npm:^0.2.4"
855855
webpack: "npm:^5.91.0"
856856
xxhash: "npm:^0.3.0"
@@ -6209,7 +6209,7 @@ __metadata:
62096209
version: 0.0.0-use.local
62106210
resolution: "node-rs@workspace:."
62116211
dependencies:
6212-
"@napi-rs/cli": "npm:^3.0.0-alpha.51"
6212+
"@napi-rs/cli": "npm:^3.0.0-alpha.52"
62136213
"@napi-rs/wasm-runtime": "npm:^0.2.0"
62146214
"@swc-node/core": "npm:^1.13.0"
62156215
"@swc-node/register": "npm:^1.9.0"

0 commit comments

Comments
 (0)