Repository navigation
·
225 commits
to main
since this release
Immutable
release. Only release title and notes can be modified.
What's Changed
Features
- ✨ feat(check): hint min_by/max_by when min/max gets a single array by @harehare in #2946
- ✨ feat(cli): add --version to mq-lint and mq-check by @harehare in #2962
- ✨ feat(crawler): allow local files for robots_path by @harehare in #2942
- ✨ feat(crawler): skip non-HTML extensions before requesting by @harehare in #2978
- ✨ feat(docs): publish the module index as docs/modules.json by @harehare in #2915
- ✨ feat(ffi): add mq_define_string_value_ex and mq_define_json_value_ex by @harehare in #2951
- ✨ feat(ffi): add null, raw and module-backed input formats by @harehare in #2968
- ✨ feat(help): add --search to mq help and complete help names by @harehare in #2908
- ✨ feat(help): show parameters with default values as optional (name?) by @harehare in #2945
- ✨ feat(lang): resolve name/name.mq and search ./vendor for modules by @harehare in #2860
- ✨ feat(lang): add is_infinite and is_finite builtins by @harehare in #2918
- ✨ feat(lang): accept version strings in semver compare, sort, max and min by @harehare in #2957
- ✨ feat(lang): join returns empty bytes for an empty array with a bytes separator by @harehare in #2990
- ✨ feat(lang): add concat to join array elements one level deep by @harehare in #2991
- ✨ feat(lang): accept negative integers in band, bor and xor by @harehare in #3007
- ✨ feat(lang): point at the stray
)when else/elif has no if, and atbor for|by @harehare in #3008 - ✨ feat(lang): assign bytes elements with b[i] = v and set by @harehare in #3012
- ✨ feat(lang): validate argument types in module functions by @harehare in #3015
- ✨ feat(lint): add assign_to_immutable rule by @harehare in #2909
- ✨ feat(lint): add bare_pipe_in_branch rule by @harehare in #2944
- ✨ feat(lint): add prefer_index_assignment for x = set(x, key, value) by @harehare in #3014
- ✨ feat(lsp): index unopened .mq files in workspace/symbol by @harehare in #2963
- ✨ feat(lsp): add spelling quickfix and source.fixAll.mq-lint code action by @harehare in #2964
- ✨ feat(markdown): convert iframe srcdoc to markdown in html-to-markdown by @harehare in #2924
- ✨ feat(repl): open the current buffer or last query in /edit by @harehare in #2940
- ✨ feat(run): add MQ_SANDBOX env default for --sandbox by @harehare in #2838
- ✨ feat(run): add tsv output format by @harehare in #3004
- ✨ feat(test): run doc examples with mq-test --doc by @harehare in #2921
- ✨ feat(test): accept directory arguments in mq-test by @harehare in #2952
Fixes
- 🐛 fix(check): count unresolved imports as resolve errors, not syntax errors by @harehare in #2947
- 🐛 fix(check): follow the branch a type guard selects when inlining a call by @harehare in #2933
- 🐛 fix(check): accept ordering of a union when one member pairing is ordered by @harehare in #2949
- 🐛 fix(crawler): resolve links and name output by the post-redirect URL by @harehare in #2948
- 🐛 fix(ffi): return MQ_ERR_INVALID_ARGUMENT for null C string arguments by @harehare in #2891
- 🐛 fix(ffi): ignore zero in mq_set_max_call_stack_depth by @harehare in #2971
- 🐛 fix(lang): bound multi-char string range size by exact odometer count by @harehare in #2834
- 🐛 fix(lang): register the html standard module without html-parse by @harehare in #2839
- 🔒 fix(lang): block IPv6 ranges that embed IPv4 in is_global_ip by @harehare in #2859
- 🐛 fix(lang): return an error for invalid strftime/to_date formats by @harehare in #2879
- 🐛 fix(lang): count negative indices from the end when assigning to arrays by @harehare in #2880
- 🐛 fix(lang): error on invalid count in repeat, word_wrap and implode by @harehare in #2884
- 🐛 fix(lang): validate to_md_table_cell row and column bounds by @harehare in #2892
- 🐛 fix(lang): hint to pass arguments as an array when system gets a command with whitespace by @harehare in #2895
- 🐛 fix(lang): do not cap to_md_table_cell row index at 65535 by @harehare in #2900
- 🐛 fix(lang): error on malformed input in csv_parse by @harehare in #2901
- 🐛 fix(lang): skip body reading for HEAD and 204 http responses by @harehare in #2905
- 🐛 fix(lang): allow attribute access after an index on self by @harehare in #2906
- 🐛 fix(lang): validate semver_parse input against the SemVer 2.0.0 grammar by @harehare in #2917
- 🐛 fix(lang): render composite YAML mapping keys in flow notation by @harehare in #2936
- 🐛 fix(lang): accept uppercase https:// scheme in is_https by @harehare in #2939
- 🐛 fix(lang): deny writes through dangling symlinks leaving the allowed paths by @harehare in #2959
- 🐛 fix(lang): make set_attr reject unknown attributes and invalid values by @harehare in #2970
- 🐛 fix(lang): support indexing bytes with b[i] by @harehare in #2989
- 🐛 fix(lang): bound allocations by numeric arguments, not by existing data by @harehare in #3001
- 🐛 fix(lang): decode bytes as UTF-8 in to_string by @harehare in #3006
- 🐛 fix(lint): treat index assignment as reassignment in prefer_let_over_var by @harehare in #2894
- 🐛 fix(lint): report while(true) and until(false) in infinite_loop by @harehare in #2904
- 🐛 fix(lint): reduce false positives in prefer_pipe_style and unused rules by @harehare in #2914
- 🐛 fix(lint): always report a range for deeply_nested diagnostics by @harehare in #2932
- 🐛 fix(lint): skip underscore-prefixed names in shadow_variable by @harehare in #2943
- 🐛 fix(lint): detect system, env and file_size in dangerous_capability_call by @harehare in #2965
- 🐛 fix(lsp): return None when formatting an unopened document by @harehare in #2846
- 🐛 fix(lsp): return an error instead of panicking on URIs that url::Url rejects by @harehare in #2847
- 🐛 fix(lsp): resolve
module::memberinside its module by @harehare in #2916 - 🐛 fix(lsp): use UTF-16 columns for code action ranges and completion cursor by @harehare in #2922
- 🐛 fix(lsp): report nested documentSymbol with accurate kinds and ranges by @harehare in #2923
- 🐛 fix(lsp): honor includeDeclaration from reference sites by @harehare in #2925
- 🐛 fix(lsp): reject rename of keywords and literals by @harehare in #2926
- 🐛 fix(markdown): do not double-escape a heading that is only hashes by @harehare in #2858
- 🐛 fix(markdown): render table cell line breaks as
<br>by @harehare in #2890 - 🐛 fix(markdown): keep link URLs whose prefix before a colon is not a valid scheme by @harehare in #2928
- 🐛 fix(markdown): join a relative onto base_url and use the first base[href] by @harehare in #2937
- 🐛 fix(markdown): escape line-leading markers only when they form block syntax by @harehare in #3002
- 🐛 fix(repl): skip history for piped stdin and report usage for bad arity by @harehare in #2883
- 🐛 fix(repl): name the failing file and skip duplicate paths in /load by @harehare in #2919
- 🐛 fix(repl): reject /env when --allow-env is not granted by @harehare in #2973
- 🐛 fix(run): return a miette error instead of panicking when the debugger lock is poisoned by @harehare in #2929
- 🐛 fix(run): skip unmatched nodes in text and csv output by @harehare in #2898
- 🐛 fix(test): report duplicate test function names as an error by @harehare in #2941
- 🐛 fix(test): fail @parametrize cases whose argument count does not match the parameters by @harehare in #2938
- 🐛 fix(test): fail when no tests match and name the path on coverage output errors by @harehare in #2967
- 🐛 fix(wasm): accept plain-object htmlToMarkdown options and quiet empty diagnostics by @harehare in #2882
- 🐛 fix(wasm): readable module-not-found and format() errors by @harehare in #2953
- 🐛 fix(wasm): report unresolved symbols in diagnostics by @harehare in #2969
- 🐛 fix(wasm): default all run options and treat timeoutMs 0 as no timeout by @harehare in #2972
Documentation
- 📝 docs: add examples for --count/--skip/--limit/--stream/-P/--error-f… by @harehare in #2961
- 📝 docs(cookbook): add dates and timestamps recipe by @harehare in #2950
- 📝 docs(cookbook): add sort-csv-rows and select-html-with-css-selectors to index by @harehare in #2954
- 📝 docs(help): state that markdown constructors do not escape string values by @harehare in #2893
- 📝 docs(io): list input and output limitations in input-and-output.md by @harehare in #2980
- 📝 docs(lint): add deprecated_function_call, duplicate_import and negated_condition to README rule tables by @harehare in #2979
- 📝 docs(modules): mark gen as available only under mq test by @harehare in #2981
Refactoring
- ♻ refactor(lang): make Position column u32 by @harehare in #2836
- ♻ refactor(lang): shrink Expr to 40 bytes and Node to 48 bytes by @harehare in #2837
- ♻ refactor(lang): call similar's Myers directly via text_diff by @harehare in #2899
- 🧹 chore(lang): dedupe error help text and remove allow(dead_code) by @harehare in #2903
- ♻ refactor(lang): deprecate to_date in favor of strftime by @harehare in #2920
- ♻ refactor(lang): return VmError::Corrupt instead of panicking on frame stack misuse by @harehare in #2930
- ♻ refactor(lang): drop explicit array()/dict() fast paths in the compiler by @harehare in #2934
- ♻ refactor(repl): remove the /copy command and the arboard dependency by @harehare in #3005
Performance
- ⚡ perf(lang): update captured arrays and dicts in place on index assignment by @harehare in #2835
- ⚡ perf(lang): short-circuit any and all on arrays and dicts by @harehare in #2841
- ⚡ perf(lang): skip nested coroutine scan until a coroutine exists by @harehare in #2840
- ⚡ perf(lang): compute builtin dependencies lazily and scan def names faster by @harehare in #2843
- ⚡ perf(lang): compute builtin dependencies lazily and scan def names faster by @harehare in #2845
- ⚡ perf(lang): make difference, intersection and group_by linear by @harehare in #2857
- ⚡ perf(lang): add PathAssign node so nested index assignment is linear by @harehare in #2861
- ⚡ perf(lang): switch plain call frames inside the opcode loop by @harehare in #2867
- ⚡ perf(lang): avoid per-call frame chunk clone and pop-reverse of call args by @harehare in #2927
- ⚡ perf(lang): move a local on its last use when later pure arguments also read it by @harehare in #2866
- ⚡ perf(lang): evaluate the keys and value of an index assignment before reading the target by @harehare in #2997
- ⚡ perf(lang): make is_none, is_number and the other type predicates native builtins by @harehare in #2996
- ⚡ perf(lang): make unzip linear and stop copying the result array in section loops by @harehare in #3003
- ⚡ perf(markdown): presize line and root node lists by @harehare in #2849
- ⚡ perf(markdown): reserve top-level block and node lists up front by @harehare in #2850
- ⚡ perf(markdown): speed up parsing of lines, inline spans and top-level blocks by @harehare in #2976
- ⚡ perf(run): speed up output, input reading and external subcommand lookup by @harehare in #2977
Test
- test(security): cover sandbox escape patterns (symlink chains/loops, nonexistent writes, case, --allow-run names) by @harehare in #2998
- ✅ test(check): accept literal field types in runtime conformance by @harehare in #2958
- ✅ test(lang): fix flaky cycle threshold test under sync by @harehare in #2842
- ✅ test(lsp): add stdio JSON-RPC integration test harness by @harehare in #2966
- ✅ test(markdown): add html heading cases with links and images by @harehare in #2902
- ✅ test(markdown): drop fixed spec examples from the known differences by @harehare in #2988
Other
- 👷 ci: add test-miri task and manual Miri workflow by @harehare in #2852
- 👷 ci(lang): check mq-lang .mq formatting with mq-fmt by @harehare in #2889
- 👷 ci: lint and type check repository .mq files with mq-lint and mq-check by @harehare in #2956
Dependency Updates
- chore(deps): bump ureq from 3.5.0 to 3.5.1 in the dependencies group by @dependabot[bot] in #2856
- chore(deps): bump the dependencies group with 3 updates by @dependabot[bot] in #2855
- chore(deps-dev): bump the dependencies group in /packages/mq-playground with 3 updates by @dependabot[bot] in #2854
- chore(deps-dev): bump vitest from 5.0.5 to 5.1.0 in /packages/mq-web in the dependencies group by @dependabot[bot] in #2853
- chore(deps-dev): bump oxlint from 1.90.0 to 1.91.0 in /editors/vscode in the dependencies group by @dependabot[bot] in #2862
- chore(deps-dev): bump oxlint from 1.90.0 to 1.91.0 in /packages/mq-web in the dependencies group by @dependabot[bot] in #2863
- chore(deps-dev): bump the dependencies group in /packages/mq-playground with 2 updates by @dependabot[bot] in #2864
- chore(deps): bump the dependencies group with 5 updates by @dependabot[bot] in #2865
- chore(deps): bump toml from 1.1.8+spec-1.1.0 to 1.2.0+spec-1.1.0 in the dependencies group by @dependabot[bot] in #2888
- chore(deps): bump the dependencies group with 3 updates by @dependabot[bot] in #2887
- chore(deps-dev): bump @babel/core from 7.29.7 to 8.1.0 in /packages/mq-playground in the dependencies group by @dependabot[bot] in #2886
- chore(deps-dev): bump @types/vscode from 1.144.0 to 1.145.0 in /editors/vscode in the dependencies group by @dependabot[bot] in #2885
- chore(deps): bump docker/login-action from 4.7.0 to 4.8.0 in the dependencies group by @dependabot[bot] in #2897
- chore(deps-dev): bump the dependencies group in /packages/mq-playground with 3 updates by @dependabot[bot] in #2896
- chore(deps): bump the dependencies group with 2 updates by @dependabot[bot] in #2913
- chore(deps-dev): bump oxlint from 1.91.0 to 1.92.0 in /editors/vscode in the dependencies group by @dependabot[bot] in #2910
- chore(deps-dev): bump oxlint from 1.91.0 to 1.92.0 in /packages/mq-web in the dependencies group by @dependabot[bot] in #2911
- chore(deps-dev): bump the dependencies group in /packages/mq-playground with 2 updates by @dependabot[bot] in #2912
- build(deps): bump taiki-e/install-action from 2.90.1 to 2.90.3 in the dependencies group by @dependabot[bot] in #2987
- build(deps): bump the dependencies group with 5 updates by @dependabot[bot] in #2986
- build(deps-dev): bump the dependencies group in /packages/mq-playground with 4 updates by @dependabot[bot] in #2985
- build(deps): bump rust from
aab4239tof6c4a35in the dependencies group by @dependabot[bot] in #2984 - build(deps-dev): bump oxlint from 1.92.0 to 1.93.0 in /packages/mq-web in the dependencies group by @dependabot[bot] in #2983
- build(deps-dev): bump oxlint from 1.92.0 to 1.93.0 in /editors/vscode in the dependencies group by @dependabot[bot] in #2982
- build(deps-dev): bump the dependencies group in /packages/mq-playground with 2 updates by @dependabot[bot] in #2993
- build(deps-dev): bump @types/vscode from 1.145.0 to 1.146.0 in /editors/vscode in the dependencies group by @dependabot[bot] in #2999
- build(deps-dev): bump the dependencies group in /packages/mq-playground with 2 updates by @dependabot[bot] in #3000
- build(deps): bump ureq from 3.5.1 to 3.5.2 in the dependencies group by @dependabot[bot] in #3011
- build(deps-dev): bump the dependencies group in /packages/mq-playground with 2 updates by @dependabot[bot] in #3009
- build(deps): bump harehare/setup-mq from 1.1.6 to 1.1.7 in the dependencies group by @dependabot[bot] in #3010
Full Changelog: v0.10.1...v0.10.2