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: use "construct" instead of "node" across the library #9584

Merged
merged 5 commits into from
Aug 11, 2020

Conversation

eladb
Copy link
Contributor

@eladb eladb commented Aug 11, 2020

As a follow-up for #9557, replace all usage of the deprecated node API with construct.

Related: aws/aws-cdk-rfcs#192


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

As a follow-up for #9557, replace all usage of the deprecated `node` API with `construct`.

Related: aws/aws-cdk-rfcs#192
@eladb eladb requested review from nija-at, rix0rrr and a team August 11, 2020 07:27
@mergify mergify bot added the contribution/core This is a PR that came from AWS. label Aug 11, 2020
@mergify
Copy link
Contributor

mergify bot commented Aug 11, 2020

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 Aug 11, 2020

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 6a8cba4 into master Aug 11, 2020
@mergify mergify bot deleted the benisrae/node-to-construct branch August 11, 2020 09:53
@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject6AEA49D1-qxepHUsryhcu
  • Commit ID: 5b03742
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

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

rix0rrr added a commit that referenced this pull request Aug 12, 2020
mergify bot pushed a commit that referenced this pull request Aug 20, 2020
Introduce `Annotations.addDeprecation()` which will attach a warning to the construct indicating that a deprecated API is used.

At the moment, we only use this to warn when `.node` is used instead of `.construct`, but we will gradually use this to report the usage of all deprecated APIs as a preparation for v2.0.

If the environment variable `CDK_BLOCK_DEPRECATIONS` is set (and it is set in `cdk-test`), it will cause usage of deprecated APIs to throw an error instead.

Related: aws/aws-cdk-rfcs#192

----

#### Build will be failing until #9584 is merged

----

*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
contribution/core This is a PR that came from AWS.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants