tree-sitter/lib
Kyuhwan Lee 709555a958 fix(web): add early version check in Language.load()
Add ABI version compatibility check immediately after loading a WASM
language file in Language.load(). This provides:

1. Earlier failure detection - fails at load time instead of setLanguage()
2. More helpful error message - indicates WASM file may be built with
   incompatible tree-sitter-cli version
3. Better developer experience - clearer guidance on how to fix the issue

This helps users who use pre-built WASM files from third-party packages
(like tree-sitter-wasms) that may be built with older tree-sitter-cli
versions incompatible with newer web-tree-sitter releases.

Relates to #5171
2025-12-26 19:54:25 +09:00
..
binding_rust Add containing range APIs to query cursor 2025-12-03 18:06:16 -05:00
binding_web fix(web): add early version check in Language.load() 2025-12-26 19:54:25 +09:00
include/tree_sitter Add containing range APIs to query cursor 2025-12-03 18:06:16 -05:00
lldb_pretty_printers feat(lib): add lldb pretty-printers for some C lib types 2025-08-22 20:10:03 -04:00
src Clean up node range tracking in query_cursor__advance 2025-12-03 18:06:16 -05:00
.ccls rust: Change QueryCursor::captures to expose the full match 2019-10-03 12:45:58 -07:00
Cargo.toml build(deps): bump the cargo group with 2 updates 2025-10-01 02:57:21 -04:00
LICENSE chore: copy license to all packages 2025-09-11 03:12:35 -04:00
package.nix build(cmake)!: move CMakeLists.txt to the source root 2025-09-11 01:59:37 -04:00
README.md docs: update badges; fix markdown lint complains 2023-04-16 23:39:08 +03:00
tree-sitter.pc.in build(lib): build using cmake 2024-09-07 18:38:05 -04:00

Subdirectories

  • src - C source code for the Tree-sitter library
  • include - C headers for the Tree-sitter library
  • binding_rust - Rust bindings to the Tree-sitter library
  • binding_web - JavaScript bindings to the Tree-sitter library, using WebAssembly