ReviewOS

also looking at this

stacks/stx

chore(deps): update dependency isomorphic-dompurify to 3.0.0

#1632
Closed github-actions[bot] wants to merge buddy-bot/update-major-update-isomorphic-dompurify into main
2 files +3 -3
10 days ago

This PR contains the following updates:

npm

PackageChangeAgeAdoptionPassingConfidence
isomorphic-dompurify (source)2.36.0 -> 3.0.0ageadoptionpassingconfidence

Release Notes

kkomelin/isomorphic-dompurify (isomorphic-dompurify)

2.36.0 -> 3.0.0

3.0.0

Compare Source

isomorphic-dompurify v3.0.0

ESM Support

The library now ships proper ESM alongside CommonJS. Both import and require work out of the box with correct module resolution.

// ESM — now works natively
import DOMPurify, { sanitize } from "isomorphic-dompurify";

// CJS — still works
const DOMPurify = require("isomorphic-dompurify");

Memory Leak Fix for Long-Running Server Processes

New clearWindow() export that closes the internal jsdom window and creates a fresh one, preventing unbounded memory growth and progressive slowdown in long-running Node.js processes (#368).

import { sanitize, clearWindow } from "isomorphic-dompurify";

// Call clearWindow() when you want to release accumulated DOM state,
// e.g. periodically, after a batch, or per-request in a server:
app.use((req, res, next) => {
  res.on("finish", () => clearWindow());
  next();
});

Note: clearWindow() is a no-op in the browser b...

[View full release notes]

Released by kkomelin on 2/21/2026

v3.0.0-rc.3

Compare Source

What's Changed

  • chore(deps): bump jsdom from 28.0.0 to 28.1.0
  • chore: add Biome linting, lefthook pre-commit hooks, and CI lint step
  • docs: Added Playgrounds section to the readme

Full Changelog: https://github.com/kkomelin/isomorphic-dompurify/compare/v3.0.0-rc.2...v3.0.0-rc.3

Released by kkomelin on 2/17/2026

v3.0.0-rc.2

Compare Source

isomorphic-dompurify v3.0.0-rc.2

Memory Leak Fix for Long-Running Server Processes

New clearWindow() export that closes the internal jsdom window and creates a fresh one, preventing unbounded memory growth and progressive slowdown in long-running Node.js processes (#368).

import { sanitize, clearWindow } from "isomorphic-dompurify";

// Call clearWindow() when you want to release accumulated DOM state,
// e.g. periodically, after a batch, or per-request in a server:
app.use((req, res, next) => {
  res.on("finish", () => clearWindow());
  next();
});

Note: clearWindow() is a no-op in the browser build (no jsdom to manage). Any hooks or config set via addHook/setConfig will need to be re-applied after calling it.

ESM Support

The library now ships proper ESM alongside CommonJS. Both import and require work out of the box with correct module resolution.

// ESM — now works natively
import DOM...

*[View full release notes]*

*Released by [kkomelin](https://github.com/kkomelin) on 2/7/2026*

</details>

---

### 📊 Package Statistics

- **isomorphic-dompurify**: 2,298,180 weekly downloads

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR was generated by [Buddy](https://github.com/stacksjs/buddy-bot) 🤖

2 changed files on the files tab, with 0 review threads.

Sign in to comment on this pull request.