Skip to content

Releases: aligent/cdk-constructs

@aligent/cdk-step-function-from-file@0.5.0

24 Apr 00:29
694369f

Choose a tag to compare

Minor Changes

  • #1654 99d96c9 Thanks @kai-nguyen-aligent! - ### @aligent/cdk-nodejs-function-from-entry (minor)

    • Changed base class from Function to NodejsFunction — the construct now extends NodejsFunction (and accepts NodejsFunctionProps) instead of the generic Function, enabling Node.js-specific bundling options. The parent entry prop is omitted to avoid conflicts with the custom typed entry.
    • Added NoInfer to the entry generic parameter — prevents TypeScript from incorrectly inferring TPrefix from the entry value; the prefix is now inferred solely from sourcePrefix.
    • Made runtime optional — consumers no longer need to explicitly pass a runtime.
    • Improved path traversal validation — replaced the simple relative-path check with a findServiceRoot helper that walks up to a configurable rootParentDir ancestor, giving clearer error messages on invalid paths.
    • Added rootParentDir prop (default: 'services') to control the allowed root for asset resolution.

    @aligent/cdk-step-function-from-file (minor)

    • Added NoInfer to the filepath generic parameter — prevents unintended type inference from the filepath value.
    • Improved path traversal validation — uses the same findServiceRoot approach as the Lambda construct for consistent, configurable path safety checks.
    • Added rootParentDir prop (default: 'services') to control the allowed root for asset resolution.

    @aligent/cdk-aspects (patch)

    • Updated NodeJsFunctionDefaultsAspect JSDoc — clarified that the configured runtime is always applied to ensure consistency, while other defaults (tracing, memory, timeout, source maps) are only applied when not already set.

@aligent/cdk-prerender-proxy@2.5.6

24 Apr 00:29
694369f

Choose a tag to compare

Patch Changes

@aligent/cdk-nodejs-function-from-entry@0.2.0

24 Apr 00:29
694369f

Choose a tag to compare

Minor Changes

  • #1654 99d96c9 Thanks @kai-nguyen-aligent! - ### @aligent/cdk-nodejs-function-from-entry (minor)

    • Changed base class from Function to NodejsFunction — the construct now extends NodejsFunction (and accepts NodejsFunctionProps) instead of the generic Function, enabling Node.js-specific bundling options. The parent entry prop is omitted to avoid conflicts with the custom typed entry.
    • Added NoInfer to the entry generic parameter — prevents TypeScript from incorrectly inferring TPrefix from the entry value; the prefix is now inferred solely from sourcePrefix.
    • Made runtime optional — consumers no longer need to explicitly pass a runtime.
    • Improved path traversal validation — replaced the simple relative-path check with a findServiceRoot helper that walks up to a configurable rootParentDir ancestor, giving clearer error messages on invalid paths.
    • Added rootParentDir prop (default: 'services') to control the allowed root for asset resolution.

    @aligent/cdk-step-function-from-file (minor)

    • Added NoInfer to the filepath generic parameter — prevents unintended type inference from the filepath value.
    • Improved path traversal validation — uses the same findServiceRoot approach as the Lambda construct for consistent, configurable path safety checks.
    • Added rootParentDir prop (default: 'services') to control the allowed root for asset resolution.

    @aligent/cdk-aspects (patch)

    • Updated NodeJsFunctionDefaultsAspect JSDoc — clarified that the configured runtime is always applied to ensure consistency, while other defaults (tracing, memory, timeout, source maps) are only applied when not already set.

@aligent/cdk-header-change-detection@1.7.7

24 Apr 00:29
694369f

Choose a tag to compare

Patch Changes

@aligent/cdk-aspects@0.5.3

24 Apr 00:29
694369f

Choose a tag to compare

Patch Changes

  • #1661 25cf7c9 Thanks @toddhainsworth! - Fixed ResourcePrefixAspect failing synthesis when a prefixed resource name exceeds the AWS maximum length. The aspect now truncates the name and appends an 8-character SHA-256 hash to maintain uniqueness, and emits a cdk synth warning identifying the original and truncated name. This prevents L3 constructs (e.g. BucketDeployment) from generating child resources that the user has no control over causing failed deployments.

  • #1654 99d96c9 Thanks @kai-nguyen-aligent! - ### @aligent/cdk-nodejs-function-from-entry (minor)

    • Changed base class from Function to NodejsFunction — the construct now extends NodejsFunction (and accepts NodejsFunctionProps) instead of the generic Function, enabling Node.js-specific bundling options. The parent entry prop is omitted to avoid conflicts with the custom typed entry.
    • Added NoInfer to the entry generic parameter — prevents TypeScript from incorrectly inferring TPrefix from the entry value; the prefix is now inferred solely from sourcePrefix.
    • Made runtime optional — consumers no longer need to explicitly pass a runtime.
    • Improved path traversal validation — replaced the simple relative-path check with a findServiceRoot helper that walks up to a configurable rootParentDir ancestor, giving clearer error messages on invalid paths.
    • Added rootParentDir prop (default: 'services') to control the allowed root for asset resolution.

    @aligent/cdk-step-function-from-file (minor)

    • Added NoInfer to the filepath generic parameter — prevents unintended type inference from the filepath value.
    • Improved path traversal validation — uses the same findServiceRoot approach as the Lambda construct for consistent, configurable path safety checks.
    • Added rootParentDir prop (default: 'services') to control the allowed root for asset resolution.

    @aligent/cdk-aspects (patch)

    • Updated NodeJsFunctionDefaultsAspect JSDoc — clarified that the configured runtime is always applied to ensure consistency, while other defaults (tracing, memory, timeout, source maps) are only applied when not already set.

@aligent/cdk-nodejs-function-from-entry@0.1.0

15 Apr 07:17
0fbd466

Choose a tag to compare

Minor Changes

  • #1643 486c193 Thanks @kai-nguyen-aligent! - Add NodejsFunctionFromEntry construct for type-safe Lambda function creation from entry files with automatic source-to-dist path resolution. Update StepFunctionFromFile to use a baseDir-relative filepath pattern with a typed prefix constraint, preventing file inclusion attacks.

Patch Changes

  • #1649 cb58f6f Thanks @TheOrangePuff! - Align @types/node version with other packages to fix yarn lockfile immutability check in CI

@aligent/cdk-waf@2.5.3

14 Apr 04:56
6829a28

Choose a tag to compare

Patch Changes

@aligent/cdk-step-function-from-file@0.3.6

14 Apr 04:57
6829a28

Choose a tag to compare

Patch Changes

@aligent/cdk-static-hosting@2.11.5

14 Apr 04:57
6829a28

Choose a tag to compare

Patch Changes

@aligent/cdk-shared-vpc@0.3.5

14 Apr 04:56
6829a28

Choose a tag to compare

Patch Changes