isomorphic-dompurify 3.3.0 → 3.5.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 +3 -2
  2. package/package.json +4 -3
package/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  # Isomorphic DOMPurify
2
- [![npm version](https://badge.fury.io/js/isomorphic-dompurify.svg)](https://badge.fury.io/js/isomorphic-dompurify)
2
+ [![npm version](https://img.shields.io/npm/v/isomorphic-dompurify.svg)](https://www.npmjs.com/package/isomorphic-dompurify)
3
3
  [![Test Status](https://github.com/kkomelin/isomorphic-dompurify/actions/workflows/build_test.yml/badge.svg)](https://github.com/kkomelin/isomorphic-dompurify/actions/workflows/build_test.yml)
4
4
 
5
5
  The library makes it possible to seamlessly use [DOMPurify](https://github.com/cure53/DOMPurify) on both server and client in the same way.
@@ -28,6 +28,7 @@ It was inspired by [Isomorphic Unfetch](https://github.com/developit/unfetch/tre
28
28
  | `>=2.27.0` | `>=20` | Server |
29
29
  | `>=2.30.0` | `>=20.19.5` | Server |
30
30
  | `>=3.0.0` | `^20.19.0 \|\| ^22.12.0 \|\| >=24.0.0` | Server |
31
+ | `>=3.4.0` | `^20.19.0 \|\| ^22.13.0 \|\| >=24.0.0` | Server |
31
32
 
32
33
  ## Installation
33
34
 
@@ -84,7 +85,7 @@ however, `dompurify`, which it depends upon, [is not, at least not yet](https://
84
85
 
85
86
  ## Playgrounds
86
87
 
87
- Want to try `isomorphic-dompurify` with your favorite framework? Check out [isomorphic-dompurify-playgrounds](https://github.com/kkomelin/isomorphic-dompurify-playgrounds) — minimal setups for popular frameworks including Astro, Next.js, Nuxt, React and Svelte.
88
+ Want to try `isomorphic-dompurify` with your favorite framework? Check out [isomorphic-dompurify-playgrounds](https://github.com/kkomelin/isomorphic-dompurify-playgrounds) — minimal setups for popular frameworks including Astro, Next.js, Nuxt, React, Svelte, and others.
88
89
 
89
90
  ## Known Issues
90
91
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isomorphic-dompurify",
3
- "version": "3.3.0",
3
+ "version": "3.5.0",
4
4
  "description": "Makes it possible to use DOMPurify on server and client in the same way.",
5
5
  "keywords": [
6
6
  "security",
@@ -57,7 +57,7 @@
57
57
  },
58
58
  "dependencies": {
59
59
  "dompurify": "^3.3.3",
60
- "jsdom": "^28.1.0"
60
+ "jsdom": "^29.0.0"
61
61
  },
62
62
  "devDependencies": {
63
63
  "@biomejs/biome": "^2.4.6",
@@ -69,10 +69,11 @@
69
69
  "vitest": "^4.0.18"
70
70
  },
71
71
  "engines": {
72
- "node": "^20.19.0 || ^22.12.0 || >=24.0.0"
72
+ "node": "^20.19.0 || ^22.13.0 || >=24.0.0"
73
73
  },
74
74
  "scripts": {
75
75
  "build": "tsup",
76
+ "format": "biome format --write",
76
77
  "lint": "biome check",
77
78
  "lint:fix": "biome check --fix",
78
79
  "typecheck": "tsc --noEmit",