Kyuhwan Lee
a7eff029cd
Update lib/binding_web/src/language.ts
...
Co-authored-by: ObserverOfTime <chronobserver@disroot.org>
2025-12-26 21:35:50 +09:00
Kyuhwan Lee
2d48d4db89
Update lib/binding_web/src/language.ts
...
Co-authored-by: ObserverOfTime <chronobserver@disroot.org>
2025-12-26 21:35:44 +09:00
Kyuhwan Lee
baf427467c
Update lib/binding_web/src/language.ts
...
Co-authored-by: ObserverOfTime <chronobserver@disroot.org>
2025-12-26 21:35:38 +09:00
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
Amaan Qureshi
580cd9541a
feat(web)!: remove deprecated functions
2025-09-12 02:50:30 -04:00
Amaan Qureshi
6451d2f65d
fix(web): correct metadata function
2025-09-09 03:13:35 -04:00
Boris Verkhovskiy
9b23cd5394
feat: use compileStreaming when loading wasm parsers
2025-09-01 22:08:20 -04:00
vemoo
4db3edadf4
fix(web): correct type errors, improve build
2025-08-30 16:51:41 -04:00
ObserverOfTime
88e0b4cea4
docs: change WASM/wasm to Wasm
...
That is the official capitalisation.
2025-08-21 09:56:32 +03:00
Tamir Bahar
27fa1088b9
fix(web): replace dynamic require with import
2025-04-18 23:40:40 -04:00
Amaan Qureshi
8bb1448a6f
feat: add the semantic version to TSLanguage, and expose an API for retrieving it
2025-01-25 01:14:30 -05:00
Amaan Qureshi
e901716ebd
refactor(web)!: deprecate Language.query in favor of new Query
2025-01-23 00:43:27 -05:00
Amaan Qureshi
09cb4c5729
feat(web): document the API
2025-01-21 12:36:15 -05:00
Amaan Qureshi
10e6ecf162
feat: begin autogenerating web-tree-sitter.d.ts
2025-01-21 12:36:15 -05:00
Amaan Qureshi
be7716dfa7
feat(web)!: use the WASM module in the bindings, and not the other way around
...
Parser is no longer the default export, but you *must* call
`Parser.init()` before doing anything still
2025-01-21 12:36:15 -05:00
Amaan Qureshi
31ceb99603
feat: add and apply eslint config
2025-01-21 12:36:15 -05:00
Amaan Qureshi
2cae67892e
feat(web)!: rewrite the library in TypeScript
2025-01-21 12:36:15 -05:00