From b6d83f7c3be73242f63b552647122565167111d1 Mon Sep 17 00:00:00 2001 From: Mark Fulton Date: Mon, 12 Apr 2021 14:39:45 -0500 Subject: [PATCH] chore(runtime): upgrade to nodejs12 (#513) could upgrade to nodejs14 too but I'd suggest moving one major version at a time in case there are any issues --- examples/rest-api/serverless.yml | 2 +- src/index.ts | 2 +- test/support/ServerlessBuilder.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/rest-api/serverless.yml b/examples/rest-api/serverless.yml index c926c61f..c663ef04 100644 --- a/examples/rest-api/serverless.yml +++ b/examples/rest-api/serverless.yml @@ -12,7 +12,7 @@ custom: provider: name: aws - runtime: nodejs10.x + runtime: nodejs12.x logs: restApi: format: '$context.requestTimeEpoch $context.requestId $context.httpMethod $context.resourcePath $context.status $context.responseLatency' diff --git a/src/index.ts b/src/index.ts index 9944a139..26228a86 100644 --- a/src/index.ts +++ b/src/index.ts @@ -291,7 +291,7 @@ class ServerlessEsLogsPlugin { include: [`${this.logProcesserDir}/**`], individually: true, }, - runtime: 'nodejs10.x', + runtime: 'nodejs12.x', timeout: 60, tracing: false, }; diff --git a/test/support/ServerlessBuilder.ts b/test/support/ServerlessBuilder.ts index f0c4a0e3..95eabdf5 100644 --- a/test/support/ServerlessBuilder.ts +++ b/test/support/ServerlessBuilder.ts @@ -52,7 +52,7 @@ export class ServerlessBuilder { }, name: 'aws', region: 'us-east-1', - runtime: 'nodejs10.x', + runtime: 'nodejs12.x', stage: 'dev', }, },