isomorphic-dompurify 0.16.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.
- package/README.md +8 -3
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Isomorphic DOMPurify
|
|
2
2
|
[](https://badge.fury.io/js/isomorphic-dompurify)
|
|
3
|
-
[](https://travis-ci.com/kkomelin/isomorphic-dompurify)
|
|
3
|
+
[](https://app.travis-ci.com/kkomelin/isomorphic-dompurify)
|
|
4
4
|
[](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.
|
|
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.
|
|
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",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@types/dompurify": "^2.3.1",
|
|
33
33
|
"dompurify": "^2.3.3",
|
|
34
|
-
"jsdom": "^
|
|
34
|
+
"jsdom": "^19.0.0"
|
|
35
35
|
},
|
|
36
36
|
"types": "index.d.ts",
|
|
37
37
|
"devDependencies": {
|