mirror of
https://github.com/serverless/serverless.git
synced 2026-01-25 15:07:39 +00:00
feat: Deprecate service object notation (#8466)
This commit is contained in:
parent
e47adb47eb
commit
c0a2ecf453
@ -6,6 +6,12 @@ layout: Doc
|
||||
|
||||
# Serverless Framework Deprecations
|
||||
|
||||
<a name="SERVICE_OBJECT_NOTATION"><div> </div></a>
|
||||
|
||||
## `service` property object notation
|
||||
|
||||
Starting with v3.0.0, object notation for `service` property will no longer be recognized. Set `service` property directly with service name.
|
||||
|
||||
<a name="CLOUDFRONT_CACHE_BEHAVIOR_FORWARDED_VALUES_AND_TTL"><div> </div></a>
|
||||
|
||||
## `cloudFront` event `behavior.ForwardedValues` property
|
||||
|
||||
@ -131,6 +131,11 @@ class Service {
|
||||
}
|
||||
|
||||
if (_.isObject(serverlessFile.service)) {
|
||||
this.serverless._logDeprecation(
|
||||
'SERVICE_OBJECT_NOTATION',
|
||||
'Starting from next major object notation for "service" property will no longer be ' +
|
||||
'recognized. Set "service" property directly with service name.'
|
||||
);
|
||||
this.serviceObject = serverlessFile.service;
|
||||
this.service = serverlessFile.service.name;
|
||||
} else {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user