Update dependency tree-sitter to v0.23.0 #9
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
==0.20.4
->==0.23.0
Release Notes
tree-sitter/py-tree-sitter (tree-sitter)
v0.23.0
Compare Source
Additions:
Node.child_containing_descendant(descendant)
Tree.language
(getter)Query.pattern_count
(getter)Query.capture_count
(getter)Query.match_limit
(getter)Query.did_exceed_match_limit
(getter)Query.set_match_limit(match_limit)
: returnsself
Query.set_max_start_depth(max_start_depth)
: returnsself
Query.set_byte_range(byte_range)
: returnsself
Query.set_point_range(point_range)
: returnsself
Query.disable_pattern(index)
: returnsself
Query.disable_capture(capture)
: returnsself
Query.pattern_settings(index)
Query.pattern_assertions(index)
Query.start_byte_for_pattern(index)
Query.end_byte_for_pattern(index)
Query.is_pattern_rooted(index)
Query.is_pattern_non_local(index)
Query.is_pattern_guaranteed_at_step(offset)
QueryError
(exception class)QueryPredicate
(typing protocol)Removals:
Parser.set_language(language)
Parser.set_included_ranges(ranges)
Parser.set_timeout_micros(timeout)
Node.sexp()
Tree.text()
TreeCursor.goto_first_child_for_point(row, column)
LookaheadIterator.reset(language, state)
Changes:
Language()
accepts a capsule as an argument.Parser.parse(...)
no longer accepts akeep_text
argument.Query.captures(...)
set_*
instead).dict[str, list[Node]]
.Query.matches(...)
set_*
instead).list[tuple[int, dict[str, list[Node]]]]
.TreeCursor.goto_first_child_for_byte(byte)
returnsint | None
.TreeCursor.goto_first_child_for_point(point)
returnsint | None
.v0.22.3
Compare Source
Full Changelog: tree-sitter/py-tree-sitter@v0.22.2...v0.22.3
v0.22.2
Compare Source
Full Changelog: tree-sitter/py-tree-sitter@v0.22.1...v0.22.2
v0.22.1
Compare Source
Full Changelog: tree-sitter/py-tree-sitter@v0.22.0...v0.22.1
v0.22.0
Compare Source
Breaking changes are marked with
!
.Additions:
LANGUAGE_VERSION
MIN_COMPATIBLE_LANGUAGE_VERSION
Point(row, column)
Language.__repr__()
Language.__eq__()
: checksptr
Language.__int__()
: returnsptr
Language.__index__()
: returnsptr
Language.__hash__()
: returnsptr
Node.__str__()
: returns the S-expressionTreeCursor.goto_first_child_for_point(point)
TreeCursor.__copy__()
: returnscopy()
Query(language, source)
Parser(language, included_ranges, timeout_micros)
Parser.language
(getter + setter)Parser.included_ranges
(getter + setter)Parser.timeout_micros
(getter + setter)Range.__hash__()
Deprecations:
Node.sexp()
: usestr()
Tree.text
: useroot_node.text
TreeCursor.goto_first_child_for_point(row, column)
: usegoto_first_child_for_point(point)
LookaheadIterator.reset(language, state)
: usereset_state(state, language)
Parser.set_language(language)
: useParser(language)
orlanguage
setterParser.set_included_ranges(ranges)
: useincluded_ranges
setterParser.set_timeout_micros(timeout)
: usetimeout_micros
setterRemovals:
Language(path, name)
!Language.build_library(...)
!Language.name
!Language.lib
Language.language_id
: useint()
Changes:
Language()
only accepts a single integer argument. !Parser.parse(...)
accepts an optionalencoding
argument. !TreeCursor.descendant_index
is changed to a property. !LookaheadIterator.language
returns aLanguage
instance. !LookaheadIterator.reset_state(...)
accepts an optionallanguage
argument.Query.captures(...)
arguments must be keywords (except fornode
).Query.matches(...)
arguments must be keywords (except fornode
).Range.__repr__()
prints attributes in the same order as theRange()
arguments.Range()
arguments are no longer considered optional.v0.21.3
Compare Source
Full Changelog: tree-sitter/py-tree-sitter@v0.21.2...v0.21.3
v0.21.2
Compare Source
Full Changelog: tree-sitter/py-tree-sitter@v0.21.1...v0.21.2
v0.21.1
Compare Source
Full Changelog: tree-sitter/py-tree-sitter@v0.21.0...v0.21.1
v0.21.0
Compare Source
What's Changed
New Contributors
Full Changelog: tree-sitter/py-tree-sitter@v0.20.4...v0.21.0
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.