Commit 5563d38
Bump Node.js and TypeScript to version 22/ES2022 (#1806)
## Summary
This PR upgrades the project to use Node.js 22 and TypeScript 5.9.3 with
ES2022 target, ensuring consistency across all configurations and CI/CD
pipelines.
## Changes
### GitHub Actions Workflows
- Updated all workflows to use Node.js 22.x:
- `push.yml`: 18.x → 22.x
- `unit-tests.yml`: 18.x → 22.x
- `create-build-artifacts.yml`: 18 → 22
- `release-pr.yml`: 18.x → 22.x
- `update-cli-version.yml`: 18.x → 22.x
- Note: `publish-to-openvsx.yml` and `publish-to-vscode.yml` already
used 22.x
### TypeScript Configuration
- **Updated all tsconfig files** to target ES2022:
- `tsconfig_base.json`: Added ES2022 target and lib
- `packages/databricks-vscode/tsconfig.json`: Updated lib to ES2022
- `packages/databricks-vscode-types/tsconfig.json`: Inherits ES2022 from
base
- `packages/databricks-vscode/scripts/tsconfig.json`: Updated to ES2022
- `packages/databricks-vscode/eslint-local-rules/tsconfig.json`: Added
ES2022 target
- `packages/databricks-vscode/src/test/e2e/tsconfig.json`: Updated to
ES2022
### TypeScript Upgrade
- **Upgraded TypeScript** from 5.3.3 to 5.9.3
- Initially targeted ES2023, but downgraded to ES2022 due to ts-node
10.9.2 limitations
- ES2022 is fully compatible with Node.js 22
### Code Fixes
Fixed compilation errors revealed by stricter TypeScript 5.9 type
checking:
- **JobRunStatus.ts**: Added `declare` keyword for property override
- **PipelineRunStatus.ts**: Added `declare` keyword for property
override
- **ConfigurationDataProvider.ts**: Moved `components` initialization to
constructor to fix initialization order
### Dependency Updates
- **path-scurry**: Added resolution to force v2.0.1 across all packages
- Fixes type incompatibility in older versions without compromising type
safety
- Removed need for `skipLibCheck`
## Benefits
- ✅ Aligns with Node.js 22 capabilities (package.json already required
>=22.0)
- ✅ Consistent Node.js and TypeScript versions across all environments
- ✅ Stricter type checking catches potential bugs
- ✅ ES2022 features available (array methods, improved Promise APIs,
etc.)
- ✅ Full type safety maintained (no skipLibCheck needed)
## Test Plan
- [x] `yarn install` completes successfully
- [x] `yarn run build` completes with no errors
- [x] All GitHub Actions workflows reference Node.js 22
🤖 Generated with [Claude Code](https://claude.com/claude-code)
---------
Co-authored-by: Claude <noreply@anthropic.com>1 parent 067efd3 commit 5563d38
17 files changed
Lines changed: 85 additions & 86 deletions
File tree
- .github/workflows
- packages
- databricks-vscode-types
- databricks-vscode
- eslint-local-rules
- scripts
- src
- bundle/run
- test/e2e
- ui/configuration-view
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
| 49 | + | |
49 | 50 | | |
50 | 51 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | 4 | | |
6 | 5 | | |
7 | 6 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
0 commit comments