Skip to content

Commit ace8041

Browse files
coderbyheartElad Ben-Israel
authored andcommitted
fix(aws-lambda): update deprecation warning for node.js 8.10 (#4624)
* Add deprecation warning on NODEJS_8_10 Node.js 8.10 will soon be EOL and AWS started to send out warning emails of current users. See https://docs.aws.amazon.com/lambda/latest/dg/runtime-support-policy.html * Update older deprecation warnings on Node.js * Use @link
1 parent fec554f commit ace8041

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

packages/@aws-cdk/aws-lambda/lib/runtime.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,13 @@ export class Runtime {
2626
/** A list of all known `Runtime`'s. */
2727
public static readonly ALL = new Array<Runtime>();
2828

29-
/** @deprecated Use `Nodejs810` or `Nodejs10x` */
29+
/** @deprecated Use {@link NODEJS_10_X} */
3030
public static readonly NODEJS = new Runtime('nodejs', RuntimeFamily.NODEJS, { supportsInlineCode: true });
31-
/** @deprecated Use `Nodejs810` or `Nodejs10x` */
31+
/** @deprecated Use {@link NODEJS_10_X} */
3232
public static readonly NODEJS_4_3 = new Runtime('nodejs4.3', RuntimeFamily.NODEJS, { supportsInlineCode: true });
33-
/** @deprecated Use `Nodejs810` or `Nodejs10x` */
33+
/** @deprecated Use {@link NODEJS_10_X} */
3434
public static readonly NODEJS_6_10 = new Runtime('nodejs6.10', RuntimeFamily.NODEJS, { supportsInlineCode: true });
35+
/** @deprecated Use {@link NODEJS_10_X} */
3536
public static readonly NODEJS_8_10 = new Runtime('nodejs8.10', RuntimeFamily.NODEJS, { supportsInlineCode: true });
3637
public static readonly NODEJS_10_X = new Runtime('nodejs10.x', RuntimeFamily.NODEJS, { supportsInlineCode: false });
3738
public static readonly PYTHON_2_7 = new Runtime('python2.7', RuntimeFamily.PYTHON, { supportsInlineCode: true });

0 commit comments

Comments
 (0)