cdk-booster 1.3.0 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdk-booster.mjs +12 -5
- package/package.json +11 -11
package/dist/cdk-booster.mjs
CHANGED
|
@@ -562,12 +562,19 @@ async function compileCdk({ rootDir, entryFile, tsconfig, }) {
|
|
|
562
562
|
Logger.verbose(`Injected code into ${args.path}`);
|
|
563
563
|
}
|
|
564
564
|
else if (args.path.includes(path.join('aws-cdk-lib', 'core', 'lib', 'app.'))) {
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
565
|
+
// CDK ≤2.250 passed policyValidationBeta1 into Stage's super(); 2.251+ calls
|
|
566
|
+
// _addValidationPlugins instead. Anchor on APP_SYMBOL registration (unchanged).
|
|
567
|
+
const codeToFindLegacy = ',policyValidationBeta1:props.policyValidationBeta1});';
|
|
568
|
+
const codeToFindStable = 'Object.defineProperty(this,APP_SYMBOL,{value:!0}),this.loadContext';
|
|
569
|
+
if (contents.includes(codeToFindLegacy)) {
|
|
570
|
+
contents = contents.replace(codeToFindLegacy, codeToFindLegacy + 'global.cdkApp = this;');
|
|
571
|
+
}
|
|
572
|
+
else if (contents.includes(codeToFindStable)) {
|
|
573
|
+
contents = contents.replace(codeToFindStable, 'Object.defineProperty(this,APP_SYMBOL,{value:!0}),global.cdkApp=this,this.loadContext');
|
|
574
|
+
}
|
|
575
|
+
else {
|
|
576
|
+
throw new Error(`Can not find App constructor injection anchor (legacy policyValidationBeta1 or APP_SYMBOL) in ${args.path}`);
|
|
568
577
|
}
|
|
569
|
-
// make CDK app available
|
|
570
|
-
contents = contents.replace(codeToFind, codeToFind + `global.cdkApp = this;`);
|
|
571
578
|
Logger.verbose(`Injected code into ${args.path}`);
|
|
572
579
|
}
|
|
573
580
|
else if (args.path.includes(path.join('aws-cdk-lib', 'core', 'lib', 'asset-staging.'))) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cdk-booster",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Speed up AWS CDK's bundling of TypeScript/JavaScript Lambda handlers",
|
|
6
6
|
"homepage": "https://www.cdkbooster.com",
|
|
@@ -64,28 +64,28 @@
|
|
|
64
64
|
"@eslint/js": "^10.0.1",
|
|
65
65
|
"@tsconfig/node22": "^22.0.5",
|
|
66
66
|
"@types/eslint-config-prettier": "^6.11.3",
|
|
67
|
-
"@types/node": "^25.
|
|
68
|
-
"aws-cdk": "2.
|
|
69
|
-
"aws-cdk-lib": "2.
|
|
67
|
+
"@types/node": "^25.6.0",
|
|
68
|
+
"aws-cdk": "2.1119.0",
|
|
69
|
+
"aws-cdk-lib": "2.251.0",
|
|
70
70
|
"constructs": "^10.6.0",
|
|
71
|
-
"eslint": "^10.1
|
|
71
|
+
"eslint": "^10.2.1",
|
|
72
72
|
"eslint-config-prettier": "^10.1.8",
|
|
73
|
-
"globals": "^17.
|
|
73
|
+
"globals": "^17.5.0",
|
|
74
74
|
"husky": "^9.1.7",
|
|
75
|
-
"prettier": "^3.8.
|
|
75
|
+
"prettier": "^3.8.3",
|
|
76
76
|
"semantic-release": "^25.0.3",
|
|
77
77
|
"tsx": "^4.21.0",
|
|
78
|
-
"typescript-eslint": "^8.
|
|
78
|
+
"typescript-eslint": "^8.59.0",
|
|
79
79
|
"vitepress": "^1.6.4",
|
|
80
|
-
"@aws-sdk/client-lambda": "^3.
|
|
81
|
-
"@aws-sdk/client-s3": "^3.
|
|
80
|
+
"@aws-sdk/client-lambda": "^3.1037.0",
|
|
81
|
+
"@aws-sdk/client-s3": "^3.1037.0",
|
|
82
82
|
"adm-zip": "^0.5.17",
|
|
83
83
|
"@types/adm-zip": "^0.5.8"
|
|
84
84
|
},
|
|
85
85
|
"dependencies": {
|
|
86
86
|
"chalk": "^5.6.2",
|
|
87
87
|
"commander": "^14.0.3",
|
|
88
|
-
"typescript": "~6.0.
|
|
88
|
+
"typescript": "~6.0.3"
|
|
89
89
|
},
|
|
90
90
|
"peerDependencies": {
|
|
91
91
|
"esbuild": "^0"
|