Commit 1dbbe1d
committed
Replace isomorphic-dompurify with dompurify, drop jsdom from production deps (#804)
Since DOMPurify is only used in a "use client" component (EntryContentBody),
it always runs in the browser where native DOM is available. This means we
don't need isomorphic-dompurify's jsdom-based server fallback.
- Replace `isomorphic-dompurify` with `dompurify` (uses native browser DOM)
- Remove `jsdom` from production dependencies (remains available via vitest)
- Reduces transitive dependency surface area (no more undici in production)
Closes #804
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent c444c69 commit 1dbbe1d
3 files changed
Lines changed: 56 additions & 37 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| 64 | + | |
64 | 65 | | |
65 | 66 | | |
66 | 67 | | |
| |||
70 | 71 | | |
71 | 72 | | |
72 | 73 | | |
73 | | - | |
74 | | - | |
75 | 74 | | |
76 | 75 | | |
77 | 76 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
0 commit comments