Skip to content

Commit b354efc

Browse files
committed
chore(jco): bump componentize-qjs
The patch updates `componentize-qjs` to v0.5.0
1 parent 3acf8a1 commit b354efc

5 files changed

Lines changed: 110 additions & 16 deletions

File tree

‎packages/jco/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
"@bytecodealliance/preview2-shim": "^0.30.0",
7272
"binaryen": "^132.0.0",
7373
"commander": "^14",
74-
"componentize-qjs": "^0.4.5",
74+
"componentize-qjs": "^0.5.0",
7575
"mkdirp": "^3",
7676
"regexpu-core": "6.4.0",
7777
"rolldown": "^1.2.4",

‎packages/jco/src/node-builtins/wasi-sockets.ts‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,13 @@ interface WasiSocketsProviderSource {
77

88
/** Shared Preview 2 provider source used by net, HTTP/1, HTTP/2, and HTTPS adapters. */
99
export function wasiSocketsProviderSource(version: string): WasiSocketsProviderSource {
10-
const u64 = version === "0.2.10" ? "BigInt(value)" : "value";
1110
const schedule = version === "0.2.10" ? ", schedule: task => setTimeout(task, 0)" : "";
1211
return {
1312
imports: `
1413
import * as instanceNetwork from "wasi:sockets/instance-network@${version}";
1514
import * as ipNameLookup from "wasi:sockets/ip-name-lookup@${version}";
1615
import * as tcpCreateSocket from "wasi:sockets/tcp-create-socket@${version}";`,
17-
value: `{ instanceNetwork, ipNameLookup, tcpCreateSocket, u64: value => ${u64}${schedule} }`,
16+
value: `{ instanceNetwork, ipNameLookup, tcpCreateSocket, u64: value => BigInt(value)${schedule} }`,
1817
};
1918
}
2019

‎packages/jco/test/node/net.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ describe("node:net builtin adapter", () => {
6060
witImport: `wasi:sockets/instance-network@${wasiSocketsVersion}`,
6161
}),
6262
);
63+
expect(source).toContain("u64: value => BigInt(value)");
6364
if (wasiSocketsVersion === "0.2.10") {
64-
expect(source).toContain("u64: value => BigInt(value)");
6565
expect(source).toContain("schedule: task => setTimeout(task, 0)");
6666
}
6767
});

‎pnpm-lock.yaml‎

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

‎pnpm-workspace.yaml‎

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ packages:
5858

5959
catalog:
6060
'@bytecodealliance/componentize-js': ^0.22.0
61-
'componentize-qjs': ^0.4.5
61+
'componentize-qjs': ^0.5.0
6262
'@rolldown/binding-android-arm64': ^1.2.4
6363
'@rolldown/binding-darwin-arm64': ^1.2.4
6464
'@rolldown/binding-darwin-x64': ^1.2.4
@@ -112,15 +112,15 @@ minimumReleaseAgeExclude:
112112
- '@rollup/rollup-linux-riscv64-musl@4.64.1'
113113
- '@rollup/rollup-linux-arm-gnueabihf@4.64.1'
114114
- '@rollup/rollup-linux-arm-musleabihf@4.64.1'
115-
- 'componentize-qjs@0.4.5'
116-
- '@andreiltd/componentize-qjs-binding-darwin-arm64@0.4.5'
117-
- '@andreiltd/componentize-qjs-binding-darwin-x64@0.4.5'
118-
- '@andreiltd/componentize-qjs-binding-linux-arm64-gnu@0.4.5'
119-
- '@andreiltd/componentize-qjs-binding-linux-arm64-musl@0.4.5'
120-
- '@andreiltd/componentize-qjs-binding-linux-x64-gnu@0.4.5'
121-
- '@andreiltd/componentize-qjs-binding-linux-x64-musl@0.4.5'
122-
- '@andreiltd/componentize-qjs-binding-win32-arm64-msvc@0.4.5'
123-
- '@andreiltd/componentize-qjs-binding-win32-x64-msvc@0.4.5'
115+
- 'componentize-qjs@0.5.0'
116+
- '@andreiltd/componentize-qjs-binding-darwin-arm64@0.5.0'
117+
- '@andreiltd/componentize-qjs-binding-darwin-x64@0.5.0'
118+
- '@andreiltd/componentize-qjs-binding-linux-arm64-gnu@0.5.0'
119+
- '@andreiltd/componentize-qjs-binding-linux-arm64-musl@0.5.0'
120+
- '@andreiltd/componentize-qjs-binding-linux-x64-gnu@0.5.0'
121+
- '@andreiltd/componentize-qjs-binding-linux-x64-musl@0.5.0'
122+
- '@andreiltd/componentize-qjs-binding-win32-arm64-msvc@0.5.0'
123+
- '@andreiltd/componentize-qjs-binding-win32-x64-msvc@0.5.0'
124124
- '@bytecodealliance/jco-node-fs@0.2.0 || 0.3.2'
125125
- '@bytecodealliance/jco-node-fs-darwin-arm64@0.2.0 || 0.3.2'
126126
- '@bytecodealliance/jco-node-fs-darwin-x64@0.2.0 || 0.3.2'

0 commit comments

Comments
 (0)