fix(deps): update all dependencies #3
Reference in New Issue
Block a user
No description provided.
Delete Branch "renovate/all"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR contains the following updates:
2.17.0->2.24.0^2.8.8->^3.0.0~0.20.10->~0.25.0^0.20.8->^0.25.0^0.20.0->^0.24.0Release Notes
nodejs/nan (nan)
v2.24.0Compare Source
fd5ff3fv2.23.1Compare Source
9e1106av2.23.0Compare Source
59ab6d0v2.22.2Compare Source
ScriptOriginconstructors (#989)053239dv2.22.1Compare Source
b5d90f1v2.22.0Compare Source
6bd62c9v2.21.0Compare Source
a7df36ev2.20.0Compare Source
5805ca5v2.19.0Compare Source
1b630ddv2.18.0Compare Source
bdfee17prettier/prettier (prettier)
v3.7.4Compare Source
diff
LWC: Avoid quote around interpolations (#18383 by @kovsu)
TypeScript: Fix comment inside union type gets duplicated (#18393 by @fisker)
TypeScript: Fix unstable comment print in union type comments (#18395 by @fisker)
v3.7.3Compare Source
diff
API: Fix
prettier.getFileInfo()change that breaks VSCode extension (#18375 by @fisker)An internal refactor accidentally broke the VSCode extension plugin loading.
v3.7.2Compare Source
diff
JavaScript: Fix string print when switching quotes (#18351 by @fisker)
JavaScript: Preserve quote for embedded HTML attribute values (#18352 by @kovsu)
TypeScript: Fix comment in empty type literal (#18364 by @fisker)
v3.7.1Compare Source
diff
API: Fix performance regression in doc printer (#18342 by @fisker)
Prettier 3.7.0 can be very slow when formatting big files, the regression has been fixed.
v3.7.0Compare Source
diff
🔗 Release Notes
v3.6.2Compare Source
diff
Markdown: Add missing blank line around code block (#17675 by @fisker)
v3.6.1Compare Source
diff
TypeScript: Allow const without initializer (#17650, #17654 by @fisker)
Miscellaneous: Avoid closing files multiple times (#17665 by @43081j)
When reading a file to infer the interpreter from a shebang, we use the
n-readlineslibrary to read the first line in order to get the shebang.This library closes files when it reaches EOF, and we later try close the same
files again. We now close files only if
n-readlinesdid not already closethem.
v3.6.0Compare Source
diff
🔗 Release Notes
v3.5.3Compare Source
diff
Flow: Fix missing parentheses in
ConditionalTypeAnnotation(#17196 by @fisker)v3.5.2Compare Source
diff
Remove
module-synccondition (#17156 by @fisker)In Prettier 3.5.0, we added
module-synccondition topackage.json, so thatrequire("prettier")can use ESM version, but turns out it doesn't work if CommonJS and ESM plugins both imports builtin plugins. To solve this problem, we decide simply remove themodule-synccondition, sorequire("prettier")will still use the CommonJS version, we'll revisit untilrequire(ESM)feature is more stable.v3.5.1Compare Source
diff
Fix CLI crash when cache for old version exists (#17100 by @sosukesuzuki)
Prettier 3.5 uses a different cache format than previous versions, Prettier 3.5.0 crashes when reading existing cache file, Prettier 3.5.1 fixed the problem.
Support dockercompose and github-actions-workflow in VSCode (#17101 by @remcohaszing)
Prettier now supports the
dockercomposeandgithub-actions-workflowlanguages in Visual Studio Code.v3.5.0Compare Source
diff
🔗 Release Notes
v3.4.2Compare Source
diff
Treat U+30A0 & U+30FB in Katakana Block as CJK (#16796 by @tats-u)
Prettier doesn't treat U+30A0 & U+30FB as Japanese. U+30FB is commonly used in Japanese to represent the delimitation of first and last names of non-Japanese people or “and”. The following “C言語・C++・Go・Rust” means “C language & C++ & Go & Rust” in Japanese.
U+30A0 can be used as the replacement of the
-in non-Japanese names (e.g. “Saint-Saëns” (Charles Camille Saint-Saëns) can be represented as “サン゠サーンス” in Japanese), but substituted by ASCII hyphen (U+002D) or U+FF1D (full width hyphen) in many cases (e.g. “サン=サーンス” or “サン=サーンス”).Fix comments print on class methods with decorators (#16891 by @fisker)
Fix non-idempotent formatting (#16899 by @seiyab)
This bug fix is not language-specific. You may see similar change in any languages. This fixes regression in 3.4.0 so change caused by it should yield same formatting as 3.3.3.
v3.4.1Compare Source
diff
Remove unnecessary parentheses around assignment in
v-on(#16887 by @fisker)v3.4.0Compare Source
diff
🔗 Release Notes
v3.3.3Compare Source
diff
Add parentheses for nullish coalescing in ternary (#16391 by @cdignam-segment)
This change adds clarity to operator precedence.
Add parentheses for decorator expressions (#16458 by @y-schneider)
Prevent parentheses around member expressions or tagged template literals from being removed to follow the stricter parsing rules of TypeScript 5.5.
Support
@letdeclaration syntax (#16474 by @sosukesuzuki)Adds support for Angular v18
@letdeclaration syntax.Please see the following code example. The
@letdeclaration allows you to define local variables within the template:For more details, please refer to the excellent blog post by the Angular Team: Introducing @let in Angular.
We also appreciate the Angular Team for kindly answering our questions to implement this feature.
v3.3.2Compare Source
diff
Fix handlebars path expressions starts with
@(#16358 by @Princeyadav05)v3.3.1Compare Source
diff
Preserve empty lines in front matter (#16347 by @fisker)
Preserve explicit language in front matter (#16348 by @fisker)
Avoid line breaks in import attributes (#16349 by @fisker)
v3.3.0Compare Source
diff
🔗 Release Notes
v3.2.5Compare Source
diff
Support Angular inline styles as single template literal (#15968 by @sosukesuzuki)
Angular v17 supports single string inline styles.
Unexpected embedded formatting for Angular template (#15969 by @JounQin)
Computed template should not be considered as Angular component template
Use
"json"parser fortsconfig.jsonby default (#16012 by @sosukesuzuki)In v3.2.0, we introduced
"jsonc"parser which adds trailing comma by default.When adding a new parser we also define how it will be used based on the
linguist-languagesdata.tsconfig.jsonis a special file used by TypeScript, it uses.jsonfile extension, but it actually uses the JSON with Comments syntax. However, we found that there are many third-party tools not recognize it correctly because of the confusing.jsonfile extension.We decide to treat it as a JSON file for now to avoid the extra configuration step.
To keep using the
"jsonc"parser for yourtsconfig.jsonfiles, add the following to your.prettierrcfilev3.2.4Compare Source
prettier --file-info tsconfig.json
{ "ignored": false, "inferredParser": "jsonc" }
v3.2.3Compare Source
diff
Throw errors for invalid code (#15881 by @fisker, @Josh-Cena, @auvred)
Fix parser inference (#15927 by @fisker)
v3.2.2Compare Source
diff
Fix crash when parsing template literal CSS in a JSX style tag using a spread attribute (#15896 by @eelco)
For example this code would crash before:
Fix formatting error on optional call expression and member chain (#15920 by @sosukesuzuki)
v3.2.1Compare Source
diff
Fix formatting error on member chain (#15915 by @sosukesuzuki)
v3.2.0Compare Source
diff
🔗 Release Notes
v3.1.1Compare Source
diff
Fix config file search (#15363 by @fisker)
Previously, we start search for config files from the filePath as a directory, if it happened to be a directory and contains config file, it will be used by mistake.
Skip explicitly passed symbolic links with
--no-error-on-unmatched-pattern(#15533 by @sanmai-NL)Since Prettier v3, we stopped following symbolic links, however in some use cases, the symbolic link patterns can't be filtered out, and there is no way to prevent Prettier from throwing errors.
In Prettier 3.1.1, you can use
--no-error-on-unmatched-patternto simply skip symbolic links.Consistently use tabs in ternaries when
useTabsistrue(#15662 by @auvred)Improve config file search (#15663 by @fisker)
The Prettier config file search performance has been improved by more effective cache strategy.
Fix unstable and ugly formatting for comments in destructuring patterns (#15708 by @sosukesuzuki)
Support "Import Attributes" (#15718 by @fisker)
TypeScript 5.3 supports the latest updates to the import attributes proposal.
Fix false claim in docs that cursorOffset is incompatible with rangeStart/rangeEnd (#15750 by @ExplodingCabbage)
The cursorOffset option has in fact been compatible with rangeStart/rangeEnd for over 5 years, thanks to work by @ds300. However, Prettier's documentation (including the CLI
--helptext) continued to claim otherwise, falsely. The documentation is now fixed.Keep curly braces and
fromkeyword in emptyimportstatements (#15756 by @fisker)Keep empty import attributes and assertions (#15757 by @fisker)
v3.1.0Compare Source
diff
🔗 Release Notes
v3.0.3Compare Source
diff
Add
preferUnplugged: truetopackage.json(#15169 by @fisker and @so1ve)Prettier v3 uses dynamic imports, user will need to unplug Prettier when Yarn's PnP mode is enabled, add
preferUnplugged: truetopackage.json, so Yarn will install Prettier as unplug by default.Support shared config that forbids
require()(#15233 by @fisker)If an external shared config package is used, and the package
exportsdon't haverequireordefaultexport.In Prettier 3.0.2 Prettier fails when attempt to
require()the package, and throws an error.Allow argument of
require()to break (#15256 by @fisker)Do not print trailing commas in arrow function type parameter lists in
tscode blocks (#15286 by @sosukesuzuki)Support TypeScript 5.2
using/await usingdeclaration (#15321 by @sosukesuzuki)Support for the upcoming Explicit Resource Management feature in ECMAScript.
using/await usingdeclarationv3.0.2Compare Source
diff
Break after
=of assignment if RHS is poorly breakable AwaitExpression or YieldExpression (#15204 by @seiyab)Do not add trailing comma for grouped scss comments (#15217 by @auvred)
Print
declareandexportkeywords for nested namespace (#15249 by @sosukesuzuki)v3.0.1Compare Source
diff
Fix cursor positioning for a special case (#14812 by @fisker)
Fix plugins/estree.d.ts to make it a module (#15018 by @kingyue737)
Add
export {}inplugins/estree.d.tsto fix the "File is not a module" errorAdd parenthesis around leading multiline comment in return statement (#15037 by @auvred)
Add support for Vue "Generic Components" (#15066 by @auvred)
https://blog.vuejs.org/posts/vue-3-3#generic-components
Fix comments print in
IfStatement(#15076 by @fisker)Add missing type definition for
printer.preprocess(#15123 by @so1ve)Add missing
getVisitorKeysmethod type definition forPrinter(#15125 by @auvred)Add typing to support
readonlyarray properties of AST Node (#15127 by @auvred)Add space before unary minus followed by a function call (#15129 by @pamelalozano)
v3.0.0Compare Source
diff
🔗 Release Notes
tree-sitter/tree-sitter (tree-sitter)
v0.25.10Compare Source
v0.25.9Compare Source
What's Changed
Veccapacities by @tree-sitter-ci-bot[bot] in https://github.com/tree-sitter/tree-sitter/pull/4629Node::utf16_textby @tree-sitter-ci-bot[bot] in https://github.com/tree-sitter/tree-sitter/pull/4663var_i32_typeafter initializing global stack pointer value by @tree-sitter-ci-bot[bot] in https://github.com/tree-sitter/tree-sitter/pull/4732ERRORnode is named before assuming it's the builtin error node by @tree-sitter-ci-bot[bot] in https://github.com/tree-sitter/tree-sitter/pull/4746New Contributors
Full Changelog: https://github.com/tree-sitter/tree-sitter/compare/v0.25.8...v0.25.9
v0.25.8Compare Source
What's Changed
Full Changelog: https://github.com/tree-sitter/tree-sitter/compare/v0.25.7...v0.25.8
v0.25.7Compare Source
What's Changed
testcommand to a single thread on windows by @tree-sitter-ci-bot[bot] in https://github.com/tree-sitter/tree-sitter/pull/4504extrafield innode-types.jsonby @tree-sitter-ci-bot[bot] in https://github.com/tree-sitter/tree-sitter/pull/4569Veccapacities where appropriate by @tree-sitter-ci-bot[bot] in https://github.com/tree-sitter/tree-sitter/pull/4581Full Changelog: https://github.com/tree-sitter/tree-sitter/compare/v0.25.6...v0.25.7
v0.25.6Compare Source
What's Changed
Full Changelog: https://github.com/tree-sitter/tree-sitter/compare/v0.25.5...v0.25.6
v0.25.5Compare Source
What's Changed
Full Changelog: https://github.com/tree-sitter/tree-sitter/compare/v0.25.4...v0.25.5
v0.25.4Compare Source
What's Changed
make installshouldn’t fail when a parser bundles no queries by @tree-sitter-ci-bot in https://github.com/tree-sitter/tree-sitter/pull/4291BTreeMapoverIndexMapfor highlight configs by @tree-sitter-ci-bot in https://github.com/tree-sitter/tree-sitter/pull/4382moveby @tree-sitter-ci-bot in https://github.com/tree-sitter/tree-sitter/pull/4410endsubtree ints_subtree_summarize_childrenby @tree-sitter-ci-bot in https://github.com/tree-sitter/tree-sitter/pull/4418last_child_step_indexin cases where a new step wasn't created. by @tree-sitter-ci-bot in https://github.com/tree-sitter/tree-sitter/pull/4428Full Changelog: https://github.com/tree-sitter/tree-sitter/compare/v0.25.3...v0.25.4
v0.25.3Compare Source
Bug Fixes
v0.25.2Compare Source
Bug Fixes
result_symbol(#4218)Build
tree-sitter-languagesandtree-sittercrates (#4221)v0.25.1Compare Source
Changelog
[0.25.1] — 2025-02-02
Features
Bug Fixes
languagefunctionDocumentation
Build System and CI
ubuntu-22.04for x64 builds (#4175)Other
v0.25.0Compare Source
Changelog
[0.25.0] — 2025-02-01
Notices
This is a large release. As such, a few major changes and how to adapt to them are outlined below:
web-tree-sitterwas rewritten in TypeScript. With that, we also now publish the sourcemaps, and debug builds for the library. We also publish both CommonJS and ESM modules.tree-sitter.jsonfile in your repository, since the version information for the parser is pulled from this file.time.hheaders in the core library.MISSINGnodes can now be queried, and queries involving supertypes are properly validated now.ts_node_child_containing_descendantfunction was removed; usets_node_child_with_descendantinstead (which has nearly the same behavior but can also returndescendant.)TSInputnow includes a (mandatory) new fieldDecodeFunction, which allows passing a custom decode function. To use the builtin function, passNULL.RustRegexfunction, which takes in a Rust regex as a string. All of the capabilities of Rust's regex engine are available here, which allows for some nice features that aren't possible with JavaScript regexes.Breaking
tree-sitter.json(#4107)regex_syntax::Hirfor expanding regexes (#3831)ts_node_child_containing_descendant(#4107)patterntopatternIndexinQueryMatch(#4141)Language.queryin favor ofnew Query(#4141)Features
versionsubcommand for versioning grammars (#3786)get_column(#2503)emscripten-version(#4015)lazy_staticin favor ofLazyLock(#4130)web-tree-sitter.d.ts(#4121)patternIndexfield toQueryCapture(#4141)PredicateSteptypes (#4141)cc1.2 for Rust (#4156)initcommand (#3999)parse --time(#4016)testsubcommand to include/exclude by corpus test file names (#4095).expand.libfiles to gitignore template (#4079)node-types.json(#4116)tree-sitter.jsondoesn't exist, rather than hard failing (#4156)TSHighlighterfields as pub (#3990)fundingfield (#4142)class-namefield to grammars (#4142)titlefield to grammars (#4142)ts_parser_parse_with_options(#3843)ts_query_cursor_exec_with_options(#3843)constforTSCharacterRanges(#4027)Send+SyncforWasmStore(#4130)language_for_configuration(#3816)tree-sitter.jsonfile is invalid (#3897)Language::node_kind_is_supertype(#3788)*_with_optionsto the parser and query cursor, deprecate old functions (#3843)thiserrorforgeneratecrate (#4048)Send+SyncforTagsConfiguration(#4130)--watchoption forbuild-wasmandcheck-wasm-exportsxtask commands (#4082)Bug Fixes
LanguageRefinParser::language(#3797)StreamingIteratorandStreamingIteratorMut(#4034)platform (#4106)
build_parse_table(#3798)tree-sitter.jsonininit(#3856)containsoverisin warning (#3867).(#4142)kebab-casename is expected (#4142)ts_query_cursor_set(#3865)node_descendant_for(#3865)get_columnwhen the lexer is at EOF (#3764)endian.h(#3772)subtree.h(#3787)clock_gettimeon macOS again (#3976)last_childstatus to pattern alternatives in queries (#4067)JavaScriptif the select info is undefinedPathBuffor--query-pathshighlightoption (#4071)ERRORindescendantsOfType(#4103)getExtent(#4074)check-artifactsscript (#4158)test_flagsarg if it's empty for cargo test (#3889)check-wasm-exportsto web changes (#4121)Performance
Documentation
npm installfor editor integration (#3855)contributing.md--test-numberentries for query, highlight, and tag subcommands (#4054)QueryCapturesduring iteration (#4073)ts_tree_get_changed_rangesandts_query_cursor_set_{byte,point}_range(#4114)--lockedto installation instructions (#3850)scanfunctionRefactor
ansi_colours(#4151)CaptureQuantifierdefinition (#4141)Testing
assert_eqcallsBuild System and CI
Cargo.tomls (#3754)cliff.toml(#3831)bindings.rs& addLanguage::name(#3847)ciif documentation files & friends have changedweb-tree-sitter(#4121)tree-sitter-languageto 0.1.4api.horbindings.rschanges (#4036)commit.githubtocommit.remote(#4116)docshas changedtree-sitter.pcgeneration (#3745) (#3745)filesin package.json instead of.npmignore(#4121)Other
extends beyondtocontains or starts after(#4046)FUNDING.ymlFUNDING.ymlv0.24.7Compare Source
[0.24.7] - 2025-01-12
Bug Fixes
v0.24.6Compare Source
[0.24.6] - 2024-12-27
Bug Fixes
v0.24.5Compare Source
[0.24.5] - 2024-12-11
Features
Bug Fixes
clock_gettimeon macOS againBuild System and CI
Other
v0.24.4Compare Source
[0.24.4] - 2024-11-10
Features
language_for_configurationtree-sitter.jsonfile is invalidBug Fixes
LanguageRefinParser::languagetree-sitter.jsonininitcontainsoverisin warningPerformance
Build System and CI
Other
v0.24.3Compare Source
[0.24.3] - 2024-10-09
Bug Fixes
get_columnwhen the lexer is at EOFBuild System and CI
v0.24.2Compare Source
[0.24.2] - 2024-10-06
Features
Bug Fixes
Build System and CI
tree-sitter.pcgeneration (#3745)Other
v0.24.1Compare Source
[0.24.1] - 2024-10-04
Bug Fixes
v0.24.0Compare Source
[0.24.0] - 2024-10-04
Breaking
filterflag from commands in favor ofincludeandexclude(#3604)build-wasmsubcommand (#3605)initcommand (#3694)StreamingIteratorinstead ofIteratorforQueryMatchesandQueryCaptures(#3504)goto_first_child_for_{byte,point}(#3263)Features
field_name_for_named_child(#3614)rootfield in node-types.json (#3615)rebuildflag to force rebuild parsers (#3672)--overview-onlytotestsubcommand (#3501)go-tree-sitterversion (#3564)no-rangesflag to the parse command (#3687)tree-sitterdev dependency to0.23(#3563)--no-bindingsflagBug Fixes
child_containing_descendantand addchild_with_descendantinstead (#3708)editsignature (#3599)RUST_BINDING_VERSIONinCargo.tomltemplate1.22(#3711)fuzzsubcommand (#3562)fuzzcommand (#3635) (#3635):skip& don't report errors on tests marked with:error(#3640)tree-sitterto thedev-dependenciesof the Cargo.toml (#3597)Package.swift(#3631)*.scmsection to.editorconfigtemplate (#3724)package.jsonon error (#3718)-Wpedantic(#3691):errorhas no errortest -u(#3572)Documentation
Refactor
Build System and CI
0.1.1(#3730)bump-versionOther
compile_flags.txt(#3667).as_bytes().len()on strings (#3664)v0.23.2Compare Source
[0.23.2] - 2024-10-01
This release only corrected the version in a crate so publishing wouldn't fail.
v0.23.0Compare Source
[0.23.0] - 2024-08-26
Breaking
Features
fuzzsubcommand (#3385)grammar.jsoncannot be found (#3405)--show-fieldsflag totestcommand (#3502)ts_query_end_byte_for_pattern(#3451)Bug Fixes
preceding_auxiliary_symbols(#3550)cargo.tomltemplate (#3532)tv_nsecbe 0 as well (#3372)CARGO_MANIFEST_DIRat runtime in build script (#3352)Performance
Documentation
Refactor
Testing
Build System and CI
Other
sprintf()forsnprintf()(#3430).buildto gitignore (#3498)v0.22.6Compare Source
[0.22.6] — 2024-05-05
Features
NO_COLOR(#3299)Bug Fixes
tree-sitterfield is malformed--no-bindingsis passed (#3323)AsRef<Path>for the path parameter to avoid clones (#3322)ts_highlighter_add_languagechildrenFromFieldXXXmethod signatures (#3301)Documentation
\sfor\\sin query exampleRefactor
grammar.jsontests togrammar.js(#3325)Build System and CI
build.zig.zonversion when bumping versionsv0.22.5Compare Source
[0.22.5] — 2024-04-14
Bug Fixes
v0.22.4Compare Source
[0.22.4] — 2024-04-12
Bug Fixes
Build System and CI
v0.22.3Compare Source
[0.22.3] — 2024-04-12
Features
Bug Fixes
&&(#3274)children in
ts_subtree_string(#3191)/utf-8flag for parsers using unicode symbols (#3223)build-wasmtemporarily (#3203)build --wasmshould use current_dir (#3203)QueryCursor::captures()(#3266)build.rsPerformance
Documentation
Refactor
Testing
Build System and CI
v0.22.2Compare Source
[0.22.2] — 2024-03-17
Breaking
Features
Parser::included_rangesBug Fixes
Parser.getIncludedRanges()(#3164)array_grow_by(#3176)Documentation
Refactor
Testing
Build System and CI
v0.22.1Compare Source
Changelog
[0.22.1] — 2024-03-10
Bug Fixes
v0.22.0Compare Source
Changelog
[0.22.0] — 2024-03-10
Breaking
corpusdir for testsThe cli will now only look in
test/corpusfor testscurrent*,is*, andhas*methods properties (#3103)Features
nanwithnode-addon-apiand conditionally print logsBug Fixes
scan-buildsuggestions (unused assignment/garbage access) (#3056)||comparison in parentheses when&&is used (#3070)binding.ccoverwrite should replacePARSER_NAME(#3116)__declspec(dllexport)on windows (#3128)vflag (#3154)typesaftermainif it exists (#3122)--no-bindings(#3123).npmignore, populate Swift's exclude list (#3085)Cargo.tomldescription (#3140)api.hsots_set_allocatoris visible (#3092)Documentation
Ohmlanguage parserthe's (#3120)Refactor
Testing
Build System and CI
ccto remove annoying debug output (#3075)Cargo.lockneeds to be updated (#3066)Other
They don't have any dynamic global data, so all it takes is just declaring them as such
When building rust binding, use wasmtime headers provided via cargo
by the wasmtime-c-api crate.
Allowing this invalid merge caused an invariant to be violated
later on during parsing, when handling a later error.
subtree_compare(#3111)Ohmlanguage parser (#3114)binding_files.rs(#3106)v0.21.0Changelog
[0.21.0] - 2024-02-21
Breaking
Remove the apply-all-captures flag, make last-wins precedence the default
NOTE: This change might cause breakage in your grammar's highlight tests.
Just flip the order around of the relevant queries, and keep in mind that the
last query that matches will win.
Features
extrasarraygrammar-pathargument for the playground (https://github.com/tree-sitter/tree-sitter/pull/3014)config-pathargument (https://github.com/tree-sitter/tree-sitter/pull/3050)Bug Fixes
externalsmapin the grammar (https://github.com/tree-sitter/tree-sitter/pull/3041)longforgrammar_pathUNEXPECTED/MISSINGnodes with an indentation level greater than 0Documentation
token($.foo)is illegalTSTreeCursor(https://github.com/tree-sitter/tree-sitter/pull/3021)Tactlanguage parser (https://github.com/tree-sitter/tree-sitter/pull/3030)Refactor
&PathBuf->&Path(https://github.com/tree-sitter/tree-sitter/pull/3035)Testing
Build System and CI
Other
log.html(https://github.com/tree-sitter/tree-sitter/pull/2996)token/token.immediate(https://github.com/tree-sitter/tree-sitter/pull/3036)github_issue_testfile (https://github.com/tree-sitter/tree-sitter/pull/3055)emcc's stdout and stderr (https://github.com/tree-sitter/tree-sitter/pull/2494)SIDE_MODULE=2to silence warning (https://github.com/tree-sitter/tree-sitter/pull/3003)tree-sitter/tree-sitter (tree-sitter-cli)
v0.25.10Compare Source
v0.25.9Compare Source
What's Changed
Veccapacities by @tree-sitter-ci-bot[bot] in https://github.com/tree-sitter/tree-sitter/pull/4629Node::utf16_textby @tree-sitter-ci-bot[bot] in https://github.com/tree-sitter/tree-sitter/pull/4663var_i32_typeafter initializing global stack pointer value by @tree-sitter-ci-bot[bot] in https://github.com/tree-sitter/tree-sitter/pull/4732ERRORnode is named before assuming it's the builtin error node by @tree-sitter-ci-bot[bot] in https://github.com/tree-sitter/tree-sitter/pull/4746New Contributors
Full Changelog: https://github.com/tree-sitter/tree-sitter/compare/v0.25.8...v0.25.9
v0.25.8Compare Source
What's Changed
Full Changelog: https://github.com/tree-sitter/tree-sitter/compare/v0.25.7...v0.25.8
v0.25.7Compare Source
What's Changed
testcommand to a single thread on windows by @tree-sitter-ci-bot[bot] in https://github.com/tree-sitter/tree-sitter/pull/4504extrafield innode-types.jsonby @tree-sitter-ci-bot[bot] in https://github.com/tree-sitter/tree-sitter/pull/4569Veccapacities where appropriate by @tree-sitter-ci-bot[bot] in https://github.com/tree-sitter/tree-sitter/pull/4581Full Changelog: https://github.com/tree-sitter/tree-sitter/compare/v0.25.6...v0.25.7
v0.25.6Compare Source
What's Changed
Full Changelog: https://github.com/tree-sitter/tree-sitter/compare/v0.25.5...v0.25.6
v0.25.5Compare Source
What's Changed
Full Changelog: https://github.com/tree-sitter/tree-sitter/compare/v0.25.4...v0.25.5
v0.25.4Compare Source
What's Changed
make installshouldn’t fail when a parser bundles no queries by @tree-sitter-ci-bot in https://github.com/tree-sitter/tree-sitter/pull/4291BTreeMapoverIndexMapfor highlight configs by @tree-sitter-ci-bot in https://github.com/tree-sitter/tree-sitter/pull/4382moveby @tree-sitter-ci-bot in https://github.com/tree-sitter/tree-sitter/pull/4410endsubtree ints_subtree_summarize_childrenby @tree-sitter-ci-bot in https://github.com/tree-sitter/tree-sitter/pull/4418last_child_step_indexin cases where a new step wasn't created. by @tree-sitter-ci-bot in https://github.com/tree-sitter/tree-sitter/pull/4428Full Changelog: https://github.com/tree-sitter/tree-sitter/compare/v0.25.3...v0.25.4
v0.25.3Compare Source
Bug Fixes
v0.25.2Compare Source
Bug Fixes
result_symbol(#4218)Build
tree-sitter-languagesandtree-sittercrates (#4221)v0.25.1Compare Source
Changelog
[0.25.1] — 2025-02-02
Features
Bug Fixes
languagefunctionDocumentation
Build System and CI
ubuntu-22.04for x64 builds (#4175)Other
v0.25.0Compare Source
Changelog
[0.25.0] — 2025-02-01
Notices
This is a large release. As such, a few major changes and how to adapt to them are outlined below:
web-tree-sitterwas rewritten in TypeScript. With that, we also now publish the sourcemaps, and debug builds for the library. We also publish both CommonJS and ESM modules.tree-sitter.jsonfile in your repository, since the version information for the parser is pulled from this file.time.hheaders in the core library.MISSINGnodes can now be queried, and queries involving supertypes are properly validated now.ts_node_child_containing_descendantfunction was removed; usets_node_child_with_descendantinstead (which has nearly the same behavior but can also returndescendant.)TSInputnow includes a (mandatory) new fieldDecodeFunction, which allows passing a custom decode function. To use the builtin function, passNULL.RustRegexfunction, which takes in a Rust regex as a string. All of the capabilities of Rust's regex engine are available here, which allows for some nice features that aren't possible with JavaScript regexes.Breaking
tree-sitter.json(#4107)regex_syntax::Hirfor expanding regexes (#3831)ts_node_child_containing_descendant(#4107)patterntopatternIndexinQueryMatch(#4141)Language.queryin favor ofnew Query(#4141)Features
versionsubcommand for versioning grammars (#3786)get_column(#2503)emscripten-version(#4015)lazy_staticin favor ofLazyLock(#4130)web-tree-sitter.d.ts(#4121)patternIndexfield toQueryCapture(#4141)PredicateSteptypes (#4141)cc1.2 for Rust (#4156)initcommand (#3999)parse --time(#4016)testsubcommand to include/exclude by corpus test file names (#4095).expand.libfiles to gitignore template (#4079)node-types.json(#4116)tree-sitter.jsondoesn't exist, rather than hard failing (#4156)TSHighlighterfields as pub (#3990)fundingfield (#4142)class-namefield to grammars (#4142)titlefield to grammars (#4142)ts_parser_parse_with_options(#3843)ts_query_cursor_exec_with_options(#3843)constforTSCharacterRanges(#4027)Send+SyncforWasmStore(#4130)language_for_configuration(#3816)tree-sitter.jsonfile is invalid (#3897)Language::node_kind_is_supertype(#3788)*_with_optionsto the parser and query cursor, deprecate old functions (#3843)thiserrorforgeneratecrate (#4048)Send+SyncforTagsConfiguration(#4130)--watchoption forbuild-wasmandcheck-wasm-exportsxtask commands (#4082)Bug Fixes
LanguageRefinParser::language(#3797)StreamingIteratorandStreamingIteratorMut(#4034)platform (#4106)
build_parse_table(#3798)tree-sitter.jsonininit(#3856)containsoverisin warning (#3867).(#4142)kebab-casename is expected (#4142)ts_query_cursor_set(#3865)node_descendant_for(#3865)get_columnwhen the lexer is at EOF (#3764)endian.h(#3772)subtree.h(#3787)clock_gettimeon macOS again (#3976)last_childstatus to pattern alternatives in queries (#4067)JavaScriptif the select info is undefinedPathBuffor--query-pathshighlightoption (#4071)ERRORindescendantsOfType(#4103)getExtent(#4074)check-artifactsscript (#4158)test_flagsarg if it's empty for cargo test (#3889)check-wasm-exportsto web changes (#4121)Performance
Documentation
npm installfor editor integration (#3855)contributing.md--test-numberentries for query, highlight, and tag subcommands (#4054)QueryCapturesduring iteration (#4073)ts_tree_get_changed_rangesandts_query_cursor_set_{byte,point}_range(#4114)--lockedto installation instructions (#3850)scanfunctionRefactor
ansi_colours(#4151)CaptureQuantifierdefinition (#4141)Testing
assert_eqcallsBuild System and CI
Cargo.tomls (#3754)cliff.toml(#3831)bindings.rs& addLanguage::name(#3847)ciif documentation files & friends have changedweb-tree-sitter(#4121)tree-sitter-languageto 0.1.4api.horbindings.rschanges (#4036)commit.githubtocommit.remote(#4116)docshas changedtree-sitter.pcgeneration (#3745) (#3745)filesin package.json instead of.npmignore(#4121)Other
extends beyondtocontains or starts after(#4046)FUNDING.ymlFUNDING.ymlv0.24.7Compare Source
[0.24.7] - 2025-01-12
Bug Fixes
v0.24.6Compare Source
[0.24.6] - 2024-12-27
Bug Fixes
v0.24.5Compare Source
[0.24.5] - 2024-12-11
Features
Bug Fixes
clock_gettimeon macOS againBuild System and CI
Other
v0.24.4Compare Source
[0.24.4] - 2024-11-10
Features
language_for_configurationtree-sitter.jsonfile is invalidBug Fixes
LanguageRefinParser::languagetree-sitter.jsonininitcontainsoverisin warningPerformance
Build System and CI
Other
v0.24.3Compare Source
[0.24.3] - 2024-10-09
Bug Fixes
get_columnwhen the lexer is at EOFBuild System and CI
v0.24.2Compare Source
[0.24.2] - 2024-10-06
Features
Bug Fixes
Build System and CI
tree-sitter.pcgeneration (#3745)Other
v0.24.1Compare Source
[0.24.1] - 2024-10-04
Bug Fixes
v0.24.0Compare Source
[0.24.0] - 2024-10-04
Breaking
filterflag from commands in favor ofincludeandexclude(#3604)build-wasmsubcommand (#3605)initcommand (#3694)StreamingIteratorinstead ofIteratorforQueryMatchesandQueryCaptures(#3504)goto_first_child_for_{byte,point}(#3263)Features
field_name_for_named_child(#3614)rootfield in node-types.json (#3615)rebuildflag to force rebuild parsers (#3672)--overview-onlytotestsubcommand (#3501)go-tree-sitterversion (#3564)no-rangesflag to the parse command (#3687)tree-sitterdev dependency to0.23(#3563)--no-bindingsflagBug Fixes
child_containing_descendantand addchild_with_descendantinstead (#3708)editsignature (#3599)RUST_BINDING_VERSIONinCargo.tomltemplate1.22(#3711)fuzzsubcommand (#3562)fuzzcommand (#3635) (#3635):skip& don't report errors on tests marked with:error(#3640)tree-sitterto thedev-dependenciesof the Cargo.toml (#3597)Package.swift(#3631)*.scmsection to.editorconfigtemplate (#3724)package.jsonon error (#3718)-Wpedantic(#3691):errorhas no errortest -u(#3572)Documentation
Refactor
Build System and CI
0.1.1(#3730)bump-versionOther
compile_flags.txt(#3667).as_bytes().len()on strings (#3664)v0.23.2Compare Source
[0.23.2] - 2024-10-01
This release only corrected the version in a crate so publishing wouldn't fail.
v0.23.1Compare Source
[0.23.1] - 2024-09-30
Features
go-tree-sitterversiontree-sitterdev dependency to0.23Bug Fixes
editsignaturefuzzsubcommandfuzzcommand (#3635):skip& don't report errors on tests marked with:errortree-sitterto thedev-dependenciesof the Cargo.tomlPackage.swift:errorhas no errortest -uBuild System and CI
Other
v0.23.0Compare Source
[0.23.0] - 2024-08-26
Breaking
Features
fuzzsubcommand (#3385)grammar.jsoncannot be found (#3405)--show-fieldsflag totestcommand (#3502)ts_query_end_byte_for_pattern(#3451)Bug Fixes
preceding_auxiliary_symbols(#3550)cargo.tomltemplate (#3532)tv_nsecbe 0 as well (#3372)CARGO_MANIFEST_DIRat runtime in build script (#3352)Performance
Documentation
Refactor
Testing
Build System and CI
Other
sprintf()forsnprintf()(#3430).buildto gitignore (#3498)v0.22.6Compare Source
[0.22.6] — 2024-05-05
Features
NO_COLOR(#3299)Bug Fixes
tree-sitterfield is malformed--no-bindingsis passed (#3323)AsRef<Path>for the path parameter to avoid clones (#3322)ts_highlighter_add_languagechildrenFromFieldXXXmethod signatures (#3301)Documentation
\sfor\\sin query exampleRefactor
grammar.jsontests togrammar.js(#3325)Build System and CI
build.zig.zonversion when bumping versionsv0.22.5Compare Source
[0.22.5] — 2024-04-14
Bug Fixes
v0.22.4Compare Source
[0.22.4] — 2024-04-12
Bug Fixes
Build System and CI
v0.22.3Compare Source
[0.22.3] — 2024-04-12
Features
Bug Fixes
&&(#3274)children in
ts_subtree_string(#3191)/utf-8flag for parsers using unicode symbols (#3223)build-wasmtemporarily (#3203)build --wasmshould use current_dir (#3203)QueryCursor::captures()(#3266)build.rsPerformance
Documentation
Refactor
Testing
Build System and CI
v0.22.2Compare Source
[0.22.2] — 2024-03-17
Breaking
Features
Parser::included_rangesBug Fixes
Parser.getIncludedRanges()(#3164)array_grow_by(#3176)Documentation
Refactor
Testing
Build System and CI
v0.22.1Compare Source
Changelog
[0.22.1] — 2024-03-10
Bug Fixes
v0.22.0Compare Source
Changelog
[0.22.0] — 2024-03-10
Breaking
corpusdir for testsThe cli will now only look in
test/corpusfor testscurrent*,is*, andhas*methods properties (#3103)Features
nanwithnode-addon-apiand conditionally print logsBug Fixes
scan-buildsuggestions (unused assignment/garbage access) (#3056)||comparison in parentheses when&&is used (#3070)binding.ccoverwrite should replacePARSER_NAME(#3116)__declspec(dllexport)on windows (#3128)vflag (#3154)typesaftermainif it exists (#3122)--no-bindings(#3123).npmignore, populate Swift's exclude list (#3085)Cargo.tomldescription (#3140)api.hsots_set_allocatoris visible (#3092)Documentation
Ohmlanguage parserthe's (#3120)Refactor
Testing
Build System and CI
ccto remove annoying debug output (#3075)Cargo.lockneeds to be updated (#3066)Other
They don't have any dynamic global data, so all it takes is just declaring them as such
When building rust binding, use wasmtime headers provided via cargo
by the wasmtime-c-api crate.
Allowing this invalid merge caused an invariant to be violated
later on during parsing, when handling a later error.
subtree_compare(#3111)Ohmlanguage parser (#3114)binding_files.rs(#3106)v0.21.0Compare Source
Changelog
[0.21.0] - 2024-02-21
Breaking
Remove the apply-all-captures flag, make last-wins precedence the default
NOTE: This change might cause breakage in your grammar's highlight tests.
Just flip the order around of the relevant queries, and keep in mind that the
last query that matches will win.
Features
extrasarraygrammar-pathargument for the playground (https://github.com/tree-sitter/tree-sitter/pull/3014)config-pathargument (https://github.com/tree-sitter/tree-sitter/pull/3050)Bug Fixes
externalsmapin the grammar (https://github.com/tree-sitter/tree-sitter/pull/3041)longforgrammar_pathUNEXPECTED/MISSINGnodes with an indentation level greater than 0Documentation
token($.foo)is illegalTSTreeCursor(https://github.com/tree-sitter/tree-sitter/pull/3021)Tactlanguage parser (https://github.com/tree-sitter/tree-sitter/pull/3030)Refactor
&PathBuf->&Path(https://github.com/tree-sitter/tree-sitter/pull/3035)Testing
Build System and CI
Other
log.html(https://github.com/tree-sitter/tree-sitter/pull/2996)token/token.immediate(https://github.com/tree-sitter/tree-sitter/pull/3036)github_issue_testfile (https://github.com/tree-sitter/tree-sitter/pull/3055)emcc's stdout and stderr (https://github.com/tree-sitter/tree-sitter/pull/2494)SIDE_MODULE=2to silence warning (https://github.com/tree-sitter/tree-sitter/pull/3003)tree-sitter/tree-sitter-json (tree-sitter-json)
v0.24.8Compare Source
NOTE: Download
tree-sitter-json.tar.xzfor the complete source code.v0.24.7Compare Source
NOTE: Download
tree-sitter-json.tar.xzfor the complete source code.v0.24.5Compare Source
NOTE: Download
tree-sitter-json.tar.xzfor the complete source code.v0.24.4Compare Source
v0.24.3Compare Source
v0.24.2Compare Source
v0.23.0Compare Source
v0.21.0Compare Source
v0.20.2Compare Source
v0.20.1Compare Source
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR has been generated by Renovate Bot.
02f43426adtoeee3548904chore(deps): update dependency prettier to v3to chore(deps): update all dependencieseee3548904to41e966493341e9664933to03cc772e9803cc772e98toc652c22b16c652c22b16tof1cb4ae9acf1cb4ae9acto42e89794d342e89794d3toafc5e20736afc5e20736to931f112032931f112032tof5d44361a4f5d44361a4to7e8d9612f07e8d9612f0to778343c75fchore(deps): update all dependenciesto fix(deps): update all dependencies778343c75fto55573ce5e555573ce5e5to39f13d209539f13d2095to35e6b1102435e6b11024to76afd87df576afd87df5tod4127714a0d4127714a0to3ce50db5c73ce50db5c7to189f88634e189f88634etocc6f288aa5cc6f288aa5to7587a81af57587a81af5to6a5e368aa06a5e368aa0tof06453868ff06453868fto4a25e8b3824a25e8b382to66fd647af366fd647af3to6e8493b8786e8493b878todce91b74b3dce91b74b3to04632d979804632d9798tof3a5bc50e6f3a5bc50e6to5cd16c2fe35cd16c2fe3to7429a030157429a03015toa2db103836a2db103836toca0515d3f9ca0515d3f9tof6ab438813f6ab438813tod6f8f52703d6f8f52703to7d702e35587d702e3558to4cd5025a224cd5025a22toff56176222ff56176222tobdbbbd0dd7bdbbbd0dd7to2a383d88b92a383d88b9to307404202b307404202bto0231f3dd650231f3dd65toa0ef787759a0ef787759toe15d4b96b0e15d4b96b0toed75165e8ded75165e8dtoa6ff2f4733a6ff2f4733to59ae57889959ae578899tof791893272f791893272tod58a0e4533d58a0e4533toc07c059b58c07c059b58to6eb09d4eed6eb09d4eedto65ef71af0765ef71af07to53ba529b2453ba529b24tobb94b21c9fbb94b21c9fto1de3922b3f1de3922b3fto4288880ceb4288880cebto54d016216e54d016216eto861dc62827861dc62827to2c29dade592c29dade59to756dddbefc756dddbefcto27c2e6675a27c2e6675atoa24dc8f154a24dc8f154to2d5e3780102d5e378010tob827bef305b827bef305to79a739419979a7394199to96590b9e01View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.