Commit graph

39 commits

Author SHA1 Message Date
WillLillis
774eebdf6b fix(xtask): error if new version supplied to bump-version is less than
or equal to current version

(cherry picked from commit 5985690d45)
2025-03-14 10:06:27 +01:00
tree-sitter-ci-bot[bot]
3ad1c7d4e1
Fix cases where error recovery could infinite loop (#4257) (#4262)
* Rename corpus test functions to allow easy filtering by language

* Use usize for seed argument

* Avoid retaining useless stack versions when reductions merge

We found this problem when debugging an infinite loop that happened
during error recovery when using the Zig grammar. The large number of
unnecessary paused stack versions were preventing the correct recovery
strategy from being tried.

* Fix leaked lookahead token when reduction results in a merged stack

* Enable running PHP tests in CI

* Fix possible infinite loop during error recovery at EOF

* Account for external scanner state changes when detecting changed ranges in subtrees

(cherry picked from commit 066fd77d39)

Co-authored-by: Max Brunsfeld <maxbrunsfeld@gmail.com>
2025-03-04 15:38:59 -08:00
Amaan Qureshi
2cf18f5ac2 build: bump dependencies 2025-01-26 14:15:01 -05:00
Yuri Astrakhan
3e7721e554 chore: a few more minor lints 2025-01-23 00:10:16 -05:00
Amaan Qureshi
79244b5815 fix(web): correct builds for CJS 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
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
b1e39d2dba fix(xtask): adapt check-wasm-exports to web changes 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
Will Lillis
f3259288b3
feat(xtask): add success message for wasm watchers 2025-01-20 23:28:10 -05:00
Amaan Qureshi
344a88c4fb feat(lib)!: remove ts_node_child_containing_descendant
It was marked deprecated in 0.24
2025-01-12 22:11:30 -05:00
WillLillis
2c6f70cc57 feat(xtask): add --watch option for build-wasm and
`check-wasm-exports` xtask commands
2025-01-08 13:27:20 -05:00
Guilherme Soares
207ef9796e
fix(wasm): check docker presence without arguments 2025-01-08 13:27:02 -05:00
WillLillis
dcdd6ce2d2 feat(xtask): check wasm exports 2025-01-06 01:55:15 -05:00
Will Lillis
4f9869142f
fix(rust): adapt to a few new nightly lints 2024-12-28 01:17:04 -05:00
Max Brunsfeld
201b41cf11
feat: add 'reserved word' construct
Co-authored-by: Amaan Qureshi <amaanq12@gmail.com>
2024-12-23 03:06:32 -05:00
Amaan Qureshi
c132f1928f fix(xtask): add emscription version in commit msg 2024-12-19 11:49:12 -05:00
Amaan Qureshi
1b1e99bf1a feat: add xtask to bump emscripten-version 2024-12-19 08:00:51 -05:00
Amaan Qureshi
7d3dbc062d build: bump deps 2024-12-16 01:22:58 -05:00
Riley Bruins
495fe2a6c5
feat: support querying missing nodes
Co-authored-by: Amaan Qureshi <amaanq12@gmail.com>
2024-12-14 14:57:36 -05:00
Amaan Qureshi
274e60a523
fix: clippy lints 2024-11-16 03:20:59 -05:00
crvdgc
15c2957993 fix(xtask): bring back language and example filter 2024-11-12 19:09:49 -05:00
ObserverOfTime
a59bc697e3 feat(xtask): let upgrade-wasmtime update Cargo.lock 2024-11-09 21:04:52 +01:00
Liu Yuxi
20aaabfd9c
fix(xtask): remove the test_flags arg if it's empty for cargo test
`cargo xtask test test_something` currently constructs `cargo test ''
test_something`, which errors out for `cargo test`. This fix removes
the `test_flags` string if it's empty.
2024-11-09 15:03:14 -05:00
Amaan Qureshi
c7d6fd7fa5 build: move `generate-wasm-exports-lists to xtask 2024-10-26 23:25:12 +00:00
Amaan Qureshi
c707f3ee9e fix(xtask): correct header path 2024-10-26 17:02:00 +00:00
ObserverOfTime
1405b5555b feat(xtask): add upgrade-wasmtime command 2024-10-11 18:49:14 -04:00
ObserverOfTime
9d2196cdbd build(zig): add optional wasmtime dependency
And support compiling a shared library
2024-10-08 21:09:53 -04:00
Amaan Qureshi
dbe8bbf480 feat: move scripts to xtasks 2024-10-08 21:07:41 -04:00
Amaan Qureshi
cd81527b1b build(xtask): ignore the language crate 2024-10-04 00:11:26 -04:00
Amaan Qureshi
c801594b85 build(xtask): only consider major and minor versions when validating the current version 2024-10-04 00:11:26 -04:00
Amaan Qureshi
f8f08210fc build(xtask): bump cmake version in bump-version 2024-10-04 00:11:26 -04:00
Amaan Qureshi
5e5026aa73
fix(xtask): always bump every crate in tandem 2024-04-29 00:06:48 -04:00
Amaan Qureshi
c19f23f420 build(xtask): bump build.zig.zon version when bumping versions 2024-04-26 10:38:11 -04:00
Max Brunsfeld
50d0dfbee9 Always bump at least the patch version in bump xtask
As long as the source code has changed. Previously, the command would do
nothing if there weren't any conventional commits.

* Commit the Cargo.lock in the version bump commit.
* Simplify logic for deciding whether to bump minor or patch version.
2024-04-12 17:02:53 -07:00
Amaan Qureshi
b35efa8f33 style: format imports 2024-04-11 22:35:43 -04:00
Amaan Qureshi
5a4765ca01 style: clippy lints 2024-02-29 02:17:30 -05:00
Amaan Qureshi
4e2880407c feat: add xtasks to assist with bumping crates 2024-02-25 13:40:03 -05:00