From 6c7d1482ab3f8d781ac68309e0fd015048dc5280 Mon Sep 17 00:00:00 2001 From: xLuxy <67131061+xLuxy@users.noreply.github.com> Date: Wed, 18 Sep 2024 08:50:18 +0200 Subject: [PATCH] chore: Make JSv2 module available on all branches --- README.md | 2 +- bin/altv-pkg.js | 5 ----- package.json | 2 +- 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 6814cee..7b8c672 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ npx altv-pkg release Create a `.altvpkgrc.json` file in your root directory and add the following JSON code. -**Note:** The `loadJSV2Module` configuration allows you to include the experimental JavaScript V2 (JSV2) module when downloading binaries. Please be aware that as of the current release, the JSV2 module is exclusively available in the dev branch. +**Note:** The `loadJSV2Module` configuration allows you to include the experimental JavaScript V2 (JSV2) module when downloading binaries. **Note:** The `loadVoiceServer` configuration allows you to include [external voice server](https://docs.altv.mp/articles/external_voice_server.html) when downloading binaries. diff --git a/bin/altv-pkg.js b/bin/altv-pkg.js index 7633859..6cbd925 100644 --- a/bin/altv-pkg.js +++ b/bin/altv-pkg.js @@ -255,11 +255,6 @@ async function start() { } if (loadJSV2Module) { - if (branch != 'dev' && branch != 'rc' && !branch.startsWith('qa')) { - console.log(chalk.redBright('===== JSv2 module is currently only available in dev and rc, skipping =====')); - return; - } - res = await fetchJsonData(`https://${CDN_ADDRESS}/js-module-v2/${branch}/x64_linux/update.json`, { responseType: 'application/json', headers, diff --git a/package.json b/package.json index 8015b9a..a2e6574 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "altv-pkg", - "version": "2.8.0", + "version": "2.9.0", "description": "Install alt:V Binaries Quickly", "main": "bin/index.js", "author": "Stuyk & alt:V Team",