Skip to content
This repository has been archived by the owner on Oct 18, 2024. It is now read-only.

v3.1.0

Compare
Choose a tag to compare
@github-actions github-actions released this 18 Jun 15:21
· 185 commits to dev since this release
4162eed

android-tree-sitter

v3.1.0 (2023-06-18)

Fixed

  • fix: use custom Pair implementation (Akash Yadav)

  • fix: use language name and pointer to efficiently remove entries in TSLanguageCache.remove (Akash Yadav)

  • fix: add null checks in TSLanguageCache (Akash Yadav)

  • fix: remove cache entries in TSLanguageCache.closeExternal (Akash Yadav)

  • fix: only close external languages in TSLanguageCache.closeAll (Akash Yadav)

  • fix: remove externally loaded languages from cache once closed (Akash Yadav)

  • fix: use TSLanguageCache return instance of TSLanguage in TSParser and TSTree (Akash Yadav)

  • fix: replace usage of deprecated TSLanguage*.newInstance() with TSLanguage*.getInstance() (Akash Yadav)

  • fix: error_offset and error_type is not set to TSQuery (Akash Yadav)

  • fix: add null check for new query instances (Akash Yadav)

Added

  • feat: add TSLanguage.isExternal() to check for external languages (Akash Yadav)

  • feat: add TSLanguageCache.closeAll() to close all TSLanguage instances (Akash Yadav)

  • feat: use TSLanguageCache in TSLanguage.loadLanguage (Akash Yadav)

  • feat: add convenience method to load TSLanguage using nativeLibDir from Context (Akash Yadav)

  • feat: cache instances of TSLanguage for reuse (Akash Yadav)

  • feat: check access before accessing native objects (Akash Yadav)

  • feat: add support for loading external grammars (Akash Yadav)