Skip to content

fix(unpublish): Show warning when last version is being removed - #4191

Merged
nlf merged 1 commit into
npm:release-nextfrom
ebsaral:latest
Jan 6, 2022
Merged

fix(unpublish): Show warning when last version is being removed#4191
nlf merged 1 commit into
npm:release-nextfrom
ebsaral:latest

Conversation

@ebsaral

@ebsaralebsaral commented Dec 25, 2021

Copy link
Copy Markdown
Contributor

Issue:
When we use npm unpublish command with the last version of a package, we don't get a warning and we can't republish until 24 hours pass.

Solution:
I wanted to give a warning to the user and force them to use --force if they are really sure about this action.

Fixes npm/rfcs#355

@ebsaral
ebsaral requested a review from a team as a code ownerDecember 25, 2021 13:06
@ebsaralebsaral changed the title Show warning on unpublish command when last version is being removedWIP: Show warning on unpublish command when last version is being removedDec 25, 2021
@ebsaralebsaral changed the title WIP: Show warning on unpublish command when last version is being removedShow warning on unpublish command when last version is being removedDec 25, 2021
@FelixSelter

Copy link
Copy Markdown

Please implement this

Comment threadlib/commands/unpublish.js
@ebsaral

ebsaral commented Jan 4, 2022 via email

Copy link
Copy Markdown
ContributorAuthor

@ebsaralebsaral changed the title Show warning on unpublish command when last version is being removedWIP: Show warning on unpublish command when last version is being removedJan 6, 2022
@ebsaralebsaral changed the title WIP: Show warning on unpublish command when last version is being removedShow warning on unpublish command when last version is being removedJan 6, 2022
@wraithgar
wraithgar changed the base branch from latest to release-nextJanuary 6, 2022 15:22
@wraithgarwraithgar changed the title Show warning on unpublish command when last version is being removedfix(unpublish): Show warning when last version is being removedJan 6, 2022

@ruyadornoruyadorno left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍 thanks for the contribution @ebsaral

@nlf
nlf merged commit 65c3a7b into npm:release-nextJan 6, 2022
@fritzyfritzy mentioned this pull request Jan 13, 2022
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@ebsaral@FelixSelter@wraithgar@ruyadorno@nlf