From 4cbea5a2e4b9e6d07ba11fa1e28496da7be18856 Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Sat, 8 Jul 2023 19:59:48 +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 cd3c72c..28c9870 100644 --- a/readme.md +++ b/readme.md @@ -339,7 +339,7 @@ See [`micromark`](https://github.com/micromark/micromark#api) for more info. ###### Type ```ts -type Value = string | Uint8Array +type Value = Uint8Array | string ``` ## List of extensions @@ -405,7 +405,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, -`mdast-util-from-markdown@^1`, compatible with Node.js 12. +`mdast-util-from-markdown@^2`, compatible with Node.js 16. ## Security diff --git a/tsconfig.json b/tsconfig.json index 21d5f49..e82ed5a 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/", "lib/", "node_modules/", "index.js"], "include": ["**/*.js", "dev/index.d.ts"]