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

fix: incorrect peerDependency on "constructs" #13255

Merged
merged 7 commits into from
Feb 25, 2021

Conversation

RomainMuller
Copy link
Contributor

Both @monocdk-experiment/assert and aws-cdk-lib had an outdated peer
dependency declaration against construct (at ^3.0.4 when the code
actually depends on features introduced as recently as ^3.2.0). This
corrects the declaration accordingly.

Additionally, fixes the pack prerequisite check for .NET to accept
.NET 5.0 as a valid provider for .NET Core 3.1 (because it is).


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

Both `@monocdk-experiment/assert` and `aws-cdk-lib` had an outdated peer
dependency declaration against `construct` (at `^3.0.4` when the code
actually depends on features introduced as recently as `^3.2.0`). This
corrects the declaration accordingly.

Additionally, fixes the pack prerequisite check for .NET to accept
.NET 5.0 as a valid provider for .NET Core 3.1 (because it is).
@RomainMuller RomainMuller requested a review from a team February 24, 2021 14:13
@RomainMuller RomainMuller self-assigned this Feb 24, 2021
@gitpod-io
Copy link

gitpod-io bot commented Feb 24, 2021

@mergify mergify bot added the contribution/core This is a PR that came from AWS. label Feb 24, 2021
@RomainMuller RomainMuller added pr-linter/exempt-readme The PR linter will not require README changes pr-linter/exempt-test The PR linter will not require test changes labels Feb 24, 2021
@nija-at nija-at added the pr/do-not-merge This PR should not be merged at this time. label Feb 24, 2021
Copy link
Contributor

@nija-at nija-at left a comment

Choose a reason for hiding this comment

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

Provisional approval.

Make sure the discussion about breaking change is concluded on our Slack channel.

tools/pkglint/lib/rules.ts Outdated Show resolved Hide resolved
tools/pkglint/lib/rules.ts Outdated Show resolved Hide resolved
@@ -47,7 +47,7 @@
"@aws-cdk/cloudformation-diff": "0.0.0"
},
"peerDependencies": {
"constructs": "^3.0.4",
Copy link
Contributor

Choose a reason for hiding this comment

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

We normally recommend to declare a pinned devDependency in order to ensure that the code gets tested with the minimal version required by the peer. Is this not the case here? Why?

Copying @nija-at and @NetaNir whom
I talked to about this.

@RomainMuller RomainMuller removed the pr/do-not-merge This PR should not be merged at this time. label Feb 25, 2021
@mergify
Copy link
Contributor

mergify bot commented Feb 25, 2021

Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@mergify
Copy link
Contributor

mergify bot commented Feb 25, 2021

Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@mergify mergify bot merged commit 17244af into master Feb 25, 2021
@mergify mergify bot deleted the rmuller/upgrade-constructs branch February 25, 2021 13:24
@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject89A8053A-LhjRyN9kxr8o
  • Commit ID: 4c79bed
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contribution/core This is a PR that came from AWS. pr-linter/exempt-readme The PR linter will not require README changes pr-linter/exempt-test The PR linter will not require test changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants