jsr icon indicating copy to clipboard operation
jsr copied to clipboard

new package: "very similar name" block not including archived packages.

Open philcockfield opened this issue 1 year ago • 1 comments

Creating a new package with a similar name to an existing package, eg:

  • @sys/driver-deno-cloud
  • @sys/driver-denocloud

Gets caught helpefully by a "very similar name already exists" error: image

The new feature of archiving a package does not change the block.

A common scenario would be to archive → then subtly rename the package (while getting the package namespace laid out right in the early days).

Would it make sense to exclude packages from the "block" filter upon "create" ?

philcockfield avatar Sep 25 '24 22:09 philcockfield

The problem with lifting this block is that if someone unarchives the archived package, the block basically becomes ineffective

crowlKats avatar Sep 27 '24 14:09 crowlKats

@crowlKats we could also perform the name check upon unarchive.

lucacasonato avatar Oct 28 '24 10:10 lucacasonato

The problem with lifting this block is that if someone unarchives the archived package, the block basically becomes ineffective

Ha, that's super helpful to understand the integrity constraint you're protecting with this. Now I understand.

A public, immutable, forward-only version namespace has some interesting design challenges.

philcockfield avatar Oct 29 '24 23:10 philcockfield

Hi, Is there any solution to package renaming?

I am hitting the same problem reported and hitting the same error: "A package with this or a very similar name already exists.".

danielfroz avatar Dec 17 '24 17:12 danielfroz