Repository navigation
Fix Next.js publish fixture security dependencies - #21455
David Pine (IEvangelist) wants to merge 1 commit into
Conversation
Update Next.js to 16.4.1 and the sharp override to 0.35.5, regenerating the fixture lockfile with npm. Co-authored-by: Copilot App <[email protected]>
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 21455Or
iex "& { $(irm https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 21455" |
Tests selector1 / 100 PR test projects · 0 PR jobs, from 2 changed files. Selected PR test projects (1 / 100)
Selected PR jobs (0)none How these were chosen — grouped by what changed🧪 🧪 Job reasonsnone Selection computed for commit |
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues block the fixture-only dependency updates.
No open issues 🎉
1 file not reviewed
tests/Aspire.Cli.EndToEnd.Tests/Fixtures/JsPublish/nextjs/package-lock.json: Generated file
What changed in this PR
Updates security-sensitive dependencies in the Next.js fixture used by Aspire CLI JavaScript publish end-to-end tests. The changes are limited to the fixture; production Aspire dependencies and workflows are unchanged.
Changes:
- Updates Next.js from 16.3.8 to 16.4.1 and the sharp override from 0.35.4 to 0.35.5.
- Regenerates the lockfile with matching Next.js, sharp, and native dependency versions.
| File | Description |
|---|---|
tests/Aspire.Cli.EndToEnd.Tests/Fixtures/JsPublish/nextjs/package.json |
Updates Next.js and the explicit sharp override. |
tests/Aspire.Cli.EndToEnd.Tests/Fixtures/JsPublish/nextjs/package-lock.json |
Locks updated dependencies and refreshes package URLs, integrity hashes, and platform metadata. |
Review effort: Balanced
|
Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt. |
|
[automated] Next.js 16.4.5 is now available. |
|
Superseded by the consolidated dependency update in #22643, which includes this change. |
Pull request was closed
Description
Remove vulnerable dependency versions from the executed Next.js CLI publish fixture. Update Next.js from 16.3.8 to 16.4.1 and its explicit sharp override from 0.35.4 to 0.35.5, regenerating the npm lockfile. No production Aspire dependencies or workflows change.
Addresses Dependabot records 2740, 2739, 2738, and 2560. The fixture runs in JavaScript publish E2E tests; the checked-in app does not demonstrate the advisory-specific exploit triggers.
Overlap reconciliation: #21404, #21383, #21354, and #21342 already update this fixture to Next.js 16.4.1, but their current heads all retain both the sharp override and lockfile at 0.35.4, despite Next.js requiring ^0.35.5. None contains this equivalent fix. This PR isolates the complete fixture remediation; those broad update branches were not modified and may need reconciliation after this lands.
Validation
Commands ran in
tests/Aspire.Cli.EndToEnd.Tests/Fixtures/JsPublish/nextjsunless noted:npm ci --no-fund --no-audit— passed on Windows.npm run build— passed on Windows.npm audit --package-lock-only --json— baseline reported critical Next.js and high sharp package aggregates; patched result passed with zero vulnerabilities.npm ls next sharp— passed: Next.js 16.4.1 and overridden sharp 0.35.5.node:24-bookworm-slimglibc Linux container,npm ci --no-fund --no-audit && npm run build && node /checks/nextjs-smoke.cjs— passed. The session-owned smoke script asserted patched dependency versions, exercised sharp SVG-to-PNG processing, and started the production standalone server to verify HTTP 200 and the expected heading. Script is validation-only and not part of this PR.git diff origin/main...HEAD --check— passed.Full Aspire CLI E2E orchestration was not run; a source-matched CLI archive was not built. The existing test-folder convention routes these fixture changes to
Aspire.Cli.EndToEnd.Tests; no test-selection map change is needed. GitHub CI remains to run.Fixes # (issue)
Checklist
<remarks />and<code />elements on your triple slash comments?