Skip to content

Commit 9c6325e

Browse files
author
Guy Bedford
authored
deps: update to @bytecodealliance/[email protected] (#468)
1 parent a8986d6 commit 9c6325e

File tree

7 files changed

+7
-14
lines changed

7 files changed

+7
-14
lines changed

.github/workflows/main.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,6 @@ jobs:
295295
- name: Locate component resources
296296
run: |
297297
cp c-dependencies/js-compute-runtime/c-at-e.wit .
298-
cp c-dependencies/js-compute-runtime/wasi_snapshot_preview1.reactor.wasm .
299298
- run: yarn
300299
shell: bash
301300
- run: npm test

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ node_modules/
1616
/c-dependencies/js-compute-runtime/obj
1717
tests/wpt-harness/wpt-test-runner.js
1818
/c-at-e.wit
19-
/wasi_snapshot_preview1.reactor.wasm
2019
wpt-runtime.wasm
2120
docs-app/bin/main.wasm
2221
docs-app/pkg/*.tar.gz

c-dependencies/js-compute-runtime/Makefile

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,6 @@ LD_FLAGS += -L$(BUILD)/openssl/libx32 -lcrypto
109109
.PHONY: all
110110
all: $(FSM_SRC)/js-compute-runtime.wasm
111111
all: $(FSM_SRC)/js-compute-runtime-component.wasm
112-
all: wasi_snapshot_preview1.reactor.wasm
113112

114113
# Remove just the build artifacts for the current runtime build.
115114
.PHONY: clean
@@ -165,10 +164,6 @@ $(BUILD)/openssl-$(OPENSSL_VERSION).tar.gz: URL=https://www.openssl.org/source/o
165164
$(BUILD)/openssl-$(OPENSSL_VERSION).tar.gz: | $(BUILD)
166165
$(call cmd,wget,$@)
167166

168-
wasi_snapshot_preview1.reactor.wasm: URL=https://github.com/bytecodealliance/preview2-prototyping/releases/download/latest/wasi_snapshot_preview1.reactor.wasm
169-
wasi_snapshot_preview1.reactor.wasm:
170-
$(call cmd,wget,$@)
171-
172167
# OpenSSL build ################################################################
173168

174169
# Convenience target for building openssl.
Binary file not shown.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"typescript": "^4.9"
4343
},
4444
"dependencies": {
45-
"@bytecodealliance/jco": "^0.4.1",
45+
"@bytecodealliance/jco": "^0.5.2",
4646
"@bytecodealliance/wizer": "^1.6.1-beta.4",
4747
"esbuild": "^0.15.16",
4848
"regexpu-core": "^5.3.1",

src/component.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import { componentEmbed, componentNew } from '@bytecodealliance/jco';
1+
import { componentEmbed, componentNew, preview1AdapterReactorPath } from '@bytecodealliance/jco';
22
import { readFile, writeFile } from 'node:fs/promises';
33

44
export async function compileComponent (path) {
55
const coreComponent = await readFile(path);
66
const wit = await readFile(new URL('../c-at-e.wit', import.meta.url), 'utf8');
77
const coreComponentEmbedded = await componentEmbed(coreComponent, wit);
8-
const generatedComponent = await componentNew(coreComponentEmbedded, [['wasi_snapshot_preview1', await readFile(new URL('../wasi_snapshot_preview1.reactor.wasm', import.meta.url))]]);
8+
const generatedComponent = await componentNew(coreComponentEmbedded, [['wasi_snapshot_preview1', await readFile(preview1AdapterReactorPath())]]);
99
await writeFile(path, generatedComponent);
1010
}

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@
3333
resolved "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz"
3434
integrity sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==
3535

36-
"@bytecodealliance/jco@^0.4.1":
37-
version "0.4.1"
38-
resolved "https://registry.npmjs.org/@bytecodealliance/jco/-/jco-0.4.1.tgz"
39-
integrity sha512-fb7QID6CtJhBO2jj71/VqBVphPcxWi72uIZnwCHDobgiq+8TM4XFuJEYFD7OOd8u19HlXGrtTujgFPXErx4JwA==
36+
"@bytecodealliance/jco@^0.5.2":
37+
version "0.5.2"
38+
resolved "https://registry.yarnpkg.com/@bytecodealliance/jco/-/jco-0.5.2.tgz#edec41d666be37c7972ac940722631a94dcf6c67"
39+
integrity sha512-82Kfp8D4PkrcNwwEyYP+cAXmM4QlW8xXq6oxpBruFkZIuHMxH0QK/fdR6LvDjTeLZcalvpkjpHGQfN0eQbpkiw==
4040

4141
"@bytecodealliance/[email protected]":
4242
version "1.6.1-beta.4"

0 commit comments

Comments
 (0)