Skip to content

Conversation

@Dwood15
Copy link

@Dwood15 Dwood15 commented May 3, 2018

I apologize if this is a little disorganized/eclectic. Still working through how this all fits in with npm. Stripped out a large portion of the original doc I had written after hearing there is a WIP on an rfcs for deep aliasing, and didn't want to duplicate that effort.

This rfcs is about marking a package as being a viable candidate for both aliasing and/or deep-aliasing for another package.

Should this get accepted, being able to search for packages in lieu of another package, regardless of depth, should become pretty easy.

@iarna iarna requested a review from a team May 9, 2018 22:29
@nickserv
Copy link

nickserv commented May 28, 2018

This would be great for tracking packages that are renamed in major releases, especially now that packages like @babel/core and @material-ui/core are moving to organizations. It's confusing when you update old package names to their latest versions and don't realize that you're missing new versions with different names.

@styfle
Copy link

styfle commented Jul 16, 2018

This would be amazing!

The web interface already shows scores for Popularity, Quality, and Maintenance...so adding the ability to compare "Alias Packages for X" in the web interface would be excellent when comparing these aliases 👌

Something like this (but instead of search on keyword, it would be alias):
https://www.npmjs.com/search?q=keywords:babel

@zkat
Copy link
Contributor

zkat commented Dec 20, 2018

After some discussion, we decided that the upcoming overrides API (RFC upcoming, /cc @aeschright) solves this problem without the added complication of registry-side changes.

@zkat zkat closed this Dec 20, 2018
@styfle
Copy link

styfle commented Dec 21, 2018

Can you link to the RFC when it’s available so we can follow it?

@aeschright
Copy link
Contributor

Here's the overrides RFC: #27

@Dwood15
Copy link
Author

Dwood15 commented Dec 21, 2018

@zkat I feel like it's a mistake to not add registry changes that allow searching for overrides. /shrug

@styfle
Copy link

styfle commented Dec 21, 2018

@zkat I read the overrides RFC in #27 and I don't believe that it will solve this particular use case. As @Dwood15 mentioned, this Drop In Replacements proposal is meant to be additional metadata in the registry for the purpose of searching. Can you explain how #27 will solve this use case?

@hutson
Copy link

hutson commented Jan 14, 2019

The overrides API seems targeted at the consumer to empower them to replace packages in their tree.

However, it does not empower the package maintainer to communicate and encourage consumers to adopt replacement packages (in the case of renames, scope migrations, etc.)

👍 on re-opening this RFC please

Sign up for free to 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.

7 participants