Commit Graph

4 Commits

Author SHA1 Message Date
Sebastian Poxhofer ee2b77542c feat(package-rules): add detectPlatform helper function (#41798)
feat(package-rules): add detectPlatform function
2026-03-11 10:38:51 +00:00
Sergei Zharinov 930cf6633c refactor: Rewrite imports with .ts extensions (#40700)
fix: Additional vi.mock path corrections and prettier formatting
2026-01-26 22:48:17 +00:00
Marks Polakovs 8efdad4a66 fix(jsonata): ensure all evaluations use a new environment (#40312)
* fix(jsonata): ensure all evaluations use a new environment

When evaluating a JSONata expression concurrently, specifically when reusing
an expression instance (as we do since we cache them), it's possible that
a second concurrent evaluate() call clobbers the `$` binding before the
first one has finished, which will make it use incorrect values.

Passing in a non-undefined bindings value causes JSONata to instead
create a new environment for each evaluate() call, preventing these conflicts.

Fixes #40311.

* fix(jsonata): concurrency issues by wrapping jsonata.Expression

* fix(jsonata): tweak return type and revert no-longer-necessary change

---------

Co-authored-by: secustor <sebastian@poxhofer.at>
2026-01-07 20:50:08 +00:00
Rhys Arkins da4ee8b874 feat(jsonata): validation, caching, better logging (#31832) 2024-10-08 09:11:15 +00:00