`deprecated` field in package.json causes all old packages to be deleted at the time of publish
See original GitHub issueDescribe the bug
If package.json in the project has a "deprecated"
field, other versions of the package will be lost during publish.
To Reproduce
- add
"deprecated": "message"
in package.json - bump version
- npm publish --registry localhost:4873
All the old packages are lost.
Expected behavior
At registry.npmjs.org:
"deprecated": false
will do nothing"deprecated": "message"
will deprecate the current package (won’t delete older packages)
Screenshots
Configuration File (cat ~/.config/verdaccio/config.yaml)
Environment information
master
branch of this repo
Debugging output
$ NODE_DEBUG=request verdaccio
display request calls (verdaccio <–> uplinks)$ DEBUG=express:* verdaccio
enable extreme verdaccio debug mode (verdaccio api)$ npm -ddd
prints:
npm info using npm@6.14.8 npm info using node@v12.19.0
$ npm config get registry
prints:
Issue Analytics
- State:
- Created 3 years ago
- Reactions:3
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Deprecating and undeprecating packages or ...
Deprecating a package is an alternative to deleting a package if your package does not meet the unpublishing requirements. Using the website. On...
Read more >node.js - NPM warn message about deprecated package
This command will analyze installed NPM-packages and their versions. The report will contain: package name; latest version; current version ...
Read more >npm packages in the Package Registry - GitLab Docs
Watch a video demo of how to publish npm packages to the GitLab Package Registry. Publish to GitLab Package Registry. Authentication to the...
Read more >Firebase JavaScript SDK Release Notes - Google
The SDK no longer causes React Native to log a warning about deprecation of AsyncStorage if ... react-native paths to the exports field...
Read more >Configuration Options - Renovate Docs
Storing the Renovate configuration in a package.json file is deprecated and support may be removed in the future. When renovating a repository, ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hello @juanpicado,
We have the same problem. Our setup is:
How to reproduce:
If there is any other info I can provide, please let me know! Thank you!
PS: a big thank you also for verdaccio 💯
Fixed on https://github.com/verdaccio/verdaccio/releases/tag/v5.3.2