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 deprecated packages #39

Open
asakusuma opened this issue Jun 23, 2021 · 2 comments
Open

Handle deprecated packages #39

asakusuma opened this issue Jun 23, 2021 · 2 comments

Comments

@asakusuma
Copy link
Contributor

We need a way to enforcing migrating away from deprecated packages.

For instance, ensuring folks move from rollup-plugin-babel to @rollup/plugin-babel

Need to look into if there’s a native npm/yarn signal that a package is deprecated or if this is something that needs to be configured.

@asakusuma
Copy link
Contributor Author

Probably need to support a configuration that allows specifying what package should be used instead, and when the deadline for removing usage is:

{
  "deprecated": {
    "rollup-plugin-babel": {
      "successor": "@rollup/plugin-babel",
      "deadline": "3/31/2022"
    },
    "other-dep-with-no-successor": {
      "deadline": "6/31/2022"
    }
  }
}

@thousand
Copy link

The example I think shows something being moved or replaced with a "compatible" successor, would this also apply to moving between dependencies that are not directly related? For example, transitioning from Bootstrap to Material for the UI? In that case it seems like a semver range spec, at least on the successor, would help ensure that people get the latest or an otherwise desirable range (i.e., if there's a known bug with the way a specific version interacts with another dependency).

It'd also be good to have support for dependencies getting "split" into multiple packages. For example, if dependency A has features 1, 2 and 3 at v1.0, and 3 gets removed for v2.0 and moved into dependency B, the successor to the deprecated [email protected] might be both [email protected] and [email protected].

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

2 participants