Skip to content

fix: pin sanitize-html to 2.17.5 to restore the ens api routes - #795

Merged
rickstaa merged 1 commit into
mainfrom
fix/pin-sanitize-html
Sep 7, 2026
Merged

fix: pin sanitize-html to 2.17.5 to restore the ens api routes#795
rickstaa merged 1 commit into
mainfrom
fix/pin-sanitize-html

Conversation

@rickstaa

@rickstaa rickstaa commented Sep 7, 2026

Copy link
Copy Markdown
Member

#788's pnpm update silently re-landed sanitize-html 2.17.7 inside the ^2.17.5 range — the same htmlparser2-12/ESM break as #777 — so every /api/ens-data* call 500s in production (x-matched-path: /_error: the function dies at import, before the handler's error handling). ENS names, avatars, and search are down.

This pins sanitize-html to exactly 2.17.5, restoring the byte-identical resolution (htmlparser2 10.1.0) that production ran before #788. Re-accepts two moderate advisories on 2.17.5 until the Vercel runtime is confirmed on Node ≥ 20.19 — then the pin can be lifted and #784 re-landed.

Verified locally: 363/363 tests, build, /api/ens-data/[address] 200 on the built server.

2.17.7 pulls the ESM-only htmlparser2 12, which crashes Vercel's
function runtime at import and 500s every /api/ens-data call. The
exact pin stops in-range refreshes from re-landing it (as #788's
pnpm update silently did) until the runtime is confirmed >=20.19.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Copilot AI lite review requested due to automatic review settings September 7, 2026 10:01
@rickstaa
rickstaa requested a review from ECWireless as a code owner September 7, 2026 10:01
@vercel

vercel Bot commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
explorer-arbitrum-one Ready Ready Preview Sep 7, 2026 10:03am UTC

Request Review

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

The change is a targeted dependency pin with consistent lockfile updates that directly addresses the reported runtime import failure.

Pull request overview

Pins sanitize-html to a known-good version to restore Next.js ENS API routes that were failing at module import time due to a transitive ESM/runtime incompatibility.

Changes:

  • Pin sanitize-html dependency from ^2.17.7 to exact 2.17.5 in package.json.
  • Update pnpm-lock.yaml to resolve sanitize-html@2.17.5 (and htmlparser2@10.1.0), removing the htmlparser2@12/Node engine constraints that were reintroduced by the semver range.
File summaries
File Description
package.json Pins sanitize-html to 2.17.5 to prevent semver-range re-resolution to the breaking version.
pnpm-lock.yaml Aligns the lockfile to the pinned version and restores the previous transitive dependency graph.
Review details

Files not reviewed (1)

  • pnpm-lock.yaml: Generated file
  • Files reviewed: 1/2 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@rickstaa
rickstaa merged commit b4d9e50 into main Sep 7, 2026
10 checks passed
@rickstaa
rickstaa deleted the fix/pin-sanitize-html branch September 7, 2026 10:03
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.

2 participants