Update dependency tree-sitter to ^0.22.0
This MR contains the following updates:
Package | Type | Update | Change |
---|---|---|---|
tree-sitter | dependencies | minor |
^0.20.4 -> ^0.22.0
|
Release Notes
tree-sitter/py-tree-sitter (tree-sitter)
v0.22.3
Full Changelog: https://github.com/tree-sitter/py-tree-sitter/compare/v0.22.2...v0.22.3
v0.22.2
Full Changelog: https://github.com/tree-sitter/py-tree-sitter/compare/v0.22.1...v0.22.2
v0.22.1
Full Changelog: https://github.com/tree-sitter/py-tree-sitter/compare/v0.22.0...v0.22.1
v0.22.0
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-expression TreeCursor.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
setter -
Parser.set_included_ranges(ranges)
: useincluded_ranges
setter -
Parser.set_timeout_micros(timeout)
: usetimeout_micros
setter
Removals:
-
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
Full Changelog: https://github.com/tree-sitter/py-tree-sitter/compare/v0.21.2...v0.21.3
v0.21.2
Full Changelog: https://github.com/tree-sitter/py-tree-sitter/compare/v0.21.1...v0.21.2
v0.21.1
Full Changelog: https://github.com/tree-sitter/py-tree-sitter/compare/v0.21.0...v0.21.1
v0.21.0
What's Changed
- Fix type of Tree.text property by @jhandley in https://github.com/tree-sitter/py-tree-sitter/pull/176
- fix: typo by @Thabokani in https://github.com/tree-sitter/py-tree-sitter/pull/185
- ci: add dependabot by @dundargoc in https://github.com/tree-sitter/py-tree-sitter/pull/190
- ci: make dependabot group updates in single MR by @dundargoc in https://github.com/tree-sitter/py-tree-sitter/pull/194
- ci: bump the actions group with 3 updates by @dependabot in https://github.com/tree-sitter/py-tree-sitter/pull/195
- get_children_by_field_id and get_children_by_field_name returns empty list on invalid argument by @wstevick in https://github.com/tree-sitter/py-tree-sitter/pull/180
- Prepare for bindings MR, add Query.matches by @amaanq in https://github.com/tree-sitter/py-tree-sitter/pull/159
- ci: major overhaul by @ObserverOfTime in https://github.com/tree-sitter/py-tree-sitter/pull/198
- Make match captures a dict[str,Node|list[Node]] by @jhandley in https://github.com/tree-sitter/py-tree-sitter/pull/165
- docs: update readme by @ObserverOfTime in https://github.com/tree-sitter/py-tree-sitter/pull/201
New Contributors
- @Thabokani made their first contribution in https://github.com/tree-sitter/py-tree-sitter/pull/185
- @dundargoc made their first contribution in https://github.com/tree-sitter/py-tree-sitter/pull/190
- @dependabot made their first contribution in https://github.com/tree-sitter/py-tree-sitter/pull/195
- @wstevick made their first contribution in https://github.com/tree-sitter/py-tree-sitter/pull/180
- @ObserverOfTime made their first contribution in https://github.com/tree-sitter/py-tree-sitter/pull/198
Full Changelog: https://github.com/tree-sitter/py-tree-sitter/compare/v0.20.4...v0.21.0
Configuration
-
If you want to rebase/retry this MR, check this box
This MR has been generated by Renovate Bot.