From a98fd619c086a48b01aa4fd6f4c5a4229b2a6740 Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Wed, 12 Jul 2023 10:26:54 +0200 Subject: [PATCH] Change to require Node.js 16 --- readme.md | 8 ++++---- tsconfig.json | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/readme.md b/readme.md index 817361b..97052eb 100644 --- a/readme.md +++ b/readme.md @@ -388,11 +388,11 @@ 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-mdx@^2`, -compatible with Node.js 12. +This means we try to keep the current release line, `mdast-util-mdx@^3`, +compatible with Node.js 16. -This utility works with `mdast-util-from-markdown` version 1+ and -`mdast-util-to-markdown` version 1+. +This utility works with `mdast-util-from-markdown` version 2+ and +`mdast-util-to-markdown` version 2+. ## Related diff --git a/tsconfig.json b/tsconfig.json index ad1496e..bed2bb4 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", "index.d.ts"]