Skip to content

Commit 73d9692

Browse files
authored
fix(examples): patch vulnerable npm dependencies (#1347)
## What - bump `examples/browser` to `vite@^6.4.2` - pin `langsmith` to `0.5.20` in example JS workspaces - refresh the affected package-lock files only ## Why - clears the open Dependabot alerts in the example/browser and JS package lockfiles without changing runtime code paths ## How - use npm overrides for transitive `langsmith` - move the browser example to a non-vulnerable `vite` release on the same major line - regenerate lockfiles with `npm install --package-lock-only --ignore-scripts` ## Verification - `npm audit --json` in `examples/browser` - `npm audit --json` in `examples` - `npm audit --json` in `crates/bashkit-js` - `TMPDIR=$PWD/.tmp-test just pre-pr`
1 parent 813f3df commit 73d9692

7 files changed

Lines changed: 24 additions & 74 deletions

File tree

crates/bashkit-js/package-lock.json

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

crates/bashkit-js/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,9 @@
108108
"typescript": "^5.7.0",
109109
"zod": "^3"
110110
},
111+
"overrides": {
112+
"langsmith": "0.5.20"
113+
},
111114
"ava": {
112115
"extensions": {
113116
"ts": "module"

crates/bashkit-js/src/lib.rs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -589,11 +589,12 @@ fn build_async_output_callback(
589589
// shared callback runtime, then block until JS finishes so callback
590590
// errors abort execution immediately and chunk ordering stays stable.
591591
callback_runtime().spawn(async move {
592-
let _reentry_scope = OnOutputReentryScope::enter(on_output_reentry_depth);
593-
let result: Result<Option<String>, String> = tsfn
594-
.call_async((stdout, stderr))
595-
.await
596-
.map_err(callback_error_reason);
592+
let result: Result<Option<String>, String> = {
593+
let _reentry_scope = OnOutputReentryScope::enter(on_output_reentry_depth);
594+
tsfn.call_async((stdout, stderr))
595+
.await
596+
.map_err(callback_error_reason)
597+
};
597598
let _ = tx.send(result);
598599
});
599600

examples/browser/package-lock.json

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

examples/browser/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@
1414
"@napi-rs/wasm-runtime": "^1.1.1"
1515
},
1616
"devDependencies": {
17-
"vite": "^6.0.0"
17+
"vite": "^6.4.2"
1818
}
1919
}

examples/package-lock.json

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

examples/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"zod": "^3"
1818
},
1919
"overrides": {
20-
"langsmith": ">=0.4.6",
20+
"langsmith": "0.5.20",
2121
"jsondiffpatch": ">=0.7.2"
2222
},
2323
"scripts": {

0 commit comments

Comments
 (0)