xslt-processor 3.3.0 → 3.3.1

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 CHANGED
@@ -123,6 +123,8 @@ const outXmlString = xslt.xsltProcess( // Not async.
123
123
 
124
124
  Version 3 received `<xsl:include>` which relies on Fetch API, which is asynchronous. Version 2 doesn't support `<xsl:include>`.
125
125
 
126
+ If using Node.js older than version v17.5.0, please use version 3.2.3, that uses `node-fetch` package. Versions 3.3.0 onward require at least Node.js version v17.5.0, since they use native `fetch()` function.
127
+
126
128
  #### Version 1
127
129
 
128
130
  Until version 1.2.8, use like the example below:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xslt-processor",
3
- "version": "3.3.0",
3
+ "version": "3.3.1",
4
4
  "description": "A JavaScript XSLT Processor",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -48,6 +48,7 @@
48
48
  "@rollup/plugin-typescript": "^11.1.1",
49
49
  "@types/he": "^1.2.0",
50
50
  "@types/jest": "^29.5.12",
51
+ "@types/node": "^22.9.0",
51
52
  "@types/node-fetch": "^2.6.11",
52
53
  "@typescript-eslint/eslint-plugin": "^8.4.0",
53
54
  "@typescript-eslint/parser": "^8.4.0",
@@ -70,16 +71,7 @@
70
71
  "typescript": "^5.5.4"
71
72
  },
72
73
  "dependencies": {
73
- "he": "^1.2.0",
74
- "node-fetch": "release-2.x"
75
- },
76
- "overrides": {
77
- "node-fetch@release-2.x": {
78
- "whatwg-url": "14.x"
79
- }
80
- },
81
- "resolutions": {
82
- "whatwg-url": "14.x"
74
+ "he": "^1.2.0"
83
75
  },
84
76
  "copyFiles": [
85
77
  {