Amaan Qureshi
d60c6f163d
refactor(web)!: rename pattern to patternIndex in QueryMatch
...
This aligns with other bindings
2025-01-23 00:43:27 -05:00
Amaan Qureshi
e3ac504e86
refactor(web): move CaptureQuantifier definition
2025-01-23 00:43:27 -05:00
Amaan Qureshi
58662417a6
fix(web): only export public types
...
This avoids exporting extra unnecessary stuff in the final JS file
2025-01-23 00:43:27 -05:00
Amaan Qureshi
79244b5815
fix(web): correct builds for CJS
2025-01-21 12:36:15 -05:00
Amaan Qureshi
f6a943a1ad
docs(web): update README and add CONTRIBUTING docs
2025-01-21 12:36:15 -05:00
Amaan Qureshi
0dba35c30f
docs(web): update docs
2025-01-21 12:36:15 -05:00
Amaan Qureshi
1f66d156b5
test: update tests
2025-01-21 12:36:15 -05:00
Amaan Qureshi
09cb4c5729
feat(web): document the API
2025-01-21 12:36:15 -05:00
Amaan Qureshi
a4b20c1c56
feat: publish both CJS and ESM files
...
This way, users can pick whichever one works for their needs
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
25e6de4a0a
docs(web): update process on fetching WASM fiels
2025-01-21 12:36:15 -05:00
Amaan Qureshi
169d7ad57f
refactor: rewrite scripts in typescript
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
Amaan Qureshi
07a86b1729
build(web): use files in package.json instead of .npmignore
2025-01-21 12:36:15 -05:00
WillLillis
cd6e766365
fix(wasm): allow passing in ERROR in descendantsOfType
2025-01-11 03:00:20 -05:00
Amaan Qureshi
2814c00faa
fix(web): correct getExtent
...
Co-authored-by: Will Lillis <will.lillis24@gmail.com>
2025-01-06 01:55:15 -05:00
Amaan Qureshi
45fa028201
feat(web): add missing API functions
...
Co-authored-by: Will Lillis <will.lillis24@gmail.com>
2025-01-06 01:55:15 -05:00
Amaan Qureshi
ef39298342
feat(wasm): add Supertype API
2025-01-05 00:14:09 -05:00
Amaan Qureshi
5d99014bb8
style: rephrase extends beyond to contains or starts after
2024-12-28 18:53:08 -05:00
Felix Roos
6c4a50a9c7
docs(web): add instructions for Vite
2024-12-16 00:09:42 -05:00
WillLillis
5b5cf5a5e5
fix(lib): check point, byte ranges in ts_query_cursor_set
...
range functions
2024-11-02 03:06:07 -04:00
ObserverOfTime
ac37e60559
refactor(web): use fs/promises
2024-10-15 16:10:23 +00:00
Amaan Qureshi
8943983df6
feat!: properly handle UTF-16 endianness encoding
2024-10-05 21:12:48 -04:00
Amaan Qureshi
cf8ed78a9a
feat: bump version to 0.25
2024-10-05 20:23:40 -04:00
Amaan Qureshi
693a403acd
0.24.1
2024-10-04 00:47:45 -04:00
Amaan Qureshi
dfc891a5ce
0.24.0
2024-10-04 00:16:20 -04:00
Amaan Qureshi
8667e3ea0c
fix(binding_web): remove nonexistent function definition
2024-09-08 16:57:20 -04:00
Amaan Qureshi
fcbd67b3fa
fix(binding_web): correct edit signature
2024-09-07 17:53:18 -04:00
Amaan Qureshi
3f424c0121
feat: add an API to time out query executions
...
Currently, if a predicate is hard to match on the Rust side, a sizable
query against a very large file can take forever, and ends up hanging.
This commit adds an API function `ts_query_cursor_set_timeout_micros` to
limit how long query execution is allowed to take, thereby negating the
chance of a hang to occur.
2024-08-31 14:33:28 -04:00
Amaan Qureshi
12fb31826b
0.23.0
2024-08-26 09:07:00 -04:00
Boris Verkhovskiy
cd3e561224
build(wasm): don't minify JS ( #3380 )
2024-07-29 10:00:02 +03:00
Amaan Qureshi
6304009209
fix(wasm): update test
2024-06-03 12:42:25 +02:00
Amaan Qureshi
b40f342067
0.22.6
2024-05-05 16:47:18 -04:00
Adrien Friggeri
01bf431261
fix(wasm): correct childrenFromFieldXXX method signatures
...
These do not expect a `cursor` parameter
2024-04-16 13:48:53 -04:00
Max Brunsfeld
cdd4688860
0.22.5
2024-04-14 10:17:04 -07:00
Max Brunsfeld
285257998c
0.22.4
2024-04-12 17:03:02 -07:00
Max Brunsfeld
a3d338781b
0.22.3
2024-04-12 15:10:49 -07:00
Amaan Qureshi
96d18408a3
refactor(js): misc fixes & tidying
2024-04-11 22:35:43 -04:00
Amaan Qureshi
c1a63019a4
chore: update tests
2024-04-08 17:56:05 -04:00
Amaan Qureshi
09d2b23a64
fix(lib): account for the root node of a tree cursor being an alias
2024-03-20 19:23:08 -04:00
Amaan Qureshi
fc15f62133
0.22.2
2024-03-17 07:31:58 -04:00
Amaan Qureshi
99b93d83a1
feat(cli)!: add a separate build command to compile parsers
...
This allows users to build parsers without having to run `test` or
`parse` to invoke the compilation process, and allows them to output the
object file to wherever they like. The `build-wasm` command was merged
into this by just specifying the `--wasm` flag.
2024-03-17 05:36:30 -04:00
Amaan Qureshi
5c2f80ebb0
fix(bindings/wasm): fix Parser.getIncludedRanges()
2024-03-12 02:29:35 -04:00
Amaan Qureshi
1c38d34dea
0.22.1
2024-03-10 17:59:12 -04:00
Amaan Qureshi
0a5a564ea7
0.22.0
2024-03-10 17:15:08 -04:00
Amaan Qureshi
728793a160
feat(wasm)!: keep API in-line with upstream and start aligning with node
2024-03-10 03:02:17 -04:00
Boris Verkhovskiy
c070c92722
refactor(wasm)!: make current*, is*, and has* methods properties
2024-03-08 00:27:06 -05:00
Amaan Qureshi
a5b7c2a584
fix: publish 0.21.0 to registries
2024-02-21 15:11:37 -05:00