|
1 | 1 | # @stackables/bridge-compiler |
2 | 2 |
|
| 3 | +## 2.4.1 |
| 4 | + |
| 5 | +### Patch Changes |
| 6 | + |
| 7 | +- [#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. |
| 8 | + |
| 9 | + Bridge `with` declarations now support `memoize` for tool handles, including |
| 10 | + loop-scoped tool handles inside array mappings. Memoized handles reuse the same |
| 11 | + result for repeated calls with identical inputs, and each declared handle keeps |
| 12 | + its own cache. |
| 13 | + |
| 14 | + The AOT compiler now compiles memoized tool handles too, including loop-scoped |
| 15 | + tool handles inside array mappings. Compiled execution preserves request-scoped |
| 16 | + caching semantics and reuses results for repeated calls with identical inputs. |
| 17 | + |
| 18 | +- [#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. |
| 19 | + |
| 20 | + Bridges can now redeclare the same tool alias in nested array scopes without |
| 21 | + triggering `BridgeCompilerIncompatibleError` or falling back to the interpreter. |
| 22 | + The compiler now assigns distinct tool instances to repeated handle bindings so |
| 23 | + each nested scope emits and reads from the correct tool call. |
| 24 | + |
| 25 | +- [#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. |
| 26 | + |
| 27 | + Parsed documents now retain their original source text automatically, and can |
| 28 | + optionally carry a filename from parse time. Runtime execution, compiler |
| 29 | + fallbacks, GraphQL execution, and playground formatting now read that metadata |
| 30 | + from the document instead of requiring callers to thread source and filename |
| 31 | + through execute options. |
| 32 | + |
| 33 | +- [#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. |
| 34 | + |
| 35 | +- [#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. |
| 36 | + |
| 37 | + Nested scopes can now read iterator aliases from visible parent scopes while |
| 38 | + still resolving overlapping names to the nearest inner scope. This also keeps |
| 39 | + invalid nested tool input wiring rejected during parsing. |
| 40 | + |
| 41 | +- [#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. |
| 42 | + |
| 43 | + 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. |
| 44 | + Strict path traversal also now fails consistently on primitive property access in both runtime and AOT execution, keeping error messages and behavior aligned. |
| 45 | + |
| 46 | +- 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)]: |
| 47 | + - @stackables/bridge-core@1.6.0 |
| 48 | + - @stackables/bridge-stdlib@1.5.3 |
| 49 | + |
3 | 50 | ## 2.4.0 |
4 | 51 |
|
5 | 52 | ### Minor Changes |
|
0 commit comments