Skip to content

Commit a5cbe7a

Browse files
committed
PackageToJS: Use released UWASI 1.5.2 and stabilize sleep test
1 parent e0b98d8 commit a5cbe7a

6 files changed

Lines changed: 10 additions & 8 deletions

File tree

Plugins/PackageToJS/Templates/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
},
1010
"dependencies": {
1111
/* #if USE_UWASI */
12-
"uwasi": "1.6.0"
12+
"uwasi": "1.5.2"
1313
/* #else */
1414
"@bjorn3/browser_wasi_shim": "0.3.0"
1515
/* #endif */

Plugins/PackageToJS/Templates/platforms/browser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { MODULE_PATH /* #if USE_SHARED_MEMORY */, MEMORY_TYPE /* #endif */} from
44
/* #if USE_UWASI */
55
/* #if USE_WASI_CDN */
66
// @ts-ignore
7-
import { WASI, MemoryFileSystem, useAll, lineBuffered } from 'https://cdn.jsdelivr.net/npm/uwasi@1.6.0/+esm';
7+
import { WASI, MemoryFileSystem, useAll, lineBuffered } from 'https://cdn.jsdelivr.net/npm/uwasi@1.5.2/+esm';
88
/* #else */
99
import { WASI, MemoryFileSystem, useAll, lineBuffered } from 'uwasi';
1010
/* #endif */

Plugins/PackageToJS/Tests/Inputs/UWASIAdapterTests.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ test("PackageToJS UWASI adapter preserves its host contracts", () => {
5353
);
5454
});
5555

56-
test("PackageToJS forwards the host sleep policy", () => {
56+
test("PackageToJS forwards the host sleep policy", (t) => {
57+
t.mock.method(performance, "now", () => 0);
5758
const { wasi } = createUwasi(
5859
{
5960
WASI,

Sources/JavaScriptKit/Documentation.docc/Articles/Package-Output-Structure.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ With `--wasi-runtime uwasi`, the generated dependency is instead:
156156

157157
```json
158158
"dependencies": {
159-
"uwasi": "1.6.0"
159+
"uwasi": "1.5.2"
160160
}
161161
```
162162

package-lock.json

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"rollup-plugin-dts": "^6.2.1",
4646
"tslib": "^2.8.1",
4747
"typescript": "^5.8.2",
48-
"uwasi": "git+https://github.com/PassiveLogic/uwasi.git#ddd111bd2cbd03189de184e5dd27e7cb02802d3f",
48+
"uwasi": "1.5.2",
4949
"vitest": "^4.0.18"
5050
}
5151
}

0 commit comments

Comments
 (0)