@go-to-k/cdkd 0.260.0 → 0.260.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/cli.js +22 -3
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -1901,7 +1901,7 @@ const FLUSH_INTERVAL_MS = 2e3;
|
|
|
1901
1901
|
const FLUSH_EVENT_THRESHOLD = 50;
|
|
1902
1902
|
/** Build-time cdkd version, with a dev fallback for non-built contexts. */
|
|
1903
1903
|
function getCdkdVersion() {
|
|
1904
|
-
return "0.260.
|
|
1904
|
+
return "0.260.1";
|
|
1905
1905
|
}
|
|
1906
1906
|
/**
|
|
1907
1907
|
* Generate a time-sortable unique run id, e.g.
|
|
@@ -8519,7 +8519,7 @@ var LambdaFunctionProvider = class {
|
|
|
8519
8519
|
Timeout: this.clearOnUpdateRemoval(properties["Timeout"], previousProperties["Timeout"], 3),
|
|
8520
8520
|
MemorySize: this.clearOnUpdateRemoval(properties["MemorySize"], previousProperties["MemorySize"], 128),
|
|
8521
8521
|
Description: this.clearOnUpdateRemoval(properties["Description"], previousProperties["Description"], ""),
|
|
8522
|
-
Environment: this.clearOnUpdateRemoval(properties["Environment"], previousProperties["Environment"], { Variables: {} }),
|
|
8522
|
+
Environment: this.clearOnUpdateRemoval(this.normalizeEnvironmentForUpdate(properties["Environment"]), previousProperties["Environment"], { Variables: {} }),
|
|
8523
8523
|
Layers: this.clearOnUpdateRemoval(properties["Layers"], previousProperties["Layers"], []),
|
|
8524
8524
|
TracingConfig: this.clearOnUpdateRemoval(properties["TracingConfig"], previousProperties["TracingConfig"], { Mode: "PassThrough" }),
|
|
8525
8525
|
EphemeralStorage: this.clearOnUpdateRemoval(properties["EphemeralStorage"], previousProperties["EphemeralStorage"], { Size: 512 }),
|
|
@@ -8690,6 +8690,25 @@ var LambdaFunctionProvider = class {
|
|
|
8690
8690
|
if (previousValue !== void 0) return clearValue;
|
|
8691
8691
|
}
|
|
8692
8692
|
/**
|
|
8693
|
+
* Normalize a template `Environment` block for UpdateFunctionConfiguration.
|
|
8694
|
+
*
|
|
8695
|
+
* `Environment: {}` (present, but no `Variables` key — a hand-written L1 /
|
|
8696
|
+
* imported-template shape CDK never emits) passed through verbatim does NOT
|
|
8697
|
+
* clear the live env vars: the API keeps the old `Variables` when the input
|
|
8698
|
+
* `Environment` carries none (live-verified 2026-07-22, issue #1158). The
|
|
8699
|
+
* template's declarative meaning is "no env vars", so a Variables-less
|
|
8700
|
+
* block is rewritten to the explicit-clear `{Variables: {}}`. A present
|
|
8701
|
+
* `Variables` map (even empty) and an absent `Environment` pass through
|
|
8702
|
+
* unchanged — removal handling stays with `clearOnUpdateRemoval`. A `null`
|
|
8703
|
+
* block (hand-written JSON) is treated like absent rather than crashing on
|
|
8704
|
+
* the property read.
|
|
8705
|
+
*/
|
|
8706
|
+
normalizeEnvironmentForUpdate(environment) {
|
|
8707
|
+
if (environment == null) return void 0;
|
|
8708
|
+
if (environment.Variables === void 0) return { Variables: {} };
|
|
8709
|
+
return environment;
|
|
8710
|
+
}
|
|
8711
|
+
/**
|
|
8693
8712
|
* Determine whether the function actually attaches to a VPC, i.e. has at
|
|
8694
8713
|
* least one Subnet ID. A bare VpcConfig with empty arrays does not create
|
|
8695
8714
|
* any ENIs, so we skip the wait in that case.
|
|
@@ -61349,7 +61368,7 @@ function createMigrateCommand() {
|
|
|
61349
61368
|
*/
|
|
61350
61369
|
function buildProgram() {
|
|
61351
61370
|
const program = new Command();
|
|
61352
|
-
program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.260.
|
|
61371
|
+
program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.260.1");
|
|
61353
61372
|
program.addCommand(createBootstrapCommand());
|
|
61354
61373
|
program.addCommand(createSynthCommand());
|
|
61355
61374
|
program.addCommand(createListCommand());
|