Skip to content

v0.10.1

Latest

Choose a tag to compare

@github-actions github-actions released this 07 Nov 14:20
· 370 commits to main since this release
Immutable release. Only release title and notes can be modified.

What's Changed

Features

  • ✨ feat(bench): add statistics, batching, cold runs and heap counts by @harehare in #2804
  • ✨ feat(check): reject a record argument missing a required field by @harehare in #2778
  • ✨ feat(check): type dict-returning builtins as records by @harehare in #2777
  • ✨ feat(check): type-check user-defined tagged results ({ok: true, ...} | {ok: false, ...}) by @harehare in #2802
  • ✨ feat(lang): support unicode general categories and scripts in regex by @harehare in #2747
  • ✨ feat(lang): add the hash and bit_length builtins by @harehare in #2755
  • ✨ feat(lang): let band, bor and xor combine integers by @harehare in #2756
  • ✨ feat(lang): allow error() to raise any value by @harehare in #2769
  • ✨ feat(lang): print very large and very small numbers in exponent notation by @harehare in #2773
  • ✨ feat(lang): add regex_match_info for match positions and capture groups by @harehare in #2775
  • ✨ feat(lang): add hmac_sha256 and hmac_sha512 builtins by @harehare in #2803
  • ✨ feat(lsp): context-aware completion, module navigation and new requests by @harehare in #2759
  • ✨ feat(markdown): add option to disable table cell padding by @harehare in #2795
  • ✨ feat(run): decode UTF-16 input with a BOM and hint on other encodings by @harehare in #2764
  • ✨ feat(test): add @small_scope and fix the bugs it found in lang modules by @harehare in #2822

Fixes

  • 🐛 fix(check): reject calls of non-function values and wrong keys/range arguments by @harehare in #2744
  • 🐛 fix(check): avoid race when writing shared module file in tests by @harehare in #2780
  • 🐛 fix(ci): build fuzz targets for the gnu triple by @harehare in #2805
  • 🐛 fix(formatter): sort only consecutive statements of the same kind by @harehare in #2743
  • 🐛 fix(hir): return syntax errors from Hir::add_code by @harehare in #2739
  • 🐛 fix(hir): parse expressions inside string interpolation by @harehare in #2741
  • 🐛 fix(lang): release pooled frame locals so passed values are not kept alive by @harehare in #2748
  • 🐛 fix(lang): keep x[i] and x[a:b] from calling a user-defined get or slice by @harehare in #2752
  • 🐛 fix(lang): make modulo by zero an error like division by @harehare in #2765
  • 🐛 fix(lang): validate code points in implode by @harehare in #2766
  • 🐛 fix(lang): reject negative shift amounts in shift_left/shift_right by @harehare in #2767
  • 🐛 fix(lang): reject non-finite values in to_number by @harehare in #2768
  • 🐛 fix(lang): only divide by exactly zero raises a zero division error by @harehare in #2772
  • 🐛 fix(lang): make indices return overlapping matches like jq by @harehare in #2785
  • 🐛 fix(lang): fix lpad/rpad with long pads and split with empty separator by @harehare in #2786
  • 🐛 fix(lang): point bnot on numbers to xor with an explicit mask by @harehare in #2794
  • 🐛 fix(lang): stop recursive defs from leaking through a self-referencing cell by @harehare in #2824
  • 🐛 fix(lang): stop recursive defs with defaults from leaking through a self cell by @harehare in #2825
  • 🐛 fix(lang): free a closure stored in a variable it captures by @harehare in #2829
  • 🐛 fix(lang): collect closure reference cycles through captured variables by @harehare in #2830
  • 🐛 fix(lang): return early when repeating an empty array by @harehare in #2831
  • 🐛 fix(lang): collect cycles held only by returned values when the engine drops by @harehare in #2832
  • 🐛 fix(lsp): convert new navigation ranges to UTF-16 columns by @harehare in #2762
  • 🐛 fix(markdown): improve html to markdown code blocks and link text by @harehare in #2813
  • 🔒 fix(run): honor --allow-write for --in-place by @harehare in #2719
  • 🐛 fix(run): write non-finite numbers the way jq does by @harehare in #2784
  • 🐛 fix(run): reject UTF-16 input without a BOM by @harehare in #2787
  • 🐛 fix(test): detect failed assertions inside loops by @harehare in #2749

Refactoring

  • ♻ refactor(lang): read $NAME when the program runs instead of while parsing by @harehare in #2742
  • ♻ refactor(lang): expose the keyword list from one table shared with the lexer by @harehare in #2753

