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

feat!: update API to 0.25 & separate QueryCursor class #79

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ObserverOfTime
Copy link
Member

@ObserverOfTime ObserverOfTime commented Feb 15, 2025

Additions

  • Language.getAbiVersion()
  • Language.getName()
  • Language.getMetadata()
  • Language.getSupertypes()
  • Language.getSubtypes()
  • InputEncoding.UTF_16LE
  • InputEncoding.UTF_16BE
  • Query()
  • Query.getCaptureNames()
  • Query.getStringValues()
  • QueryCursor()
  • QueryCursor.findCaptures()

Changes

  • Parser.parse() accepts an options parameter.
  • Query.getMatchLimit() -> QueryCursor.getMatchLimit()
  • Query.setMatchLimit() -> QueryCursor.setMatchLimit()
  • Query.getTimeoutMicros() -> QueryCursor.getTimeoutMicros()
  • Query.setTimeoutMicros() -> QueryCursor.setTimeoutMicros()
  • Query.setMaxStartDepth() -> QueryCursor.setMaxStartDepth()
  • Query.setByteRange() -> QueryCursor.setByteRange()
  • Query.setPointRange() -> QueryCursor.setPointRange()
  • Query.didExceedMatchLimit() -> QueryCursor.didExceedMatchLimit()
  • Query.findMatches() -> QueryCursor.findMatches()

Deprecations

  • Language.getVersion()
  • Language.query()
  • Parser.getTimeoutMicros()
  • Parser.setTimeoutMicros()
  • Parser.getCancellationFlag()
  • Parser.setCancellationFlag()
  • Query.getCaptureCount()

Removals

  • InputEncoding.UTF_16

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.

Split the bindings for TSQuery and TSQueryCursor into multiple classes
2 participants