From 7ac2a6fd7731bcf42cbdeeb5b8011f0406f4eca8 Mon Sep 17 00:00:00 2001 From: Kufat Date: Thu, 1 Jun 2023 08:03:07 -0400 Subject: [PATCH] Fix semver for prerelease versions Noticed this breakage while trying to install a plugin on 4.4.1-rc2. ``` > semver.default.satisfies("4.4.1-rc2", ">=4.3.0") false > semver.default.satisfies("4.4.1-rc2", ">=4.3.0", {includePrerelease: true}) true ``` --- server/command-line/install.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/command-line/install.ts b/server/command-line/install.ts index d77404c3..adce9618 100644 --- a/server/command-line/install.ts +++ b/server/command-line/install.ts @@ -74,7 +74,9 @@ program if ( json.thelounge.supports && - !semver.satisfies(Helper.getVersionNumber(), json.thelounge.supports) + !semver.satisfies(Helper.getVersionNumber(), json.thelounge.supports, { + includePrerelease: true, + }) ) { log.error( `${colors.red(