Minimum safe Next.js 16.4.6 (owner's decision): doctor next-min, AGENT.md §4 item 11, doctor.md, setup and upgrade skills, changelog; O1 settled — Next 16.4.6's React copy carries the GHSA-xqc2-xf4c-x3h3 fix (checked in the code)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
Radosław Smoliński
2026-12-01 20:57:47 +01:00
co-authored by Claude Opus 5.5
parent dcf820b365
commit 347e3bafa1
9 changed files with 47 additions and 27 deletions
+5 -2
View File
@@ -326,7 +326,7 @@ describe('versions', () => {
'pnpm-pinned:info',
])
})
test('next-min: 16.4.1–16.4.4 is an error (GHSA-mfr8-8qww-v76h), 16.4.5 passes, and the rule can be silenced', async () => {
test('next-min: 16.4.1–16.4.4 is an error (GHSA-mfr8-8qww-v76h), 16.4.5 too (minimum 16.4.6 since 1.18.0), 16.4.6 passes, and the rule can be silenced', async () => {
const at = (version: string) => project({ ...base(), ...installed('next', version), ...installed('eslint-config-next', version) })
const old = await doctor(at('16.4.3'), ['next-min'])
expect(rules(old)).toEqual(['next-min:error'])
@@ -334,7 +334,10 @@ describe('versions', () => {
expect(old.findings[0].fix).toBe('pnpm add [email protected] [email protected]')
expect(rules(await doctor(at('16.4.4'), ['next-min']))).toEqual(['next-min:error'])
expect((await doctor(at('16.4.0'), ['next-min'])).findings[0].message).toContain('RCE and DoS')
expect(rules(await doctor(at('16.4.5'), ['next-min']))).toEqual([])
const five = await doctor(at('16.4.5'), ['next-min'])
expect(rules(five)).toEqual(['next-min:error'])
expect(five.findings[0].message).toContain('GHSA-xqc2-xf4c-x3h3')
expect(rules(await doctor(at('16.4.6'), ['next-min']))).toEqual([])
expect(rules(await doctor(at('16.5.0'), ['next-min']))).toEqual([])
const silenced = await doctor(at('16.4.3'), ['next-min'], { config: { rules: { 'next-min': { off: true, reason: 'upgrade booked' } } } })
expect(silenced.summary).toMatchObject({ error: 0, silenced: 1 })