Skip to content

chore(deps): bump sharp and next - #37

Open
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/npm_and_yarn/multi-602d0ec552
Open

chore(deps): bump sharp and next#37
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/npm_and_yarn/multi-602d0ec552

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Sep 11, 2026

Copy link
Copy Markdown
Contributor

Bumps sharp to 0.35.4 and updates ancestor dependency next. These dependencies need to be updated together.

Updates sharp from 0.34.5 to 0.35.4

Release notes

Sourced from sharp's releases.

v0.35.4

https://github.com/lovell/sharp-libvips/releases/tag/v1.3.3

v0.35.4-rc.0

... (truncated)

Commits
  • 7f1a0a2 Release v0.35.4
  • f927818 Upgrade to sharp-libvips v1.3.3
  • e802092 Prerelease v0.35.4-rc.0
  • e13eb2f CI: Fix wasm32 build (#4589)
  • a82a0b3 Upgrade to libvips v8.18.6
  • 8044fe4 Bound resize dimensions to coordinate limit
  • 147f859 Docs: changelog entries for #4578 #4584
  • ee5bfb8 Tests: use yauzl directly rather than via extract-zip wrapper
  • 7a77889 Bump uraimo/run-on-arch-action from 3.1.0 to 3.2.0 (#4588)
  • ea5bef2 Improve support for input Streams finishing before output is requested (#4584)
  • Additional commits viewable in compare view

Updates next from 16.2.10 to 16.3.4

Release notes

Sourced from next's releases.

v16.3.4

Follow-up release to v16.3.3 re-enabling AVIF Image Optimization (#97949).

The following bug fixes have been backported. It does not include all pending features/changes on canary.

  • testmode: Fix infinite recursion in testmode passthrough fetch (#97691)
  • Fix build error when aliasing typescript to @​typescript/typescript6 (#97997)
  • Fix unset crossOrigin in Turbopack manifests (#97930)

Credits

Huge thanks to @​eps1lon, @​mischnic, and @​timneutkens for helping!

v16.3.3

This release contains security fixes for the following advisories:

Critical:

v16.3.2

[!NOTE] This release is backporting bug fixes. It does not include all pending features/changes on canary.

Core Changes

  • [backport] Scope app-entry export validation to files inside the app directory (#97357)
  • [backport] Fix catch-all index page being served for every other slug (#97416)
  • [16.3] Turbopack: don't trace embedded WASM loader helpers (#97353) (#97463)
  • [16.3] Turbopack: retain conditions when replacing resolve request keys (#97453)
  • [16.3.x] Fix Turbopack worker chunk loading with asset prefix (#97419)
  • [16.3.x] Authenticate Turborepo remote caching with OIDC instead of a static PAT (#97603)

Credits

Huge thanks to @​lubieowoce, @​unstubbable, @​timneutkens, @​mischnic, and @​eps1lon for helping!

v16.3.1

What's Changed

... (truncated)

Commits
  • 299180d v16.3.4
  • 12e173d [16.3.x] Re-enable AVIF image optimization and require sharp 0.35.4 (#97949)
  • 5d9022e [backport] Fix unset crossOrigin in Turbopack manifests (#97930)
  • d8f4560 [16.3.x] Fix build error when aliasing typescript to @​typescript/typescript6 ...
  • 656aebf [16.3] testmode: Fix infinite recursion in testmode passthrough fetch (#97691)
  • f37c1d6 [16.3.x] ci: remove pull_request_stats workflow (#97975)
  • a9a1cb7 v16.3.3
  • 968b9fc [16.3.x] Fix ISR misses with backslashes in segments when deployed on Windows
  • 3a15b4a [16.3.x] [next/image]: disable avif image optimization
  • 7378b51 Backport/docs fixes 16.3 (#97649)
  • Additional commits viewable in compare view

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    You can disable automated security fix PRs for this repo from the Security Alerts page.

Bumps [sharp](https://github.com/lovell/sharp) to 0.35.4 and updates ancestor dependency [next](https://github.com/vercel/next.js). These dependencies need to be updated together.


Updates `sharp` from 0.34.5 to 0.35.4
- [Release notes](https://github.com/lovell/sharp/releases)
- [Commits](lovell/sharp@v0.34.5...v0.35.4)

Updates `next` from 16.2.10 to 16.3.4
- [Release notes](https://github.com/vercel/next.js/releases)
- [Commits](vercel/next.js@v16.2.10...v16.3.4)

---
updated-dependencies:
- dependency-name: sharp
  dependency-version: 0.35.4
  dependency-type: indirect
- dependency-name: next
  dependency-version: 16.3.4
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Sep 11, 2026
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Sep 11, 2026

@clestons clestons left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ APPROVE — #37 · 建议优先合并(取代已关闭的 #36

Head: 4e5a8da · dependabot · next ^16.1.1 → 16.3.4,连带 sharp 0.34.5 → 0.35.4(两者必须一起升)· 2 文件 +284/−222
轮次: 2-round(纯依赖升级)· R1a+R1b DeepSeek → 判断由执行者做

作者意图(一句话):升级 Next.js 及其图片依赖 sharp。顺带修掉仓库唯一的 critical 漏洞。

更正我在 #36 上的建议:#36 已被 dependabot 关闭,由这个 PR 取代。「先合」的对象现在是 #37

为什么建议优先合它

main 上的 next@16.2.10 落在 npm audit 报的 critical 区间 9.3.4-canary.0 – 16.3.2(中间件/Proxy 绕过、Server Actions SSRF、响应体缓存混淆等)。这个 PR 升到 16.3.4,在区间之外 —— 它的 Security Audit 是绿的#35 上那盏红灯正是这个 next,#37 合并后 #35 rebase 即可转绿。

核过的

  • integrity 与官方 registry 逐字一致next@16.3.4sharp@0.35.4 在 lockfile 里的 sha512-… 都等于 registry.npmjs.orgdist.integrity。改动条目的 resolvednpmmirror 换成 npmjs.org(与 #36 相同的换源),integrity 一致说明没有夹带。
  • Node 版本:两者都要求 node >=20.9.0.nvmrcDockerfilenode:20.19.0-alpine)为 20.19.0,CI 为 20.x —— 满足。
  • 原生二进制:Dockerfile 是 alpine(musl)。lockfile 里 @img/sharp-linuxmusl-x64 / -arm64@img/sharp-linux-x64 都同步到 0.35.4,@img/sharp-libvips-linuxmusl-x64 到 1.3.3 —— 容器里的 npm ci 能拿到对应平台的预编译包。
  • sharp 不再有安装脚本:0.34.5 带 install: node install/check.js || npm run build,0.35.4 没有,lockfile 相应去掉了 hasInstallScript安装时少执行一段第三方代码,是正向变化。
  • sharp 不是直接依赖aastar-frontend/package.json 只改了 next 那一行。
  • CI:Build、Code Quality、Tests、Type Check、CodeQL(JS/TS)、Security Audit、Trivy、CI Success 全绿。

一处值得知道(不阻塞)

sharp 0.35 的发布说明里包括「resize 尺寸与 composite 坐标限定在坐标上限内」这类行为收紧 —— 如果前端有依赖超大尺寸图片处理的地方,行为可能从「处理」变成「报错」。CI 的 Build 全绿说明构建期没有撞上。

结论

APPROVE,建议先于 #35 合并 —— 它是修掉 critical 的那一个。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant