Skip to content

Conversation

@steinybot
Copy link
Contributor

Issue #, if available: Fixes #6148

Description of changes:

Updated the inter-package dependencies to use the latest major version.

I did a fairly primitive search using (aws|amplify).*\^[^3] and then updated anything which had later versions. There is possibly a more thorough / less manual approach.

This doesn't attempt to solve this problem in future although I think that would be a good idea. Any thoughts?

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@codecov
Copy link

codecov bot commented Jul 10, 2020

Codecov Report

Merging #6282 into main will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #6282   +/-   ##
=======================================
  Coverage   73.26%   73.26%           
=======================================
  Files         208      208           
  Lines       12920    12920           
  Branches     2432     2525   +93     
=======================================
  Hits         9466     9466           
+ Misses       3291     3263   -28     
- Partials      163      191   +28     
Impacted Files Coverage Δ
packages/auth/src/OAuth/OAuth.ts 56.11% <0.00%> (ø)
packages/core/src/Credentials.ts 31.67% <0.00%> (ø)
packages/analytics/src/Analytics.ts 64.81% <0.00%> (ø)
packages/datastore/src/sync/index.ts 15.38% <0.00%> (ø)
packages/datastore/src/sync/outbox.ts 24.48% <0.00%> (ø)
packages/datastore/src/storage/storage.ts 71.66% <0.00%> (ø)
packages/core/src/OAuthHelper/GoogleOAuth.ts 33.33% <0.00%> (ø)
packages/core/src/Util/Reachability.native.ts 37.50% <0.00%> (ø)
packages/xr/src/Providers/SumerianProvider.ts 47.55% <0.00%> (ø)
packages/core/src/OAuthHelper/FacebookOAuth.ts 34.69% <0.00%> (ø)
... and 8 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 441fb9b...8e81bde. Read the comment docs.

@steinybot steinybot marked this pull request as ready for review July 10, 2020 00:58
@steinybot steinybot requested a review from Ashish-Nanda as a code owner July 10, 2020 00:58
@amhinson amhinson requested a review from iartemiev July 17, 2020 20:02
@sammartinez sammartinez requested a review from jordanranz July 28, 2020 15:21
},
"peerDependencies": {
"@aws-amplify/pubsub": "^2.1.1"
"@aws-amplify/pubsub": "^3.0.0"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the reasoning for updating this?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Related to #6148 & #6499

Lerna doesn't update linked peerDependencies (lerna/lerna#1575 (comment)), so ours our out of sync with what devDependencies.

In this case though (see #6499), a direct dependencies doesn't need to be restated as a peerDependencies (because customers don't need to install it themselves), so this line can be safely removed.

},
"peerDependencies": {
"@aws-amplify/pubsub": "^2.1.1"
"@aws-amplify/pubsub": "^3.0.0"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same callout as above.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I mentioned this in #6499 as well, but @aws-amplify/api has no direct usage of @aws-amplify/pubsub, so this can be removed. (@aws-amplify/api-graphql has this defined in its peerDependencies)

Copy link
Contributor

@ericclemmons ericclemmons left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are some peerDependencies we can safely remove (similar to #6499) and get this merged in. 🙏

},
"peerDependencies": {
"@aws-amplify/pubsub": "^2.1.1"
"@aws-amplify/pubsub": "^3.0.0"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Related to #6148 & #6499

Lerna doesn't update linked peerDependencies (lerna/lerna#1575 (comment)), so ours our out of sync with what devDependencies.

In this case though (see #6499), a direct dependencies doesn't need to be restated as a peerDependencies (because customers don't need to install it themselves), so this line can be safely removed.

},
"peerDependencies": {
"@aws-amplify/pubsub": "^2.1.1"
"@aws-amplify/pubsub": "^3.0.0"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I mentioned this in #6499 as well, but @aws-amplify/api has no direct usage of @aws-amplify/pubsub, so this can be removed. (@aws-amplify/api-graphql has this defined in its peerDependencies)

Copy link
Contributor

@sammartinez sammartinez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🌮

@steinybot
Copy link
Contributor Author

I removed the 2 peer dependencies on @aws-amplify/pubsub from api and api-graphql were those the only ones?

Copy link
Contributor

@ericclemmons ericclemmons left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the updates! Once tests pass, we'll get this merged in.

This will be considered a patch release.

@ericclemmons ericclemmons merged commit a819a26 into aws-amplify:main Aug 12, 2020
nubpro pushed a commit to nubpro/amplify-js that referenced this pull request Oct 2, 2020
iartemiev pushed a commit that referenced this pull request Oct 13, 2020
Co-authored-by: Sam Martinez <[email protected]>
Co-authored-by: Eric Clemmons <[email protected]>
@github-actions
Copy link

This pull request has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs.

Looking for a help forum? We recommend joining the Amplify Community Discord server *-help channels or Discussions for those types of questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 12, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

aws-amplify-react peer dependencies pinned to 2.x

3 participants