Commit 26d9b1e
authored
feat!: drop Node.js < 22 support (#722)
## Summary
- **BREAKING CHANGE**: Minimum supported Node.js version is now 22.0.0
- Remove `patchForNode16()` polyfills from production code
(`src/utils.ts`, `src/index.ts`)
- Delete old Node.js CI workflow
(`.github/workflows/nodejs-old-versions.yml`) and test patches
(`test/patch-for-node16-18.cjs`, `test/setup.ts`)
- Remove polyfill devDependencies (`@ungap/structured-clone`,
`string.prototype.towellformed`)
- Simplify version-conditional test code across 10 test files (keySize
ternaries, skipIf checks, version-branched assertions)
- Update CI matrix: Node.js 22, 24, 25 only
## Test plan
- [x] `vp check` passes (lint, format)
- [x] `vp test run` passes (40 test files, 202 tests)
Closes #718
🤖 Generated with [Claude Code](https://claude.com/claude-code)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **Chores**
* Updated minimum Node.js version requirement to 22.0.0
* Removed unused development dependencies
* Simplified runtime initialization and test infrastructure
* Updated CI workflows to test Node.js 22, 24, and 25
<!-- end of auto-generated comment: release notes by coderabbit.ai -->1 parent 46c6ac9 commit 26d9b1e
File tree
20 files changed
+20
-951
lines changed- .github/workflows
- src
- test
- fixtures
20 files changed
+20
-951
lines changedThis file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
65 | 64 | | |
66 | 65 | | |
67 | 66 | | |
68 | 67 | | |
69 | | - | |
| 68 | + | |
70 | 69 | | |
71 | 70 | | |
72 | 71 | | |
| |||
90 | 89 | | |
91 | 90 | | |
92 | 91 | | |
93 | | - | |
94 | 92 | | |
95 | 93 | | |
96 | 94 | | |
97 | 95 | | |
98 | 96 | | |
99 | 97 | | |
100 | | - | |
101 | 98 | | |
102 | 99 | | |
103 | 100 | | |
| |||
116 | 113 | | |
117 | 114 | | |
118 | 115 | | |
119 | | - | |
| 116 | + | |
120 | 117 | | |
121 | 118 | | |
122 | 119 | | |
| |||
0 commit comments