fix(deps): update dependency isomorphic-dompurify to v3#455
Open
renovate[bot] wants to merge 1 commit intodevelopfrom
Open
fix(deps): update dependency isomorphic-dompurify to v3#455renovate[bot] wants to merge 1 commit intodevelopfrom
renovate[bot] wants to merge 1 commit intodevelopfrom
Conversation
Contributor
Test report for scratch-svg-renderer 1 files 60 suites 0s ⏱️ Results for commit 89c13ba. ♻️ This comment has been updated with latest results. |
Contributor
Test report for task-herder28 tests 28 ✅ 0s ⏱️ Results for commit 89c13ba. |
1 similar comment
Contributor
Test report for task-herder28 tests 28 ✅ 0s ⏱️ Results for commit 89c13ba. |
Contributor
Test report for scratch-render 1 files 55 suites 2s ⏱️ Results for commit 89c13ba. ♻️ This comment has been updated with latest results. |
Contributor
Contributor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
2.36.0→3.0.0Release Notes
kkomelin/isomorphic-dompurify (isomorphic-dompurify)
v3.0.0: : ESM Support + Memory Leak Fix for Long-Running Server ProcessesCompare Source
isomorphic-dompurify v3.0.0
ESM Support
The library now ships proper ESM alongside CommonJS. Both
importandrequirework out of the box with correct module resolution.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).Note:
clearWindow()is a no-op in the browser build (no jsdom to manage). Any hooks or config set viaaddHook/setConfigwill need to be re-applied after calling it.Breaking Changes
sanitize,addHook,removeHook,removeHooks,removeAllHooks,setConfig,clearConfig,isValidAttribute,isSupported,version, andremovedare all exported directly.global.DOMPurifysingleton removed. The library no longer writes toglobal.DOMPurify. Module caching provides singleton behavior in both ESM and CJS. This also fixes a security concern where malicious code could preempt the global before the module loaded (#324).dist/. Entry points are nowdist/index.js(CJS),dist/index.mjs(ESM),dist/browser.js(CJS),dist/browser.mjs(ESM). Theexportsmap handles this automatically — no changes needed for consumers using standard imports.index.d.tsusingexport = DOMPurifyis replaced by generated.d.tsand.d.mtsfiles with properexport defaultand named exports.^20.19.0 || ^22.12.0 || >=24.0.0to match jsdom 28's requirements. Node 21.x, 23.x, and 22.0–22.11 are no longer supported.Issues Fixed
global.DOMPurifylru-cacheESM resolution errors in Nuxt/Nitro buildsIssues Mitigated
createWindowTypeError in Next.js 15 (jsdom is now external, reducing bundler conflicts)webidl-conversionserror in Node.js 22 + Next.jscanvasresolution error in serverless environmentsInternal Changes
actions/checkout@v4,actions/setup-node@v4,pnpm/action-setup@v4Configuration
📅 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: Never, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.