chore(deps): update dependency sonarqube-scanner to v5 - #706
Open
renovate[bot] wants to merge 1 commit into
Open
chore(deps): update dependency sonarqube-scanner to v5#706renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



This PR contains the following updates:
4.4.0→5.0.0Release Notes
SonarSource/sonar-scanner-npm (sonarqube-scanner)
v5.0.0Compare Source
Description: Require Node.js 22.12+, migrate @sonar/scan to ES modules, and use sonar-scanner-npm as the only NPM scanner executable.
SonarScanner for NPM 5.0.0
Version 5 is a major release of
@sonar/scanwith changes to the required Node.js version, JavaScript module format, and command-line executable names.Please review the migration instructions before upgrading.
Breaking changes and migration
Node.js 22.12.0 or later is required
SonarScanner for NPM now requires Node.js 22.12.0 or later.
Check your current version with:
If you cannot upgrade Node.js yet, remain on version 4.4.0:
Version 4.4.0 supports Node.js 18 and later and provides the new
sonar-scanner-npmexecutable alongside the deprecated aliases.Use
sonar-scanner-npmas the executableThe deprecated
sonarandsonar-scannerexecutable aliases have been removed from both@sonar/scanand the legacysonarqube-scannerpackage.Replace global invocations:
Update package scripts similarly:
{ "scripts": { - "sonar": "sonar" + "sonar": "sonar-scanner-npm" } }The package can be installed globally with:
The package-based invocation remains unchanged:
For pnpm, use:
@sonar/scanis now an ES moduleES module applications should use
import:CommonJS applications should replace
require()with dynamicimport():Other improvements
sonar.scanner.engineJarPath.$SONAR_USER_HOME/ssl/truststore.p12.Upgrade checklist
sonarandsonar-scannercommands withsonar-scanner-npm.require('@sonar/scan')calls with ESM imports or dynamicimport().See the README for complete installation and usage documentation.
Changes
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.