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: Change addDependsOn to addDependency #54

Merged
merged 4 commits into from
Jun 3, 2023

Conversation

blimmer
Copy link
Owner

@blimmer blimmer commented Jun 3, 2023

This is an extension of #52 - cc @hlascelles

addDependsOn is deprecated:

❯ yarn cdk synth
info: Preparing App...
[WARNING] aws-cdk-lib.CfnResource#addDependsOn is deprecated.
  use addDependency
  This API will be removed in the next major release.
[WARNING] aws-cdk-lib.CfnResource#addDependsOn is deprecated.
  use addDependency
  This API will be removed in the next major release.
```Fixes #addDependsOn is deprecated:

❯ yarn cdk synth
info: Preparing App...
[WARNING] aws-cdk-lib.CfnResource#addDependsOn is deprecated.
use addDependency
This API will be removed in the next major release.
[WARNING] aws-cdk-lib.CfnResource#addDependsOn is deprecated.
use addDependency
This API will be removed in the next major release.


Closes #52

hlascelles and others added 4 commits June 2, 2023 13:41
addDependsOn is deprecated:

```
❯ yarn cdk synth
info: Preparing App...
[WARNING] aws-cdk-lib.CfnResource#addDependsOn is deprecated.
  use addDependency
  This API will be removed in the next major release.
[WARNING] aws-cdk-lib.CfnResource#addDependsOn is deprecated.
  use addDependency
  This API will be removed in the next major release.
```
Signed-off-by: github-actions <github-actions@github.com>
@@ -3,7 +3,7 @@ const { ReleaseTrigger } = require('projen/lib/release');
const project = new awscdk.AwsCdkConstructLibrary({
author: 'Ben Limmer',
authorAddress: 'https://benlimmer.com/freelance',
cdkVersion: '2.1.0',
cdkVersion: '2.56.0',
Copy link
Owner Author

Choose a reason for hiding this comment

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

@hlascelles, since this project uses projen (https://projen.io/), you don't manually update package.json/yarn, etc. This is all managed through projen. I'm kind of surprised you were able to edit package.json, as projen marks those files as read-only.

So, with projen, to update anything, you handle it through this configuration file. When you make changes, you then run yarn projen, which updates all the dependent subfiles.

To produce this PR I:

  1. Checked out your branch.
  2. Discarded this commit where you updated the package.json 79111cd (#52)
  3. Updated this cdkVersion line in this file
  4. Ran yarn projen
  5. Git add all and commit!

@blimmer blimmer merged commit 7ac6b0f into main Jun 3, 2023
@blimmer blimmer deleted the 2023-06-02/update-add-dependency-call branch June 3, 2023 20:50
@hlascelles
Copy link
Contributor

Thank you! 🙇

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants