From 99aed771a776d9c6686fadada195db81cd094882 Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Fri, 4 Aug 2023 19:36:00 +0200 Subject: [PATCH] Change to require Node.js 16 --- readme.md | 2 +- tsconfig.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/readme.md b/readme.md index dd0e4fe..a1bb5aa 100644 --- a/readme.md +++ b/readme.md @@ -574,7 +574,7 @@ versions of Node.js. When we cut a new major release, we drop support for unmaintained versions of Node. This means we try to keep the current release line, -`hast-util-to-jsx-runtime@^1`, compatible with Node.js 12. +`hast-util-to-jsx-runtime@^2`, compatible with Node.js 16. ## Security diff --git a/tsconfig.json b/tsconfig.json index 5940fdb..33654f7 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -5,10 +5,10 @@ "declaration": true, "emitDeclarationOnly": true, "exactOptionalPropertyTypes": true, - "lib": ["es2020"], + "lib": ["es2022"], "module": "node16", "strict": true, - "target": "es2020" + "target": "es2022" }, "exclude": ["coverage/", "node_modules/"], "include": ["**/**.js", "lib/components.d.ts"]