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(core): deprecate "Construct.node" in favor of "Construct.construct" #9557

Merged
merged 10 commits into from
Aug 10, 2020

Conversation

eladb
Copy link
Contributor

@eladb eladb commented Aug 10, 2020

To reduce the chance for conflicts with generated domain-specific properties in subclasses of Construct (see terraform-cdk issue), we decided that we will rename node to construct, which is less prevalent.

We plan to remove the node API in the next major version of the AWS CDK, and therefore recommend users to migrate their code to use construct instead.

See discussion in the RFC.


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

To reduce the chance for conflicts with generated domain-specific properties in subclasses of `Construct` (see [terraform-cdk issue]), we decided that we will rename `node` to `construct`, which is less prevalent.

We plan to remove the `node` API in the next major version of the AWS CDK, and therefore recommend users to migrate their code to use `construct` instead.

Part of aws/aws-cdk-rfcs#192
[terraform-cdk issue]: hashicorp/terraform-cdk#230
@eladb eladb requested a review from a team August 10, 2020 06:18
@mergify mergify bot added the contribution/core This is a PR that came from AWS. label Aug 10, 2020
@eladb eladb self-assigned this Aug 10, 2020
@eladb eladb requested a review from rix0rrr August 10, 2020 11:48
@eladb eladb requested a review from nija-at August 10, 2020 12:25
@mergify
Copy link
Contributor

mergify bot commented Aug 10, 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).

@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

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

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

@mergify
Copy link
Contributor

mergify bot commented Aug 10, 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 aa4c5b7 into master Aug 10, 2020
@mergify mergify bot deleted the benisrae/construct-instead-of-node branch August 10, 2020 14:02
eladb pushed a commit that referenced this pull request 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
mergify bot pushed a commit that referenced this pull request 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*
rix0rrr added a commit that referenced this pull request Aug 12, 2020
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