isomorphic-dompurify 0.17.0 → 0.20.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 +1 -10
  2. package/package.json +7 -6
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Isomorphic DOMPurify
2
2
  [![npm version](https://badge.fury.io/js/isomorphic-dompurify.svg)](https://badge.fury.io/js/isomorphic-dompurify)
3
- [![Build Status](https://app.travis-ci.com/kkomelin/isomorphic-dompurify.svg?branch=master)](https://app.travis-ci.com/kkomelin/isomorphic-dompurify)
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
  [![Bundlephobia Minified Size](https://badgen.net/bundlephobia/min/isomorphic-dompurify)](https://bundlephobia.com/result?p=isomorphic-dompurify)
5
5
 
6
6
  The library makes it possible to seamlessly use [DOMPurify](https://github.com/cure53/DOMPurify) on server and client in the same way.
@@ -47,15 +47,6 @@ const DOMPurify = require('isomorphic-dompurify');
47
47
  var clean = DOMPurify.sanitize(dirty);
48
48
  ```
49
49
 
50
- ## Supported Environments
51
-
52
- The library is aimed to work **everywhere** and has been tested in the following environments:
53
- - Node.js, CommonJS ([automatically](https://app.travis-ci.com/kkomelin/isomorphic-dompurify) & manually)
54
- - Node.js, Webpack, ES6 (manually)
55
- - React.js without SSR (manually)
56
- - Next.js without SSR (manually)
57
- - Next.js with SSR (manually)
58
-
59
50
  ## Known Issues
60
51
 
61
52
  1. [Can't resolve 'canvas' on Next.js serverless app](https://github.com/kkomelin/isomorphic-dompurify/issues/54)
package/package.json CHANGED
@@ -1,8 +1,9 @@
1
1
  {
2
2
  "name": "isomorphic-dompurify",
3
- "version": "0.17.0",
3
+ "version": "0.20.0",
4
4
  "description": "Makes it possible to use DOMPurify on server and client in the same way.",
5
5
  "keywords": [
6
+ "security",
6
7
  "dompurify",
7
8
  "xss-filter",
8
9
  "xss",
@@ -29,13 +30,13 @@
29
30
  "browser": "browser.js",
30
31
  "main": "index.js",
31
32
  "dependencies": {
32
- "@types/dompurify": "^2.3.1",
33
- "dompurify": "^2.3.3",
34
- "jsdom": "^19.0.0"
33
+ "@types/dompurify": "^2.3.3",
34
+ "dompurify": "^2.3.8",
35
+ "jsdom": "^20.0.0"
35
36
  },
36
37
  "types": "index.d.ts",
37
38
  "devDependencies": {
38
- "jest": "^27.3.1",
39
- "terser": "^5.9.0"
39
+ "jest": "^28.1.1",
40
+ "terser": "^5.14.1"
40
41
  }
41
42
  }