From 343ade685f498801f48cf27df4eed1fc6c0c84ae Mon Sep 17 00:00:00 2001 From: can1357 Date: Sun, 5 Jul 2026 17:19:18 +0200 Subject: [PATCH] fix(deps): re-keyed @ark/schema patch to 0.56.1 for wire key order The 16.3.7 bump pulled arktype 2.2.2, which pins @ark/schema to 0.56.1. The patch was keyed to 0.56.0, so Bun silently skipped it and the arktype constraint keys reverted to hash/alphabetical order. Tool wire schemas then lost authored declaration order, failing packages/ai schema-wire tests and blocking the release pipeline. Regenerated the patch against 0.56.1 (flattenConstraints shifted, so the old hunk offsets no longer applied) and re-pointed patchedDependencies. --- bun.lock | 3 +++ package.json | 4 ++-- ...rk%2Fschema@0.56.0.patch => @ark%2Fschema@0.56.1.patch} | 7 ++----- 3 files changed, 7 insertions(+), 7 deletions(-) rename patches/{@ark%2Fschema@0.56.0.patch => @ark%2Fschema@0.56.1.patch} (77%) diff --git a/bun.lock b/bun.lock index c041810d4..6c3fa6ffb 100644 --- a/bun.lock +++ b/bun.lock @@ -322,6 +322,9 @@ }, }, }, + "patchedDependencies": { + "@ark/schema@0.56.1": "patches/@ark%2Fschema@0.56.1.patch", + }, "catalog": { "@agentclientprotocol/sdk": "0.25.0", "@babel/generator": "^7.29.7", diff --git a/package.json b/package.json index 6eb30901d..83b0a9a8e 100644 --- a/package.json +++ b/package.json @@ -5,8 +5,8 @@ "type": "module", "packageManager": "bun@1.3.14", "patchedDependencies": { - "@ark/schema@0.56.0": "patches/@ark%2Fschema@0.56.0.patch", - "puppeteer-core@25.1.0": "patches/puppeteer-core@25.1.0.patch" + "puppeteer-core@25.1.0": "patches/puppeteer-core@25.1.0.patch", + "@ark/schema@0.56.1": "patches/@ark%2Fschema@0.56.1.patch" }, "workspaces": { "packages": [ diff --git a/patches/@ark%2Fschema@0.56.0.patch b/patches/@ark%2Fschema@0.56.1.patch similarity index 77% rename from patches/@ark%2Fschema@0.56.0.patch rename to patches/@ark%2Fschema@0.56.1.patch index c51c5abdb..fe03da69a 100644 --- a/patches/@ark%2Fschema@0.56.0.patch +++ b/patches/@ark%2Fschema@0.56.1.patch @@ -1,8 +1,5 @@ -diff --git a/node_modules/@ark/schema/.bun-tag-de36d37c69a0e3d4 b/.bun-tag-de36d37c69a0e3d4 -new file mode 100644 -index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/out/constraint.js b/out/constraint.js -index 80bd4ac7cb93deafa34af1595d320368c7cf1b90..4c7d64865edd612ed75698e0420d3435bc408d82 100644 +index 19ad1869c46cf57bde4a09dcb6400ab2c83809e1..4f3df3198713856ad76dd49cc378f0f41fc769e6 100644 --- a/out/constraint.js +++ b/out/constraint.js @@ -51,8 +51,10 @@ export const constraintKeyParser = (kind) => (schema, ctx) => { @@ -18,7 +15,7 @@ index 80bd4ac7cb93deafa34af1595d320368c7cf1b90..4c7d64865edd612ed75698e0420d3435 return nodes; return nodes.sort((l, r) => (l.hash < r.hash ? -1 : 1)); } -@@ -107,7 +109,7 @@ export const flattenConstraints = (inner) => { +@@ -111,7 +113,7 @@ export const flattenConstraints = (inner) => { .sort((l, r) => l.precedence < r.precedence ? -1 : l.precedence > r.precedence ? 1 // preserve order for predicates