Amaan Qureshi
580cd9541a
feat(web)!: remove deprecated functions
2025-09-12 02:50:30 -04:00
ObserverOfTime
56325d2a3b
chore: copy license to all packages
2025-09-11 03:12:35 -04:00
dependabot[bot]
57e2f41f42
build(deps): bump vite from 7.1.3 to 7.1.5 in /lib/binding_web
...
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite ) from 7.1.3 to 7.1.5.
- [Release notes](https://github.com/vitejs/vite/releases )
- [Changelog](https://github.com/vitejs/vite/blob/main/packages/vite/CHANGELOG.md )
- [Commits](https://github.com/vitejs/vite/commits/v7.1.5/packages/vite )
---
updated-dependencies:
- dependency-name: vite
dependency-version: 7.1.5
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
2025-09-10 23:27:36 -04:00
Amaan Qureshi
6451d2f65d
fix(web): correct metadata function
2025-09-09 03:13:35 -04:00
faukah
e4e643086b
refactor: rework nix flake
...
Co-authored-by: Amaan Qureshi <amaanq12@gmail.com>
2025-09-09 03:03:35 -04:00
dependabot[bot]
16502e19dd
build(deps): bump the npm group across 1 directory with 6 updates
...
Bumps the npm group with 6 updates in the /lib/binding_web directory:
| Package | From | To |
| --- | --- | --- |
| [@eslint/js](https://github.com/eslint/eslint/tree/HEAD/packages/js ) | `9.34.0` | `9.35.0` |
| [@types/emscripten](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/emscripten ) | `1.40.0` | `1.41.1` |
| [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node ) | `24.3.0` | `24.3.1` |
| [eslint](https://github.com/eslint/eslint ) | `9.34.0` | `9.35.0` |
| [typescript](https://github.com/microsoft/TypeScript ) | `5.8.3` | `5.9.2` |
| [typescript-eslint](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/typescript-eslint ) | `8.41.0` | `8.43.0` |
Updates `@eslint/js` from 9.34.0 to 9.35.0
- [Release notes](https://github.com/eslint/eslint/releases )
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md )
- [Commits](https://github.com/eslint/eslint/commits/v9.35.0/packages/js )
Updates `@types/emscripten` from 1.40.0 to 1.41.1
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/emscripten )
Updates `@types/node` from 24.3.0 to 24.3.1
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node )
Updates `eslint` from 9.34.0 to 9.35.0
- [Release notes](https://github.com/eslint/eslint/releases )
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md )
- [Commits](https://github.com/eslint/eslint/compare/v9.34.0...v9.35.0 )
Updates `typescript` from 5.8.3 to 5.9.2
- [Release notes](https://github.com/microsoft/TypeScript/releases )
- [Changelog](https://github.com/microsoft/TypeScript/blob/main/azure-pipelines.release-publish.yml )
- [Commits](https://github.com/microsoft/TypeScript/compare/v5.8.3...v5.9.2 )
Updates `typescript-eslint` from 8.41.0 to 8.43.0
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases )
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/typescript-eslint/CHANGELOG.md )
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.43.0/packages/typescript-eslint )
---
updated-dependencies:
- dependency-name: "@eslint/js"
dependency-version: 9.35.0
dependency-type: direct:development
update-type: version-update:semver-minor
dependency-group: npm
- dependency-name: "@types/emscripten"
dependency-version: 1.41.1
dependency-type: direct:development
update-type: version-update:semver-minor
dependency-group: npm
- dependency-name: "@types/node"
dependency-version: 24.3.1
dependency-type: direct:development
update-type: version-update:semver-patch
dependency-group: npm
- dependency-name: eslint
dependency-version: 9.35.0
dependency-type: direct:development
update-type: version-update:semver-minor
dependency-group: npm
- dependency-name: typescript
dependency-version: 5.9.2
dependency-type: direct:development
update-type: version-update:semver-minor
dependency-group: npm
- dependency-name: typescript-eslint
dependency-version: 8.43.0
dependency-type: direct:development
update-type: version-update:semver-minor
dependency-group: npm
...
Signed-off-by: dependabot[bot] <support@github.com>
2025-09-09 04:33:49 +02:00
Amaan Qureshi
d287acfcc0
refactor(nix): remove openssl dependency
2025-09-04 05:00:14 -04:00
Amaan Qureshi
3b0273fc61
build: bump emscripten to 4.0.12
2025-09-04 00:59:01 -04:00
Amaan Qureshi
f0cfaffd5e
build(web): mark @types/emscripten as a dev dep
2025-09-01 23:14:20 -04:00
Amaan Qureshi
94996b26e5
refactor(web): clean up preserving sourcemap logic, don't copy lib files
2025-09-01 23:14:20 -04:00
Amaan Qureshi
da61d7cac5
feat: add nix flake
2025-09-01 22:48:37 -04:00
Boris Verkhovskiy
9b23cd5394
feat: use compileStreaming when loading wasm parsers
2025-09-01 22:08:20 -04:00
ObserverOfTime
07986471b3
feat(xtask): automate edits to emscripten generated d.ts
2025-08-30 18:14:42 -04:00
ObserverOfTime
dba8446d9e
feat(web)!: use bigint for timeouts
2025-08-30 18:14:42 -04:00
ObserverOfTime
8b3e023ef0
chore(web): remove source files from package
...
and generated files from version control
2025-08-30 18:14:42 -04:00
ObserverOfTime
5272b6b908
refactor(web): use nullish coalescing operator
2025-08-30 18:13:39 -04:00
dependabot[bot]
a866eb5dd0
build(deps): bump the npm group across 1 directory with 9 updates
...
Bumps the npm group with 8 updates in the /lib/binding_web directory:
| Package | From | To |
| --- | --- | --- |
| [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node ) | `22.13.1` | `24.3.0` |
| [@vitest/coverage-v8](https://github.com/vitest-dev/vitest/tree/HEAD/packages/coverage-v8 ) | `3.0.5` | `3.2.4` |
| [dts-buddy](https://github.com/Rich-Harris/dts-buddy ) | `0.5.4` | `0.6.2` |
| [esbuild](https://github.com/evanw/esbuild ) | `0.25.0` | `0.25.9` |
| [source-map](https://github.com/mozilla/source-map ) | `0.7.4` | `0.7.6` |
| [tsx](https://github.com/privatenumber/tsx ) | `4.20.3` | `4.20.5` |
| [typescript](https://github.com/microsoft/TypeScript ) | `5.7.3` | `5.9.2` |
| [typescript-eslint](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/typescript-eslint ) | `8.23.0` | `8.41.0` |
Updates `@types/node` from 22.13.1 to 24.3.0
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node )
Updates `@vitest/coverage-v8` from 3.0.5 to 3.2.4
- [Release notes](https://github.com/vitest-dev/vitest/releases )
- [Commits](https://github.com/vitest-dev/vitest/commits/v3.2.4/packages/coverage-v8 )
Updates `dts-buddy` from 0.5.4 to 0.6.2
- [Release notes](https://github.com/Rich-Harris/dts-buddy/releases )
- [Changelog](https://github.com/sveltejs/dts-buddy/blob/main/CHANGELOG.md )
- [Commits](https://github.com/Rich-Harris/dts-buddy/compare/v0.5.4...v0.6.2 )
Updates `esbuild` from 0.25.0 to 0.25.9
- [Release notes](https://github.com/evanw/esbuild/releases )
- [Changelog](https://github.com/evanw/esbuild/blob/main/CHANGELOG.md )
- [Commits](https://github.com/evanw/esbuild/compare/v0.25.0...v0.25.9 )
Updates `source-map` from 0.7.4 to 0.7.6
- [Release notes](https://github.com/mozilla/source-map/releases )
- [Changelog](https://github.com/mozilla/source-map/blob/master/CHANGELOG.md )
- [Commits](https://github.com/mozilla/source-map/compare/v0.7.4...0.7.6 )
Updates `tsx` from 4.20.3 to 4.20.5
- [Release notes](https://github.com/privatenumber/tsx/releases )
- [Changelog](https://github.com/privatenumber/tsx/blob/master/release.config.cjs )
- [Commits](https://github.com/privatenumber/tsx/compare/v4.20.3...v4.20.5 )
Updates `typescript` from 5.7.3 to 5.9.2
- [Release notes](https://github.com/microsoft/TypeScript/releases )
- [Changelog](https://github.com/microsoft/TypeScript/blob/main/azure-pipelines.release-publish.yml )
- [Commits](https://github.com/microsoft/TypeScript/compare/v5.7.3...v5.9.2 )
Updates `typescript-eslint` from 8.23.0 to 8.41.0
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases )
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/typescript-eslint/CHANGELOG.md )
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.41.0/packages/typescript-eslint )
Updates `vitest` from 3.0.5 to 3.2.4
- [Release notes](https://github.com/vitest-dev/vitest/releases )
- [Commits](https://github.com/vitest-dev/vitest/commits/v3.2.4/packages/vitest )
---
updated-dependencies:
- dependency-name: "@types/node"
dependency-version: 24.3.0
dependency-type: direct:development
update-type: version-update:semver-major
dependency-group: npm
- dependency-name: "@vitest/coverage-v8"
dependency-version: 3.2.4
dependency-type: direct:development
update-type: version-update:semver-minor
dependency-group: npm
- dependency-name: dts-buddy
dependency-version: 0.6.2
dependency-type: direct:development
update-type: version-update:semver-minor
dependency-group: npm
- dependency-name: esbuild
dependency-version: 0.25.9
dependency-type: direct:development
update-type: version-update:semver-patch
dependency-group: npm
- dependency-name: source-map
dependency-version: 0.7.6
dependency-type: direct:development
update-type: version-update:semver-patch
dependency-group: npm
- dependency-name: tsx
dependency-version: 4.20.5
dependency-type: direct:development
update-type: version-update:semver-patch
dependency-group: npm
- dependency-name: typescript
dependency-version: 5.9.2
dependency-type: direct:development
update-type: version-update:semver-minor
dependency-group: npm
- dependency-name: typescript-eslint
dependency-version: 8.41.0
dependency-type: direct:development
update-type: version-update:semver-minor
dependency-group: npm
- dependency-name: vitest
dependency-version: 3.2.4
dependency-type: direct:development
update-type: version-update:semver-minor
dependency-group: npm
...
Signed-off-by: dependabot[bot] <support@github.com>
2025-08-30 18:13:39 -04:00
ObserverOfTime
90bdd63a71
fix(npm): add directory to repository fields
...
and remove non-existent "main" entry point
2025-08-30 17:16:25 -04:00
vemoo
4db3edadf4
fix(web): correct type errors, improve build
2025-08-30 16:51:41 -04:00
RedCMD
721b0e8b11
fix(web): update .d.ts files
2025-08-29 21:39:53 -04:00
ObserverOfTime
88e0b4cea4
docs: change WASM/wasm to Wasm
...
That is the official capitalisation.
2025-08-21 09:56:32 +03:00
Carlos Scheidegger
c60264b87f
docs(web): fix deno import example
2025-08-13 22:56:21 +03:00
Will Lillis
7d0b94c008
fix(docs): indicate CJS env var export is different on Windows platforms
2025-08-03 12:58:34 -04:00
RedCMD
912167a9cd
chore(web): fix indentation in type files
2025-07-14 12:50:04 +02:00
dependabot[bot]
8a15b881fd
build(deps): bump esbuild and tsx in /lib/binding_web
...
Bumps [esbuild](https://github.com/evanw/esbuild ) to 0.25.0 and updates ancestor dependency [tsx](https://github.com/privatenumber/tsx ). These dependencies need to be updated together.
Updates `esbuild` from 0.23.1 to 0.25.0
- [Release notes](https://github.com/evanw/esbuild/releases )
- [Changelog](https://github.com/evanw/esbuild/blob/main/CHANGELOG-2024.md )
- [Commits](https://github.com/evanw/esbuild/compare/v0.23.1...v0.25.0 )
Updates `tsx` from 4.19.2 to 4.19.3
- [Release notes](https://github.com/privatenumber/tsx/releases )
- [Changelog](https://github.com/privatenumber/tsx/blob/master/release.config.cjs )
- [Commits](https://github.com/privatenumber/tsx/compare/v4.19.2...v4.19.3 )
---
updated-dependencies:
- dependency-name: esbuild
dependency-version: 0.25.0
dependency-type: indirect
- dependency-name: tsx
dependency-version: 4.19.3
dependency-type: direct:development
...
Signed-off-by: dependabot[bot] <support@github.com>
2025-06-15 12:48:55 +03:00
Tamir Bahar
64760ffa76
fix(web): fix typing for Parser.init
...
Since we're usually only providing `locateFile`, we need the type to be
`Partial<>` to allow it.
This also matches the typing in `@types/emscripten`'s
`EmscriptenModuleFactory` type signature.
2025-06-15 12:41:21 +03:00
Andrew Dupont
02fff92b91
Fix type definitions in exports…
...
…and generate `.d.cts` files for CommonJS exports.
2025-06-15 09:46:05 +03:00
dependabot[bot]
bfc5d1180c
build(deps): bump vite from 6.3.2 to 6.3.4 in /lib/binding_web
...
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite ) from 6.3.2 to 6.3.4.
- [Release notes](https://github.com/vitejs/vite/releases )
- [Changelog](https://github.com/vitejs/vite/blob/main/packages/vite/CHANGELOG.md )
- [Commits](https://github.com/vitejs/vite/commits/v6.3.4/packages/vite )
---
updated-dependencies:
- dependency-name: vite
dependency-version: 6.3.4
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
2025-05-01 09:18:47 +02:00
WillLillis
eee41925aa
fix(ci): increase timeouts for flaky tests
2025-04-19 10:59:09 +02:00
dependabot[bot]
043e0c65ec
build(deps): bump vite from 6.1.0 to 6.2.6 in /lib/binding_web
...
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite ) from 6.1.0 to 6.2.6.
- [Release notes](https://github.com/vitejs/vite/releases )
- [Changelog](https://github.com/vitejs/vite/blob/v6.2.6/packages/vite/CHANGELOG.md )
- [Commits](https://github.com/vitejs/vite/commits/v6.2.6/packages/vite )
---
updated-dependencies:
- dependency-name: vite
dependency-version: 6.2.6
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
2025-04-18 23:57:56 -04:00
vemoo
4dffb818e2
feat(web): export wasm files to better support bundling use cases
2025-04-18 23:47:27 -04:00
Tamir Bahar
27fa1088b9
fix(web): replace dynamic require with import
2025-04-18 23:40:40 -04:00
Riley Bruins
21390af2dd
fix(web): correct childWithDescendant() functionality
...
This fix allows for more granular address control when marshalling nodes
across WASM. This is necessary for node methods which accept another
node as a parameter (i.e., `childWithDescendant()`)
2025-04-18 18:11:42 -04:00
Tamir Bahar
a380e1a259
refactor(web): change return types to Node[] in child-related methods
2025-03-15 09:09:31 -04:00
Christian Clason
07a1b7fc00
fix(build): bump version to 0.26.0
...
After a release, `master` branch should be bumped to the next _minor_ version.
2025-03-12 14:52:09 +01:00
WillLillis
998fb34d15
fix(test): update expected tree-sitter-rust supertypes
2025-03-02 16:37:03 -05:00
Will Lillis
3b67861def
fix(wasm): restore passing in ERROR to descendantsOfType ( #4226 )
2025-02-19 14:47:10 -08:00
Amaan Qureshi
a40265cbeb
refactor(web): rename tree-sitter.js to web-tree-sitter.js
...
This is not breaking for consumers of the web bindings, nor the
playground as both filenames will be kept in the .github.io repo
2025-02-11 22:56:50 -05:00
Roberto Huertas
f95e0e3a56
fix(web): provide type in the exports
...
When using TypeScript projects using other module settings than CommonJs, the types were not correctly exposed, and the compilation failed.
This adds the types path to the exports so compilation works for `module: NodeNext` and other variants.
2025-02-08 12:47:17 -05:00
Amaan Qureshi
f5afe475de
build: bump version to 0.25.1
2025-02-02 02:07:36 -05:00
Amaan Qureshi
a115e515ff
feat(web): include C source files for debugging
2025-01-31 20:41:11 -05:00
Amaan Qureshi
060e69e671
build(web): relocate source files in WASM sourcemap
2025-01-31 20:41:11 -05:00
Amaan Qureshi
40dfe6bd51
build(web): bump deps
2025-01-31 20:41:11 -05:00
Amaan Qureshi
304e56850f
chore(web): update type definitions
2025-01-28 20:59:37 -05:00
Amaan Qureshi
9d62f17bc4
fix(web): correct doc comment
2025-01-28 20:59:37 -05:00
Amaan Qureshi
9515be4fc1
fix(web): update check-artifacts script
2025-01-26 14:39:01 -05:00
Amaan Qureshi
5546862bb7
fix(web): correct debug file location
2025-01-26 14:15:01 -05:00
Allan Clements
cda634a1c4
feat: add error information in the progress callback
...
This allows users to bail parsing if an error was *definitely* detected
using the progress callback, as all possible stack versions have a
non-zero error cost.
Co-authored-by: Amaan Qureshi <amaanq12@gmail.com>
2025-01-25 02:47:39 -05: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
dependabot[bot]
9003b883f1
build(deps-dev): bump vite from 6.0.7 to 6.0.11 in /lib/binding_web
...
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite ) from 6.0.7 to 6.0.11.
- [Release notes](https://github.com/vitejs/vite/releases )
- [Changelog](https://github.com/vitejs/vite/blob/main/packages/vite/CHANGELOG.md )
- [Commits](https://github.com/vitejs/vite/commits/v6.0.11/packages/vite )
---
updated-dependencies:
- dependency-name: vite
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
2025-01-25 00:18:35 -05:00