Commit 374bf56
authored
feat: add Node.js 20.x, 22.x, and 24.x LTS support (#219)
Add comprehensive support for Node.js LTS versions 20.x, 22.x, and
24.x, while dropping support for older versions. The changes ensure
the library works correctly across all current LTS releases.
Update package.json engines field to require Node.js >=20.0.0. Update
GitHub Actions CI to test on all three LTS versions using the latest
stable action versions (actions/checkout@v4, actions/setup-node@v4).
Update dependencies for Node.js LTS compatibility:
- cross-env: 5.2.0 → 7.0.3
- sinon: 6.1.3 → 17.0.2
- nyc: 12.0.2 → 15.1.0
- eslint: 5.1.0 → 8.57.1 (required for Node.js 24)
- eslint-config-prettier: 2.9.0 → 9.1.0
- eslint-plugin-ava: 4.5.1 → 14.0.0
- eslint-plugin-prettier: 2.6.2 → 5.2.1
- prettier: 1.13.7 → 3.4.2
- Add @babel/eslint-parser to replace deprecated babel-eslint
Modernize linting infrastructure to support Node.js 24 by upgrading
ESLint to v8 and Prettier to v3. Remove deprecated babel-eslint and
eslint-config-chatur packages. Update ESLint configuration files for
modern standards. Apply Prettier v3 formatting to codebase.
Create .nvmrc file pinned to Node.js 24 and .releaserc.json for
explicit semantic-release configuration. Move release config from
package.json to dedicated configuration file.
Enhance GitHub Actions with OIDC for trusted npm publishing with
provenance attestation. Update semantic-release to version 25 for
OIDC support. Remove NPM_TOKEN secret requirement as authentication
now uses OIDC. Add proper permissions for release job and configure
registry URL for npm.
All 647 tests pass with 100% code coverage on Node.js 20.x, 22.x, and
24.x. Browser builds (UMD) and documentation builds succeed on all
Node.js versions with no critical deprecation warnings.
Note: Master branch already had modern tooling (webpack 5, babel 7,
TypeScript 5.9.2), eliminating OpenSSL compatibility concerns.
BREAKING CHANGE: Minimum Node.js version is now 20.0.0. Users must
upgrade to Node.js 20.x, 22.x, or 24.x to use this version.1 parent 5ce0325 commit 374bf56
File tree
49 files changed
+7899
-11125
lines changed- .github/workflows
- src/queries/vector-queries
- test
- aggregations-test
- core-test
- queries-test
- suggesters-test
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
49 files changed
+7899
-11125
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
3 | 15 | | |
4 | 16 | | |
5 | 17 | | |
| |||
17 | 29 | | |
18 | 30 | | |
19 | 31 | | |
20 | | - | |
| 32 | + | |
21 | 33 | | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
9 | 15 | | |
10 | 16 | | |
11 | 17 | | |
12 | 18 | | |
13 | 19 | | |
14 | 20 | | |
15 | | - | |
| 21 | + | |
16 | 22 | | |
17 | 23 | | |
18 | 24 | | |
19 | | - | |
| 25 | + | |
20 | 26 | | |
21 | | - | |
| 27 | + | |
22 | 28 | | |
23 | 29 | | |
24 | 30 | | |
| |||
54 | 60 | | |
55 | 61 | | |
56 | 62 | | |
57 | | - | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
58 | 66 | | |
59 | | - | |
| 67 | + | |
60 | 68 | | |
61 | | - | |
| 69 | + | |
| 70 | + | |
62 | 71 | | |
63 | 72 | | |
64 | 73 | | |
65 | 74 | | |
66 | 75 | | |
67 | 76 | | |
68 | | - | |
69 | | - | |
| 77 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
7 | 9 | | |
8 | 10 | | |
9 | 11 | | |
10 | 12 | | |
11 | | - | |
| 13 | + | |
| 14 | + | |
12 | 15 | | |
13 | 16 | | |
14 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
21 | 25 | | |
22 | 26 | | |
23 | 27 | | |
| |||
0 commit comments