From fca5a7344d2e205663873b577d5d91f203dd9d14 Mon Sep 17 00:00:00 2001 From: Rico Hermans Date: Thu, 28 Sep 2023 20:16:10 +0200 Subject: [PATCH 1/2] fix: reduce load time of JavaScript library, for real (#27314) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is a follow-up to https://github.com/aws/aws-cdk/pull/27217 The check we needed to perform was inverted 😖 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license* --- .../aws-dynamodb/lib/replica-handler/.is_custom_resource | 0 .../lib/provider-framework/runtime/.is_custom_resource | 0 tools/@aws-cdk/lazify/bin/lazify.ts | 2 +- 3 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 packages/aws-cdk-lib/aws-dynamodb/lib/replica-handler/.is_custom_resource create mode 100644 packages/aws-cdk-lib/custom-resources/lib/provider-framework/runtime/.is_custom_resource diff --git a/packages/aws-cdk-lib/aws-dynamodb/lib/replica-handler/.is_custom_resource b/packages/aws-cdk-lib/aws-dynamodb/lib/replica-handler/.is_custom_resource new file mode 100644 index 0000000000000..e69de29bb2d1d diff --git a/packages/aws-cdk-lib/custom-resources/lib/provider-framework/runtime/.is_custom_resource b/packages/aws-cdk-lib/custom-resources/lib/provider-framework/runtime/.is_custom_resource new file mode 100644 index 0000000000000..e69de29bb2d1d diff --git a/tools/@aws-cdk/lazify/bin/lazify.ts b/tools/@aws-cdk/lazify/bin/lazify.ts index 21b39730eedb5..45df45e379659 100644 --- a/tools/@aws-cdk/lazify/bin/lazify.ts +++ b/tools/@aws-cdk/lazify/bin/lazify.ts @@ -17,7 +17,7 @@ async function main() { } }, // Skip directories marked as 'custom resource's, so we don't affect asset hashes - async (d) => path.basename(d) !== 'node_modules' && await fs.pathExists(path.join(d, '.is_custom_resource'))); + async (d) => path.basename(d) !== 'node_modules' && ! await fs.pathExists(path.join(d, '.is_custom_resource'))); } } From ba01270f056afb1fd8f941e2a882d4666f0a542e Mon Sep 17 00:00:00 2001 From: Rico Huijbers Date: Fri, 29 Sep 2023 10:09:05 +0200 Subject: [PATCH 2/2] chore(release): 2.99.1 --- CHANGELOG.v2.alpha.md | 2 ++ CHANGELOG.v2.md | 7 +++++++ version.v2.json | 4 ++-- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.v2.alpha.md b/CHANGELOG.v2.alpha.md index f6484aeb4493b..00863002d9a92 100644 --- a/CHANGELOG.v2.alpha.md +++ b/CHANGELOG.v2.alpha.md @@ -2,6 +2,8 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. +## [2.99.1-alpha.0](https://github.com/aws/aws-cdk/compare/v2.99.0-alpha.0...v2.99.1-alpha.0) (2023-09-29) + ## [2.99.0-alpha.0](https://github.com/aws/aws-cdk/compare/v2.98.0-alpha.0...v2.99.0-alpha.0) (2023-09-27) diff --git a/CHANGELOG.v2.md b/CHANGELOG.v2.md index cc185febf3585..7d4f2801be038 100644 --- a/CHANGELOG.v2.md +++ b/CHANGELOG.v2.md @@ -2,6 +2,13 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. +## [2.99.1](https://github.com/aws/aws-cdk/compare/v2.99.0...v2.99.1) (2023-09-29) + + +### Bug Fixes + +* load time regression ([#27314](https://github.com/aws/aws-cdk/issues/27314)) ([fca5a73](https://github.com/aws/aws-cdk/commit/fca5a7344d2e205663873b577d5d91f203dd9d14)) + ## [2.99.0](https://github.com/aws/aws-cdk/compare/v2.98.0...v2.99.0) (2023-09-27) diff --git a/version.v2.json b/version.v2.json index cacfb08013940..c8d2053be1113 100644 --- a/version.v2.json +++ b/version.v2.json @@ -1,4 +1,4 @@ { - "version": "2.99.0", - "alphaVersion": "2.99.0-alpha.0" + "version": "2.99.1", + "alphaVersion": "2.99.1-alpha.0" } \ No newline at end of file