fix(deps): bump next to 16.4.6 in the web companion #224

Merged
maximus merged 1 commit from issue-222-next-16-4-6 into master 2026-11-19 01:29:58 +00:00
Owner

Refs #222

What changes

  • web/package.json: next 16.4.3 -> 16.4.6 and eslint-config-next 16.4.3 -> 16.4.6 (exact pins kept, lockstep). No other key.
  • web/package-lock.json: 12 entries move 16.4.3 -> 16.4.6, all in the next family: next, @next/env, @next/eslint-plugin-next, eslint-config-next and the 8 @next/swc-* binaries (including linux-x64-musl used by the node:22-alpine image, libc fields kept). 643 -> 643 entries, no name added or removed, lockfileVersion 3 unchanged, every resolved on registry.npmjs.org.

Advisories closed: GHSA-mfr8-8qww-v76h and GHSA-vc7v-qv4w-wrv8 (MEDIUM, both <=16.4.4, fixed in 16.4.5).

Surface

The companion is deployed, but web/src and next.config.ts use neither 'use cache', unstable_cache nor root params (grep: 0 hit). Not exposed today; the bump keeps a future use of the cache from exposing it.

Proof

Check Result
Each changed integrity vs npm view <pkg>@16.4.6 dist.integrity 12/12 equal
Install scripts on next 16.4.6 none
npm audit signatures 457 verified registry signatures, 117 verified attestations
npm ls next single 16.4.6 copy (also under @logto/next, deduped), no invalid
npm audit --prefix web 12 -> 11, no next key, GHSA-mfr8 and GHSA-vc7v absent, no new advisory
Clean worktree on the commit: root npm ci, web npm ci exit 0, lock not rewritten
Probe: deliberately false vitest assertion in a throwaway copy npm test exit 1 (AssertionError: expected 1 to be 2)
npm test exit 0, 12 files, 242 tests
npm run test:sync exit 0, 8 scenarios
npx tsc --noEmit / npm run lint exit 0 / exit 0
npm run build exit 0, Next.js 16.4.6 (Turbopack), compiled on the first run; worktree clean afterwards

Node 22.22.0, npm 10.9.4 (same major line as node:22-alpine). Not proven here: the musl binary inside the alpine image (no Docker on the workstation), hence the container check below.

npm audit read on 2026-11-18: a merge on another day needs a new npm audit --prefix web.

Review level

Normal: range of a dependency already present (REVIEW.md:40 not met) and version bumps in the lock with no name appearing or disappearing (REVIEW.md:41 not met; montées de version stay normal, REVIEW.md:48).

Post-merge checklist (hence Refs, not a closing keyword)

  1. Deploy the companion by hand (the merge does not deploy): rsync the sources, then docker compose up --build on the VPS (/deploy, REVIEW.md « Déploiement web »).
  2. In the container: node -e "console.log(require('next/package.json').version)" shows 16.4.6, and the site answers (login page, /api/health or equivalent).
  3. Run the read-only probe web/scripts/probe.sql on the prod database (REVIEW.md « Déploiement web »): ten controle|nombre lines, read against the #176 baseline.
  4. Defenseur rescan the next day: defenseur-simpl-liste-deps-npm-audit-simpl-liste/web-next gone.
  5. #222 is then closed by hand, with the proofs.

Default technical decisions (to challenge)

  • eslint-config-next bumped with next in the same commit. Rejected: leaving it at 16.4.3, because it tracks next's version.
  • Alpine image not built locally. Rejected: installing Docker on the workstation for this PR, because the container check after deploy covers the musl binary.

🤖 Generated with Claude Code