Performance

  • ⚡ perf(bench): use mimalloc in mq-bench like the mq binary by @harehare in #2789
  • ⚡ perf(lang): make string indexing and slicing linear over a scan by @harehare in #2746
  • ⚡ perf(lang): move a local out on its last use instead of cloning it by @harehare in #2745
  • ⚡ perf(lang): count the chars of an ASCII string by its byte length by @harehare in #2750
  • ⚡ perf(lang): make dict removal amortized O(1) by @harehare in #2751
  • ⚡ perf(lang): update nested index assignments in place by @harehare in #2754
  • ⚡ perf(lang): cut an unshared array in place in slice by @harehare in #2758
  • ⚡ perf(lang): append to captured variables in place by @harehare in #2770
  • ⚡ perf(lang): raise the call depth limit to 100,000 and guard nested coroutine resumes by @harehare in #2776
  • ⚡ perf(lang): speed up fold, sum and zip in builtin.mq by @harehare in #2788
  • ⚡ perf(lang): add numbers in place for a[i] += x and accept computed keys by @harehare in #2791
  • ⚡ perf(lang): compute number operands on the stack without moving them out by @harehare in #2792
  • ⚡ perf(lang): fold constant expressions and drop dead branches by @harehare in #2800
  • ⚡ perf(lang): shrink VmError from 56 to 24 bytes by @harehare in #2816
  • ⚡ perf(lint): index symbols by parent instead of rescanning the HIR by @harehare in #2760
  • ⚡ perf(markdown): build flattened nodes in place and presize the root list by @harehare in #2812

Test

  • ✅ test(lang): add Kani proofs for peephole, wire, slice bounds and mq-markdown positions by @harehare in #2738
  • ✅ test(lang): prove peephole jump rewriting and arena id packing with Kani by @harehare in #2740
  • ✅ test(lang): assert RuntimeValue stays at most 16 bytes by @harehare in #2801
  • ✅ test(lang,markdown): prove scan helpers and slot bounds with Kani by @harehare in #2811

CI

  • 👷 ci(bench): use OIDC auth for CodSpeed instead of token by @harehare in #2761

Dependency Updates

20 dependency updates

Cargo / GitHub Actions (root)

  • chore(deps): bump the dependencies group with 4 updates by @dependabot[bot] in #2736
  • chore(deps): bump the dependencies group with 2 updates by @dependabot[bot] in #2735
  • build(deps): bump taiki-e/install-action from 2.87.31 to 2.87.32 in the dependencies group by @dependabot[bot] in #2783
  • build(deps): bump the dependencies group with 2 updates by @dependabot[bot] in #2782
  • build(deps): bump ignore from 0.4.33 to 0.4.34 in the dependencies group by @dependabot[bot] in #2799
  • build(deps): bump the dependencies group with 2 updates by @dependabot[bot] in #2810
  • build(deps): bump unicode-width from 0.2.2 to 0.2.3 in the dependencies group by @dependabot[bot] in #2809
  • build(deps): bump the dependencies group with 2 updates by @dependabot[bot] in #2828
  • build(deps): bump encoding_rs from 0.8.42 to 0.8.44 in the dependencies group by @dependabot[bot] in #2827

editors/vscode

  • build(deps-dev): bump oxlint from 1.89.0 to 1.90.0 in /editors/vscode in the dependencies group by @dependabot[bot] in #2796
  • build(deps-dev): bump @types/node from 26.6.5 to 26.6.6 in /editors/vscode in the dependencies group by @dependabot[bot] in #2806
  • build(deps-dev): bump @types/vscode from 1.140.0 to 1.144.0 in /editors/vscode in the dependencies group by @dependabot[bot] in #2820

packages/mq-playground

  • chore(deps-dev): bump @babel/core from 7.29.7 to 8.0.9 in /packages/mq-playground in the dependencies group by @dependabot[bot] in #2734
  • build(deps-dev): bump @babel/core from 7.29.7 to 8.0.9 in /packages/mq-playground in the dependencies group by @dependabot[bot] in #2781
  • build(deps-dev): bump the dependencies group in /packages/mq-playground with 2 updates by @dependabot[bot] in #2798
  • build(deps-dev): bump @babel/core from 7.29.7 to 8.0.9 in /packages/mq-playground in the dependencies group by @dependabot[bot] in #2808
  • build(deps-dev): bump the dependencies group in /packages/mq-playground with 2 updates by @dependabot[bot] in #2821
  • build(deps-dev): bump @babel/core from 7.29.7 to 8.0.10 in /packages/mq-playground in the dependencies group by @dependabot[bot] in #2826

packages/mq-web

  • build(deps-dev): bump oxlint from 1.89.0 to 1.90.0 in /packages/mq-web in the dependencies group by @dependabot[bot] in #2797
  • build(deps-dev): bump @types/node from 26.6.5 to 26.6.6 in /packages/mq-web in the dependencies group by @dependabot[bot] in #2807

Full Changelog: v0.10.0...v0.10.1