Skip to content

Releases: ChimeHQ/SwiftTreeSitter

v0.9.0

19 Nov 16:30
36aa61d
Compare
Choose a tag to compare

What's Changed

  • fix ios cannot load queries issue by @ElvisWong213 in #22
  • Replace git submodule with package dependency for tree-sitter integration by @yeatse in #23
  • Hotfix alloc crash, when no read data avail. by @furby-tm in #24
  • Fix README formatting by @nakajima in #27
  • export tree sitter's id field by @lijunsong in #28
  • Add reset Method On Parser by @thecoolwinter in #30
  • Deprecate ResolvingQueryCursor. injections()
  • Lots of documentation additions
  • includedRanges API for both Tree and MutableTree
  • Many bug fixes for LanguageLayer
  • Sublayer resolution is now opt-in
  • Some concurrency-related fixes
  • Parser bundle queries are now found on iOS
  • Removed the need for escaping closures in parsing functions
  • Attempting to use a language layer query that is unsupported now throws
  • Use tree-sitter 0.23.0

New Contributors

Full Changelog: 0.8.0...0.9.0

v0.8.0

13 Jan 14:13
2599e95
Compare
Choose a tag to compare

What's Changed

  • chore: clean up Package manifest indentation by @DivineDominion in #20
  • Add fieldNameForChild(at:) to Node by @intitni in #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: 0.7.2...0.8.0

v0.7.2

24 Jul 11:11
a9b1335
Compare
Choose a tag to compare
  • Convenience init methods for NamedRange
  • More Sendable conformances
  • Preliminary version of TreeSitterDocument
  • Update tree-sitter to 0.20.8

v0.7.1

02 Dec 16:00
df25a52
Compare
Choose a tag to compare
  • 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

v0.7.0

06 Oct 14:43
3b1599b
Compare
Choose a tag to compare
  • 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

v0.6.5

23 Sep 15:00
439674e
Compare
Choose a tag to compare
  • 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

v0.6.4

22 Sep 10:10
0e413d6
Compare
Choose a tag to compare
  • includedRanges API
  • timeout API
  • lots of documentation improvements

v0.6.3

23 Aug 16:15
b4d3460
Compare
Choose a tag to compare

v0.6.2

10 Aug 10:50
86a13b3
Compare
Choose a tag to compare
  • Swift WebAssembly support (thank you @fjtrujy!)
  • Fixes a leak in ResolvingQueryCursor

v0.6.1

25 May 11:37
824aa62
Compare
Choose a tag to compare
  • Node conforms to Equatable
  • QueryCapture conforms to Comparable