isomorphic-dompurify 2.32.0 → 2.34.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +5 -0
  2. package/browser.js +1 -1
  3. package/package.json +4 -4
package/README.md CHANGED
@@ -55,6 +55,11 @@ or with [config](https://github.com/cure53/DOMPurify/blob/main/README.md):
55
55
  const clean = DOMPurify.sanitize(dirtyString, { USE_PROFILES: { html: true } });
56
56
  ```
57
57
 
58
+ ## Web Worker Support
59
+
60
+ The `isomorphic-dompurify` library is [compatible with Web Workers](https://github.com/kkomelin/isomorphic-dompurify/pull/242),
61
+ however, `dompurify`, which it depends upon, [is not, at least not yet](https://github.com/cure53/DOMPurify/issues/577).
62
+
58
63
  ## License
59
64
 
60
65
  DOMPurify -
package/browser.js CHANGED
@@ -1 +1 @@
1
- module.exports = window.DOMPurify || (window.DOMPurify = require('dompurify').default || require('dompurify'));
1
+ module.exports = self.DOMPurify || (self.DOMPurify = require('dompurify').default || require('dompurify'));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isomorphic-dompurify",
3
- "version": "2.32.0",
3
+ "version": "2.34.0",
4
4
  "description": "Makes it possible to use DOMPurify on server and client in the same way.",
5
5
  "keywords": [
6
6
  "security",
@@ -42,12 +42,12 @@
42
42
  }
43
43
  },
44
44
  "dependencies": {
45
- "dompurify": "^3.3.0",
46
- "jsdom": "^27.2.0"
45
+ "dompurify": "^3.3.1",
46
+ "jsdom": "^27.3.0"
47
47
  },
48
48
  "devDependencies": {
49
49
  "terser": "^5.44.1",
50
- "vitest": "^4.0.8"
50
+ "vitest": "^4.0.15"
51
51
  },
52
52
  "engines": {
53
53
  "node": ">=20.19.5"