jsonatapy 2.2.14__tar.gz → 2.2.16__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (135) hide show
  1. {jsonatapy-2.2.14 → jsonatapy-2.2.16}/CHANGELOG.md +209 -0
  2. {jsonatapy-2.2.14 → jsonatapy-2.2.16}/Cargo.lock +25 -139
  3. {jsonatapy-2.2.14 → jsonatapy-2.2.16}/Cargo.toml +18 -2
  4. {jsonatapy-2.2.14 → jsonatapy-2.2.16}/PKG-INFO +4 -4
  5. {jsonatapy-2.2.14 → jsonatapy-2.2.16}/README.md +3 -3
  6. {jsonatapy-2.2.14 → jsonatapy-2.2.16}/pyproject.toml +5 -1
  7. {jsonatapy-2.2.14 → jsonatapy-2.2.16}/src/allocator.rs +7 -0
  8. {jsonatapy-2.2.14 → jsonatapy-2.2.16}/src/ast.rs +44 -1
  9. {jsonatapy-2.2.14 → jsonatapy-2.2.16}/src/ast_transform.rs +984 -680
  10. {jsonatapy-2.2.14 → jsonatapy-2.2.16}/src/builtins.rs +192 -21
  11. {jsonatapy-2.2.14 → jsonatapy-2.2.16}/src/compiler.rs +1 -1
  12. {jsonatapy-2.2.14 → jsonatapy-2.2.16}/src/datetime.rs +600 -151
  13. {jsonatapy-2.2.14 → jsonatapy-2.2.16}/src/evaluator.rs +1007 -273
  14. {jsonatapy-2.2.14 → jsonatapy-2.2.16}/src/functions.rs +37 -17
  15. {jsonatapy-2.2.14 → jsonatapy-2.2.16}/src/parser.rs +138 -997
  16. {jsonatapy-2.2.14 → jsonatapy-2.2.16}/src/signature.rs +71 -4
  17. {jsonatapy-2.2.14 → jsonatapy-2.2.16}/tests/evaluator_reuse_test.rs +1 -1
  18. {jsonatapy-2.2.14 → jsonatapy-2.2.16}/tests/fixtures/path_semantics_combinations.json +393 -1
  19. jsonatapy-2.2.16/tests/fixtures/path_semantics_combinations_known.json +4 -0
  20. {jsonatapy-2.2.14 → jsonatapy-2.2.16}/tests/integration_test.rs +1036 -12
  21. {jsonatapy-2.2.14 → jsonatapy-2.2.16}/tests/path_semantics_test.rs +0 -5
  22. jsonatapy-2.2.16/vendor/libmimalloc-sys/Cargo.toml +79 -0
  23. jsonatapy-2.2.16/vendor/libmimalloc-sys/LICENSE.txt +25 -0
  24. jsonatapy-2.2.16/vendor/libmimalloc-sys/VENDORED.md +28 -0
  25. jsonatapy-2.2.16/vendor/libmimalloc-sys/build.rs +140 -0
  26. jsonatapy-2.2.16/vendor/libmimalloc-sys/c_src/mimalloc/v3/LICENSE +21 -0
  27. jsonatapy-2.2.16/vendor/libmimalloc-sys/c_src/mimalloc/v3/include/mimalloc/atomic.h +560 -0
  28. jsonatapy-2.2.16/vendor/libmimalloc-sys/c_src/mimalloc/v3/include/mimalloc/bits.h +354 -0
  29. jsonatapy-2.2.16/vendor/libmimalloc-sys/c_src/mimalloc/v3/include/mimalloc/internal.h +1387 -0
  30. jsonatapy-2.2.16/vendor/libmimalloc-sys/c_src/mimalloc/v3/include/mimalloc/prim-tls.h +483 -0
  31. jsonatapy-2.2.16/vendor/libmimalloc-sys/c_src/mimalloc/v3/include/mimalloc/prim.h +136 -0
  32. jsonatapy-2.2.16/vendor/libmimalloc-sys/c_src/mimalloc/v3/include/mimalloc/track.h +150 -0
  33. jsonatapy-2.2.16/vendor/libmimalloc-sys/c_src/mimalloc/v3/include/mimalloc/types.h +755 -0
  34. jsonatapy-2.2.16/vendor/libmimalloc-sys/c_src/mimalloc/v3/include/mimalloc-new-delete.h +66 -0
  35. jsonatapy-2.2.16/vendor/libmimalloc-sys/c_src/mimalloc/v3/include/mimalloc-override.h +68 -0
  36. jsonatapy-2.2.16/vendor/libmimalloc-sys/c_src/mimalloc/v3/include/mimalloc-stats.h +168 -0
  37. jsonatapy-2.2.16/vendor/libmimalloc-sys/c_src/mimalloc/v3/include/mimalloc.h +705 -0
  38. jsonatapy-2.2.16/vendor/libmimalloc-sys/c_src/mimalloc/v3/src/alloc-aligned.c +462 -0
  39. jsonatapy-2.2.16/vendor/libmimalloc-sys/c_src/mimalloc/v3/src/alloc-override.c +407 -0
  40. jsonatapy-2.2.16/vendor/libmimalloc-sys/c_src/mimalloc/v3/src/alloc-posix.c +190 -0
  41. jsonatapy-2.2.16/vendor/libmimalloc-sys/c_src/mimalloc/v3/src/alloc.c +970 -0
  42. jsonatapy-2.2.16/vendor/libmimalloc-sys/c_src/mimalloc/v3/src/arena-meta.c +183 -0
  43. jsonatapy-2.2.16/vendor/libmimalloc-sys/c_src/mimalloc/v3/src/arena.c +2616 -0
  44. jsonatapy-2.2.16/vendor/libmimalloc-sys/c_src/mimalloc/v3/src/bitmap.c +1971 -0
  45. jsonatapy-2.2.16/vendor/libmimalloc-sys/c_src/mimalloc/v3/src/bitmap.h +344 -0
  46. jsonatapy-2.2.16/vendor/libmimalloc-sys/c_src/mimalloc/v3/src/free.c +710 -0
  47. jsonatapy-2.2.16/vendor/libmimalloc-sys/c_src/mimalloc/v3/src/heap.c +296 -0
  48. jsonatapy-2.2.16/vendor/libmimalloc-sys/c_src/mimalloc/v3/src/init.c +1258 -0
  49. jsonatapy-2.2.16/vendor/libmimalloc-sys/c_src/mimalloc/v3/src/libc.c +499 -0
  50. jsonatapy-2.2.16/vendor/libmimalloc-sys/c_src/mimalloc/v3/src/options.c +696 -0
  51. jsonatapy-2.2.16/vendor/libmimalloc-sys/c_src/mimalloc/v3/src/os.c +931 -0
  52. jsonatapy-2.2.16/vendor/libmimalloc-sys/c_src/mimalloc/v3/src/page-map.c +478 -0
  53. jsonatapy-2.2.16/vendor/libmimalloc-sys/c_src/mimalloc/v3/src/page-queue.c +423 -0
  54. jsonatapy-2.2.16/vendor/libmimalloc-sys/c_src/mimalloc/v3/src/page.c +1045 -0
  55. jsonatapy-2.2.16/vendor/libmimalloc-sys/c_src/mimalloc/v3/src/prim/emscripten/prim.c +263 -0
  56. jsonatapy-2.2.16/vendor/libmimalloc-sys/c_src/mimalloc/v3/src/prim/osx/alloc-override-zone.c +497 -0
  57. jsonatapy-2.2.16/vendor/libmimalloc-sys/c_src/mimalloc/v3/src/prim/osx/prim.c +9 -0
  58. jsonatapy-2.2.16/vendor/libmimalloc-sys/c_src/mimalloc/v3/src/prim/prim.c +76 -0
  59. jsonatapy-2.2.16/vendor/libmimalloc-sys/c_src/mimalloc/v3/src/prim/readme.md +9 -0
  60. jsonatapy-2.2.16/vendor/libmimalloc-sys/c_src/mimalloc/v3/src/prim/unix/prim.c +1067 -0
  61. jsonatapy-2.2.16/vendor/libmimalloc-sys/c_src/mimalloc/v3/src/prim/wasi/prim.c +297 -0
  62. jsonatapy-2.2.16/vendor/libmimalloc-sys/c_src/mimalloc/v3/src/prim/windows/etw-mimalloc.wprp +61 -0
  63. jsonatapy-2.2.16/vendor/libmimalloc-sys/c_src/mimalloc/v3/src/prim/windows/etw.h +905 -0
  64. jsonatapy-2.2.16/vendor/libmimalloc-sys/c_src/mimalloc/v3/src/prim/windows/etw.man +0 -0
  65. jsonatapy-2.2.16/vendor/libmimalloc-sys/c_src/mimalloc/v3/src/prim/windows/prim.c +1202 -0
  66. jsonatapy-2.2.16/vendor/libmimalloc-sys/c_src/mimalloc/v3/src/prim/windows/readme.md +17 -0
  67. jsonatapy-2.2.16/vendor/libmimalloc-sys/c_src/mimalloc/v3/src/random.c +260 -0
  68. jsonatapy-2.2.16/vendor/libmimalloc-sys/c_src/mimalloc/v3/src/static.c +43 -0
  69. jsonatapy-2.2.16/vendor/libmimalloc-sys/c_src/mimalloc/v3/src/stats.c +830 -0
  70. jsonatapy-2.2.16/vendor/libmimalloc-sys/c_src/mimalloc/v3/src/theap.c +676 -0
  71. jsonatapy-2.2.16/vendor/libmimalloc-sys/c_src/mimalloc/v3/src/threadlocal.c +308 -0
  72. jsonatapy-2.2.16/vendor/libmimalloc-sys/src/extended.rs +1126 -0
  73. jsonatapy-2.2.16/vendor/libmimalloc-sys/src/lib.rs +139 -0
  74. jsonatapy-2.2.14/tests/fixtures/path_semantics_combinations_known.json +0 -4
  75. {jsonatapy-2.2.14 → jsonatapy-2.2.16}/.gitignore +0 -0
  76. {jsonatapy-2.2.14 → jsonatapy-2.2.16}/.gitmodules +0 -0
  77. {jsonatapy-2.2.14 → jsonatapy-2.2.16}/.serena/.gitignore +0 -0
  78. {jsonatapy-2.2.14 → jsonatapy-2.2.16}/.serena/memories/architecture.md +0 -0
  79. {jsonatapy-2.2.14 → jsonatapy-2.2.16}/.serena/memories/conventions.md +0 -0
  80. {jsonatapy-2.2.14 → jsonatapy-2.2.16}/.serena/memories/core.md +0 -0
  81. {jsonatapy-2.2.14 → jsonatapy-2.2.16}/.serena/memories/memory_maintenance.md +0 -0
  82. {jsonatapy-2.2.14 → jsonatapy-2.2.16}/.serena/memories/suggested_commands.md +0 -0
  83. {jsonatapy-2.2.14 → jsonatapy-2.2.16}/.serena/memories/task_completion.md +0 -0
  84. {jsonatapy-2.2.14 → jsonatapy-2.2.16}/.serena/memories/tech_stack.md +0 -0
  85. {jsonatapy-2.2.14 → jsonatapy-2.2.16}/CONTRIBUTORS.md +0 -0
  86. {jsonatapy-2.2.14 → jsonatapy-2.2.16}/LICENSE +0 -0
  87. {jsonatapy-2.2.14 → jsonatapy-2.2.16}/SECURITY.md +0 -0
  88. {jsonatapy-2.2.14 → jsonatapy-2.2.16}/benches/evaluator_bench.rs +0 -0
  89. {jsonatapy-2.2.14 → jsonatapy-2.2.16}/bindings/c/README.md +0 -0
  90. {jsonatapy-2.2.14 → jsonatapy-2.2.16}/bindings/c/examples/smoke.c +0 -0
  91. {jsonatapy-2.2.14 → jsonatapy-2.2.16}/bindings/c/jsonata.h +0 -0
  92. {jsonatapy-2.2.14 → jsonatapy-2.2.16}/examples/evaluator_demo.rs +0 -0
  93. {jsonatapy-2.2.14 → jsonatapy-2.2.16}/examples/host_functions.rs +0 -0
  94. {jsonatapy-2.2.14 → jsonatapy-2.2.16}/examples/parser_demo.rs +0 -0
  95. {jsonatapy-2.2.14 → jsonatapy-2.2.16}/examples/simd_json_bench.rs +0 -0
  96. {jsonatapy-2.2.14 → jsonatapy-2.2.16}/python/jsonatapy/__init__.py +0 -0
  97. {jsonatapy-2.2.14 → jsonatapy-2.2.16}/python/jsonatapy/__main__.py +0 -0
  98. {jsonatapy-2.2.14 → jsonatapy-2.2.16}/python/jsonatapy/_cli/__init__.py +0 -0
  99. {jsonatapy-2.2.14 → jsonatapy-2.2.16}/python/jsonatapy/_cli/bindings.py +0 -0
  100. {jsonatapy-2.2.14 → jsonatapy-2.2.16}/python/jsonatapy/_cli/error_format.py +0 -0
  101. {jsonatapy-2.2.14 → jsonatapy-2.2.16}/python/jsonatapy/_cli/mcp_server.py +0 -0
  102. {jsonatapy-2.2.14 → jsonatapy-2.2.16}/python/jsonatapy/_cli/resolve.py +0 -0
  103. {jsonatapy-2.2.14 → jsonatapy-2.2.16}/python/jsonatapy/_cli/run.py +0 -0
  104. {jsonatapy-2.2.14 → jsonatapy-2.2.16}/python/jsonatapy/py.typed +0 -0
  105. {jsonatapy-2.2.14 → jsonatapy-2.2.16}/src/bin/jsonata/bindings.rs +0 -0
  106. {jsonatapy-2.2.14 → jsonatapy-2.2.16}/src/bin/jsonata/error_format.rs +0 -0
  107. {jsonatapy-2.2.14 → jsonatapy-2.2.16}/src/bin/jsonata/main.rs +0 -0
  108. {jsonatapy-2.2.14 → jsonatapy-2.2.16}/src/bin/jsonata/resolve.rs +0 -0
  109. {jsonatapy-2.2.14 → jsonatapy-2.2.16}/src/capi.rs +0 -0
  110. {jsonatapy-2.2.14 → jsonatapy-2.2.16}/src/expression.rs +0 -0
  111. {jsonatapy-2.2.14 → jsonatapy-2.2.16}/src/lazy.rs +0 -0
  112. {jsonatapy-2.2.14 → jsonatapy-2.2.16}/src/lib.rs +0 -0
  113. {jsonatapy-2.2.14 → jsonatapy-2.2.16}/src/pystack.rs +0 -0
  114. {jsonatapy-2.2.14 → jsonatapy-2.2.16}/src/value.rs +0 -0
  115. {jsonatapy-2.2.14 → jsonatapy-2.2.16}/src/vm.rs +0 -0
  116. {jsonatapy-2.2.14 → jsonatapy-2.2.16}/study/cli_fixtures.json +0 -0
  117. {jsonatapy-2.2.14 → jsonatapy-2.2.16}/study/cli_fixtures_testdata.json +0 -0
  118. {jsonatapy-2.2.14 → jsonatapy-2.2.16}/study/cli_spec.md +0 -0
  119. {jsonatapy-2.2.14 → jsonatapy-2.2.16}/tests/array_flags_test.rs +0 -0
  120. {jsonatapy-2.2.14 → jsonatapy-2.2.16}/tests/cli_fixtures_test.rs +0 -0
  121. {jsonatapy-2.2.14 → jsonatapy-2.2.16}/tests/cli_test.rs +0 -0
  122. {jsonatapy-2.2.14 → jsonatapy-2.2.16}/tests/common/mod.rs +0 -0
  123. {jsonatapy-2.2.14 → jsonatapy-2.2.16}/tests/datetime_picture_suite.rs +0 -0
  124. {jsonatapy-2.2.14 → jsonatapy-2.2.16}/tests/deep_value_drop_test.rs +0 -0
  125. {jsonatapy-2.2.14 → jsonatapy-2.2.16}/tests/fixtures/array_flags_differential.json +0 -0
  126. {jsonatapy-2.2.14 → jsonatapy-2.2.16}/tests/fixtures/builtin_arity.json +0 -0
  127. {jsonatapy-2.2.14 → jsonatapy-2.2.16}/tests/fixtures/builtin_differential.json +0 -0
  128. {jsonatapy-2.2.14 → jsonatapy-2.2.16}/tests/fixtures/builtin_signatures.json +0 -0
  129. {jsonatapy-2.2.14 → jsonatapy-2.2.16}/tests/fixtures/fastpath_differential.json +0 -0
  130. {jsonatapy-2.2.14 → jsonatapy-2.2.16}/tests/fixtures/fastpath_known_divergences.json +0 -0
  131. {jsonatapy-2.2.14 → jsonatapy-2.2.16}/tests/fixtures/path_semantics_differential.json +0 -0
  132. {jsonatapy-2.2.14 → jsonatapy-2.2.16}/tests/host_functions_test.rs +0 -0
  133. {jsonatapy-2.2.14 → jsonatapy-2.2.16}/tests/lambda_closure_suite.rs +0 -0
  134. {jsonatapy-2.2.14 → jsonatapy-2.2.16}/tests/parent_and_focus_binding_suite.rs +0 -0
  135. {jsonatapy-2.2.14 → jsonatapy-2.2.16}/tests/step_cache_test.rs +0 -0
