Skip to content

Commit b4cb8f6

Browse files
committed
feat: remove suport for node<20.18
Signed-off-by: Jan Kowalleck <[email protected]>
1 parent 484052d commit b4cb8f6

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,12 @@ See the shipped `package.json` for version constraints.
130130
* [`libxmljs2`](https://www.npmjs.com/package/libxmljs2)
131131
* the system might need to meet the requirements for [`node-gyp`](https://github.com/TooTallNate/node-gyp#installation), in certain cases.
132132

133+
## Requirements
134+
135+
* `node >=20.18`
136+
137+
However, there are older versions of this library which support `node>=14.0.0`
138+
133139
## Usage
134140

135141
See extended [examples].

tsconfig.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
/* Language and Environment */
1515
/* check compat: https://node.green/ */
1616
/* see: https://github.com/microsoft/TypeScript/wiki/Node-Target-Mapping */
17-
"target": "ES2020", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
17+
"target": "ES2023", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
1818
// "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
1919
// "jsx": "preserve", /* Specify what JSX code is generated. */
2020
// "experimentalDecorators": true, /* Enable experimental support for TC39 stage 2 draft decorators. */
@@ -28,7 +28,8 @@
2828

2929
/* Modules */
3030
/* check compat: https://node.green/ */
31-
"module": "CommonJS", /* Specify what module code is generated. */
31+
/* see: https://github.com/microsoft/TypeScript/wiki/Node-Target-Mapping */
32+
"module": "node16", /* Specify what module code is generated. */
3233
"rootDir": "src", /* Specify the root folder within your source files. */
3334
"moduleResolution": "Node", /* Specify how TypeScript looks up a file from a given module specifier. */
3435
// "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */

0 commit comments

Comments
 (0)