From 1803e8699f80001017578a4c8d604a9d7b1b316b Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 8 Mar 2026 09:44:14 +0000 Subject: [PATCH] chore: update versions --- .changeset/compiler-fallback-loop-tools.md | 17 ------ .changeset/compiler-shadowed-loop-tools.md | 10 ---- .changeset/document-source-metadata.md | 15 ----- .changeset/native-batched-tool-authoring.md | 11 ---- .changeset/runtime-error-tool-formatting.md | 14 ----- .changeset/safe-path-panic-formatting.md | 7 --- .changeset/strict-scope-rules.md | 12 ---- .../ternary-condition-source-mapping.md | 11 ---- packages/bridge-compiler/CHANGELOG.md | 47 +++++++++++++++ packages/bridge-compiler/package.json | 2 +- packages/bridge-core/CHANGELOG.md | 58 ++++++++++++++++++ packages/bridge-core/package.json | 2 +- packages/bridge-graphql/CHANGELOG.md | 16 +++++ packages/bridge-graphql/package.json | 2 +- packages/bridge-parser/CHANGELOG.md | 38 ++++++++++++ packages/bridge-parser/package.json | 2 +- packages/bridge-stdlib/CHANGELOG.md | 7 +++ packages/bridge-stdlib/package.json | 2 +- packages/bridge-types/CHANGELOG.md | 10 ++++ packages/bridge-types/package.json | 2 +- packages/bridge/CHANGELOG.md | 60 +++++++++++++++++++ packages/bridge/package.json | 2 +- 22 files changed, 243 insertions(+), 104 deletions(-) delete mode 100644 .changeset/compiler-fallback-loop-tools.md delete mode 100644 .changeset/compiler-shadowed-loop-tools.md delete mode 100644 .changeset/document-source-metadata.md delete mode 100644 .changeset/native-batched-tool-authoring.md delete mode 100644 .changeset/runtime-error-tool-formatting.md delete mode 100644 .changeset/safe-path-panic-formatting.md delete mode 100644 .changeset/strict-scope-rules.md delete mode 100644 .changeset/ternary-condition-source-mapping.md diff --git a/.changeset/compiler-fallback-loop-tools.md b/.changeset/compiler-fallback-loop-tools.md deleted file mode 100644 index 921889da..00000000 --- a/.changeset/compiler-fallback-loop-tools.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -"@stackables/bridge": patch -"@stackables/bridge-core": patch -"@stackables/bridge-compiler": patch -"@stackables/bridge-parser": patch ---- - -Add memoized tool handles with compiler support. - -Bridge `with` declarations now support `memoize` for tool handles, including -loop-scoped tool handles inside array mappings. Memoized handles reuse the same -result for repeated calls with identical inputs, and each declared handle keeps -its own cache. - -The AOT compiler now compiles memoized tool handles too, including loop-scoped -tool handles inside array mappings. Compiled execution preserves request-scoped -caching semantics and reuses results for repeated calls with identical inputs. diff --git a/.changeset/compiler-shadowed-loop-tools.md b/.changeset/compiler-shadowed-loop-tools.md deleted file mode 100644 index 1597c484..00000000 --- a/.changeset/compiler-shadowed-loop-tools.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -"@stackables/bridge-compiler": patch ---- - -Compile shadowed loop-scoped tool handles in the AOT compiler. - -Bridges can now redeclare the same tool alias in nested array scopes without -triggering `BridgeCompilerIncompatibleError` or falling back to the interpreter. -The compiler now assigns distinct tool instances to repeated handle bindings so -each nested scope emits and reads from the correct tool call. diff --git a/.changeset/document-source-metadata.md b/.changeset/document-source-metadata.md deleted file mode 100644 index 33f921e5..00000000 --- a/.changeset/document-source-metadata.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -"@stackables/bridge": patch -"@stackables/bridge-core": patch -"@stackables/bridge-compiler": patch -"@stackables/bridge-graphql": patch -"@stackables/bridge-parser": patch ---- - -Move Bridge source metadata onto BridgeDocument. - -Parsed documents now retain their original source text automatically, and can -optionally carry a filename from parse time. Runtime execution, compiler -fallbacks, GraphQL execution, and playground formatting now read that metadata -from the document instead of requiring callers to thread source and filename -through execute options. diff --git a/.changeset/native-batched-tool-authoring.md b/.changeset/native-batched-tool-authoring.md deleted file mode 100644 index 16eb336d..00000000 --- a/.changeset/native-batched-tool-authoring.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -"@stackables/bridge": minor -"@stackables/bridge-core": minor -"@stackables/bridge-types": minor ---- - -Improve native batched tool authoring by documenting the feature, exporting dedicated batch tool types, and simplifying the batch contract to plain input arrays. - -Batch tools now receive `Input[]` and must return `Output[]` in matching order. Batched tool tracing and logging are also emitted once per flushed batch call instead of once per queued item. - -Native batching now works in compiled execution as well as the runtime interpreter. Batch tools can also signal partial failures by returning an `Error` at a specific result index, which rejects only that item and allows normal wire-level `catch` fallbacks to handle it. diff --git a/.changeset/runtime-error-tool-formatting.md b/.changeset/runtime-error-tool-formatting.md deleted file mode 100644 index 3a428233..00000000 --- a/.changeset/runtime-error-tool-formatting.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -"@stackables/bridge": patch -"@stackables/bridge-core": patch ---- - -Improve formatted runtime errors for missing tools and source underlines. - -`No tool found for "..."` and missing registered tool-function errors now carry -Bridge source locations when they originate from authored bridge wires, so -formatted errors include the filename, line, and highlighted source span. -Control-flow throw fallbacks now preserve their own source span, so -`?? throw "..."` highlights only the throw clause instead of the whole wire. -Caret underlines now render the full inclusive source span instead of stopping -one character short. diff --git a/.changeset/safe-path-panic-formatting.md b/.changeset/safe-path-panic-formatting.md deleted file mode 100644 index 8c35fd3f..00000000 --- a/.changeset/safe-path-panic-formatting.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@stackables/bridge": patch -"@stackables/bridge-core": patch -"@stackables/bridge-compiler": patch ---- - -Fix segment-local `?.` traversal so later strict path segments still fail after a guarded null hop, and preserve source formatting for `panic` control-flow errors. diff --git a/.changeset/strict-scope-rules.md b/.changeset/strict-scope-rules.md deleted file mode 100644 index c9563d4c..00000000 --- a/.changeset/strict-scope-rules.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -"@stackables/bridge": patch -"@stackables/bridge-core": patch -"@stackables/bridge-compiler": patch -"@stackables/bridge-parser": patch ---- - -Fix strict nested scope resolution for array mappings. - -Nested scopes can now read iterator aliases from visible parent scopes while -still resolving overlapping names to the nearest inner scope. This also keeps -invalid nested tool input wiring rejected during parsing. diff --git a/.changeset/ternary-condition-source-mapping.md b/.changeset/ternary-condition-source-mapping.md deleted file mode 100644 index ce53d70d..00000000 --- a/.changeset/ternary-condition-source-mapping.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -"@stackables/bridge": patch -"@stackables/bridge-core": patch -"@stackables/bridge-compiler": patch -"@stackables/bridge-parser": patch ---- - -Improve runtime error source mapping for ternary conditions and strict path traversal. - -Runtime and compiled execution now preserve clause-level source spans for ternary conditions and branches, so formatted errors can highlight only the failing condition or selected branch instead of the whole wire. -Strict path traversal also now fails consistently on primitive property access in both runtime and AOT execution, keeping error messages and behavior aligned. diff --git a/packages/bridge-compiler/CHANGELOG.md b/packages/bridge-compiler/CHANGELOG.md index 9212abad..5bfc461a 100644 --- a/packages/bridge-compiler/CHANGELOG.md +++ b/packages/bridge-compiler/CHANGELOG.md @@ -1,5 +1,52 @@ # @stackables/bridge-compiler +## 2.4.1 + +### Patch Changes + +- [#108](https://github.com/stackables/bridge/pull/108) [`de20ece`](https://github.com/stackables/bridge/commit/de20ece3ca9c42d0def90f512f90900962670339) Thanks [@aarne](https://github.com/aarne)! - Add memoized tool handles with compiler support. + + Bridge `with` declarations now support `memoize` for tool handles, including + loop-scoped tool handles inside array mappings. Memoized handles reuse the same + result for repeated calls with identical inputs, and each declared handle keeps + its own cache. + + The AOT compiler now compiles memoized tool handles too, including loop-scoped + tool handles inside array mappings. Compiled execution preserves request-scoped + caching semantics and reuses results for repeated calls with identical inputs. + +- [#108](https://github.com/stackables/bridge/pull/108) [`de20ece`](https://github.com/stackables/bridge/commit/de20ece3ca9c42d0def90f512f90900962670339) Thanks [@aarne](https://github.com/aarne)! - Compile shadowed loop-scoped tool handles in the AOT compiler. + + Bridges can now redeclare the same tool alias in nested array scopes without + triggering `BridgeCompilerIncompatibleError` or falling back to the interpreter. + The compiler now assigns distinct tool instances to repeated handle bindings so + each nested scope emits and reads from the correct tool call. + +- [#111](https://github.com/stackables/bridge/pull/111) [`fc836e4`](https://github.com/stackables/bridge/commit/fc836e4ff33f00a078246094b8b12b77ee844942) Thanks [@aarne](https://github.com/aarne)! - Move Bridge source metadata onto BridgeDocument. + + Parsed documents now retain their original source text automatically, and can + optionally carry a filename from parse time. Runtime execution, compiler + fallbacks, GraphQL execution, and playground formatting now read that metadata + from the document instead of requiring callers to thread source and filename + through execute options. + +- [#111](https://github.com/stackables/bridge/pull/111) [`fc836e4`](https://github.com/stackables/bridge/commit/fc836e4ff33f00a078246094b8b12b77ee844942) Thanks [@aarne](https://github.com/aarne)! - Fix segment-local `?.` traversal so later strict path segments still fail after a guarded null hop, and preserve source formatting for `panic` control-flow errors. + +- [#108](https://github.com/stackables/bridge/pull/108) [`de20ece`](https://github.com/stackables/bridge/commit/de20ece3ca9c42d0def90f512f90900962670339) Thanks [@aarne](https://github.com/aarne)! - Fix strict nested scope resolution for array mappings. + + Nested scopes can now read iterator aliases from visible parent scopes while + still resolving overlapping names to the nearest inner scope. This also keeps + invalid nested tool input wiring rejected during parsing. + +- [#111](https://github.com/stackables/bridge/pull/111) [`fc836e4`](https://github.com/stackables/bridge/commit/fc836e4ff33f00a078246094b8b12b77ee844942) Thanks [@aarne](https://github.com/aarne)! - Improve runtime error source mapping for ternary conditions and strict path traversal. + + Runtime and compiled execution now preserve clause-level source spans for ternary conditions and branches, so formatted errors can highlight only the failing condition or selected branch instead of the whole wire. + Strict path traversal also now fails consistently on primitive property access in both runtime and AOT execution, keeping error messages and behavior aligned. + +- Updated dependencies [[`de20ece`](https://github.com/stackables/bridge/commit/de20ece3ca9c42d0def90f512f90900962670339), [`fc836e4`](https://github.com/stackables/bridge/commit/fc836e4ff33f00a078246094b8b12b77ee844942), [`375e2b0`](https://github.com/stackables/bridge/commit/375e2b08a16f670cded3aba7d6e2ee52254eab1c), [`fc836e4`](https://github.com/stackables/bridge/commit/fc836e4ff33f00a078246094b8b12b77ee844942), [`fc836e4`](https://github.com/stackables/bridge/commit/fc836e4ff33f00a078246094b8b12b77ee844942), [`de20ece`](https://github.com/stackables/bridge/commit/de20ece3ca9c42d0def90f512f90900962670339), [`fc836e4`](https://github.com/stackables/bridge/commit/fc836e4ff33f00a078246094b8b12b77ee844942)]: + - @stackables/bridge-core@1.6.0 + - @stackables/bridge-stdlib@1.5.3 + ## 2.4.0 ### Minor Changes diff --git a/packages/bridge-compiler/package.json b/packages/bridge-compiler/package.json index 271696a2..a05d8c0a 100644 --- a/packages/bridge-compiler/package.json +++ b/packages/bridge-compiler/package.json @@ -1,6 +1,6 @@ { "name": "@stackables/bridge-compiler", - "version": "2.4.0", + "version": "2.4.1", "description": "Compiles a BridgeDocument into highly optimized JavaScript code", "main": "./build/index.js", "type": "module", diff --git a/packages/bridge-core/CHANGELOG.md b/packages/bridge-core/CHANGELOG.md index a29e6149..af1a52e9 100644 --- a/packages/bridge-core/CHANGELOG.md +++ b/packages/bridge-core/CHANGELOG.md @@ -1,5 +1,63 @@ # @stackables/bridge-core +## 1.6.0 + +### Minor Changes + +- [#112](https://github.com/stackables/bridge/pull/112) [`375e2b0`](https://github.com/stackables/bridge/commit/375e2b08a16f670cded3aba7d6e2ee52254eab1c) Thanks [@aarne](https://github.com/aarne)! - Improve native batched tool authoring by documenting the feature, exporting dedicated batch tool types, and simplifying the batch contract to plain input arrays. + + Batch tools now receive `Input[]` and must return `Output[]` in matching order. Batched tool tracing and logging are also emitted once per flushed batch call instead of once per queued item. + + Native batching now works in compiled execution as well as the runtime interpreter. Batch tools can also signal partial failures by returning an `Error` at a specific result index, which rejects only that item and allows normal wire-level `catch` fallbacks to handle it. + +### Patch Changes + +- [#108](https://github.com/stackables/bridge/pull/108) [`de20ece`](https://github.com/stackables/bridge/commit/de20ece3ca9c42d0def90f512f90900962670339) Thanks [@aarne](https://github.com/aarne)! - Add memoized tool handles with compiler support. + + Bridge `with` declarations now support `memoize` for tool handles, including + loop-scoped tool handles inside array mappings. Memoized handles reuse the same + result for repeated calls with identical inputs, and each declared handle keeps + its own cache. + + The AOT compiler now compiles memoized tool handles too, including loop-scoped + tool handles inside array mappings. Compiled execution preserves request-scoped + caching semantics and reuses results for repeated calls with identical inputs. + +- [#111](https://github.com/stackables/bridge/pull/111) [`fc836e4`](https://github.com/stackables/bridge/commit/fc836e4ff33f00a078246094b8b12b77ee844942) Thanks [@aarne](https://github.com/aarne)! - Move Bridge source metadata onto BridgeDocument. + + Parsed documents now retain their original source text automatically, and can + optionally carry a filename from parse time. Runtime execution, compiler + fallbacks, GraphQL execution, and playground formatting now read that metadata + from the document instead of requiring callers to thread source and filename + through execute options. + +- [#111](https://github.com/stackables/bridge/pull/111) [`fc836e4`](https://github.com/stackables/bridge/commit/fc836e4ff33f00a078246094b8b12b77ee844942) Thanks [@aarne](https://github.com/aarne)! - Improve formatted runtime errors for missing tools and source underlines. + + `No tool found for "..."` and missing registered tool-function errors now carry + Bridge source locations when they originate from authored bridge wires, so + formatted errors include the filename, line, and highlighted source span. + Control-flow throw fallbacks now preserve their own source span, so + `?? throw "..."` highlights only the throw clause instead of the whole wire. + Caret underlines now render the full inclusive source span instead of stopping + one character short. + +- [#111](https://github.com/stackables/bridge/pull/111) [`fc836e4`](https://github.com/stackables/bridge/commit/fc836e4ff33f00a078246094b8b12b77ee844942) Thanks [@aarne](https://github.com/aarne)! - Fix segment-local `?.` traversal so later strict path segments still fail after a guarded null hop, and preserve source formatting for `panic` control-flow errors. + +- [#108](https://github.com/stackables/bridge/pull/108) [`de20ece`](https://github.com/stackables/bridge/commit/de20ece3ca9c42d0def90f512f90900962670339) Thanks [@aarne](https://github.com/aarne)! - Fix strict nested scope resolution for array mappings. + + Nested scopes can now read iterator aliases from visible parent scopes while + still resolving overlapping names to the nearest inner scope. This also keeps + invalid nested tool input wiring rejected during parsing. + +- [#111](https://github.com/stackables/bridge/pull/111) [`fc836e4`](https://github.com/stackables/bridge/commit/fc836e4ff33f00a078246094b8b12b77ee844942) Thanks [@aarne](https://github.com/aarne)! - Improve runtime error source mapping for ternary conditions and strict path traversal. + + Runtime and compiled execution now preserve clause-level source spans for ternary conditions and branches, so formatted errors can highlight only the failing condition or selected branch instead of the whole wire. + Strict path traversal also now fails consistently on primitive property access in both runtime and AOT execution, keeping error messages and behavior aligned. + +- Updated dependencies [[`375e2b0`](https://github.com/stackables/bridge/commit/375e2b08a16f670cded3aba7d6e2ee52254eab1c)]: + - @stackables/bridge-types@1.2.0 + - @stackables/bridge-stdlib@1.5.3 + ## 1.5.0 ### Minor Changes diff --git a/packages/bridge-core/package.json b/packages/bridge-core/package.json index 6f91f582..e55bee6e 100644 --- a/packages/bridge-core/package.json +++ b/packages/bridge-core/package.json @@ -1,6 +1,6 @@ { "name": "@stackables/bridge-core", - "version": "1.5.0", + "version": "1.6.0", "description": "Bridge runtime engine — execute pre-compiled bridge instructions", "main": "./build/index.js", "type": "module", diff --git a/packages/bridge-graphql/CHANGELOG.md b/packages/bridge-graphql/CHANGELOG.md index ba9c5da2..95cfa1c1 100644 --- a/packages/bridge-graphql/CHANGELOG.md +++ b/packages/bridge-graphql/CHANGELOG.md @@ -1,5 +1,21 @@ # @stackables/bridge-graphql +## 1.2.1 + +### Patch Changes + +- [#111](https://github.com/stackables/bridge/pull/111) [`fc836e4`](https://github.com/stackables/bridge/commit/fc836e4ff33f00a078246094b8b12b77ee844942) Thanks [@aarne](https://github.com/aarne)! - Move Bridge source metadata onto BridgeDocument. + + Parsed documents now retain their original source text automatically, and can + optionally carry a filename from parse time. Runtime execution, compiler + fallbacks, GraphQL execution, and playground formatting now read that metadata + from the document instead of requiring callers to thread source and filename + through execute options. + +- Updated dependencies [[`de20ece`](https://github.com/stackables/bridge/commit/de20ece3ca9c42d0def90f512f90900962670339), [`fc836e4`](https://github.com/stackables/bridge/commit/fc836e4ff33f00a078246094b8b12b77ee844942), [`375e2b0`](https://github.com/stackables/bridge/commit/375e2b08a16f670cded3aba7d6e2ee52254eab1c), [`fc836e4`](https://github.com/stackables/bridge/commit/fc836e4ff33f00a078246094b8b12b77ee844942), [`fc836e4`](https://github.com/stackables/bridge/commit/fc836e4ff33f00a078246094b8b12b77ee844942), [`de20ece`](https://github.com/stackables/bridge/commit/de20ece3ca9c42d0def90f512f90900962670339), [`fc836e4`](https://github.com/stackables/bridge/commit/fc836e4ff33f00a078246094b8b12b77ee844942)]: + - @stackables/bridge-core@1.6.0 + - @stackables/bridge-stdlib@1.5.3 + ## 1.2.0 ### Minor Changes diff --git a/packages/bridge-graphql/package.json b/packages/bridge-graphql/package.json index 39e48dcd..53ed97d3 100644 --- a/packages/bridge-graphql/package.json +++ b/packages/bridge-graphql/package.json @@ -1,6 +1,6 @@ { "name": "@stackables/bridge-graphql", - "version": "1.2.0", + "version": "1.2.1", "description": "Bridge GraphQL adapter — wire bridges into a GraphQL schema", "main": "./build/index.js", "type": "module", diff --git a/packages/bridge-parser/CHANGELOG.md b/packages/bridge-parser/CHANGELOG.md index a55dae3e..7ef0373b 100644 --- a/packages/bridge-parser/CHANGELOG.md +++ b/packages/bridge-parser/CHANGELOG.md @@ -1,5 +1,43 @@ # @stackables/bridge-parser +## 1.4.1 + +### Patch Changes + +- [#108](https://github.com/stackables/bridge/pull/108) [`de20ece`](https://github.com/stackables/bridge/commit/de20ece3ca9c42d0def90f512f90900962670339) Thanks [@aarne](https://github.com/aarne)! - Add memoized tool handles with compiler support. + + Bridge `with` declarations now support `memoize` for tool handles, including + loop-scoped tool handles inside array mappings. Memoized handles reuse the same + result for repeated calls with identical inputs, and each declared handle keeps + its own cache. + + The AOT compiler now compiles memoized tool handles too, including loop-scoped + tool handles inside array mappings. Compiled execution preserves request-scoped + caching semantics and reuses results for repeated calls with identical inputs. + +- [#111](https://github.com/stackables/bridge/pull/111) [`fc836e4`](https://github.com/stackables/bridge/commit/fc836e4ff33f00a078246094b8b12b77ee844942) Thanks [@aarne](https://github.com/aarne)! - Move Bridge source metadata onto BridgeDocument. + + Parsed documents now retain their original source text automatically, and can + optionally carry a filename from parse time. Runtime execution, compiler + fallbacks, GraphQL execution, and playground formatting now read that metadata + from the document instead of requiring callers to thread source and filename + through execute options. + +- [#108](https://github.com/stackables/bridge/pull/108) [`de20ece`](https://github.com/stackables/bridge/commit/de20ece3ca9c42d0def90f512f90900962670339) Thanks [@aarne](https://github.com/aarne)! - Fix strict nested scope resolution for array mappings. + + Nested scopes can now read iterator aliases from visible parent scopes while + still resolving overlapping names to the nearest inner scope. This also keeps + invalid nested tool input wiring rejected during parsing. + +- [#111](https://github.com/stackables/bridge/pull/111) [`fc836e4`](https://github.com/stackables/bridge/commit/fc836e4ff33f00a078246094b8b12b77ee844942) Thanks [@aarne](https://github.com/aarne)! - Improve runtime error source mapping for ternary conditions and strict path traversal. + + Runtime and compiled execution now preserve clause-level source spans for ternary conditions and branches, so formatted errors can highlight only the failing condition or selected branch instead of the whole wire. + Strict path traversal also now fails consistently on primitive property access in both runtime and AOT execution, keeping error messages and behavior aligned. + +- Updated dependencies [[`de20ece`](https://github.com/stackables/bridge/commit/de20ece3ca9c42d0def90f512f90900962670339), [`fc836e4`](https://github.com/stackables/bridge/commit/fc836e4ff33f00a078246094b8b12b77ee844942), [`375e2b0`](https://github.com/stackables/bridge/commit/375e2b08a16f670cded3aba7d6e2ee52254eab1c), [`fc836e4`](https://github.com/stackables/bridge/commit/fc836e4ff33f00a078246094b8b12b77ee844942), [`fc836e4`](https://github.com/stackables/bridge/commit/fc836e4ff33f00a078246094b8b12b77ee844942), [`de20ece`](https://github.com/stackables/bridge/commit/de20ece3ca9c42d0def90f512f90900962670339), [`fc836e4`](https://github.com/stackables/bridge/commit/fc836e4ff33f00a078246094b8b12b77ee844942)]: + - @stackables/bridge-core@1.6.0 + - @stackables/bridge-stdlib@1.5.3 + ## 1.4.0 ### Minor Changes diff --git a/packages/bridge-parser/package.json b/packages/bridge-parser/package.json index 43ad6696..348651b0 100644 --- a/packages/bridge-parser/package.json +++ b/packages/bridge-parser/package.json @@ -1,6 +1,6 @@ { "name": "@stackables/bridge-parser", - "version": "1.4.0", + "version": "1.4.1", "description": "Bridge DSL parser — turns .bridge text into a BridgeDocument (AST)", "main": "./build/index.js", "type": "module", diff --git a/packages/bridge-stdlib/CHANGELOG.md b/packages/bridge-stdlib/CHANGELOG.md index 163ec2dd..b81a0853 100644 --- a/packages/bridge-stdlib/CHANGELOG.md +++ b/packages/bridge-stdlib/CHANGELOG.md @@ -1,5 +1,12 @@ # @stackables/bridge-stdlib +## 1.5.3 + +### Patch Changes + +- Updated dependencies [[`375e2b0`](https://github.com/stackables/bridge/commit/375e2b08a16f670cded3aba7d6e2ee52254eab1c)]: + - @stackables/bridge-types@1.2.0 + ## 1.5.2 ### Patch Changes diff --git a/packages/bridge-stdlib/package.json b/packages/bridge-stdlib/package.json index b4f6e622..6fc5d925 100644 --- a/packages/bridge-stdlib/package.json +++ b/packages/bridge-stdlib/package.json @@ -1,6 +1,6 @@ { "name": "@stackables/bridge-stdlib", - "version": "1.5.2", + "version": "1.5.3", "description": "Bridge standard library — httpCall, string, array, and audit tools", "main": "./build/index.js", "type": "module", diff --git a/packages/bridge-types/CHANGELOG.md b/packages/bridge-types/CHANGELOG.md index 2eda248c..050cdbca 100644 --- a/packages/bridge-types/CHANGELOG.md +++ b/packages/bridge-types/CHANGELOG.md @@ -1,5 +1,15 @@ # @stackables/bridge-types +## 1.2.0 + +### Minor Changes + +- [#112](https://github.com/stackables/bridge/pull/112) [`375e2b0`](https://github.com/stackables/bridge/commit/375e2b08a16f670cded3aba7d6e2ee52254eab1c) Thanks [@aarne](https://github.com/aarne)! - Improve native batched tool authoring by documenting the feature, exporting dedicated batch tool types, and simplifying the batch contract to plain input arrays. + + Batch tools now receive `Input[]` and must return `Output[]` in matching order. Batched tool tracing and logging are also emitted once per flushed batch call instead of once per queued item. + + Native batching now works in compiled execution as well as the runtime interpreter. Batch tools can also signal partial failures by returning an `Error` at a specific result index, which rejects only that item and allows normal wire-level `catch` fallbacks to handle it. + ## 1.1.0 ### Minor Changes diff --git a/packages/bridge-types/package.json b/packages/bridge-types/package.json index 3a4e1cbd..229c21e9 100644 --- a/packages/bridge-types/package.json +++ b/packages/bridge-types/package.json @@ -1,6 +1,6 @@ { "name": "@stackables/bridge-types", - "version": "1.1.0", + "version": "1.2.0", "description": "Shared type definitions for the Bridge ecosystem", "main": "./build/index.js", "type": "module", diff --git a/packages/bridge/CHANGELOG.md b/packages/bridge/CHANGELOG.md index 5fca6c28..fb5ba577 100644 --- a/packages/bridge/CHANGELOG.md +++ b/packages/bridge/CHANGELOG.md @@ -1,5 +1,65 @@ # @stackables/bridge +## 2.3.0 + +### Minor Changes + +- [#112](https://github.com/stackables/bridge/pull/112) [`375e2b0`](https://github.com/stackables/bridge/commit/375e2b08a16f670cded3aba7d6e2ee52254eab1c) Thanks [@aarne](https://github.com/aarne)! - Improve native batched tool authoring by documenting the feature, exporting dedicated batch tool types, and simplifying the batch contract to plain input arrays. + + Batch tools now receive `Input[]` and must return `Output[]` in matching order. Batched tool tracing and logging are also emitted once per flushed batch call instead of once per queued item. + + Native batching now works in compiled execution as well as the runtime interpreter. Batch tools can also signal partial failures by returning an `Error` at a specific result index, which rejects only that item and allows normal wire-level `catch` fallbacks to handle it. + +### Patch Changes + +- [#108](https://github.com/stackables/bridge/pull/108) [`de20ece`](https://github.com/stackables/bridge/commit/de20ece3ca9c42d0def90f512f90900962670339) Thanks [@aarne](https://github.com/aarne)! - Add memoized tool handles with compiler support. + + Bridge `with` declarations now support `memoize` for tool handles, including + loop-scoped tool handles inside array mappings. Memoized handles reuse the same + result for repeated calls with identical inputs, and each declared handle keeps + its own cache. + + The AOT compiler now compiles memoized tool handles too, including loop-scoped + tool handles inside array mappings. Compiled execution preserves request-scoped + caching semantics and reuses results for repeated calls with identical inputs. + +- [#111](https://github.com/stackables/bridge/pull/111) [`fc836e4`](https://github.com/stackables/bridge/commit/fc836e4ff33f00a078246094b8b12b77ee844942) Thanks [@aarne](https://github.com/aarne)! - Move Bridge source metadata onto BridgeDocument. + + Parsed documents now retain their original source text automatically, and can + optionally carry a filename from parse time. Runtime execution, compiler + fallbacks, GraphQL execution, and playground formatting now read that metadata + from the document instead of requiring callers to thread source and filename + through execute options. + +- [#111](https://github.com/stackables/bridge/pull/111) [`fc836e4`](https://github.com/stackables/bridge/commit/fc836e4ff33f00a078246094b8b12b77ee844942) Thanks [@aarne](https://github.com/aarne)! - Improve formatted runtime errors for missing tools and source underlines. + + `No tool found for "..."` and missing registered tool-function errors now carry + Bridge source locations when they originate from authored bridge wires, so + formatted errors include the filename, line, and highlighted source span. + Control-flow throw fallbacks now preserve their own source span, so + `?? throw "..."` highlights only the throw clause instead of the whole wire. + Caret underlines now render the full inclusive source span instead of stopping + one character short. + +- [#111](https://github.com/stackables/bridge/pull/111) [`fc836e4`](https://github.com/stackables/bridge/commit/fc836e4ff33f00a078246094b8b12b77ee844942) Thanks [@aarne](https://github.com/aarne)! - Fix segment-local `?.` traversal so later strict path segments still fail after a guarded null hop, and preserve source formatting for `panic` control-flow errors. + +- [#108](https://github.com/stackables/bridge/pull/108) [`de20ece`](https://github.com/stackables/bridge/commit/de20ece3ca9c42d0def90f512f90900962670339) Thanks [@aarne](https://github.com/aarne)! - Fix strict nested scope resolution for array mappings. + + Nested scopes can now read iterator aliases from visible parent scopes while + still resolving overlapping names to the nearest inner scope. This also keeps + invalid nested tool input wiring rejected during parsing. + +- [#111](https://github.com/stackables/bridge/pull/111) [`fc836e4`](https://github.com/stackables/bridge/commit/fc836e4ff33f00a078246094b8b12b77ee844942) Thanks [@aarne](https://github.com/aarne)! - Improve runtime error source mapping for ternary conditions and strict path traversal. + + Runtime and compiled execution now preserve clause-level source spans for ternary conditions and branches, so formatted errors can highlight only the failing condition or selected branch instead of the whole wire. + Strict path traversal also now fails consistently on primitive property access in both runtime and AOT execution, keeping error messages and behavior aligned. + +- Updated dependencies [[`de20ece`](https://github.com/stackables/bridge/commit/de20ece3ca9c42d0def90f512f90900962670339), [`fc836e4`](https://github.com/stackables/bridge/commit/fc836e4ff33f00a078246094b8b12b77ee844942), [`375e2b0`](https://github.com/stackables/bridge/commit/375e2b08a16f670cded3aba7d6e2ee52254eab1c), [`fc836e4`](https://github.com/stackables/bridge/commit/fc836e4ff33f00a078246094b8b12b77ee844942), [`fc836e4`](https://github.com/stackables/bridge/commit/fc836e4ff33f00a078246094b8b12b77ee844942), [`de20ece`](https://github.com/stackables/bridge/commit/de20ece3ca9c42d0def90f512f90900962670339), [`fc836e4`](https://github.com/stackables/bridge/commit/fc836e4ff33f00a078246094b8b12b77ee844942)]: + - @stackables/bridge-core@1.6.0 + - @stackables/bridge-parser@1.4.1 + - @stackables/bridge-graphql@1.2.1 + - @stackables/bridge-stdlib@1.5.3 + ## 2.2.1 ### Patch Changes diff --git a/packages/bridge/package.json b/packages/bridge/package.json index eeb5face..2f98ac20 100644 --- a/packages/bridge/package.json +++ b/packages/bridge/package.json @@ -1,6 +1,6 @@ { "name": "@stackables/bridge", - "version": "2.2.1", + "version": "2.3.0", "description": "Declarative dataflow for GraphQL", "main": "./build/index.js", "type": "module",