Repository navigation
feat(npm): allow opting into deprecated versions - #11554
Conversation
A package.json range can select only deprecated releases while newer majors are still maintained. Let manifests opt into those releases while retaining the configured version and age filters. Signed-off-by: Loïs Postula <lois@postu.la>
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
An npm project using
eslint: ^8.57.1getsno version foundafter #11511. The npm registry marks8.57.1deprecated, and it is the only published release matching the range. Filtering it out causes the npm source to fail and blocks the lockfile target.Set
allowdeprecatedversion: trueon an npm resource or in npm autodiscovery to include deprecated releases. The option defaults tofalseand preserves the existing fallback for packages whose releases are all deprecated.Test
go test -count=1 ./pkg/plugins/autodiscovery/npm ./pkg/plugins/resources/npm.eslint: ^8.57.1. The default returnedno version found. Enabling the option returned8.57.1with the same semver constraint and three-day minimum release age.Summary by CodeRabbit