From 18a6d338d8b2905935d6b373765d91f7bd1875c5 Mon Sep 17 00:00:00 2001 From: Lupo Montero Date: Thu, 28 Nov 2024 19:37:43 +0100 Subject: [PATCH] doc(readme): Updates install info and tested Node.js versions --- README.md | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 68e6dfd..4bffac1 100644 --- a/README.md +++ b/README.md @@ -35,13 +35,16 @@ details. ### Node.js +This module is tested on Node.js v8, v10, v12, v14, v16, v18, v20 and v22. See +[`.github/workflows/node.js.yml`](.github/workflows/node.js.yml). + ```sh npm install psl ``` #### ESM -From version `v1.11.0` you can now import `psl` as ESM. +From version `v1.13.0` you can now import `psl` as ESM. ```js import psl from 'psl'; @@ -49,21 +52,13 @@ import psl from 'psl'; #### CommonJS -If your project still uses CommonJS on Node.js v12 or later (with support for -conditional exports), you can continue importing the module like in previous -versions. +If your project still uses CommonJS, you can continue importing the module like +in previous versions. ```js const psl = require('psl'); ``` -⚠️ If you are using Node.js v10 or older (😰), you can still use the latest -version of this module, but you will need to import the bundled UMD. - -```js -var psl = require('psl/dist/psl.umd.cjs'); -``` - ### Browser #### Using a bundler