isomorphic-dompurify 2.13.0 → 2.15.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 (2) hide show
  1. package/README.md +0 -1
  2. package/package.json +5 -5
package/README.md CHANGED
@@ -58,7 +58,6 @@ const clean = DOMPurify.sanitize(dirtyString, { USE_PROFILES: { html: true } });
58
58
 
59
59
  1. Next.js and Remix are mistakenly trying to use the `browser` entry point on server, which causes the `Window is not defined` issue. [#228](https://github.com/kkomelin/isomorphic-dompurify/issues/228) [#214](https://github.com/kkomelin/isomorphic-dompurify/issues/214) https://github.com/vercel/next.js/discussions/58142
60
60
  2. [Can't resolve 'canvas' on Next.js serverless app](https://github.com/kkomelin/isomorphic-dompurify/issues/54)
61
- 3. [Starting from 0.16.0, there is a dependency conflict which causes `ReferenceError: TextEncoder is not defined`](https://github.com/kkomelin/isomorphic-dompurify/issues/91)
62
61
 
63
62
  ## License
64
63
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isomorphic-dompurify",
3
- "version": "2.13.0",
3
+ "version": "2.15.0",
4
4
  "description": "Makes it possible to use DOMPurify on server and client in the same way.",
5
5
  "keywords": [
6
6
  "security",
@@ -17,7 +17,7 @@
17
17
  "sanitizer"
18
18
  ],
19
19
  "scripts": {
20
- "test": "jest",
20
+ "test": "vitest",
21
21
  "build": "terser src/index.js --compress --mangle --module -o index.js"
22
22
  },
23
23
  "bugs": {
@@ -36,11 +36,11 @@
36
36
  "dependencies": {
37
37
  "@types/dompurify": "^3.0.5",
38
38
  "dompurify": "^3.1.6",
39
- "jsdom": "^24.1.0"
39
+ "jsdom": "^25.0.0"
40
40
  },
41
41
  "devDependencies": {
42
- "jest": "^29.7.0",
43
- "terser": "^5.31.1"
42
+ "terser": "^5.31.3",
43
+ "vitest": "^2.0.5"
44
44
  },
45
45
  "engines": {
46
46
  "node": ">=18"