Overrides for two advisories published 2026-12-01: ws below 8.23.0 (GHSA-37g9-w4hg-h9qr, high, via payload) and cross-spawn below 7.1.0 (GHSA-ghv9-86vm-4v8m, critical, Windows only, via cross-env / eslint) in the plugin and the reference site (and so the starter); doctor transitive-min, AGENT.md §4 item 12, setup and upgrade skills, changelog

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
Radosław Smoliński
2026-12-01 23:54:52 +01:00
co-authored by Claude Opus 5.5
parent 713b28e79f
commit f38a8cc677
12 changed files with 93 additions and 33 deletions
+12
View File
@@ -361,6 +361,18 @@ describe('versions', () => {
expect(rules(await doctor(at('8.24.10', '21.1.0'), ['transitive-min']))).toEqual([])
// another major line (Payload 4 uses mongoose 9) is not compared with the 8.x minimum
expect(rules(await doctor(at('9.11.4', '21.0.4'), ['transitive-min']))).toEqual([])
// ws below 8.23.0 (GHSA-37g9-w4hg-h9qr): a warning; 8.23.0 passes
const wsLock = (v: string) => `lockfileVersion: '9.0'\n\npackages:\n\n ws@${v}:\n resolution: {integrity: x}\n\nsnapshots:\n\n ws@${v}: {}\n`
const wsOld = await doctor(project({ ...base(), 'pnpm-lock.yaml': wsLock('8.21.0') }), ['transitive-min'])
expect(rules(wsOld)).toEqual(['transitive-min:warning'])
expect(wsOld.findings[0].message).toContain('GHSA-37g9-w4hg-h9qr')
expect(wsOld.findings[0].fix).toContain('"ws@>=8 <8.23.0": "^8.23.0"')
expect(rules(await doctor(project({ ...base(), 'pnpm-lock.yaml': wsLock('8.23.1') }), ['transitive-min']))).toEqual([])
const csLock = (v: string) => `lockfileVersion: '9.0'\n\npackages:\n\n cross-spawn@${v}:\n resolution: {integrity: x}\n\nsnapshots:\n\n cross-spawn@${v}: {}\n`
const csOld = await doctor(project({ ...base(), 'pnpm-lock.yaml': csLock('7.0.6') }), ['transitive-min'])
expect(rules(csOld)).toEqual(['transitive-min:warning'])
expect(csOld.findings[0].fix).toContain('"cross-spawn@>=7 <7.1.0": "^7.1.2"')
expect(rules(await doctor(project({ ...base(), 'pnpm-lock.yaml': csLock('7.1.2') }), ['transitive-min']))).toEqual([])
// no MongoDB adapter, no lexical: nothing to report
expect(rules(await doctor(project(base()), ['transitive-min']))).toEqual([])
const silenced = await doctor(at('8.24.1', '20.14.6'), ['transitive-min'], { config: { rules: { 'transitive-min': { off: true, reason: 'Payload upgrade booked' } } } })