From 58187d8907400d373989da569b0d7afff4f288fc Mon Sep 17 00:00:00 2001 From: Jakub Jankiewicz Date: Mon, 25 Nov 2024 20:41:41 +0100 Subject: [PATCH] allow to use copy-paste indent with Node >=18.19.0 --- CHANGELOG.md | 4 ++++ bin/lips.js | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index db80f8cc..f614b43f 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 1.0.0-beta.21 +### Feature +* allow to use copy-paste indent with Node >=18.19.0 + ## 1.0.0-beta.20 ### Feature * allow to call `load` with `@lips` prefix [#354](https://github.com/jcubic/lips/issues/354) diff --git a/bin/lips.js b/bin/lips.js index 75f9d740..49c345cd 100755 --- a/bin/lips.js +++ b/bin/lips.js @@ -53,7 +53,8 @@ const require = createRequire(import.meta.url); const kDebounceHistoryMS = 15; -const supports_paste_brackets = satisfies(process.version, '>=v20.6.0'); +const supports_paste_brackets = satisfies(process.version, '>=18.19.0 <19') || + satisfies(process.version, '>=20.6.0'); // ----------------------------------------------------------------------------- process.on('uncaughtException', function (err) {