From 9081b5714631df8747e9bd331786654c9833bf2f Mon Sep 17 00:00:00 2001 From: Diego Rodrigues de Sa e Souza <8016841+diegosouzapw@users.noreply.github.com> Date: Mon, 17 Aug 2026 08:47:32 -0300 Subject: [PATCH] fix(release): align onnxruntime dependency contract test --- tests/unit/build/optional-transformers-dependency.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/unit/build/optional-transformers-dependency.test.ts b/tests/unit/build/optional-transformers-dependency.test.ts index 7e1c07fe7f..07bf0d8b69 100644 --- a/tests/unit/build/optional-transformers-dependency.test.ts +++ b/tests/unit/build/optional-transformers-dependency.test.ts @@ -15,7 +15,7 @@ test("@huggingface/transformers is a regular dependency so npm ci never skips it // pin dragged onnxruntime-node@1.21.0 whose NAN build no longer compiles), which // broke `npm ci`/`next build` with "Can't resolve @huggingface/transformers" // (lazy import in src/lib/memory/embedding/transformersLocal.ts). As a regular - // dep with onnxruntime-node@~1.27.0 (napi prebuilds, no node-gyp) it stays + // dep with onnxruntime-node@~1.24.3 (napi prebuilds, no node-gyp) it stays // installable and the memory embedding path requires() cleanly. const pkg = readJson<{ dependencies?: Record; @@ -38,7 +38,7 @@ test("transformers + onnxruntime-node are regular dependencies (not optional)", assert.equal( pkg.dependencies?.["onnxruntime-node"], - "~1.27.0", + "~1.24.3", "onnxruntime-node is a regular dep (napi prebuilds, installable on Node 24/26)" ); assert.equal(pkg.optionalDependencies?.["onnxruntime-node"], undefined);