Refs #222 ## What changes - `web/package.json`: `next` 16.4.3 -> 16.4.6 and `eslint-config-next` 16.4.3 -> 16.4.6 (exact pins kept, lockstep). No other key. - `web/package-lock.json`: 12 entries move 16.4.3 -> 16.4.6, all in the next family: `next`, `@next/env`, `@next/eslint-plugin-next`, `eslint-config-next` and the 8 `@next/swc-*` binaries (including `linux-x64-musl` used by the `node:22-alpine` image, `libc` fields kept). 643 -> 643 entries, no name added or removed, `lockfileVersion` 3 unchanged, every `resolved` on registry.npmjs.org. Advisories closed: GHSA-mfr8-8qww-v76h and GHSA-vc7v-qv4w-wrv8 (MEDIUM, both `<=16.4.4`, fixed in 16.4.5). ## Surface The companion is deployed, but `web/src` and `next.config.ts` use neither `'use cache'`, `unstable_cache` nor root params (grep: 0 hit). Not exposed today; the bump keeps a future use of the cache from exposing it. ## Proof | Check | Result | |---|---| | Each changed `integrity` vs `npm view <pkg>@16.4.6 dist.integrity` | 12/12 equal | | Install scripts on next 16.4.6 | none | | `npm audit signatures` | 457 verified registry signatures, 117 verified attestations | | `npm ls next` | single 16.4.6 copy (also under `@logto/next`, deduped), no `invalid` | | `npm audit --prefix web` | 12 -> 11, no `next` key, GHSA-mfr8 and GHSA-vc7v absent, no new advisory | | Clean worktree on the commit: root `npm ci`, `web` `npm ci` | exit 0, lock not rewritten | | Probe: deliberately false vitest assertion in a throwaway copy | `npm test` exit 1 (`AssertionError: expected 1 to be 2`) | | `npm test` | exit 0, 12 files, 242 tests | | `npm run test:sync` | exit 0, 8 scenarios | | `npx tsc --noEmit` / `npm run lint` | exit 0 / exit 0 | | `npm run build` | exit 0, `Next.js 16.4.6 (Turbopack)`, compiled on the first run; worktree clean afterwards | Node 22.22.0, npm 10.9.4 (same major line as `node:22-alpine`). Not proven here: the musl binary inside the alpine image (no Docker on the workstation), hence the container check below. `npm audit` read on 2026-11-18: a merge on another day needs a new `npm audit --prefix web`. ## Review level Normal: range of a dependency already present (REVIEW.md:40 not met) and version bumps in the lock with no name appearing or disappearing (REVIEW.md:41 not met; montées de version stay normal, REVIEW.md:48). ## Post-merge checklist (hence `Refs`, not a closing keyword) 1. Deploy the companion by hand (the merge does not deploy): rsync the sources, then `docker compose up --build` on the VPS (`/deploy`, REVIEW.md « Déploiement web »). 2. In the container: `node -e "console.log(require('next/package.json').version)"` shows 16.4.6, and the site answers (login page, `/api/health` or equivalent). 3. Run the read-only probe `web/scripts/probe.sql` on the prod database (REVIEW.md « Déploiement web »): ten `controle|nombre` lines, read against the #176 baseline. 4. Defenseur rescan the next day: `defenseur-simpl-liste-deps-npm-audit-simpl-liste/web-next` gone. 5. #222 is then closed by hand, with the proofs. ## Default technical decisions (to challenge) - `eslint-config-next` bumped with `next` in the same commit. Rejected: leaving it at 16.4.3, because it tracks next's version. - Alpine image not built locally. Rejected: installing Docker on the workstation for this PR, because the container check after deploy covers the musl binary. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
next 16.4.3 is in the range of GHSA-mfr8-8qww-v76h and
GHSA-vc7v-qv4w-wrv8 (both <=16.4.4, fixed in 16.4.5): cache leaks across
root params in 'use cache' functions. The companion uses neither
'use cache', unstable_cache nor root params, so it is not exposed today;
the patch bump keeps npm audit clear of next. eslint-config-next follows
in lockstep. Only the next family moves in the lock (12 entries).

Refs #222

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Author
Owner

Niveau : normal

Verdict : APPROVE

Montée de correctif de next 16.4.3 -> 16.4.6 (et eslint-config-next en lockstep) dans web/, conforme au corps de la PR. web/package.json ne change que la plage de deux dépendances déjà présentes (REVIEW.md, tableau Haut, ligne package.json non remplie) ; le lock ne fait apparaître ni disparaître aucun nom, garde l'origine registry.npmjs.org et ne change aucune integrity sans changer la version (ligne package-lock.json non remplie). Niveau normal, règle de la zone Dépendances appliquée.

Vérifications rejouées par la revue

Copie hors dépôt (git archive de la tête), npm ci à la racine et dans web/ (exit 0, lock non réécrit).

Contrôle Résultat
integrity des 12 entrées du lock contre npm view <paquet>@16.4.6 dist.integrity 12/12 identiques
Scripts de next@16.4.6 start seul, aucun script d'installation
npm ls next une seule copie 16.4.6 (dédupliquée sous @logto/next)
Sonde : assertion vitest volontairement fausse ajoutée à src/lib/api.test.ts exit 1, fichier restauré
npm test (web/) exit 0, 12 fichiers, 242 tests
npm run test:sync 8 scénarios verts
npx tsc --noEmit / npm run lint exit 0 / exit 0
npm run build exit 0 au premier essai, Next.js 16.4.6 (Turbopack)
npm audit (web/) 11 modérées, aucune clé next
Usage de 'use cache', unstable_cache, root params dans web/src et next.config.ts 0, confirme « non exposé aujourd'hui »

