Skip to content

Commit dc535ba

Browse files
authored
Release v7.0.5 (#601)
1 parent 4246e7a commit dc535ba

File tree

76 files changed

+18438
-12392
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+18438
-12392
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
**/testem.log
2424
**/.vscode/settings.json
2525
demo-ui-config.js
26+
.temp_redpencil
27+
bom.json
2628

2729
# System Files
2830
**/.DS_Store

CHANGELOG.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,20 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8-
## [7.0.4] - 2025-06-10
8+
## [7.0.5] - 2025-07-07
9+
10+
### Changed
11+
12+
- Migrated to [AWS SDK for JavaScript v3](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/introduction/)
13+
- Bundling instruction for sharp module as per [cross-platform installation instruction](https://sharp.pixelplumbing.com/install/#npm-v10)
14+
- Bumped dependencies
15+
16+
### Fixed
17+
18+
- Return image metadata for all cases by default using [withMetadata()](https://sharp.pixelplumbing.com/api-output/#withmetadata)
19+
- In thumbor-styled requests, align `filters:rotate()` with sharp [rotate behavior](https://sharp.pixelplumbing.com/api-operation/#rotate), if no angle is provided `autoOrient()` will be called
20+
21+
## [7.0.4] - 2025-06-09
922

1023
### Security
1124

NOTICE

Lines changed: 151 additions & 108 deletions
Large diffs are not rendered by default.

VERSION.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
7.0.4
1+
7.0.5

deployment/cdk-solution-helper/package-lock.json

Lines changed: 816 additions & 453 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

deployment/cdk-solution-helper/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cdk-solution-helper",
3-
"version": "7.0.4",
3+
"version": "7.0.5",
44
"description": "helper to update references in cdk generated cfn template and package lambda assets",
55
"main": "index.js",
66
"scripts": {
Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
11
{
2-
"extends": "ts-node/node16/tsconfig.json",
2+
"compilerOptions": {
3+
"target": "es2020",
4+
"module": "commonjs",
5+
"moduleResolution": "node",
6+
"esModuleInterop": true,
7+
"allowSyntheticDefaultImports": true,
8+
"strict": true,
9+
"skipLibCheck": true,
10+
"forceConsistentCasingInFileNames": true
11+
},
12+
"ts-node": {
13+
"esm": false
14+
}
315
}

source/constructs/cdk.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"app": "npx ts-node --prefer-ts-exts bin/constructs.ts",
33
"context": {
44
"solutionId": "SO0023",
5-
"solutionVersion": "custom-v7.0.4",
5+
"solutionVersion": "custom-v7.0.5",
66
"solutionName": "dynamic-image-transformation-for-amazon-cloudfront"
77
}
88
}

source/constructs/lib/back-end/api-gateway-architecture.ts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,26 @@ export class ApiGatewayArchitecture {
161161
"AWS::ApiGateway::Method AuthorizationType is set to 'NONE' because API Gateway behind CloudFront does not support AWS_IAM authentication",
162162
},
163163
]);
164+
addCfnSuppressRules(imageHandlerCloudFrontApiGatewayLambda.apiGateway.deploymentStage, [
165+
{
166+
id: "W87",
167+
reason: "Cache not enabled, using CloudFront for caching viewer response",
168+
},
169+
]);
170+
addCfnSuppressRules(imageHandlerCloudFrontApiGatewayLambda.apiGatewayCloudWatchRole, [
171+
{
172+
id: "F10",
173+
reason: "Inline policy used in solutions construct",
174+
},
175+
]);
176+
imageHandlerCloudFrontApiGatewayLambda.apiGateway.methods.forEach((method) => {
177+
addCfnSuppressRules(method, [
178+
{
179+
id: "W59",
180+
reason: "No authorization currently on the API Gateway",
181+
},
182+
]);
183+
});
164184

165185
imageHandlerCloudFrontApiGatewayLambda.apiGateway.node.tryRemoveChild("Endpoint"); // we don't need the RestApi endpoint in the outputs
166186
scope.domainName = Fn.conditionIf(

source/constructs/lib/back-end/back-end-construct.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,10 @@ export class BackEnd extends Construct {
132132
return [];
133133
},
134134
afterBundling(inputDir: string, outputDir: string): string[] {
135-
return [`cd ${outputDir}`, "rm -rf node_modules/sharp && npm install --arch=x64 --platform=linux sharp"];
135+
return [
136+
`cd ${outputDir}`,
137+
"rm -rf node_modules/sharp && npm install --cpu=x64 --os=linux --libc=glibc sharp", // npm 10.4.0+ --libc=glibc is needed for the platform-specific deps to be installed when cross-compiling sharp from mac to linux
138+
];
136139
},
137140
},
138141
},
@@ -155,6 +158,10 @@ export class BackEnd extends Construct {
155158
id: "W84",
156159
reason: "CloudWatch log group is always encrypted by default.",
157160
},
161+
{
162+
id: "W86",
163+
reason: "Retention days are configured with property override",
164+
},
158165
]);
159166

160167
const cachePolicy = new CachePolicy(this, "CachePolicy", {

0 commit comments

Comments
 (0)