From b815f5ef3fb49a6950db90ea1962bf34b8d7eec1 Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Mon, 17 Jul 2023 12:57:10 +0200 Subject: [PATCH] Change to require Node.js 16 --- readme.md | 4 ++-- tsconfig.json | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/readme.md b/readme.md index 91b5d8b..95d8587 100644 --- a/readme.md +++ b/readme.md @@ -1520,8 +1520,8 @@ 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, `mdast-util-to-hast@^12`, -compatible with Node.js 12. +This means we try to keep the current release line, `mdast-util-to-hast@^13`, +compatible with Node.js 16. ## Security diff --git a/tsconfig.json b/tsconfig.json index 8e70d19..2c12ea6 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", "test/types.d.ts", "index.d.ts"]