Repository navigation
Commit 3b775f3
chore(deps): update dependencies (#696)
* chore(deps): update dependencies
Bump runtime and dev dependencies to their latest compatible versions and
refresh the affected snapshots and generated types.
Notable follow-on changes:
- `cssnano` >= 8.0.3 and `@changesets/get-github-info` v1 are exports-only,
which neither `moduleResolution: "node"` nor the `import` plugin's node
resolver can read, so their import sites are annotated.
- the `import` plugin cannot parse `copy-webpack-plugin` v14's dist bundle.
- refresh the vendored `serialize-javascript` copy for v7.1.0.
- resolve transitive `fast-uri`, `brace-expansion`, `js-yaml` and
`shell-quote` advisories; `npm audit` is now clean.
Two packages raised their own Node requirements, so the rows that can no
longer run them skip the affected tests, as the matrix already does for
`@swc/*`, `html-minifier-terser` and `esbuild`:
- `cssnano@8` declares `engines.node` as `^22.11.0 || ^24.11.0 || >=26.0`
and calls `Array.prototype.difference`, which only lands in V8 13.x, so
Node 18 and 20 throw `trustedFunctions.difference is not a function` at
minify time. The `RUN_CSS_TESTS` gate in `jest.config.js` moves from
Node 18 to Node 22.
- `copy-webpack-plugin@14` declares `engines.node` as `>= 20.9.0` and
calls `Array.prototype.toSorted`, so Node 10-18 throw `toSorted is not
a function`. Only `should work with ES modules` uses the plugin, so it
is filtered by name through the workflow's existing `-t` pattern rather
than skipping all of `TerserPlugin.test.js`, and an `18.x` case is added
for the row that previously ran the suite unfiltered.
Held back deliberately:
- `@babel/*` v8 requires Node >= 20 and would fail `api.assertVersion(7)`,
breaking the Node 10-18 CI legs.
- `typescript` v7 removes `moduleResolution: node10` and needs a tsconfig
and source migration.
- `del` v7+ is ESM-only and drops its default export.
- `jest-worker` v30 requires Node >= 18.14, but this package supports
Node >= 10.13.0.
- `prettier-2` is an intentional pin for testing against Prettier 2.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XzZ6pmcJEquRDbKy4gKA8R
* fix: load `copy-webpack-plugin` lazily so old Node can run the suite
`copy-webpack-plugin@14` reaches for `require("node:path")`, a specifier
Node 10 and 12 cannot resolve, so importing it at the top of the file threw
before any test ran and took all 58 tests in `TerserPlugin.test.js` with it.
Filtering the one test that uses the plugin out by name does not help: `-t`
skips test execution, not module loading.
Move the import into the body of `should work with ES modules`, the only
test that uses it, so the rows that filter that test never load the module.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XzZ6pmcJEquRDbKy4gKA8R
---------
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>1 parent f950afb commit 3b775f3
20 files changed
Lines changed: 4025 additions & 4445 deletions
File tree
- .changeset
- .github/workflows
- src
- test
- __snapshots__
- types
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
1 | 4 | | |
2 | 5 | | |
3 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
170 | 176 | | |
171 | 177 | | |
172 | 178 | | |
173 | 179 | | |
174 | | - | |
| 180 | + | |
175 | 181 | | |
176 | 182 | | |
177 | 183 | | |
178 | 184 | | |
179 | | - | |
| 185 | + | |
180 | 186 | | |
181 | 187 | | |
182 | | - | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
183 | 192 | | |
184 | 193 | | |
185 | 194 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
298 | 298 | | |
299 | 299 | | |
300 | 300 | | |
301 | | - | |
302 | | - | |
303 | | - | |
304 | | - | |
| 301 | + | |
305 | 302 | | |
306 | 303 | | |
307 | 304 | | |
| |||
368 | 365 | | |
369 | 366 | | |
370 | 367 | | |
371 | | - | |
372 | | - | |
373 | | - | |
| 368 | + | |
374 | 369 | | |
375 | 370 | | |
376 | 371 | | |
| |||
580 | 575 | | |
581 | 576 | | |
582 | 577 | | |
583 | | - | |
584 | | - | |
585 | | - | |
586 | | - | |
| 578 | + | |
587 | 579 | | |
588 | 580 | | |
589 | 581 | | |
| |||
1399 | 1391 | | |
1400 | 1392 | | |
1401 | 1393 | | |
1402 | | - | |
1403 | | - | |
1404 | | - | |
| 1394 | + | |
1405 | 1395 | | |
1406 | 1396 | | |
1407 | 1397 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
| 1 | + | |
| 2 | + | |
3 | 3 | | |
4 | | - | |
5 | | - | |
6 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
7 | 11 | | |
8 | 12 | | |
9 | | - | |
| 13 | + | |
10 | 14 | | |
11 | 15 | | |
12 | 16 | | |
| |||
0 commit comments