From 3cf2c295f57d6bb92a6bd537e60bf45a9df85a41 Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Wed, 30 Aug 2023 15:20:02 +0200 Subject: [PATCH] Change to require Node.js 16 --- packages/hast-util-from-string/readme.md | 2 +- packages/hast-util-is-body-ok-link/readme.md | 2 +- packages/hast-util-is-conditional-comment/readme.md | 2 +- packages/hast-util-is-css-link/readme.md | 2 +- packages/hast-util-is-css-style/readme.md | 2 +- packages/hast-util-is-event-handler/readme.md | 2 +- packages/hast-util-is-javascript/readme.md | 2 +- packages/hast-util-to-string/readme.md | 2 +- packages/html-enumerated-attributes/readme.md | 2 +- packages/html-url-attributes/readme.md | 2 +- packages/html-whitespace-sensitive-tag-names/readme.md | 2 +- packages/rehype-concat-css-style/readme.md | 2 +- packages/rehype-concat-javascript/readme.md | 2 +- packages/rehype-css-to-top/readme.md | 2 +- packages/rehype-javascript-to-bottom/readme.md | 2 +- packages/rehype-minify-attribute-whitespace/readme.md | 2 +- packages/rehype-minify-css-style/readme.md | 2 +- packages/rehype-minify-enumerated-attribute/readme.md | 2 +- packages/rehype-minify-event-handler/readme.md | 2 +- packages/rehype-minify-javascript-script/readme.md | 2 +- packages/rehype-minify-javascript-url/readme.md | 2 +- packages/rehype-minify-json-script/readme.md | 2 +- packages/rehype-minify-language/readme.md | 2 +- packages/rehype-minify-media-attribute/readme.md | 2 +- packages/rehype-minify-meta-color/readme.md | 2 +- packages/rehype-minify-meta-content/readme.md | 2 +- packages/rehype-minify-style-attribute/readme.md | 2 +- packages/rehype-minify-url/readme.md | 2 +- packages/rehype-minify-whitespace/readme.md | 2 +- packages/rehype-normalize-attribute-value-case/readme.md | 2 +- packages/rehype-preset-minify/readme.md | 2 +- packages/rehype-prevent-favicon-request/readme.md | 2 +- packages/rehype-remove-comments/readme.md | 2 +- packages/rehype-remove-duplicate-attribute-values/readme.md | 2 +- packages/rehype-remove-empty-attribute/readme.md | 2 +- packages/rehype-remove-external-script-content/readme.md | 2 +- packages/rehype-remove-meta-http-equiv/readme.md | 2 +- packages/rehype-remove-script-type-javascript/readme.md | 2 +- packages/rehype-remove-style-type-css/readme.md | 2 +- packages/rehype-sort-attribute-values/readme.md | 2 +- packages/rehype-sort-attributes/readme.md | 2 +- script/pipeline-package.js | 2 +- tsconfig.json | 6 ++---- 43 files changed, 44 insertions(+), 46 deletions(-) diff --git a/packages/hast-util-from-string/readme.md b/packages/hast-util-from-string/readme.md index dc56b7e..87831ba 100644 --- a/packages/hast-util-from-string/readme.md +++ b/packages/hast-util-from-string/readme.md @@ -137,7 +137,7 @@ 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-from-string@^2`, -compatible with Node.js 12. +compatible with Node.js 16. ## Security diff --git a/packages/hast-util-is-body-ok-link/readme.md b/packages/hast-util-is-body-ok-link/readme.md index 67e375c..3783dda 100644 --- a/packages/hast-util-is-body-ok-link/readme.md +++ b/packages/hast-util-is-body-ok-link/readme.md @@ -118,7 +118,7 @@ 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-is-body-ok-link@^2`, -compatible with Node.js 12. +compatible with Node.js 16. ## Security diff --git a/packages/hast-util-is-conditional-comment/readme.md b/packages/hast-util-is-conditional-comment/readme.md index f35705a..760c404 100644 --- a/packages/hast-util-is-conditional-comment/readme.md +++ b/packages/hast-util-is-conditional-comment/readme.md @@ -115,7 +115,7 @@ 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-is-conditional-comment@^2`, -compatible with Node.js 12. +compatible with Node.js 16. ## Security diff --git a/packages/hast-util-is-css-link/readme.md b/packages/hast-util-is-css-link/readme.md index 19bf924..5cf5adf 100644 --- a/packages/hast-util-is-css-link/readme.md +++ b/packages/hast-util-is-css-link/readme.md @@ -116,7 +116,7 @@ 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-is-css-link@^2`, -compatible with Node.js 12. +compatible with Node.js 16. ## Security diff --git a/packages/hast-util-is-css-style/readme.md b/packages/hast-util-is-css-style/readme.md index 17b274f..12bf503 100644 --- a/packages/hast-util-is-css-style/readme.md +++ b/packages/hast-util-is-css-style/readme.md @@ -115,7 +115,7 @@ 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-is-css-style@^2`, -compatible with Node.js 12. +compatible with Node.js 16. ## Security diff --git a/packages/hast-util-is-event-handler/readme.md b/packages/hast-util-is-event-handler/readme.md index 369a5b3..c15be90 100644 --- a/packages/hast-util-is-event-handler/readme.md +++ b/packages/hast-util-is-event-handler/readme.md @@ -116,7 +116,7 @@ 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-is-event-handler@^2`, -compatible with Node.js 12. +compatible with Node.js 16. ## Security diff --git a/packages/hast-util-is-javascript/readme.md b/packages/hast-util-is-javascript/readme.md index 9f24de3..4182494 100644 --- a/packages/hast-util-is-javascript/readme.md +++ b/packages/hast-util-is-javascript/readme.md @@ -118,7 +118,7 @@ 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-is-javascript@^2`, -compatible with Node.js 12. +compatible with Node.js 16. ## Security diff --git a/packages/hast-util-to-string/readme.md b/packages/hast-util-to-string/readme.md index baac3d2..385d9c5 100644 --- a/packages/hast-util-to-string/readme.md +++ b/packages/hast-util-to-string/readme.md @@ -118,7 +118,7 @@ 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-string@^2`, -compatible with Node.js 12. +compatible with Node.js 16. ## Security diff --git a/packages/html-enumerated-attributes/readme.md b/packages/html-enumerated-attributes/readme.md index 525bdd7..0391e77 100644 --- a/packages/html-enumerated-attributes/readme.md +++ b/packages/html-enumerated-attributes/readme.md @@ -123,7 +123,7 @@ 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, `html-enumerated-attributes@^0`, -compatible with Node.js 12. +compatible with Node.js 16. ## Security diff --git a/packages/html-url-attributes/readme.md b/packages/html-url-attributes/readme.md index 34d9129..a89add0 100644 --- a/packages/html-url-attributes/readme.md +++ b/packages/html-url-attributes/readme.md @@ -105,7 +105,7 @@ 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, `html-url-attributes@^2`, -compatible with Node.js 12. +compatible with Node.js 16. ## Security diff --git a/packages/html-whitespace-sensitive-tag-names/readme.md b/packages/html-whitespace-sensitive-tag-names/readme.md index fdbd5be..4c1d036 100644 --- a/packages/html-whitespace-sensitive-tag-names/readme.md +++ b/packages/html-whitespace-sensitive-tag-names/readme.md @@ -100,7 +100,7 @@ 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, `html-whitespace-sensitive-tag-names@^2`, -compatible with Node.js 12. +compatible with Node.js 16. ## Security diff --git a/packages/rehype-concat-css-style/readme.md b/packages/rehype-concat-css-style/readme.md index 69798f6..eb7c562 100644 --- a/packages/rehype-concat-css-style/readme.md +++ b/packages/rehype-concat-css-style/readme.md @@ -155,7 +155,7 @@ 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, `rehype-concat-css-style@^3`, -compatible with Node.js 12. +compatible with Node.js 16. ## Security diff --git a/packages/rehype-concat-javascript/readme.md b/packages/rehype-concat-javascript/readme.md index 424cd16..708043b 100644 --- a/packages/rehype-concat-javascript/readme.md +++ b/packages/rehype-concat-javascript/readme.md @@ -154,7 +154,7 @@ 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, `rehype-concat-javascript@^3`, -compatible with Node.js 12. +compatible with Node.js 16. ## Security diff --git a/packages/rehype-css-to-top/readme.md b/packages/rehype-css-to-top/readme.md index ad9836b..2dcfc77 100644 --- a/packages/rehype-css-to-top/readme.md +++ b/packages/rehype-css-to-top/readme.md @@ -151,7 +151,7 @@ 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, `rehype-css-to-top@^3`, -compatible with Node.js 12. +compatible with Node.js 16. ## Security diff --git a/packages/rehype-javascript-to-bottom/readme.md b/packages/rehype-javascript-to-bottom/readme.md index 0f1f378..5d37815 100644 --- a/packages/rehype-javascript-to-bottom/readme.md +++ b/packages/rehype-javascript-to-bottom/readme.md @@ -180,7 +180,7 @@ 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, `rehype-javascript-to-bottom@^3`, -compatible with Node.js 12. +compatible with Node.js 16. ## Security diff --git a/packages/rehype-minify-attribute-whitespace/readme.md b/packages/rehype-minify-attribute-whitespace/readme.md index 9aac5cc..f810673 100644 --- a/packages/rehype-minify-attribute-whitespace/readme.md +++ b/packages/rehype-minify-attribute-whitespace/readme.md @@ -150,7 +150,7 @@ 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, `rehype-minify-attribute-whitespace@^3`, -compatible with Node.js 12. +compatible with Node.js 16. ## Security diff --git a/packages/rehype-minify-css-style/readme.md b/packages/rehype-minify-css-style/readme.md index 3e4edaf..033924b 100644 --- a/packages/rehype-minify-css-style/readme.md +++ b/packages/rehype-minify-css-style/readme.md @@ -151,7 +151,7 @@ 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, `rehype-minify-css-style@^3`, -compatible with Node.js 12. +compatible with Node.js 16. ## Security diff --git a/packages/rehype-minify-enumerated-attribute/readme.md b/packages/rehype-minify-enumerated-attribute/readme.md index 9ca49cc..3e394fa 100644 --- a/packages/rehype-minify-enumerated-attribute/readme.md +++ b/packages/rehype-minify-enumerated-attribute/readme.md @@ -156,7 +156,7 @@ 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, `rehype-minify-enumerated-attribute@^4`, -compatible with Node.js 12. +compatible with Node.js 16. ## Security diff --git a/packages/rehype-minify-event-handler/readme.md b/packages/rehype-minify-event-handler/readme.md index 59ed194..07f5f72 100644 --- a/packages/rehype-minify-event-handler/readme.md +++ b/packages/rehype-minify-event-handler/readme.md @@ -150,7 +150,7 @@ 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, `rehype-minify-event-handler@^3`, -compatible with Node.js 12. +compatible with Node.js 16. ## Security diff --git a/packages/rehype-minify-javascript-script/readme.md b/packages/rehype-minify-javascript-script/readme.md index de02283..99be923 100644 --- a/packages/rehype-minify-javascript-script/readme.md +++ b/packages/rehype-minify-javascript-script/readme.md @@ -153,7 +153,7 @@ 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, `rehype-minify-javascript-script@^4`, -compatible with Node.js 12. +compatible with Node.js 16. ## Security diff --git a/packages/rehype-minify-javascript-url/readme.md b/packages/rehype-minify-javascript-url/readme.md index 683099d..7274b56 100644 --- a/packages/rehype-minify-javascript-url/readme.md +++ b/packages/rehype-minify-javascript-url/readme.md @@ -149,7 +149,7 @@ 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, `rehype-minify-javascript-url@^4`, -compatible with Node.js 12. +compatible with Node.js 16. ## Security diff --git a/packages/rehype-minify-json-script/readme.md b/packages/rehype-minify-json-script/readme.md index 4514283..ec8a113 100644 --- a/packages/rehype-minify-json-script/readme.md +++ b/packages/rehype-minify-json-script/readme.md @@ -160,7 +160,7 @@ 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, `rehype-minify-json-script@^3`, -compatible with Node.js 12. +compatible with Node.js 16. ## Security diff --git a/packages/rehype-minify-language/readme.md b/packages/rehype-minify-language/readme.md index 2f055e7..3b52ba4 100644 --- a/packages/rehype-minify-language/readme.md +++ b/packages/rehype-minify-language/readme.md @@ -156,7 +156,7 @@ 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, `rehype-minify-language@^2`, -compatible with Node.js 12. +compatible with Node.js 16. ## Security diff --git a/packages/rehype-minify-media-attribute/readme.md b/packages/rehype-minify-media-attribute/readme.md index a0df820..c3ce96c 100644 --- a/packages/rehype-minify-media-attribute/readme.md +++ b/packages/rehype-minify-media-attribute/readme.md @@ -152,7 +152,7 @@ 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, `rehype-minify-media-attribute@^3`, -compatible with Node.js 12. +compatible with Node.js 16. ## Security diff --git a/packages/rehype-minify-meta-color/readme.md b/packages/rehype-minify-meta-color/readme.md index 3ddfe7f..d1a8c3c 100644 --- a/packages/rehype-minify-meta-color/readme.md +++ b/packages/rehype-minify-meta-color/readme.md @@ -153,7 +153,7 @@ 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, `rehype-minify-meta-color@^3`, -compatible with Node.js 12. +compatible with Node.js 16. ## Security diff --git a/packages/rehype-minify-meta-content/readme.md b/packages/rehype-minify-meta-content/readme.md index d04de99..fe36a0e 100644 --- a/packages/rehype-minify-meta-content/readme.md +++ b/packages/rehype-minify-meta-content/readme.md @@ -156,7 +156,7 @@ 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, `rehype-minify-meta-content@^3`, -compatible with Node.js 12. +compatible with Node.js 16. ## Security diff --git a/packages/rehype-minify-style-attribute/readme.md b/packages/rehype-minify-style-attribute/readme.md index a874424..773cf20 100644 --- a/packages/rehype-minify-style-attribute/readme.md +++ b/packages/rehype-minify-style-attribute/readme.md @@ -149,7 +149,7 @@ 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, `rehype-minify-style-attribute@^3`, -compatible with Node.js 12. +compatible with Node.js 16. ## Security diff --git a/packages/rehype-minify-url/readme.md b/packages/rehype-minify-url/readme.md index 2af5ad3..a88f450 100644 --- a/packages/rehype-minify-url/readme.md +++ b/packages/rehype-minify-url/readme.md @@ -172,7 +172,7 @@ 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, `rehype-minify-url@^4`, -compatible with Node.js 12. +compatible with Node.js 16. ## Security diff --git a/packages/rehype-minify-whitespace/readme.md b/packages/rehype-minify-whitespace/readme.md index 76a7b09..6834162 100644 --- a/packages/rehype-minify-whitespace/readme.md +++ b/packages/rehype-minify-whitespace/readme.md @@ -166,7 +166,7 @@ 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, `rehype-minify-whitespace@^5`, -compatible with Node.js 12. +compatible with Node.js 16. ## Security diff --git a/packages/rehype-normalize-attribute-value-case/readme.md b/packages/rehype-normalize-attribute-value-case/readme.md index d828e3b..883ac43 100644 --- a/packages/rehype-normalize-attribute-value-case/readme.md +++ b/packages/rehype-normalize-attribute-value-case/readme.md @@ -151,7 +151,7 @@ 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, `rehype-normalize-attribute-value-case@^3`, -compatible with Node.js 12. +compatible with Node.js 16. ## Security diff --git a/packages/rehype-preset-minify/readme.md b/packages/rehype-preset-minify/readme.md index 9943d4e..2d11f36 100644 --- a/packages/rehype-preset-minify/readme.md +++ b/packages/rehype-preset-minify/readme.md @@ -166,7 +166,7 @@ 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, `rehype-preset-minify@^6`, -compatible with Node.js 12. +compatible with Node.js 16. ## Security diff --git a/packages/rehype-prevent-favicon-request/readme.md b/packages/rehype-prevent-favicon-request/readme.md index f9173d3..c84202e 100644 --- a/packages/rehype-prevent-favicon-request/readme.md +++ b/packages/rehype-prevent-favicon-request/readme.md @@ -156,7 +156,7 @@ 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, `rehype-prevent-favicon-request@^3`, -compatible with Node.js 12. +compatible with Node.js 16. ## Security diff --git a/packages/rehype-remove-comments/readme.md b/packages/rehype-remove-comments/readme.md index dafd389..e1c31ce 100644 --- a/packages/rehype-remove-comments/readme.md +++ b/packages/rehype-remove-comments/readme.md @@ -168,7 +168,7 @@ 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, `rehype-remove-comments@^5`, -compatible with Node.js 12. +compatible with Node.js 16. ## Security diff --git a/packages/rehype-remove-duplicate-attribute-values/readme.md b/packages/rehype-remove-duplicate-attribute-values/readme.md index a0250ef..eace85f 100644 --- a/packages/rehype-remove-duplicate-attribute-values/readme.md +++ b/packages/rehype-remove-duplicate-attribute-values/readme.md @@ -151,7 +151,7 @@ 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, `rehype-remove-duplicate-attribute-values@^3`, -compatible with Node.js 12. +compatible with Node.js 16. ## Security diff --git a/packages/rehype-remove-empty-attribute/readme.md b/packages/rehype-remove-empty-attribute/readme.md index 1ba3139..4529486 100644 --- a/packages/rehype-remove-empty-attribute/readme.md +++ b/packages/rehype-remove-empty-attribute/readme.md @@ -151,7 +151,7 @@ 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, `rehype-remove-empty-attribute@^3`, -compatible with Node.js 12. +compatible with Node.js 16. ## Security diff --git a/packages/rehype-remove-external-script-content/readme.md b/packages/rehype-remove-external-script-content/readme.md index 600e807..8d66441 100644 --- a/packages/rehype-remove-external-script-content/readme.md +++ b/packages/rehype-remove-external-script-content/readme.md @@ -153,7 +153,7 @@ 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, `rehype-remove-external-script-content@^3`, -compatible with Node.js 12. +compatible with Node.js 16. ## Security diff --git a/packages/rehype-remove-meta-http-equiv/readme.md b/packages/rehype-remove-meta-http-equiv/readme.md index 82e414b..6459cf6 100644 --- a/packages/rehype-remove-meta-http-equiv/readme.md +++ b/packages/rehype-remove-meta-http-equiv/readme.md @@ -171,7 +171,7 @@ 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, `rehype-remove-meta-http-equiv@^3`, -compatible with Node.js 12. +compatible with Node.js 16. ## Security diff --git a/packages/rehype-remove-script-type-javascript/readme.md b/packages/rehype-remove-script-type-javascript/readme.md index 20be2e6..10bdd89 100644 --- a/packages/rehype-remove-script-type-javascript/readme.md +++ b/packages/rehype-remove-script-type-javascript/readme.md @@ -158,7 +158,7 @@ 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, `rehype-remove-script-type-javascript@^3`, -compatible with Node.js 12. +compatible with Node.js 16. ## Security diff --git a/packages/rehype-remove-style-type-css/readme.md b/packages/rehype-remove-style-type-css/readme.md index bbaced5..19330ad 100644 --- a/packages/rehype-remove-style-type-css/readme.md +++ b/packages/rehype-remove-style-type-css/readme.md @@ -155,7 +155,7 @@ 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, `rehype-remove-style-type-css@^3`, -compatible with Node.js 12. +compatible with Node.js 16. ## Security diff --git a/packages/rehype-sort-attribute-values/readme.md b/packages/rehype-sort-attribute-values/readme.md index 7320fb5..dc165db 100644 --- a/packages/rehype-sort-attribute-values/readme.md +++ b/packages/rehype-sort-attribute-values/readme.md @@ -151,7 +151,7 @@ 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, `rehype-sort-attribute-values@^4`, -compatible with Node.js 12. +compatible with Node.js 16. ## Security diff --git a/packages/rehype-sort-attributes/readme.md b/packages/rehype-sort-attributes/readme.md index be9619c..12473b9 100644 --- a/packages/rehype-sort-attributes/readme.md +++ b/packages/rehype-sort-attributes/readme.md @@ -153,7 +153,7 @@ 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, `rehype-sort-attributes@^4`, -compatible with Node.js 12. +compatible with Node.js 16. ## Security diff --git a/script/pipeline-package.js b/script/pipeline-package.js index 1832ddc..cb69b4b 100644 --- a/script/pipeline-package.js +++ b/script/pipeline-package.js @@ -1068,7 +1068,7 @@ function generateReadmeTail(state) { }, { type: 'text', - value: ',\ncompatible with Node.js 12.' + value: ',\ncompatible with Node.js 16.' } ] }, diff --git a/tsconfig.json b/tsconfig.json index ff4d814..bebc7f8 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -8,10 +8,8 @@ "lib": ["es2022"], "module": "node16", "strict": true, - "target": "es2020" + "target": "es2022" }, "exclude": ["**/coverage/", "**/node_modules/"], - "include": [ - "**/*.js" - ] + "include": ["**/*.js"] }