fix(mod_format/formatters): fix(packagejson.formatter): correctly parse scoped package dependency arguments and default to latest

This commit is contained in:
2025-12-15 17:30:51 +00:00
parent 4d7eaa238f
commit b191464ff9
3 changed files with 20 additions and 4 deletions

View File

@@ -1,5 +1,12 @@
# Changelog
## 2025-12-15 - 2.11.1 - fix(mod_format/formatters)
fix(packagejson.formatter): correctly parse scoped package dependency arguments and default to latest
- Handle scoped packages (e.g. @scope/name@version) by detecting the last '@' after the scope slash so package name and version are split correctly.
- Fallback to 'latest' when no version is provided.
- Fixes earlier incorrect splitting on every '@' which broke scoped package names.
## 2025-12-15 - 2.11.0 - feat(mod_format)
feat(mod_format): use unified diff formatter with filenames and context in BaseFormatter.displayDiff