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

feat: move framework packages to peerDependencies #6264

Merged
merged 1 commit into from
Sep 4, 2020

Conversation

bajtos
Copy link
Member

@bajtos bajtos commented Sep 3, 2020

As discussed several times in the past (most recently in #5927 (comment)), extensions should use framework modules from the target application via peerDependencies.

This PR is a spin-off from #5959 which is becoming too difficult to get landed because of merge conflicts. In this patch, I have updated dependencies in all extension/* packages.

Please read #5959 for the original discussion around this proposal. We have reached consensus to follow this new direction, so I hope we can get this PR landed quickly.

BREAKING CHANGE

Extensions no longer install framework packages as their own dependencies, they use the framework packages provided by the target application instead.

If you are getting npm install errors after upgrade, then make sure your project lists all dependencies required by the extensions you are using.

Checklist

  • DCO (Developer Certificate of Origin) signed in all commits
  • npm test passes on your machine
  • New tests added or existing tests modified to cover all changes
  • Code conforms with the style guide
  • API Documentation in code was updated
  • Documentation in /docs/site was updated
  • Affected artifact templates in packages/cli were updated
  • Affected example projects in examples/* were updated

👉 Check out how to submit a PR 👈

@bajtos bajtos requested a review from raymondfeng September 3, 2020 07:58
@bajtos bajtos self-assigned this Sep 3, 2020
@bajtos bajtos force-pushed the feat/extension-peer-deps-2 branch from e64f8f1 to d4b0563 Compare September 3, 2020 08:06
@bajtos bajtos changed the title refactor: move framework packages to devDependencies feat: move framework packages to devDependencies Sep 3, 2020
@raymondfeng
Copy link
Contributor

Please fix the commit message to be:

feat: move framework packages to `peerDependencies`

BREAKING CHANGE: Extensions no longer install framework packages as
their own dependencies, they use the framework packages provided by the
target application instead.

If you are getting `npm install` errors after upgrade, then make sure
your project lists all dependencies required by the extensions you are
using.

Signed-off-by: Miroslav Bajtoš <[email protected]>
@bajtos bajtos force-pushed the feat/extension-peer-deps-2 branch from d4b0563 to 4cc1bbf Compare September 3, 2020 15:36
@bajtos bajtos changed the title feat: move framework packages to devDependencies feat: move framework packages to peerDependencies Sep 3, 2020
@bajtos bajtos merged commit d8f72e4 into master Sep 4, 2020
@bajtos bajtos deleted the feat/extension-peer-deps-2 branch September 4, 2020 07:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants