Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle renamed packages (i.e. babel-core -> @babel/core) #7

Open
debuglevel opened this issue Apr 14, 2024 · 0 comments
Open

Handle renamed packages (i.e. babel-core -> @babel/core) #7

debuglevel opened this issue Apr 14, 2024 · 0 comments

Comments

@debuglevel
Copy link

Just a thought, because implementing this might not be too easy.

There are package upgrades which are not picked up because at some point scopes were introduced at npmjs.org (i.e. babel-core was moved to @babel/core).

Unfortunately, my current knowledge about the javascript/nom/node ecosystem is rather limited -- so my ideas might be completely unrealistic.

  1. Do these renames usually follow a certain pattern? i.e. could a heuristic like in babel-core -> @babel/core be applied? (But that would introduce guesswork and magic into dependency-time-machine. Not a big fan.)
  2. Is there some "these packages were renamed from this to that"-database which could be used?
  3. The developer could create a local database about the package renames. dependency-time-machine would have to threat merge versions of those packages and handle the renaming at some point. The database could e.g. look like this:
babel-core, @babel/core
"renames": {
   "old": "babel-core",         "new": "@babel/core",
   "old": "babel-preset-env",   "new": "@babel/preset-env",
}

But maybe this issue is just a bad idea, because such a package rename might require manual adjustments in a lot of other files, too (and hence the --test-script would fail anyway). Feel free to close this issue in this case 😅

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

No branches or pull requests

1 participant