diff --git a/docs/development/setting-up.md b/docs/development/setting-up.md index d893efb2..d1832f4e 100644 --- a/docs/development/setting-up.md +++ b/docs/development/setting-up.md @@ -5,22 +5,10 @@ Swagger UI includes a development server that provides hot module reloading and ### Prerequisites - git, any version -- NPM >=6.12.x - -Generally, we recommend the following guidelines from [Node.js Releases](https://nodejs.org/en/about/releases/) to only use Active LTS or Maintenance LTS releases. - -Current Node.js: -- Node.js 16.x -- NPM >=7.10.x - -Current Node.js Active LTS: -- Node.js 14.x -- NPM >=6.12.x - -Current Node.js Maintenance LTS: -- Node.js >=12.4 -- NPM >= 6.12.x +SwaggerUI Node.js support closely follows [Node.js Release Statuses](https://nodejs.org/en/about/releases/) +and is only expected to work on `Current`, `Active LTS` and `Maintanenace LTS` versions of Node.js. +SwaggerUI may also work on `Pending` or `EOL` versions of Node.js, but it's not guaranteed. ### Steps diff --git a/test/unit/jest-shim.js b/test/unit/jest-shim.js index 26efea0c..90496ee4 100644 --- a/test/unit/jest-shim.js +++ b/test/unit/jest-shim.js @@ -1,4 +1,4 @@ -import { TextDecoder, TextEncoder } from "util" +import { TextDecoder, TextEncoder } from "node:util" global.TextDecoder = TextDecoder global.TextEncoder = TextEncoder