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(deps): Update GuCDK from 57.0.0 to 59.5.1 #945

Merged
merged 1 commit into from
Sep 19, 2024
Merged

Conversation

akash1810
Copy link
Member

@akash1810 akash1810 commented Sep 19, 2024

What does this change?

Update to the latest version of GuCDK.

Updating GuCDK across 2 major versions includes some breaking changes. These are reflected in the update to the snapshot.

The update was done by regenerating the CDK project via:

npx @guardian/cdk@latest new --package-manager npm --stage PROD --stage CODE --app prism --stack deploy

Consequently a number of files have been deleted as:

  • They are redundant (e.g. the script/build file, and others like it)
  • Or they were configuration that has now been inlined into package.json or replaced by shared departmental configuration, e.g. the changes to tsconfig.json

Annoyingly some files only include whitespace changes. Therefore its recommended to review w/out them.

Performing the update like this also means we fix #692; we're now using npm only.


Fixes #692.
Co-authored-by: @SarahJessica

@akash1810 akash1810 requested a review from a team as a code owner September 19, 2024 11:21
jacobwinch
jacobwinch previously approved these changes Sep 19, 2024
@@ -631,6 +636,7 @@ exports[`The PrismEc2App stack matches the snapshot 1`] = `
},
"Port": 443,
"Protocol": "HTTPS",
"SslPolicy": "ELBSecurityPolicy-TLS13-1-2-2021-06",
Copy link
Member Author

Choose a reason for hiding this comment

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

Comment on lines +96 to +100
"MetricsCollection": [
{
"Granularity": "1Minute",
},
],
Copy link
Member Author

Choose a reason for hiding this comment

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

@@ -1124,6 +1148,7 @@ exports[`The PrismEc2App stack matches the snapshot 1`] = `
"InstanceType": "t4g.medium",
"MetadataOptions": {
"HttpTokens": "required",
"InstanceMetadataTags": "enabled",
Copy link
Member Author

Choose a reason for hiding this comment

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

Comment on lines +63 to +66
"quotes": [
"error",
"double"
]
Copy link
Member Author

Choose a reason for hiding this comment

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

It looks like the departmental preference is to use single quotes. Overriding that here to keep the diff in this PR as minimal as possible, and thus easier to review. This change will be reverted as it's own PR.

Copy link
Member Author

Choose a reason for hiding this comment

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

"module": "CommonJS"
}
},
"extends": "@guardian/tsconfig/tsconfig.json",
Copy link
Member Author

Choose a reason for hiding this comment

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

Prefer to use the departmental configuration, rather than our own.

Updating GuCDK across 2 major versions includes some breaking changes.
These are reflected in the update to the snapshot.

Also taken the opportunity to simplify the CDK project by removing redundant files
and using `npm` across the board.

Fixes #692.

Co-authored-by: SarahJessica <[email protected]>

chore(deps-dev): Update to 59.5.1
@akash1810 akash1810 changed the title chore(deps): Update GuCDK from 57.0.0 to 59.5.0 chore(deps): Update GuCDK from 57.0.0 to 59.5.1 Sep 19, 2024
@akash1810 akash1810 merged commit 4f27811 into main Sep 19, 2024
4 checks passed
@akash1810 akash1810 deleted the gucdk-59.5.0 branch September 19, 2024 12:08
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.

CDK - choose between npm and yarn
2 participants