Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependency tree-sitter to v0.23.0 #9

Closed
wants to merge 1 commit into from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Aug 27, 2024

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
tree-sitter ==0.20.4 -> ==0.23.0 age adoption passing confidence

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): returns self
  • Query.set_max_start_depth(max_start_depth): returns self
  • Query.set_byte_range(byte_range): returns self
  • Query.set_point_range(point_range): returns self
  • Query.disable_pattern(index): returns self
  • Query.disable_capture(capture): returns self
  • 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 a keep_text argument.
  • Query.captures(...)
    • Range arguments were removed (use set_* instead).
    • Added an argument for custom query predicates.
    • Return type was changed to dict[str, list[Node]].
  • Query.matches(...)
    • Range arguments were removed (use set_* instead).
    • Added an argument for custom query predicates.
    • Return type was changed to list[tuple[int, dict[str, list[Node]]]].
  • TreeCursor.goto_first_child_for_byte(byte) returns int | None.
  • TreeCursor.goto_first_child_for_point(point) returns int | 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__(): checks ptr
  • Language.__int__(): returns ptr
  • Language.__index__(): returns ptr
  • Language.__hash__(): returns ptr
  • Node.__str__(): returns the S-expression
  • TreeCursor.goto_first_child_for_point(point)
  • TreeCursor.__copy__(): returns copy()
  • 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(): use str()
  • Tree.text: use root_node.text
  • TreeCursor.goto_first_child_for_point(row, column): use goto_first_child_for_point(point)
  • LookaheadIterator.reset(language, state): use reset_state(state, language)
  • Parser.set_language(language): use Parser(language) or language setter
  • Parser.set_included_ranges(ranges): use included_ranges setter
  • Parser.set_timeout_micros(timeout): use timeout_micros setter
Removals:
  • Language(path, name) !
  • Language.build_library(...) !
  • Language.name !
  • Language.lib
  • Language.language_id: use int()
Changes:
  • Language() only accepts a single integer argument. !
  • Parser.parse(...) accepts an optional encoding argument. !
  • TreeCursor.descendant_index is changed to a property. !
  • LookaheadIterator.language returns a Language instance. !
  • LookaheadIterator.reset_state(...) accepts an optional language argument.
  • Query.captures(...) arguments must be keywords (except for node).
  • Query.matches(...) arguments must be keywords (except for node).
  • Range.__repr__() prints attributes in the same order as the Range() 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.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot force-pushed the renovate/tree-sitter-0.x branch 2 times, most recently from 6aac25d to 2b02e22 Compare August 27, 2024 20:32
@renovate renovate bot force-pushed the renovate/tree-sitter-0.x branch from 2b02e22 to 8625ce6 Compare August 27, 2024 20:42
@avivl avivl closed this Aug 27, 2024
@avivl avivl deleted the renovate/tree-sitter-0.x branch August 27, 2024 23:02
Copy link
Contributor Author

renovate bot commented Aug 27, 2024

Renovate Ignore Notification

Because you closed this PR without merging, Renovate will ignore this update (==0.23.0). You will get a PR once a newer version is released. To ignore this dependency forever, add it to the ignoreDeps array of your Renovate config.

If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant