From 5aba3dcabf836da12c76c0728a57048f11798e0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Barthelet?= Date: Wed, 23 Sep 2020 17:07:25 +0200 Subject: [PATCH] Rename depreciation message --- docs/deprecations.md | 4 ++-- lib/plugins/aws/package/compile/functions/index.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/deprecations.md b/docs/deprecations.md index cd61ace38a8..d5d5b5102c1 100644 --- a/docs/deprecations.md +++ b/docs/deprecations.md @@ -74,8 +74,8 @@ Please use `onUnauthenticatedRequest` instead. `allowUnauthenticated` will be re Please use `bin/serverless.js` instead. `bin/serverless` will be removed with v2.0.0 -
 
+
 
## awsKmsKeyArn references -Plase use `provider.kmsKeyArn` and `functions[].kmsKeyArn`. `service.awsKmsKeyArn` and `functions[].awsKmsKeyArn` will be removed with v2.0.0 +Plase use `provider.kmsKeyArn` and `functions[].kmsKeyArn`. `service.awsKmsKeyArn` and `functions[].awsKmsKeyArn` will be removed with v3.0.0 diff --git a/lib/plugins/aws/package/compile/functions/index.js b/lib/plugins/aws/package/compile/functions/index.js index a834ca8cb7d..712f68c3b7c 100644 --- a/lib/plugins/aws/package/compile/functions/index.js +++ b/lib/plugins/aws/package/compile/functions/index.js @@ -214,7 +214,7 @@ class AwsCompileFunctions { const serviceObj = this.serverless.service.serviceObject; if (serviceObj && serviceObj.awsKmsKeyArn) { this.serverless._logDeprecation( - 'SERVICE_DEPRECATED_PROPERTY_AWS_KMS_KEY_ARN', + 'AWS_KMS_KEY_ARN', 'Starting with next major version, awsKmsKeyArn service property will be replaced by provider.kmsKeyArn' ); kmsKeyArn = serviceObj.awsKmsKeyArn; @@ -224,7 +224,7 @@ class AwsCompileFunctions { } if (functionObject.awsKmsKeyArn) { this.serverless._logDeprecation( - 'FUNCTION_DEPRECATED_PROPERTY_AWS_KMS_KEY_ARN', + 'AWS_KMS_KEY_ARN', 'Starting with next major version, awsKmsKeyArn function property will be replaced by kmsKeyArn' ); kmsKeyArn = functionObject.awsKmsKeyArn;