@@ -19,6 +19,215 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
19
19
 
20
20
  ### Security
21
21
 
22
+ ## [2.2.16] - 2026-11-27
23
+
24
+ ### Added
25
+
26
+ ### Changed
27
+
28
+ - Updated Rust dependencies: `regex` 1.13.1 → 1.13.2, `regex-syntax` 0.8.11 → 0.8.12,
29
+ `rand` 0.10.3 → 0.10.4 and `clap` 4.6.7 → 4.6.9. (#297)
30
+
31
+ ### Deprecated
32
+
33
+ ### Removed
34
+
35
+ ### Fixed
36
+
37
+ - Python wheels now build mimalloc v3.4.5 (vendored `libmimalloc-sys` with
38
+ updated sources) instead of v3.3.2, fixing two allocator crashes (#298). On
39
+ macOS, v3.3.2 kept its thread heap in fixed thread-specific-data slots that
40
+ every mimalloc v3 copy in the process shares, so importing jsonatapy before
41
+ pyarrow 24.0.0 (or chdb) made the first `compile()` segfault or hang. On
42
+ every platform, a crash followed once the first thread that used jsonatapy
43
+ had exited (microsoft/mimalloc#1287). Only the PyPI wheels and sdist get the
44
+ vendored copy: Rust users who enable the optional `mimalloc` feature from
45
+ crates.io still build v3.3.2 until `libmimalloc-sys` ships mimalloc >= 3.4.5.
46
+ Thanks to @dotsonwells-vynca for the report, whose clean reproduction and
47
+ import-order and version matrix made the cause quick to find.
48
+
49
+ ### Security
50
+
51
+ ## [2.2.15] - 2026-11-18
52
+
53
+ ### Added
54
+
55
+ ### Changed
56
+
57
+ - **Breaking for Rust users of the AST:** `parser::Parser::parse` now returns the finished
58
+ tree, with ancestry resolved, as `parser::parse` does, and `ast_transform::resolve_ancestry`
59
+ is no longer public. `BinaryOp` has the raw path operators `Map`, `Filter` and `KeepArray`,
60
+ and `AstTransformError` has `Syntax`, so an exhaustive match on either needs the new arms.
61
+ `PathStep` has a `runs_on_nothing` cache field (`StepCache::default()` in a struct literal).
62
+ This doesn't call for a major version: the AST is an internal representation, not a
63
+ supported API. `parse()`, `Expression::compile`, the C API and the Python package are
64
+ unchanged, so the release stays on 2.x.
65
+ - **Less per-call work from the #254 and #260 fixes**
66
+ ([#288](https://github.com/txjmb/jsonata-core/issues/288)). The closure that wraps a function
67
+ argument no longer copies the function's parameter names, and whether a step's filters run on
68
+ nothing is worked out the first time the step runs and kept on the step.
69
+
70
+ ### Deprecated
71
+
72
+ ### Removed
73
+
74
+ - **The `chrono` dependency.** RUSTSEC-2026-0543 marks it unmaintained, with no fixed
75
+ release. The date arithmetic `$fromMillis`, `$toMillis` and `$now` need (UTC calendar
76
+ dates, weekdays, ISO week numbers) is now a small calendar type in `src/datetime.rs`,
77
+ computing on the proleptic Gregorian calendar as JavaScript's `Date` does. Output is
78
+ unchanged except at the edge below.
79
+
80
+ ### Fixed
81
+
82
+ - **`$now()` and `$millis()` report one timestamp per evaluation, as in jsonata-js**
83
+ ([#294](https://github.com/txjmb/jsonata-core/issues/294)). The clock was read on every
84
+ call, so two calls in one expression could disagree.
85
+ - **`$fromMillis` takes the whole range of a JavaScript date**, ±8.64e15 milliseconds
86
+ (years -271821 to 275760). It stopped at chrono's ±262143 years.
87
+ It also takes a fraction of a millisecond, dropping it as JavaScript's `Date` does, where it
88
+ raised "requires an integer".
89
+ - **`$toMillis` returns what jsonata-js does across its edge cases**
90
+ ([#295](https://github.com/txjmb/jsonata-core/issues/295)). With a picture, the timestamp is
91
+ built as `Date.UTC` builds it: a field past its range carries into the next (`"2018-02-30"`
92
+ with `"[Y]-[M]-[D]"` is 2 March, hour 24 is the next midnight, month 13 is January of the
93
+ next year), a two-digit year is in the 1900s, a day of the year past the year's end keeps
94
+ the parsed year, and a component of 0 counts as not given when choosing the date and time
95
+ types, as jsonata-js's truthiness test does (so `"0:33 am"` with `"[h]:[m] [P]"` is D3136).
96
+ Components the picture leaves out come from the evaluation's timestamp, and the timezone
97
+ offset is applied in floating point. Without a picture, the timestamp is read as
98
+ `Date.parse` reads it: a day up to 31 carries over, `T24:00:00` is the next midnight, and
99
+ the pattern that decides D3110 is jsonata-js's own. A date past JavaScript's range, a month
100
+ or day of 0, a month over 12 or a day over 31 is NaN, as in jsonata-js (`nan` in Python);
101
+ these were D3136 or D3110. A fraction or a numeric offset with no time is NaN, as
102
+ V8's `Date.parse` gives, except that V8's fallback parser reads `"2018.5"` as 1 May and
103
+ `"2018-01.5"` as 5 January, which are NaN here. A date-time with no offset is still read as
104
+ UTC, where `Date.parse` uses the host's time zone.
105
+ - **Arithmetic checks each operand in jsonata-js's order.** A NaN operand is T2001/T2002
106
+ (`(0/0) + 1` returned undefined), and the left side is checked before the right, so
107
+ `"a" + (1/0)` is T2001 rather than D1001.
108
+ - **`$type` and `$number` on NaN and Infinity match jsonata-js.** `$type` of NaN (such as an
109
+ invalid `$toMillis` date) is `"object"`, and of Infinity is D1001. `$number` returns any
110
+ number as it is, so `$number(1/0)` is Infinity rather than D3030.
111
+ - **Week numbers and day of the year for years 0 to 99 match jsonata-js**, which reads those
112
+ years as 1900 to 1999 when it works them out (`Date.UTC`).
113
+ - **`$encodeUrl` and `$encodeUrlComponent` encode what JavaScript's `encodeURI` and
114
+ `encodeURIComponent` do.** `$encodeUrl("a b")` is `"a%20b"`, where it was `"a b"`: only
115
+ control characters were encoded. `$encodeUrlComponent` no longer encodes `-_.!~*'()`.
116
+ - **`$now(picture, timezone)` formats the time as `$fromMillis` does, as in jsonata-js.** It
117
+ was T0410.
118
+
119
+ - **A `[]` after a group-by on a path keeps the `~>` result an array, as in jsonata-js**
120
+ ([#292](https://github.com/txjmb/jsonata-core/issues/292)). `o.b{"k":$}[] ~> $map(f)` is
121
+ `[{"k":1}]`, where it was `{"k":1}`; a `[]` before the group-by (`o.b[]{"k":$}`) still keeps
122
+ nothing there. `$filter` of a single value gives a one-item sequence, as in jsonata-js, so
123
+ `o.b{"k":$}[] ~> $filter(f)` keeps the array too. In the Rust AST, such a `[]` is now a `KeepArray` stage on a one-step path
124
+ around the `ObjectTransform`, not a stage of the path's last step.
125
+ - **A builtin's partial application takes the parameters jsonata-js's function declares**
126
+ ([#292](https://github.com/txjmb/jsonata-core/issues/292)). An argument past the builtin's
127
+ parameters is dropped (`$sum(?, 1)` given `[1,2]` is 3, and `$zip(?, [1])` given `[2]` is
128
+ `[[2]]`), and a trailing undefined one isn't passed (`$millis(?)()` and `$now(?)()` give the
129
+ time, where they were T0410). `$string(?)` is S0208, as in jsonata-js, whose `$string`
130
+ declares `prettify = false`, which doesn't parse as a parameter name; it was a function.
131
+
132
+ - **A group-by over a block whose path stops before its tuple step groups once, as in
133
+ jsonata-js** ([#285](https://github.com/txjmb/jsonata-core/issues/285)). jsonata-js enters
134
+ tuple mode only when a path reaches a tuple step, so `(%.b)[%.x]{"k":1}.k` and
135
+ `(nope.b)[%.x]{"k":1}.k` are `1`, where they were undefined, and `nope^(d)#$i{"k":1}` and
136
+ `c[d=9].(nope.b)[%.x]{"k":1}` and `c[d=9].d#$i^($){"k":1}` are `{"k":1}`, where they were `{}`. A path that starts with a sort
137
+ of such a block is a tuple stream, since the sort is a tuple step itself:
138
+ `(nope.b)[%.x]^(x){"k":1}.k` is `{}`, where it was `{"k":1}`.
139
+
140
+ - **A filter or group-by on the call after `~>` is ignored, as in jsonata-js**
141
+ ([#286](https://github.com/txjmb/jsonata-core/issues/286)). jsonata-js applies the call and
142
+ never reads its filters or group-by; only `[]` carries over, and a `[]` on the left side or on a
143
+ function value on the right (`$x[] ~> $f`, `x ~> $f[]`) now keeps a single result as an array
144
+ too. With `a` holding `[{"b":"x"},
145
+ {"b":"y"}]`, `a ~> $map(function($v){$v.b})[1]` is now `["x","y"]` (it was `"y"`), `"z" ~>
146
+ $append([1])[0]` is `["z",1]` (it was `"z"`), and `x#$i ~> $count(){"k": $count($)}` is 0 (it
147
+ was T0410). This changes the result of expressions that relied on the filter; to filter the
148
+ result, wrap the chain in parentheses: `(a ~> $map(...))[1]`.
149
+
150
+ - **A `**` step on a missing value runs its filters on nothing, as jsonata-js does**
151
+ ([#290](https://github.com/txjmb/jsonata-core/issues/290)). `nope[**[$error("E")]]` is D3137
152
+ and `nope[x[**[1+"a"]]]` is T2002, where both were undefined. A `*` there still runs none.
153
+ A `*` that starts a path runs none on nothing either when more steps follow
154
+ (`*[$error("E")].x` on a string is undefined, where it was D3137).
155
+
156
+ - **A group-by on a step that isn't a path applies where jsonata-js applies it** (stage 3 of
157
+ [#219](https://github.com/txjmb/jsonata-core/issues/219)). On a block, `*` or other node, the
158
+ group now runs inside the step, after the node's predicates and before the step binds its
159
+ focus, index or ancestor: `(objs)@$v{"k": $v.p}.$v` binds `$v` to the grouped object. `#`
160
+ turns the node's predicates into stages applied after the group, so `(objs)[false]{"k": 1}#$j`
161
+ is undefined while `(objs)[false]{"k": 1}` is `{"k": 1}`. A `%` slot left on a step that another
162
+ step follows, or put on a path's last step by a predicate, is never resolved and evaluates to
163
+ nothing, as in jsonata-js, rather than failing with S0217 or resolving against an earlier step
164
+ (`(objs)[%.%.x].p`, `a#$i[%.%.x]`, `a.b{"k": 1}[%.%.a]`). This removes the remaining pinned
165
+ path-semantics divergences. A block whose tail binds nothing (`(%)`, `(*)`, `(%.%)`) gives the
166
+ group plain values, and `#` after predicates on a non-path node still groups as a tuple stream
167
+ (`%[%.x]#$i{"k": 1}` is `{}`).
168
+
169
+ - **Paths are built the way jsonata-js builds them** (stage 2 of
170
+ [#219](https://github.com/txjmb/jsonata-core/issues/219)). The parser uses jsonata-js's binding
171
+ powers for the path operators (`.` 75; `[`, `(`, `@`, `#` 80; group-by `{` 70; sort `^` 40) and
172
+ leaves them as raw nodes, which `ast_transform` resolves in jsonata-js's `processAST` order.
173
+ `-a{...}` and `a = b^(x)` now group as in jsonata-js. Calling something that isn't a function
174
+ (`1()`, `"f"@$v()`, `[1]()`) is T1006 (T1008 for `1(?)`) when the call runs, after its
175
+ arguments, as in jsonata-js (`1($error("x"))` is D3137), not a parse error, so a call of a filtered, sorted or grouped step now evaluates and calling a
176
+ transform (`|x|{"z":1}|($)`) works. Where an expression has more than one path error (S0209,
177
+ S0210, S0213, S0215, S0216, S0217), the one reported is the one jsonata-js raises first, with
178
+ a call's arguments before its procedure: `1.b.2()` and `a[0]@$v(1.b)` are S0213. A second `#`
179
+ on a step without other stages replaces its index (`a#$i#$j`). A `%` predicate (`x[%]`, `x[%[0]]`)
180
+ and a `%` under `#` or `^` (`%#$i`, `%^(x)`) are left unresolved, giving undefined as in
181
+ jsonata-js rather than S0217 or the input. `x ~> $f()#$i` is T2006. S0209, S0210 and S0213
182
+ keep their "Parse error" prefix. Known differences: `#` after `[]` adds an index rather than
183
+ replacing one (`x[]#$i#$j` keeps `$i`); a `[]` after `#` keeps a singleton array that
184
+ jsonata-js unwraps (`acct.o[0]#$i[].id`); and the members of an array or object constructor
185
+ run in order, so the first member's error is reported, where jsonata-js runs them
186
+ concurrently.
187
+ - **Filters on a missing step run as jsonata-js runs them**
188
+ ([#260](https://github.com/txjmb/jsonata-core/issues/260)). jsonata-js evaluates the filters
189
+ of a step that gives nothing against `[undefined]`. A computed index of 0 now keeps that
190
+ undefined item, so the next filter runs: `nope[$count([])][$error('E')]` is D3137 and
191
+ `arr.nope[$count([])][$string(1,2,3)]` is T0410 (both were undefined). A predicate that makes
192
+ no call now runs there too when an operator in it can fail its type check without the context:
193
+ `nope[1+'a']` is T2002, `nope[-'a']` D1002, `nope['a'<1]` T2009, `nope[true<1]` T2010,
194
+ `nope[[1..'a']]` T2004, `nope[$$.s+1]` T2001, `nope[{1:2}]` T1003 and
195
+ `nope[{"a":1,"a":2}]` D1009 (all were undefined). The filters of a path in the predicate run
196
+ on nothing too, as before: `nope[x[$error("E")]]` is D3137. Predicates whose operands are all
197
+ paths from the context, such as `nope[price > 5]`, are still skipped. A compiled path step does the same:
198
+ it runs such a filter once on a missing field, so both engines agree. Such a step leaves the
199
+ VM's single-step shortcut for the general compiled path, with no measurable cost
200
+ (`items[$contains(sku,'A')]` over 300,000 items times the same as before).
201
+ - **`$eval` reports an error its expression raises as D3121**, with the inner message (quoted,
202
+ without its code), as jsonata-js does: `$eval('1+"a"')` was T2002. Only unknown functions were wrapped before. The
203
+ engine's own guardrails (timeout D1012, cancellation U1003, depth D1011 and U1001, sequence
204
+ length D2015) keep their codes.
205
+ - **A function passed as an argument of a call runs with a null input**
206
+ ([#254](https://github.com/txjmb/jsonata-core/issues/254)). jsonata-js wraps each function
207
+ argument of a call in a closure that applies it with a null input, which a builtin the function
208
+ calls in tail position reads: `($h := function($f){ $f("x") }; $h(function($e){ $eval("a") }))`
209
+ is now undefined (it was 5, the known gap noted under 2.2.12), and
210
+ `($h := function($f){ $f() }; $h($string))` is `"null"`. The wrapper is a partial application
211
+ marked as an argument closure, so the function keeps its arity, and a tail call through one
212
+ still runs in constant stack. A tail call's arguments and the left side of `~>` are not
213
+ wrapped, as in jsonata-js. Inside a path step, `$` in an `$eval` expression is now the eval's
214
+ input rather than the step's item, so this holds there too, and `a.$eval("$", 7)` is 7 for
215
+ each item (it was the item). A partial application of a builtin runs with no input, as
216
+ jsonata-js's does, whether it is called directly or passed as an argument: `($f := $eval(?);
217
+ $f("$"))` and `($h := function($f){ $f("$") }; $h($eval(?)))` are undefined
218
+ ([#287](https://github.com/txjmb/jsonata-core/issues/287); they were the input and null). Its
219
+ arguments are checked against the builtin's signature without taking one from the context, so
220
+ `($f := $substring(?, 1); $f(5))` is T0410; jsonata-js doesn't check them at all, and fails
221
+ inside the function (see `docs/compatibility.md`).
222
+
223
+ ### Security
224
+
225
+ - `uv.lock`: `dnspython` 2.9.0 → 2.9.2 (CVE-2026-128089) and `opentelemetry-api` 1.45.1 → 1.45.2
226
+ (CVE-2026-126360), clearing the two advisories that failed the scheduled Security Scanning run
227
+ on 2026-11-14. Both are transitive dependencies of the optional `mcp` extra, not of the
228
+ published crate or of the wheel, which has no runtime dependencies. Users of the `mcp` extra
229
+ resolve their own versions and should upgrade both packages.
230
+
22
231
  ## [2.2.14] - 2026-11-04
23
232
 
24
233
  ### Added
@@ -26,15 +26,6 @@ version = "0.2.21"
26
26
  source = "registry+https://github.com/rust-lang/crates.io-index"
27
27
  checksum = "683d7910e743518b0e34f1186f92494becacb047c7b6bf616c96772180fef923"
28
28
 
29
- [[package]]
30
- name = "android_system_properties"
31
- version = "0.1.5"
32
- source = "registry+https://github.com/rust-lang/crates.io-index"
33
- checksum = "819e7219dbd41043ac279b19830f2efc897156490d7fd6ea916720117ee66311"
34
- dependencies = [
35
- "libc",
36
- ]
37
-
38
29
  [[package]]
39
30
  name = "anes"
40
31
  version = "0.1.6"
@@ -173,7 +164,7 @@ dependencies = [
173
164
  "proc-macro-crate",
174
165
  "proc-macro2",
175
166
  "quote",
176
- "syn 3.0.2",
167
+ "syn 3.0.10",
177
168
  ]
178
169
 
179
170
  [[package]]
@@ -238,19 +229,6 @@ dependencies = [
238
229
  "rand_core",
239
230
  ]
240
231
 
241
- [[package]]
242
- name = "chrono"
243
- version = "0.4.45"
244
- source = "registry+https://github.com/rust-lang/crates.io-index"
245
- checksum = "1aa79e62e7697b8e29b513a68abacf485adcd1fe8284a4316c5ae868e6633327"
246
- dependencies = [
247
- "iana-time-zone",
248
- "js-sys",
249
- "num-traits",
250
- "wasm-bindgen",
251
- "windows-link",
252
- ]
253
-
254
232
  [[package]]
255
233
  name = "ciborium"
256
234
  version = "0.2.2"
@@ -280,9 +258,9 @@ dependencies = [
280
258
 
281
259
  [[package]]
282
260
  name = "clap"
283
- version = "4.6.7"
261
+ version = "4.6.9"
284
262
  source = "registry+https://github.com/rust-lang/crates.io-index"
285
- checksum = "aa8876b300ab35ba921adea3dfd70157a46249b33f95c9084ae5709785478946"
263
+ checksum = "844c5c0b65be192cb68d570cca1b21a6444431d24e39c084dc0336177015337c"
286
264
  dependencies = [
287
265
  "clap_builder",
288
266
  "clap_derive",
@@ -302,14 +280,14 @@ dependencies = [
302
280
 
303
281
  [[package]]
304
282
  name = "clap_derive"
305
- version = "4.6.7"
283
+ version = "4.6.9"
306
284
  source = "registry+https://github.com/rust-lang/crates.io-index"
307
- checksum = "f9c751b79415d4e559e3d1fcf128e09e720eb673a06d26cf6f392d37d75b66e0"
285
+ checksum = "b4c174f11f949b9ca8c60580925e282b9cbd5454750e506f08648b2038080cd7"
308
286
  dependencies = [
309
287
  "heck",
310
288
  "proc-macro2",
311
289
  "quote",
312
- "syn 3.0.2",
290
+ "syn 3.0.10",
313
291
  ]
314
292
 
315
293
  [[package]]
@@ -324,12 +302,6 @@ version = "1.0.5"
324
302
  source = "registry+https://github.com/rust-lang/crates.io-index"
325
303
  checksum = "1d07550c9036bf2ae0c684c4297d503f838287c83c53686d05370d0e139ae570"
326
304
 
327
- [[package]]
328
- name = "core-foundation-sys"
329
- version = "0.8.7"
330
- source = "registry+https://github.com/rust-lang/crates.io-index"
331
- checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b"
332
-
333
305
  [[package]]
334
306
  name = "core_detect"
335
307
  version = "1.0.0"
@@ -552,30 +524,6 @@ version = "0.5.0"
552
524
  source = "registry+https://github.com/rust-lang/crates.io-index"
553
525
  checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
554
526
 
555
- [[package]]
556
- name = "iana-time-zone"
557
- version = "0.1.65"
558
- source = "registry+https://github.com/rust-lang/crates.io-index"
559
- checksum = "e31bc9ad994ba00e440a8aa5c9ef0ec67d5cb5e5cb0cc7f8b744a35b389cc470"
560
- dependencies = [
561
- "android_system_properties",
562
- "core-foundation-sys",
563
- "iana-time-zone-haiku",
564
- "js-sys",
565
- "log",
566
- "wasm-bindgen",
567
- "windows-core",
568
- ]
569
-
570
- [[package]]
571
- name = "iana-time-zone-haiku"
572
- version = "0.1.2"
573
- source = "registry+https://github.com/rust-lang/crates.io-index"
574
- checksum = "f31827a206f56af32e590ba56d5d2d085f558508192593743f16b2306495269f"
575
- dependencies = [
576
- "cc",
577
- ]
578
-
579
527
  [[package]]
580
528
  name = "indexmap"
581
529
  version = "2.14.2"
@@ -620,11 +568,10 @@ dependencies = [
620
568
 
621
569
  [[package]]
622
570
  name = "jsonata-core"
623
- version = "2.2.14"
571
+ version = "2.2.16"
624
572
  dependencies = [
625
573
  "assert_cmd",
626
574
  "base64",
627
- "chrono",
628
575
  "clap",
629
576
  "criterion",
630
577
  "indexmap",
@@ -654,8 +601,6 @@ checksum = "68ab91017fe16c622486840e4c83c9a37afeff978bd239b5293d61ece587de66"
654
601
  [[package]]
655
602
  name = "libmimalloc-sys"
656
603
  version = "0.1.49"
657
- source = "registry+https://github.com/rust-lang/crates.io-index"
658
- checksum = "6a45a52f43e1c16f667ccfe4dd8c85b7f7c204fd5e3bf46c5b0db9a5c3c0b8e9"
659
604
  dependencies = [
660
605
  "cc",
661
606
  ]
@@ -666,12 +611,6 @@ version = "0.12.1"
666
611
  source = "registry+https://github.com/rust-lang/crates.io-index"
667
612
  checksum = "32a66949e030da00e8c7d4434b251670a91556f4144941d37452769c25d58a53"
668
613
 
669
- [[package]]
670
- name = "log"
671
- version = "0.4.33"
672
- source = "registry+https://github.com/rust-lang/crates.io-index"
673
- checksum = "0ceec5bc11778974d1bcb055b18002eba7f4b3518b6a0081b3af5f21666da9ad"
674
-
675
614
  [[package]]
676
615
  name = "memchr"
677
616
  version = "2.8.3"
@@ -826,9 +765,9 @@ dependencies = [
826
765
 
827
766
  [[package]]
828
767
  name = "proc-macro2"
829
- version = "1.0.106"
768
+ version = "1.0.107"
830
769
  source = "registry+https://github.com/rust-lang/crates.io-index"
831
- checksum = "8fd00f0bb2e90d81d1044c2b32617f68fcb9fa3bb7640c23e9c748e53fb30934"
770
+ checksum = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9"
832
771
  dependencies = [
833
772
  "unicode-ident",
834
773
  ]
@@ -905,7 +844,7 @@ dependencies = [
905
844
  "proc-macro2",
906
845
  "pyo3-macros-backend",
907
846
  "quote",
908
- "syn 3.0.2",
847
+ "syn 3.0.10",
909
848
  ]
910
849
 
911
850
  [[package]]
@@ -917,7 +856,7 @@ dependencies = [
917
856
  "heck",
918
857
  "proc-macro2",
919
858
  "quote",
920
- "syn 3.0.2",
859
+ "syn 3.0.10",
921
860
  ]
922
861
 
923
862
  [[package]]
@@ -928,9 +867,9 @@ checksum = "a1d01941d82fa2ab50be1e79e6714289dd7cde78eba4c074bc5a4374f650dfe0"
928
867
 
929
868
  [[package]]
930
869
  name = "quote"
931
- version = "1.0.46"
870
+ version = "1.0.47"
932
871
  source = "registry+https://github.com/rust-lang/crates.io-index"
933
- checksum = "dfbc457d0c7a0759a614551b11a6409e5951f6c7537be1f1b7682b9ae9230368"
872
+ checksum = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001"
934
873
  dependencies = [
935
874
  "proc-macro2",
936
875
  ]
@@ -943,9 +882,9 @@ checksum = "f8dcc9c7d52a811697d2151c701e0d08956f92b0e24136cf4cf27b57a6a0d9bf"
943
882
 
944
883
  [[package]]
945
884
  name = "rand"
946
- version = "0.10.3"
885
+ version = "0.10.4"
947
886
  source = "registry+https://github.com/rust-lang/crates.io-index"
948
- checksum = "65c9fb96cbc91e3478eaae79a69fcd3f1ae4ad052e471fe6732fff548984b4af"
887
+ checksum = "8f6fa277c67e6ea590466f04c3fe82cb509f0864fe470643e5570de9514a9b11"
949
888
  dependencies = [
950
889
  "chacha20",
951
890
  "getrandom",
@@ -989,9 +928,9 @@ dependencies = [
989
928
 
990
929
  [[package]]
991
930
  name = "regex"
992
- version = "1.13.1"
931
+ version = "1.13.2"
993
932
  source = "registry+https://github.com/rust-lang/crates.io-index"
994
- checksum = "f020237b6c8eed93db2e2cb53c00c60a8e1bc73da7d073199a1180401450218d"
933
+ checksum = "9807af0e638c12e753aa1b4e601791bf2a8f71274023c8bbeec12fc149950857"
995
934
  dependencies = [
996
935
  "aho-corasick",
997
936
  "memchr",
@@ -1001,9 +940,9 @@ dependencies = [
1001
940
 
1002
941
  [[package]]
1003
942
  name = "regex-automata"
1004
- version = "0.4.16"
943
+ version = "0.4.19"
1005
944
  source = "registry+https://github.com/rust-lang/crates.io-index"
1006
- checksum = "8fcfdb36bda0c880c5931cdc7a2bcdc8ba4556847b9d912bca70bc94708711ad"
945
+ checksum = "41d60ef07df457506a0a1a2073112eb4aae5733dbd2813c3da77d1b0fd441158"
1007
946
  dependencies = [
1008
947
  "aho-corasick",
1009
948
  "memchr",
@@ -1012,9 +951,9 @@ dependencies = [
1012
951
 
1013
952
  [[package]]
1014
953
  name = "regex-syntax"
1015
- version = "0.8.11"
954
+ version = "0.8.12"
1016
955
  source = "registry+https://github.com/rust-lang/crates.io-index"
1017
- checksum = "d6f6ff9a378485b298a5286656da665ba74413d36db0979633275d2e708145d4"
956
+ checksum = "d902046e6a28a1e4c3cab97258a0ce11e994903f01c2d97a9447a0b3df85f4f6"
1018
957
 
1019
958
  [[package]]
1020
959
  name = "rustix"
@@ -1089,7 +1028,7 @@ checksum = "e7a5d71263a5a7d47b41f6b3f06ba276f10cc18b0931f1799f710578e2309348"
1089
1028
  dependencies = [
1090
1029
  "proc-macro2",
1091
1030
  "quote",
1092
- "syn 3.0.2",
1031
+ "syn 3.0.10",
1093
1032
  ]
1094
1033
 
1095
1034
  [[package]]
@@ -1170,9 +1109,9 @@ dependencies = [
1170
1109
 
1171
1110
  [[package]]
1172
1111
  name = "syn"
1173
- version = "3.0.2"
1112
+ version = "3.0.10"
1174
1113
  source = "registry+https://github.com/rust-lang/crates.io-index"
1175
- checksum = "a207d6d6a2b7fc470b80443726053f18a2481b7e1eee970597051596567987a3"
1114
+ checksum = "4ae9ccbea3a7b0b09443036490c8f34a8b1b760fd345e5c0dae0aac718faea79"
1176
1115
  dependencies = [
1177
1116
  "proc-macro2",
1178
1117
  "quote",
@@ -1221,7 +1160,7 @@ checksum = "fe5197923287db20a58125f0bc85c062f7f2c892de97b18c356f9efb14b28524"
1221
1160
  dependencies = [
1222
1161
  "proc-macro2",
1223
1162
  "quote",
1224
- "syn 3.0.2",
1163
+ "syn 3.0.10",
1225
1164
  ]
1226
1165
 
1227
1166
  [[package]]
@@ -1399,65 +1338,12 @@ version = "0.4.0"
1399
1338
  source = "registry+https://github.com/rust-lang/crates.io-index"
1400
1339
  checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
1401
1340
 
1402
- [[package]]
1403
- name = "windows-core"
1404
- version = "0.62.2"
1405
- source = "registry+https://github.com/rust-lang/crates.io-index"
1406
- checksum = "b8e83a14d34d0623b51dce9581199302a221863196a1dde71a7663a4c2be9deb"
1407
- dependencies = [
1408
- "windows-implement",
1409
- "windows-interface",
1410
- "windows-link",
1411
- "windows-result",
1412
- "windows-strings",
1413
- ]
1414
-
1415
- [[package]]
1416
- name = "windows-implement"
1417
- version = "0.60.2"
1418
- source = "registry+https://github.com/rust-lang/crates.io-index"
1419
- checksum = "053e2e040ab57b9dc951b72c264860db7eb3b0200ba345b4e4c3b14f67855ddf"
1420
- dependencies = [
1421
- "proc-macro2",
1422
- "quote",
1423
- "syn 2.0.118",
1424
- ]
1425
-
1426
- [[package]]
1427
- name = "windows-interface"
1428
- version = "0.59.3"
1429
- source = "registry+https://github.com/rust-lang/crates.io-index"
1430
- checksum = "3f316c4a2570ba26bbec722032c4099d8c8bc095efccdc15688708623367e358"
1431
- dependencies = [
1432
- "proc-macro2",
1433
- "quote",
1434
- "syn 2.0.118",
1435
- ]
1436
-
1437
1341
  [[package]]
1438
1342
  name = "windows-link"
1439
1343
  version = "0.2.1"
1440
1344
  source = "registry+https://github.com/rust-lang/crates.io-index"
1441
1345
  checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5"
1442
1346
 
1443
- [[package]]
1444
- name = "windows-result"
1445
- version = "0.4.1"
1446
- source = "registry+https://github.com/rust-lang/crates.io-index"
1447
- checksum = "7781fa89eaf60850ac3d2da7af8e5242a5ea78d1a11c49bf2910bb5a73853eb5"
1448
- dependencies = [
1449
- "windows-link",
1450
- ]
1451
-
1452
- [[package]]
1453
- name = "windows-strings"
1454
- version = "0.5.1"
1455
- source = "registry+https://github.com/rust-lang/crates.io-index"
1456
- checksum = "7837d08f69c77cf6b07689544538e017c1bfcf57e34b4c0ff58e6c2cd3b37091"
1457
- dependencies = [
1458
- "windows-link",
1459
- ]
1460
-
1461
1347
  [[package]]
1462
1348
  name = "windows-sys"
1463
1349
  version = "0.61.2"
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "jsonata-core"
3
- version = "2.2.14"
3
+ version = "2.2.16"
4
4
  edition = "2021"
5
5
  authors = ["txjmb <txjmb@users.noreply.github.com>"]
6
6
  description = "High-performance Rust implementation of JSONata query and transformation language"
@@ -13,6 +13,7 @@ categories = ["parsing", "data-structures"]
13
13
  readme = "README.md"
14
14
  rust-version = "1.70"
15
15
  exclude = [
16
+ "vendor/*",
16
17
  "tests/jsonata-js/*",
17
18
  "tests/python/*",
18
19
  "python/*",
@@ -47,7 +48,6 @@ serde_json = { version = "1.0", features = ["preserve_order"] }
47
48
  thiserror = "2.0"
48
49
  regex = "1.12"
49
50
  regex-syntax = "0.8"
50
- chrono = "0.4"
51
51
  num-traits = "0.2"
52
52
  base64 = "0.23"
53
53
  indexmap = "2.2.3"
@@ -66,6 +66,10 @@ python = ["dep:pyo3"]
66
66
  cli = ["dep:clap"]
67
67
  bench = [] # exposes _bench facade for Criterion benchmarks
68
68
  capi = []
69
+ # Note for crates.io users: the vendored mimalloc 3.4.5 (see [patch.crates-io]
70
+ # below) only applies when building from this repository or the sdist; a
71
+ # crates.io build of this feature gets libmimalloc-sys 0.1.49's mimalloc 3.3.2,
72
+ # which can crash after the first thread that allocated exits (#298).
69
73
  mimalloc = ["dep:mimalloc", "dep:libmimalloc-sys"]
70
74
 
71
75
  [dev-dependencies]
@@ -94,3 +98,15 @@ opt-level = 0
94
98
  [package.metadata.maturin]
95
99
  python-source = "python"
96
100
  module-name = "jsonatapy._jsonatapy"
101
+
102
+ # libmimalloc-sys 0.1.49 bundles mimalloc v3.3.2, which crashes next to other
103
+ # mimalloc v3 copies on macOS (fixed TLS slots, e.g. pyarrow 24) and once the
104
+ # first thread that allocated has exited (microsoft/mimalloc#1287). The
105
+ # vendored copy is that crate unchanged except for mimalloc v3.4.5 sources,
106
+ # which fix both (see vendor/libmimalloc-sys/VENDORED.md and GitHub #298).
107
+ # Remove this patch and vendor/ once a libmimalloc-sys release bundles
108
+ # mimalloc >= 3.4.5 (purpleprotocol/mimalloc_rust#169). `[patch]` does not
109
+ # apply to crates.io dependents, who still get v3.3.2 with the `mimalloc`
110
+ # feature.
111
+ [patch.crates-io]
112
+ libmimalloc-sys = { path = "vendor/libmimalloc-sys" }
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: jsonatapy
3
- Version: 2.2.14
3
+ Version: 2.2.16
4
4
  Classifier: Development Status :: 5 - Production/Stable
5
5
  Classifier: Intended Audience :: Developers
6
6
  Classifier: License :: OSI Approved :: MIT License
@@ -75,7 +75,7 @@ Project-URL: Repository, https://github.com/txjmb/jsonata-core
75
75
  <source media="(prefers-color-scheme: dark)"
76
76
  srcset="https://raw.githubusercontent.com/txjmb/jsonata-core/main/docs/assets/realistic-workload-dark.svg">
77
77
  <img width="880"
78
- alt="Realistic-workload benchmark on a 100-product dataset, lower is better: jsonatapy is 8.2x faster than the jsonata-js reference on the geometric mean of 5 e-commerce queries, and the pure-Rust jsonata-core engine is faster still."
78
+ alt="Realistic-workload benchmark on a 100-product dataset, lower is better: jsonatapy is 8.1x faster than the jsonata-js reference on the geometric mean of 5 e-commerce queries, and the pure-Rust jsonata-core engine is faster still."
79
79
  src="https://raw.githubusercontent.com/txjmb/jsonata-core/main/docs/assets/realistic-workload-light.svg">
80
80
  </picture>
81
81
  </a>
@@ -156,10 +156,10 @@ let result = Evaluator::new().evaluate(&ast, &data)?;
156
156
  ```toml
157
157
  # Cargo.toml
158
158
  [dependencies]
159
- jsonata-core = "2.2.14" # pure Rust, no Python dependency
159
+ jsonata-core = "2.2.16" # pure Rust, no Python dependency
160
160
 
161
161
  # Optional: disable SIMD for constrained targets
162
- jsonata-core = { version = "2.2.14", default-features = false }
162
+ jsonata-core = { version = "2.2.16", default-features = false }
163
163
  ```
164
164
 
165
165
  ---
@@ -26,7 +26,7 @@
26
26
  <source media="(prefers-color-scheme: dark)"
27
27
  srcset="https://raw.githubusercontent.com/txjmb/jsonata-core/main/docs/assets/realistic-workload-dark.svg">
28
28
  <img width="880"
29
- alt="Realistic-workload benchmark on a 100-product dataset, lower is better: jsonatapy is 8.2x faster than the jsonata-js reference on the geometric mean of 5 e-commerce queries, and the pure-Rust jsonata-core engine is faster still."
29
+ alt="Realistic-workload benchmark on a 100-product dataset, lower is better: jsonatapy is 8.1x faster than the jsonata-js reference on the geometric mean of 5 e-commerce queries, and the pure-Rust jsonata-core engine is faster still."
30
30
  src="https://raw.githubusercontent.com/txjmb/jsonata-core/main/docs/assets/realistic-workload-light.svg">
31
31
  </picture>
32
32
  </a>
@@ -107,10 +107,10 @@ let result = Evaluator::new().evaluate(&ast, &data)?;
107
107
  ```toml
108
108
  # Cargo.toml
109
109
  [dependencies]
110
- jsonata-core = "2.2.14" # pure Rust, no Python dependency
110
+ jsonata-core = "2.2.16" # pure Rust, no Python dependency
111
111
 
112
112
  # Optional: disable SIMD for constrained targets
113
- jsonata-core = { version = "2.2.14", default-features = false }
113
+ jsonata-core = { version = "2.2.16", default-features = false }
114
114
  ```
115
115
 
116
116
  ---
@@ -4,7 +4,7 @@ build-backend = "maturin"
4
4
 
5
5
  [project]
6
6
  name = "jsonatapy"
7
- version = "2.2.14"
7
+ version = "2.2.16"
8
8
  description = "High-performance Python/Rust implementation of JSONata query and transformation language"
9
9
  authors = [
10
10
  {name = "txjmb", email = "txjmb@users.noreply.github.com"}
@@ -74,6 +74,10 @@ Repository = "https://github.com/txjmb/jsonata-core"
74
74
  python-source = "python"
75
75
  module-name = "jsonatapy._jsonatapy"
76
76
  features = ["pyo3/extension-module", "python", "mimalloc"]
77
+ # Cargo.toml excludes vendor/ from the crates.io package, which maturin
78
+ # honours too, but the sdist needs the vendored libmimalloc-sys that
79
+ # `[patch.crates-io]` points at (GitHub #298).
80
+ include = [{ path = "vendor/**/*", format = "sdist" }]
77
81
 
78
82
  [dependency-groups]
79
83
  dev = [