Skip to content

chore: use dompurify instead of isomorphic version#2852

Merged
chanceaclark merged 1 commit intocanaryfrom
chore/dompurify
Jan 29, 2026
Merged

chore: use dompurify instead of isomorphic version#2852
chanceaclark merged 1 commit intocanaryfrom
chore/dompurify

Conversation

@chanceaclark
Copy link
Copy Markdown
Contributor

What/Why?

Uses regular dompurify (DP) instead of isomorphic-dompurify (IDP), because IDP requires JSDOM. JSDOM doesn't work in edge-runtime environments even with nodejs compatibility. We only need it on the client anyways for the JSON-LD schema, so it doesn't need the isomorphic aspect of it. This also changes core/app/[locale]/(default)/product/[slug]/_components/product-review-schema/product-review-schema.tsx to be a client-component to enable `dompurify to work correctly.

Testing

screencapture-localhost-3000-1-l-le-parfait-jar-2026-01-29-14_24_37

Migration

See migration guide as apart of the changeset.

@vercel
Copy link
Copy Markdown

vercel Bot commented Jan 29, 2026

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

Project Deployment Actions Updated (UTC)
catalyst Ready Ready Preview, Comment Jan 29, 2026 9:35pm

Request Review

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Jan 29, 2026

🦋 Changeset detected

Latest commit: b3556e3

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@bigcommerce/catalyst-core Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@chanceaclark chanceaclark marked this pull request as ready for review January 29, 2026 21:35
@chanceaclark chanceaclark requested a review from a team January 29, 2026 21:35
@chanceaclark chanceaclark added this pull request to the merge queue Jan 29, 2026
Merged via the queue into canary with commit a7395f1 Jan 29, 2026
12 checks passed
@chanceaclark chanceaclark deleted the chore/dompurify branch January 29, 2026 21:57
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