Skip to content

Commit b10cd34

Browse files
committed
chore: update deps and enable nodePolyFill for utooweb-demo
- Update tokio-fs-ext to 0.7.1 - Fix mimalloc patch (remove explicit package name) - Enable span events logging in WASM tracing - Enable nodePolyFill in utooweb-demo config - Include package-lock.json in demo files
1 parent 5bbd94b commit b10cd34

6 files changed

Lines changed: 15 additions & 14 deletions

File tree

Cargo.lock

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

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ serde_path_to_error = "0.1.16"
4444
simd-json = "0.17.0"
4545
thiserror = "1.0"
4646
tokio = { version = "1.47.1" }
47-
tokio-fs-ext = "0.7.0"
47+
tokio-fs-ext = "0.7.1"
4848
toml = "0.8"
4949
tracing = "0.1.41"
5050
tracing-subscriber = { version = "0.3.19", features = ["env-filter", "fmt"] }
@@ -151,7 +151,7 @@ strip = "none"
151151
bincode = { git = "https://github.com/bgw/bincode.git", branch = "bgw/patches" }
152152
lightningcss = { git = "https://github.com/utooland/lightningcss", branch = "support-css-module-global" }
153153
mdxjs = { git = "https://github.com/mischnic/mdxjs-rs.git", branch = "swc-core-32" }
154-
mimalloc = { git = "https://github.com/utooland/mimalloc_rust.git", package = "mimalloc" }
154+
mimalloc = { git = "https://github.com/utooland/mimalloc_rust.git" }
155155
parcel_selectors = { git = "https://github.com/utooland/lightningcss", branch = "support-css-module-global" }
156156
tokio = { git = "https://github.com/utooland/tokio.git", package = "tokio" }
157157
tokio-util = { git = "https://github.com/utooland/tokio.git", package = "tokio-util" }

examples/utooweb-demo/src/demoFiles.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ context.keys().forEach((key: string) => {
1616
)
1717
return;
1818
// Skip package-lock.json - it should be generated by deps command
19-
if (fileName === "package-lock.json") return;
19+
// if (fileName === "package-lock.json") return;
2020
demoFiles[fileName] = context(key);
2121
});

examples/utooweb-demo/src/demo_raw/utoopack.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,6 @@
88
"name": "index"
99
}
1010
],
11+
"nodePolyFill": true,
1112
"stats": true
1213
}

next.js

packages/utoo-web/src/utoo/index.d.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,8 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
147147
export interface InitOutput {
148148
readonly registerWorkerScheduler: (a: any, b: any) => void;
149149
readonly workerCreated: (a: number) => void;
150+
readonly initLogFilter: (a: number, b: number) => void;
151+
readonly init_pack: () => void;
150152
readonly __wbg_direntry_free: (a: number, b: number) => void;
151153
readonly __wbg_get_direntry_name: (a: number) => [number, number];
152154
readonly __wbg_get_direntry_type: (a: number) => number;
@@ -186,8 +188,6 @@ export interface InitOutput {
186188
readonly project_write: (a: number, b: number, c: any) => any;
187189
readonly project_writeString: (a: number, b: number, c: number, d: number) => any;
188190
readonly project_writeSync: (a: number, b: number, c: any) => [number, number];
189-
readonly initLogFilter: (a: number, b: number) => void;
190-
readonly init_pack: () => void;
191191
readonly rust_mi_get_default_heap: () => number;
192192
readonly rust_mi_get_thread_id: () => number;
193193
readonly rust_mi_set_default_heap: (a: number) => void;
@@ -212,12 +212,12 @@ export interface InitOutput {
212212
readonly wasmtaskmessage_data: (a: number) => any;
213213
readonly __wbg_createsyncaccesshandleoptions_free: (a: number, b: number) => void;
214214
readonly wasm_thread_entry_point: (a: number) => void;
215-
readonly wasm_bindgen__convert__closures_____invoke__h56a508b165bb0698: (a: number, b: number) => void;
216-
readonly wasm_bindgen__closure__destroy__hb10b6a816b65033c: (a: number, b: number) => void;
217-
readonly wasm_bindgen__convert__closures_____invoke__h1fc4d085249c5ea3: (a: number, b: number, c: any) => void;
218-
readonly wasm_bindgen__closure__destroy__hbc23ea6ab53be1d2: (a: number, b: number) => void;
219215
readonly wasm_bindgen__convert__closures_____invoke__h12ad3f2e11ef8f1f: (a: number, b: number, c: any) => void;
220216
readonly wasm_bindgen__closure__destroy__ha0c175f92395ef9a: (a: number, b: number) => void;
217+
readonly wasm_bindgen__convert__closures_____invoke__h56a508b165bb0698: (a: number, b: number) => void;
218+
readonly wasm_bindgen__closure__destroy__hb10b6a816b65033c: (a: number, b: number) => void;
219+
readonly wasm_bindgen__convert__closures_____invoke__h9686edc4935a586a: (a: number, b: number, c: any) => void;
220+
readonly wasm_bindgen__closure__destroy__h15421632d8fe4920: (a: number, b: number) => void;
221221
readonly wasm_bindgen__convert__closures_____invoke__h05951ccee93604a9: (a: number, b: number, c: any) => void;
222222
readonly wasm_bindgen__closure__destroy__hc95bb6053e4d238d: (a: number, b: number) => void;
223223
readonly wasm_bindgen__convert__closures_____invoke__hd01d906c585a4882: (a: number, b: number) => void;

0 commit comments

Comments
 (0)