Repository navigation
chore(deps): exact dependency versions, and the open Dependabot updates - #413
Conversation
Asked by the security team: each dependency names the one version it installs, never a range, and updates come through Dependabot. - dependencies, devDependencies and overrides of the root and the three test fixtures pinned to the versions their lockfiles install (no version changes); an override of a direct dependency is its $name reference (chokidar). peerDependencies stay ranges: they say what pp-dev works with. - .npmrc with save-exact=true in the root and each fixture, so npm install saves exact versions. - Dependabot: versioning-strategy increase, so it moves a pinned version instead of widening it into a range (the default for a library). - CLAUDE.md: the rule, under "After any dependency change".
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the
|
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues remain for the dependency-pinning and toolchain updates.
No open issues 🎉
3 files not reviewed
tests/test-commonjs/package-lock.json: Generated filetests/test-nextjs-cjs/package-lock.json: Generated filetests/test-nextjs/package-lock.json: Generated file
What changed in this PR
This PR pins dependency versions across pp-dev and its three test fixtures, and consolidates five open Dependabot updates for the development and build toolchain.
Changes:
- 🧹 Pin dependencies, development dependencies, and overrides while preserving peer dependency ranges.
- 🔐 Update
ws,rimraf,rollup,tslib, and Vitest packages, including the upstreamwsmemory-exhaustion fix. - 🧹 Add exact-save npm settings, configure Dependabot to advance pinned versions, and document the policy.
| File | Description |
|---|---|
tests/test-nextjs/package.json |
Pin Next.js ESM fixture dependencies. |
tests/test-nextjs/package-lock.json |
Align pinned declarations and record bundled WASM dependencies. |
tests/test-nextjs/.npmrc |
Enable exact-version saves. |
tests/test-nextjs-cjs/package.json |
Pin Next.js CommonJS fixture dependencies. |
tests/test-nextjs-cjs/package-lock.json |
Align pinned declarations and record bundled WASM dependencies. |
tests/test-nextjs-cjs/.npmrc |
Enable exact-version saves. |
tests/test-commonjs/package.json |
Pin Vite CommonJS fixture dependencies. |
tests/test-commonjs/package-lock.json |
Align lockfile declarations with pinned versions. |
tests/test-commonjs/.npmrc |
Enable exact-version saves. |
package.json |
Pin root dependencies and overrides; apply dependency updates. |
package-lock.json |
Record updated packages and exact root declarations. |
CLAUDE.md |
Document pinning policy and peer dependency exceptions. |
.npmrc |
Enable exact-version saves at the root. |
.github/dependabot.yml |
Set increase strategy for pinned-version updates. |
Review effort: Balanced
🧹 Exact dependency versions, and the open Dependabot updates in one
Two commits.
The open Dependabot updates (5581c47)
The updates of #378, #387, #407, #408 and #409 together, so they don't conflict on
package-lock.jsonone after another:wsrimrafrolluptslibvitest,@vitest/coverage-v8Dependabot closes its pull requests once
develophas these versions.Exact versions (de6faf1)
Asked by the security team: every package names the one version it installs, never a range; updates come through Dependabot.
dependencies,devDependenciesandoverridesof the root and the three test fixtures are pinned to the versions their lockfiles install: no version changes (the lockfiles change only in theirpackage.jsonentries; npm also lists the packages@tailwindcss/oxide-wasm32-wasibundles in the Next.js fixtures' lockfiles).overrides: a range becomes the one version installed (>=0.8.12→0.9.12, …); the override ofchokidar, also a direct dependency, is its$chokidarreference, which npm requires once the dependency is exact.peerDependenciesstay ranges (next >= 13 < 17,svgtofont ^6.5.3): they say what pp-dev works with, not what is installed..npmrcwithsave-exact=truein the root and each fixture, sonpm install <pkg>saves an exact version..github/dependabot.yml:versioning-strategy: increase. For a library the default (auto) widens a version into a range;increasemoves the pinned version.CLAUDE.md: the rule, under "After any dependency change".What it means for projects that install pp-dev: they get exactly the versions of pp-dev's dependencies it was released with; a fix in one of them reaches them with a pp-dev release.
Not covered: Dependabot watches the root only. The fixtures depend on the pp-dev tarball the build makes (
file:../../metricinsights-pp-dev-latest.tgz, not in git), which Dependabot can't resolve; their pinned versions move by hand, as theiroverridesdo today. CI still installs them with--package-lock=false, which the shared workflow config sets.🧪 Tests
npm run reinstall:all(build + reinstall in the fixtures) andnpm run audit:all: root and fixtures clean.npm run typecheck, lint 0 errors, unit 1613 passed, integration 72 passed.