Skip to content

Drop in replacements#6

Closed
Dwood15 wants to merge 3 commits into
npm:latestfrom
Dwood15:drop-in-replacements
Closed

Drop in replacements#6
Dwood15 wants to merge 3 commits into
npm:latestfrom
Dwood15:drop-in-replacements

Conversation

@Dwood15

@Dwood15 Dwood15 commented May 3, 2018

Copy link
Copy Markdown

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

nickserv commented May 28, 2018

Copy link
Copy Markdown

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

styfle commented Jul 16, 2018

Copy link
Copy Markdown

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

zkat commented Dec 20, 2018

Copy link
Copy Markdown
Contributor

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

styfle commented Dec 21, 2018

Copy link
Copy Markdown

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

@aeschright

Copy link
Copy Markdown
Contributor

Here's the overrides RFC: #27

@Dwood15

Dwood15 commented Dec 21, 2018

Copy link
Copy Markdown
Author

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

@styfle

styfle commented Dec 21, 2018

Copy link
Copy Markdown

@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

hutson commented Jan 14, 2019

Copy link
Copy Markdown

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

owlstronaut pushed a commit that referenced this pull request May 29, 2026
Bot-generated transition of RFC **#6** to status `withdrawn`.

Moved to `withdrawn/0006-shallow-updates.md`. Front-matter `status` and
the relevant date field were updated. `INDEX.md` was regenerated.

A `# Withdrawal Amendment` scaffold was prepended (if not already
present). Edit it in this PR with the reason for withdrawal before
merging.

Co-authored-by: npm CLI robot <npm-cli+bot@github.com>
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