SwiftTreeSitter Versions Save

Swift API for the tree-sitter incremental parsing system

0.8.0

4 months ago

What's Changed

  • chore: clean up Package manifest indentation by @DivineDominion in https://github.com/ChimeHQ/SwiftTreeSitter/pull/20
  • Add fieldNameForChild(at:) to Node by @intitni in https://github.com/ChimeHQ/SwiftTreeSitter/pull/21
  • Hold strong tree refs to objects that depend on the tree structure
  • Remove hard-coded data encoding
  • Fix a potential leak with processing edits
  • Add some hashable and sendable conformances
  • Brand new SwiftTreeSitterLayer library
  • Deprecation of ResolvingQueryCursor, introduction of ResolvingQueryMatchSequence
  • Introduction of LanguageConfiguration for easier language metadata and query loading.
  • Well-defined query support

New Contributors

Full Changelog: https://github.com/ChimeHQ/SwiftTreeSitter/compare/0.7.2...0.8.0

0.7.2

10 months ago
  • Convenience init methods for NamedRange
  • More Sendable conformances
  • Preliminary version of TreeSitterDocument
  • Update tree-sitter to 0.20.8

0.7.1

1 year ago
  • Expanding query definitions to include highlights and injections
  • TSRange is now Codable, Hashable, and Sendable
  • Point is now Codable and Sendable
  • NamedRange API has been expanded to provide the name components

0.7.0

1 year ago
  • update to tree-sitter 0.20.7
  • support for the #set! directive
  • NamedRange type to better support standardized query formats
  • QueryMatch.inject(with:) to translate injections.scm matches

0.6.5

1 year ago
  • Fix #match predicate filtering when the regex match isn't the same length as the input text
  • Add new String extension for easier integration with ResolvingQueryCursor

0.6.4

1 year ago
  • includedRanges API
  • timeout API
  • lots of documentation improvements

0.6.3

1 year ago
  • Whole bunch of new methods for Node (thank you @kaunteya and @fjtrujy)

0.6.2

1 year ago
  • Swift WebAssembly support (thank you @fjtrujy!)
  • Fixes a leak in ResolvingQueryCursor

0.6.1

2 years ago
  • Node conforms to Equatable
  • QueryCapture conforms to Comparable

0.6.0

2 years ago
  • the tree-sitter runtime is now vendored as a submodule
  • more predicates supported: #any-of?, not-eq?, not-match?, not-any-of?
  • #match? now only tests true on full matches
  • QueryCursor is now a Sequence