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

chore(cx-api): remove more instanceofs #19511

Merged
merged 2 commits into from
Mar 29, 2022
Merged

chore(cx-api): remove more instanceofs #19511

merged 2 commits into from
Mar 29, 2022

Conversation

mnapoli
Copy link
Contributor

@mnapoli mnapoli commented Mar 22, 2022

Fixes #17974

Follow-up of #14468

This follows the implementation of aws/constructs#955 to be more robust.


All Submissions:

Adding new Unconventional Dependencies:

  • This PR adds new unconventional dependencies following the process described here

New Features

  • Have you added the new feature to an integration test?
    • Did you use cdk-integ to deploy the infrastructure and generate the snapshot (i.e. cdk-integ without --dry-run)?

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

@gitpod-io
Copy link

gitpod-io bot commented Mar 22, 2022

@github-actions github-actions bot added the @aws-cdk/cx-api Related to the Cloud Executable API label Mar 22, 2022
Copy link
Contributor

@rix0rrr rix0rrr left a comment

Choose a reason for hiding this comment

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

I'd rather you follow this pattern.

This feels pretty dangerous as renaming the class would break this fix.

@mnapoli
Copy link
Contributor Author

mnapoli commented Mar 22, 2022

@rix0rrr thank you for the guidance, that makes complete sense!

I've updated the PR!

@mnapoli mnapoli requested a review from rix0rrr March 22, 2022 19:49
@mergify mergify bot dismissed rix0rrr’s stale review March 22, 2022 19:49

Pull request has been modified.

@mnapoli mnapoli force-pushed the patch-1 branch 4 times, most recently from 44a9ae7 to 0229628 Compare March 23, 2022 13:18
@mnapoli
Copy link
Contributor Author

mnapoli commented Mar 23, 2022

  • Result: SUCCEEDED

🎉

@rix0rrr rix0rrr changed the title fix: cx-api can be installed twice by NPM chore(cx-api): remove more instanceofs Mar 29, 2022
@github-actions github-actions bot added bug This issue is a bug. effort/small Small work item – less than a day of effort p1 labels Mar 29, 2022
@mergify
Copy link
Contributor

mergify bot commented Mar 29, 2022

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).

@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

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

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

@mergify mergify bot merged commit 8f9d274 into aws:master Mar 29, 2022
@mergify
Copy link
Contributor

mergify bot commented Mar 29, 2022

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).

@mnapoli mnapoli deleted the patch-1 branch March 29, 2022 09:55
@mnapoli
Copy link
Contributor Author

mnapoli commented Mar 29, 2022

🙏 thank you!

StevePotter pushed a commit to StevePotter/aws-cdk that referenced this pull request Apr 27, 2022
Fixes aws#17974

Follow-up of aws#14468 

This follows the implementation of aws/constructs#955 to be more robust.

----

### All Submissions:

* [x] Have you followed the guidelines in our [Contributing guide?](https://github.com/aws/aws-cdk/blob/master/CONTRIBUTING.md)

### Adding new Unconventional Dependencies:

* [ ] This PR adds new unconventional dependencies following the process described [here](https://github.com/aws/aws-cdk/blob/master/CONTRIBUTING.md/#adding-new-unconventional-dependencies)

### New Features

* [ ] Have you added the new feature to an [integration test](https://github.com/aws/aws-cdk/blob/master/INTEGRATION_TESTS.md)?
	* [ ] Did you use `cdk-integ` to deploy the infrastructure and generate the snapshot (i.e. `cdk-integ` without `--dry-run`)?

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@aws-cdk/cx-api Related to the Cloud Executable API bug This issue is a bug. effort/small Small work item – less than a day of effort p1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

aws-cdk: cx-api installed twice by NPM
3 participants