Skip to content

Bump wrangler to 4.158.0 and drop the sharp override - #27

Merged
barnumbirr merged 1 commit into
masterfrom
drop-sharp-override
Nov 13, 2026
Merged

barnumbirr merged 1 commit into
masterfrom
drop-sharp-override

Conversation

@barnumbirr

Copy link
Copy Markdown
Contributor

Moves wrangler from 4.151.1 to 4.158.0 and drops "overrides": {"sharp": "^0.35.5"}. Merging redeploys the Worker through deploy-worker.yml, which runs scripts/check-routes.py after the deploy.

undici

wrangler 4.151.1's miniflare carries undici 7.29.1. undici 7.30.1 fixes all eight advisories below and first ships with wrangler 4.153.0; 4.158.0 is the version Dependabot proposes in five of the six worker repos.

source on master
Dependabot alerts none open, although the lockfile carries all eight
npm audit --package-lock-only GHSA-2m5v-pch6-74hx, GHSA-qrxm-fqhp-jwvm, GHSA-4w7w-5xrc-9h26, GHSA-xjj6-f33q-929c (high); GHSA-9fm3-97px-rjf6, GHSA-4qv8-2p9j-2685, GHSA-f72v-6w45-q472, GHSA-55wc-3pg8-jfw6 (moderate)
npm audit on this branch nothing

sharp

The override pushed sharp past miniflare's exact pin for GHSA-wq5f-xc86-pv6w. Every miniflare from wrangler 4.151.1 through 4.161.0 pins sharp at exactly 0.35.5, and this lockfile resolves 0.35.5 without the override. Left in place, it would force a later miniflare pin back into ^0.35.5.

The same change is open in pkghaus/apt, pkghaus/buildinfos, pkghaus/plausible-worker, pkghaus/reproducible, pkghaus/stats.

Dependabot

This supersedes #26 (wrangler 4.158.0). They change the wrangler line, which sits directly above the override this removes, so they and this PR can't both merge without a conflict. Once wrangler is at 4.158.0 Dependabot should close them; if it doesn't, close them by hand.

Verified

  • Lockfile written with npm 12, so all 16 linux @img/sharp-* entries keep their libc field; identical to deps: bump wrangler from 4.158.0 to 4.159.0 in /worker #26's apart from @jridgewell/resolve-uri 3.1.2 to 3.1.3, a patch npm resolved within range
  • npm ci under node:22 (npm 10.9.8, as CI runs it): passes
  • npm test: no test script in this package
  • npx wrangler deploy --dry-run with 4.158.0: builds (0.31 KiB)

wrangler 4.158.0 brings miniflare's undici to 7.30.1, which clears the
eight undici advisories npm audit reports on the committed lockfile:
GHSA-2m5v-pch6-74hx, GHSA-4qv8-2p9j-2685, GHSA-4w7w-5xrc-9h26,
GHSA-55wc-3pg8-jfw6, GHSA-9fm3-97px-rjf6, GHSA-f72v-6w45-q472,
GHSA-qrxm-fqhp-jwvm and GHSA-xjj6-f33q-929c. undici 7.30.1 first
ships with wrangler 4.153.0; 4.158.0 is the version Dependabot
proposes across these repos.

The sharp override (^0.35.5, for GHSA-wq5f-xc86-pv6w) has done its
job: every miniflare from wrangler 4.151.1 on pins sharp at exactly
0.35.5, and the lockfile resolves 0.35.5 without it. Left in place it
would force a later miniflare pin back into ^0.35.5.

Lockfile written with npm 12 so the @img/sharp-* entries keep their
libc field. npm audit on it reports nothing; npm ci under node:22's
npm 10 passes, as do the tests where the repo has them, and wrangler
deploy --dry-run builds the Worker.
@barnumbirr
barnumbirr merged commit b9ee574 into master Nov 13, 2026
1 check passed
@barnumbirr
barnumbirr deleted the drop-sharp-override branch November 13, 2026 08:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant