Commit a0b7ae7
chore(deps): bump lodash to 4.18.1 (#216)
Supersedes #214, taking only the lodash half of the grouped update.
## Why #214's CI fails
#214 bumps two lockfile-only deps: **webpack 5.76.0 → 5.104.1** and
**lodash 4.17.21 → 4.18.1** (both resolve within existing `package.json`
ranges; webpack is a devDependency, lodash is transitive).
The test suite compares the *entire webpack-generated bundle
byte-for-byte* against checked-in fixtures (`test/unit/*/output.js`,
plus expected chunk filenames in `test/project-chunking`). webpack 5.104
changes codegen — method-shorthand module rendering in
`__webpack_modules__`, different module ids, changed IIFE wrapping — so
**71 of 85 tests fail on every OS**, e.g.:
```diff
-/***/ 147:
-/***/ ((module) => {
+/***/ 896
+(module) {
```
The loader itself still relocates assets correctly under webpack 5.104;
the mismatches are formatting/ids. But accepting the bump would mean
regenerating ~71 fixtures **twice** (`output.js` + `output-coverage.js`)
plus the project-chunking expectations — a huge, hard-to-review diff.
## This PR (path of least change)
- ✅ **lodash 4.17.21 → 4.18.1** — same 3-line lockfile entry as in #214.
Resolves the security advisories that triggered the group
([GHSA-f23m-r3pf-42rh](GHSA-f23m-r3pf-42rh)
`_.unset`/`_.omit` prototype pollution,
[GHSA-r5fr-rjxr-66jc](GHSA-r5fr-rjxr-66jc)
/ CVE-2026-4800 `_.template` code injection). lodash is dev-tooling-only
here and appears in no fixture output.
- ❌ **webpack stays at 5.76.0** — bumping it requires regenerating every
fixture, which deserves its own deliberate PR. Exposure is limited:
webpack is a devDependency (build/test-time only).
## Verification
`yarn test` and `yarn test-coverage` both pass **85/85** locally on Node
22 with webpack 5.76.0 + lodash 4.18.1 (reproduced #214's 71 failures
locally first, then confirmed green after dropping the webpack bump).
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: vercel[bot] <35613825+vercel[bot]@users.noreply.github.com>1 parent a72eacf commit a0b7ae7
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4649 | 4649 | | |
4650 | 4650 | | |
4651 | 4651 | | |
4652 | | - | |
4653 | | - | |
4654 | | - | |
| 4652 | + | |
| 4653 | + | |
| 4654 | + | |
4655 | 4655 | | |
4656 | 4656 | | |
4657 | 4657 | | |
| |||
0 commit comments