Skip to content

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

@debuglevel

Description

@debuglevel

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 😅

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions