isomorphic-dompurify 0.13.0 → 0.17.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 +8 -3
  2. package/package.json +6 -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://travis-ci.org/kkomelin/isomorphic-dompurify.svg?branch=master)](https://travis-ci.org/kkomelin/isomorphic-dompurify)
3
+ [![Build Status](https://app.travis-ci.com/kkomelin/isomorphic-dompurify.svg?branch=master)](https://app.travis-ci.com/kkomelin/isomorphic-dompurify)
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.
@@ -27,7 +27,7 @@ $ npm i isomorphic-dompurify
27
27
 
28
28
  ## Updates
29
29
 
30
- Please note that DOMPurify library [doesn't follow Semantic Versioning](https://github.com/cure53/DOMPurify/issues/446#issuecomment-643761433), so we have to release every change as minor version because we cannot be 100% sure whether new features are added to patch DOMPurify releases or not.
30
+ Please note that DOMPurify library [doesn't follow Semantic Versioning](https://github.com/cure53/DOMPurify/issues/446#issuecomment-643761433), so we have to release every change as a minor version because we cannot be 100% sure whether new features are added to patch DOMPurify releases or not.
31
31
 
32
32
  ## Usage
33
33
 
@@ -50,12 +50,17 @@ var clean = DOMPurify.sanitize(dirty);
50
50
  ## Supported Environments
51
51
 
52
52
  The library is aimed to work **everywhere** and has been tested in the following environments:
53
- - Node.js, CommonJS ([automatically](https://travis-ci.org/kkomelin/isomorphic-dompurify) & manually)
53
+ - Node.js, CommonJS ([automatically](https://app.travis-ci.com/kkomelin/isomorphic-dompurify) & manually)
54
54
  - Node.js, Webpack, ES6 (manually)
55
55
  - React.js without SSR (manually)
56
56
  - Next.js without SSR (manually)
57
57
  - Next.js with SSR (manually)
58
58
 
59
+ ## Known Issues
60
+
61
+ 1. [Can't resolve 'canvas' on Next.js serverless app](https://github.com/kkomelin/isomorphic-dompurify/issues/54)
62
+ 2. [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)
63
+
59
64
  ## License
60
65
 
61
66
  DOMPurify -
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isomorphic-dompurify",
3
- "version": "0.13.0",
3
+ "version": "0.17.0",
4
4
  "description": "Makes it possible to use DOMPurify on server and client in the same way.",
5
5
  "keywords": [
6
6
  "dompurify",
@@ -29,13 +29,13 @@
29
29
  "browser": "browser.js",
30
30
  "main": "index.js",
31
31
  "dependencies": {
32
- "@types/dompurify": "^2.1.0",
33
- "dompurify": "^2.2.7",
34
- "jsdom": "^16.5.2"
32
+ "@types/dompurify": "^2.3.1",
33
+ "dompurify": "^2.3.3",
34
+ "jsdom": "^19.0.0"
35
35
  },
36
36
  "types": "index.d.ts",
37
37
  "devDependencies": {
38
- "jest": "^26.6.3",
39
- "terser": "^5.6.1"
38
+ "jest": "^27.3.1",
39
+ "terser": "^5.9.0"
40
40
  }
41
41
  }