Mariusz Nowak
6dd0596286
fix: Revert from frameworkVersion requirement
2020-09-02 18:33:00 +02:00
Mariusz Nowak
0d5a480fd0
fix: Fix handling of invalid range put into frameworkVersion
...
Invalid `frameworkVersion` in all cases made `semver.satisfy` to return false.
It's confusing e.g. for cases where we put number 1 instead of string "1" as `frameworkVersion` and that's considered as invalid value
2020-09-02 14:37:49 +02:00
Mariusz Nowak
9f7f9d3983
feat(CLI): Announce frameworkVersion requirement
2020-09-02 13:04:59 +02:00
Mariusz Nowak
c0fb04af3d
fix: Fix handling of pre-releases in frameworkVersion validation
2020-09-02 10:06:18 +02:00
Mariusz Nowak
af603198a1
fix(Config Schema): Ensure to validate direct config where applicable
2020-08-28 14:17:54 +02:00
Petr Reshetin
268f714357
feat: Schema based validation of service config ( #7335 )
...
Co-authored-by: Mariusz Nowak <medyk@medikoo.com>
2020-08-03 15:41:05 +02:00
Mariusz Nowak
3ffa549183
fix(CLI): Ensure to show help and version in context of invalid service
2020-07-10 17:35:23 +02:00
Mariusz Nowak
d9b9b92a1b
test: Rewrite Service.test.js so it relies on runServeless
2020-07-10 17:35:23 +02:00
andreizet
7bbd04a693
refactor: Replace _.has with better counterparts ( #7915 )
2020-07-07 17:18:48 +02:00
TATSUNO Yasuhiro
5e0af21313
refactor: Replace _.forEach and _.each with array.forEach ( #7748 )
2020-05-28 10:45:25 +02:00
Ahmad Mahmoud Mohammad
6f32f236d8
feat(CLI): Deprecations logger ( #7741 )
...
Co-authored-by: Ahmed Abdelwahab <ahmed.abdelwahab@prophecylabs.com>
Co-authored-by: Mariusz Nowak <medyk@medikoo.com>
2020-05-21 15:40:03 +02:00
TATSUNO Yasuhiro
3fe2e98f15
refactor: Replace _.isArray with native Array.isArray ( #7703 )
2020-05-11 10:24:41 +02:00
Arben Bakiu
7310782294
fix(Variables): Relax pattern to allow non-ascii defaults ( #7431 )
2020-03-08 09:43:16 +13:00
kdnakt
12cad14dce
Make question mark available as variables fallback
2019-10-09 09:10:32 +09:00
Daniel Schep
505b6d429d
support for calling tenant orgs
...
chosing between the two is handled by SFE plugin
2019-07-16 16:11:45 -04:00
Mariusz Nowak
041e657273
Cleanup region and stage option resolution
2019-06-28 13:32:53 +02:00
Mariusz Nowak
e6ae8983de
Fix lint issues after prettification
2019-06-26 12:43:01 +02:00
Mariusz Nowak
4944f471b1
Prettify
2019-06-26 12:43:01 +02:00
Philipp Muens
6d05d83edb
Merge pull request #6200 from mydiemho/myho/removeRegionDefaultFromBase
...
Remove default stage value in provider object
2019-06-21 12:54:57 +02:00
Daniel Schep
2db59d6cab
use path.basename
2019-06-11 08:52:00 -04:00
Daniel Schep
d7a9d2f877
Don't change signature of loadServiceFileParam
2019-06-11 08:48:58 -04:00
Daniel Schep
970a1cc3f8
refactor getServerlessConfigFile to simply accept a serverless object
2019-06-10 11:19:14 -04:00
Daniel Schep
94bf5a4382
delint
2019-06-10 11:19:14 -04:00
Daniel Schep
2b81303370
--config option.
...
closes #5589
closes #4485
closes #4473
closes #4124
closes #5822
2019-06-10 11:19:14 -04:00
My Ho
97d62097c6
remove default stage value in provider object
...
the current default is using AWS region naming syntax,
this mean other cloud provider would have to add extra code
to set their default value.
Instead, region default should be left to each provider.
2019-06-05 10:51:06 -07:00
Daniel Schep
127e36c5d0
support for SFE outputs in config
2019-05-15 11:34:48 -04:00
Philipp Muens
5cba21730c
Merge branch 'master' into sls-5225
2019-03-22 10:47:11 +01:00
exoego
3d31c43bcf
Remove duplicate-handler warnings based on community feedback.
2019-01-22 09:22:49 +09:00
exoego
f434009c45
Move stage name validation to Service#validate.
...
Since validation should be performed after service.functions are resolved.
2019-01-16 16:39:09 +09:00
Daniel Schep
d837e9baae
Merge remote-tracking branch 'origin/master' into sls-5225
2019-01-07 13:25:57 -05:00
Daniel Schep
0896f311b1
Merge pull request #5312 from Limess/4496/handle-scoped-packages
...
Handle scoped npm packages in ${file()} variables
2019-01-07 10:56:25 -05:00
Daniel Schep
5c2c1ae405
Allow * in variable string literal defaults
...
closes #5225
closes #4959
2018-12-31 10:47:24 -05:00
exoego
e2722a71e3
Add warning prefix.
2018-12-31 19:28:32 +09:00
exoego
fad655eb91
Refactor: inline underscore-starting private methods since it is linted as error.
2018-12-31 07:54:25 +09:00
exoego
e6599f3953
Refactor: move service validations to Service#validate
2018-12-31 07:38:24 +09:00
exoego
ae9d7ca83d
Refactor to increase coverage.
2018-12-30 22:11:31 +09:00
exoego
58f3cc2153
Fix linting errors and older-nodejs errors.
2018-12-30 22:02:05 +09:00
exoego
5df4c7982d
Add warning for multiple functions having same handler.
2018-12-30 21:54:30 +09:00
Daniel Schep
2ad01b3fe3
[WIP] Support for publishing Lambda Layers
2018-11-29 10:55:52 -05:00
Daniel Schep
dd4a49d7f5
Merge pull request #4827 from simonbuchan/config-promises
...
Support returning promises from serverless.js
2018-11-27 11:45:07 -05:00
Charlie Briggs
8f8c27ae7e
Handle scoped packages in ${file()} variables
...
Currently @ is not a valid variable character, so it doesn't get parsed
as one.
When it does get parsed, @ is not considered valid as part of a file path
- we add a blacklist as per https://github.com/serverless/serverless/pull/4528 to
handle this case.
2018-09-19 17:26:50 +01:00
Eslam A. Hefnawy
ee72cee853
add all events
2018-06-20 12:33:54 +03:00
Eslam A. Hefnawy
396febb306
publish, archive, access keys and login updated
2018-06-15 16:10:52 +03:00
Doug Moscrop
8bde1b4902
Support arrays in function definition too
2018-04-04 20:03:56 -04:00
Simon Buchan
33759c2736
Support returning promises from serverless.js
2018-03-14 19:50:52 +13:00
Erik Erikson
91a10940eb
Add further comments noting code entanglement
2018-02-23 10:09:18 -08:00
Erik Erikson
dc3a4aa6af
Fix print, clean pre-population, fix cyclic bug
...
Fix `print`
The print command is highly linked to the `Variables` and `Service` codebases, keep those in sync and leave reminders about the link. Made these explicit and separately implemented to avoid complexity.
Additionally, the print command re-populates an object with the *very similar* content as the previously pre-populated service (just not augmented as just mentioned). This can lead to cross contamination between the two. As such, all caches must be cleared per unique invocation of service/object/property population.
Add tests for some expected but previously unverified behaviors.
Clean pre-population
The previous implementation worked okay but was unnecessary and would have been a maintenance problem. Instead, just knock out the population of variables depending on those config dependent services and use the standard means of resolution.
Fix cyclic bug (resulting from running print against a self-referencing serverless.yml)
The caching of values could lead to a cyclic object remaining in the caches for variable population. This causes crashes and pain. Solved by the cache cleaning logic.
2018-02-22 16:30:04 -08:00
Pavel Vlasov
d05e45668e
validate serverless.js to export plain object + address feedback
2017-12-20 08:50:10 +11:00
Pavel Vlasov
ea7c6620af
fix eslint
2017-12-19 20:35:07 +11:00
Pavel Vlasov
bca4da55b3
add support for serverless.js
2017-12-19 20:14:39 +11:00