Skip to content

Commit b88e516

Browse files
authored
chore(release): 2.196.1 (#34499)
See CHANGELOG ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
2 parents 4be3c1f + ef96c95 commit b88e516

File tree

5 files changed

+17
-7
lines changed

5 files changed

+17
-7
lines changed

CHANGELOG.v2.alpha.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
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.
44

5+
## [2.196.1-alpha.0](https://github.com/aws/aws-cdk/compare/v2.196.0-alpha.0...v2.196.1-alpha.0) (2025-05-19)
6+
57
## [2.196.0-alpha.0](https://github.com/aws/aws-cdk/compare/v2.195.0-alpha.0...v2.196.0-alpha.0) (2025-05-15)
68

79

CHANGELOG.v2.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22

33
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.
44

5+
## [2.196.1](https://github.com/aws/aws-cdk/compare/v2.196.0...v2.196.1) (2025-05-19)
6+
7+
8+
### Bug Fixes
9+
10+
* **lambda-nodejs:** instantiating `NodejsFunction` without the `entry` property fails ([#34498](https://github.com/aws/aws-cdk/issues/34498)) ([27e0f3a](https://github.com/aws/aws-cdk/commit/27e0f3a1d525512db53fc99432597d8e091ab9d0))
11+
512
## [2.196.0](https://github.com/aws/aws-cdk/compare/v2.195.0...v2.196.0) (2025-05-15)
613

714

packages/aws-cdk-lib/aws-lambda-nodejs/lib/function.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import { Architecture } from '../../aws-lambda';
99
import * as lambda from '../../aws-lambda';
1010
import { Annotations, FeatureFlags } from '../../core';
1111
import { addConstructMetadata } from '../../core/lib/metadata-resource';
12-
import { propertyInjectable } from '../../core/lib/prop-injectable';
1312
import { LAMBDA_NODEJS_USE_LATEST_RUNTIME } from '../../cx-api';
1413

1514
/**
@@ -111,11 +110,7 @@ export interface NodejsFunctionProps extends lambda.FunctionOptions {
111110
/**
112111
* A Node.js Lambda function bundled using esbuild
113112
*/
114-
@propertyInjectable
115113
export class NodejsFunction extends lambda.Function {
116-
/** Uniquely identifies this class. */
117-
public static readonly PROPERTY_INJECTION_ID: string = 'aws-cdk-lib.aws-lambda-nodejs.NodejsFunction';
118-
119114
constructor(scope: Construct, id: string, props: NodejsFunctionProps = {}) {
120115
if (props.runtime && props.runtime.family !== lambda.RuntimeFamily.NODEJS) {
121116
throw new Error('Only `NODEJS` runtimes are supported.');

tools/@aws-cdk/construct-metadata-updater/lib/metadata-updater.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@ const NOT_INJECTABLE_CLASSES = [
2424
"filePath": "packages/aws-cdk-lib/aws-lambda/lib/function-base.ts",
2525
"className": "LatestVersion"
2626
},
27+
// because this construct reflects on its own callstack, which gets changed
28+
// once the decorator is added. TODO - fix to consider the call layer added by the decorator.
29+
{
30+
"filePath": "packages/aws-cdk-lib/aws-lambda-nodejs/lib/function.ts",
31+
"className": "NodejsFunction"
32+
},
2733
]
2834

2935
interface ResourceClass {

version.v2.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"version": "2.196.0",
3-
"alphaVersion": "2.196.0-alpha.0"
2+
"version": "2.196.1",
3+
"alphaVersion": "2.196.1-alpha.0"
44
}

0 commit comments

Comments
 (0)