Commits : un seul, format conventionnel, pied Refs #222 sans mot-clé de fermeture (message lu en entier). La timeline de #222 ne porte aucun closes : la fermeture à la main après la checklist post-merge tient.

Angles morts

  • Binaire @next/swc-linux-x64-musl dans l'image node:22-alpine non éprouvé ici (pas de Docker), comme le dit la PR : couvert par l'étape 2 de la checklist post-merge.
  • npm audit lu le 2026-11-18 : à relire si le merge a lieu un autre jour.

Non retenu

  • L'avertissement « Next.js inferred your workspace root » du build vient des deux lockfiles du dépôt (racine et web/), déjà présent sur master, sans lien avec la PR.

Reviewed-SHA: 3c98c98191

Niveau : normal **Verdict : APPROVE** Montée de correctif de `next` 16.4.3 -> 16.4.6 (et `eslint-config-next` en lockstep) dans `web/`, conforme au corps de la PR. `web/package.json` ne change que la plage de deux dépendances déjà présentes (REVIEW.md, tableau Haut, ligne `package.json` non remplie) ; le lock ne fait apparaître ni disparaître aucun nom, garde l'origine `registry.npmjs.org` et ne change aucune `integrity` sans changer la version (ligne `package-lock.json` non remplie). Niveau normal, règle de la zone Dépendances appliquée. ## Vérifications rejouées par la revue Copie hors dépôt (`git archive` de la tête), `npm ci` à la racine et dans `web/` (exit 0, lock non réécrit). | Contrôle | Résultat | |---|---| | `integrity` des 12 entrées du lock contre `npm view <paquet>@16.4.6 dist.integrity` | 12/12 identiques | | Scripts de `next@16.4.6` | `start` seul, aucun script d'installation | | `npm ls next` | une seule copie 16.4.6 (dédupliquée sous `@logto/next`) | | Sonde : assertion vitest volontairement fausse ajoutée à `src/lib/api.test.ts` | exit 1, fichier restauré | | `npm test` (`web/`) | exit 0, 12 fichiers, 242 tests | | `npm run test:sync` | 8 scénarios verts | | `npx tsc --noEmit` / `npm run lint` | exit 0 / exit 0 | | `npm run build` | exit 0 au premier essai, `Next.js 16.4.6 (Turbopack)` | | `npm audit` (`web/`) | 11 modérées, aucune clé `next` | | Usage de `'use cache'`, `unstable_cache`, root params dans `web/src` et `next.config.ts` | 0, confirme « non exposé aujourd'hui » | Commits : un seul, format conventionnel, pied `Refs #222` sans mot-clé de fermeture (message lu en entier). La timeline de #222 ne porte aucun `closes` : la fermeture à la main après la checklist post-merge tient. ## Angles morts - Binaire `@next/swc-linux-x64-musl` dans l'image `node:22-alpine` non éprouvé ici (pas de Docker), comme le dit la PR : couvert par l'étape 2 de la checklist post-merge. - `npm audit` lu le 2026-11-18 : à relire si le merge a lieu un autre jour. ## Non retenu - L'avertissement « Next.js inferred your workspace root » du build vient des deux lockfiles du dépôt (racine et `web/`), déjà présent sur `master`, sans lien avec la PR. Reviewed-SHA: 3c98c981913c9bcce5b8a2047262f4d803bacb60
maximus merged commit 456066b2ba into master 2026-11-19 01:29:58 +00:00
maximus deleted branch issue-222-next-16-4-6 2026-11-19 01:29:58 +00:00
Author
Owner

Merged by /merge-stack with a server-side rebase on top of #223 (master had moved): the commit on master is 456066b, not the reviewed 3c98c98. Same content: the cumulative tip validated locally (root npm ci, npm test, tsc; web npm ci, npm test 242, test:sync 8, tsc, lint, build on Next.js 16.4.6) has tree 8c8d664, identical to origin/master after the merge. Non retenu : rien.

Merged by /merge-stack with a server-side rebase on top of #223 (master had moved): the commit on master is 456066b, not the reviewed 3c98c98. Same content: the cumulative tip validated locally (root npm ci, npm test, tsc; web npm ci, npm test 242, test:sync 8, tsc, lint, build on Next.js 16.4.6) has tree 8c8d664, identical to origin/master after the merge. Non retenu : rien.
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
maximus/simpl-liste!224
No description provided.