Skip to content

Commit 83aaab0

Browse files
Guy BedfordJakeChampion
andauthored
deps: update to @bytecodealliance/[email protected] (#419)
* deps: update to @bytecodealliance/[email protected] * fixup makefile * format * update to latest jco --------- Co-authored-by: Jake Champion <[email protected]>
1 parent fe9d446 commit 83aaab0

File tree

7 files changed

+13
-10
lines changed

7 files changed

+13
-10
lines changed
Binary file not shown.

c-dependencies/js-compute-runtime/xqd-world/xqd_world.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Generated by `wit-bindgen` 0.3.0. DO NOT EDIT!
12
#include "xqd_world.h"
23

34

@@ -450,7 +451,8 @@ __attribute__((import_module("fastly"), import_name("purge-surrogate-key")))
450451
void __wasm_import_fastly_purge_surrogate_key(int32_t, int32_t, int32_t, int32_t);
451452

452453
__attribute__((weak, export_name("cabi_realloc")))
453-
void *cabi_realloc(void *ptr, size_t orig_size, size_t org_align, size_t new_size) {
454+
void *cabi_realloc(void *ptr, size_t old_size, size_t align, size_t new_size) {
455+
if (new_size == 0) return (void*) align;
454456
void *ret = realloc(ptr, new_size);
455457
if (!ret) abort();
456458
return ret;

c-dependencies/js-compute-runtime/xqd-world/xqd_world.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Generated by `wit-bindgen` 0.3.0. DO NOT EDIT!
12
#ifndef __BINDINGS_XQD_WORLD_H
23
#define __BINDINGS_XQD_WORLD_H
34
#ifdef __cplusplus

integration-tests/cli/component.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import test from 'brittle';
22
import { getBinPath } from 'get-bin-path'
33
import { prepareEnvironment } from '@jakechampion/cli-testing-library';
4-
import { print } from 'js-component-tools';
4+
import { print } from '@bytecodealliance/jco';
55
import { resolve } from 'node:path';
66
import { readFile } from 'node:fs/promises';
77

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@fastly/js-compute",
33
"version": "1.3.4",
44
"engines": {
5-
"node": "16 - 18",
5+
"node": "16 - 19",
66
"npm": "^8"
77
},
88
"license": "Apache-2.0",
@@ -44,7 +44,7 @@
4444
"dependencies": {
4545
"@jakechampion/wizer": "^1.6.0",
4646
"esbuild": "^0.15.16",
47-
"js-component-tools": "0.3.0-beta.2",
47+
"@bytecodealliance/jco": "^0.4.1",
4848
"tree-sitter": "^0.20.1",
4949
"tree-sitter-javascript": "^0.19.0"
5050
}

src/component.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { componentEmbed, componentNew } from 'js-component-tools';
1+
import { componentEmbed, componentNew } from '@bytecodealliance/jco';
22
import { readFile, writeFile } from 'node:fs/promises';
33

44
export async function compileComponent (path) {

yarn.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@
2828
resolved "https://registry.yarnpkg.com/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz#75a2e8b51cb758a7553d6804a5932d7aace75c39"
2929
integrity sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==
3030

31+
"@bytecodealliance/jco@^0.4.1":
32+
version "0.4.1"
33+
resolved "https://registry.yarnpkg.com/@bytecodealliance/jco/-/jco-0.4.1.tgz#71553e641e118e7090f8cf57b909b29f7a0dbc4c"
34+
integrity sha512-fb7QID6CtJhBO2jj71/VqBVphPcxWi72uIZnwCHDobgiq+8TM4XFuJEYFD7OOd8u19HlXGrtTujgFPXErx4JwA==
35+
3136
"@esbuild/[email protected]":
3237
version "0.15.18"
3338
resolved "https://registry.yarnpkg.com/@esbuild/android-arm/-/android-arm-0.15.18.tgz#266d40b8fdcf87962df8af05b76219bc786b4f80"
@@ -1433,11 +1438,6 @@ istanbul-reports@^3.1.4:
14331438
html-escaper "^2.0.0"
14341439
istanbul-lib-report "^3.0.0"
14351440

1436-
1437-
version "0.3.0-beta.2"
1438-
resolved "https://registry.yarnpkg.com/js-component-tools/-/js-component-tools-0.3.0-beta.2.tgz#103e32d280f5c0b388acb162f1fc5bf4f63fc6aa"
1439-
integrity sha512-42YqxLmgjHUYza/VOrZKpJ3iM/NjCRdLnRAvDyQpbQmf6IwIVUDZCSc7oEr0pXkBxUrK1RKMNuwQN7rNMrtxSA==
1440-
14411441
js-sdsl@^4.1.4:
14421442
version "4.3.0"
14431443
resolved "https://registry.yarnpkg.com/js-sdsl/-/js-sdsl-4.3.0.tgz#aeefe32a451f7af88425b11fdb5f58c90ae1d711"

0 commit comments

Comments
 (0)