1125 Commits

Author SHA1 Message Date
Mariusz Nowak
b23bfdbf6a refactor(CLI): Seclude service config path resolution out of internals 2021-01-18 16:19:12 +01:00
Mariusz Nowak
4431b43f17 refactor: Refactor to async/await 2021-01-18 16:19:12 +01:00
Piotr Grzesik
d1c656838f
fix(Config Schema): Revert to ajv v6 (#8762)
This reverts commit 036698ca5b46dc27a2844114813812a83f64813e
and 1af73bacdf01e5dc855da59387ab36085b2b78a1.
2021-01-14 19:11:11 +01:00
Gareth Jones
33cffc3509
feat(Variables): Introduce unresolvedVariablesNotificationMode (#8710) 2021-01-14 08:54:15 +01:00
Mariusz Nowak
87790e50bd refactor: Seclude ServerlessError into lib/serverless-error.js 2021-01-11 19:39:42 +01:00
Mariusz Nowak
b61621adeb refactor(CLI): Seclude version output functionality out of CLI class 2021-01-11 15:57:02 +01:00
Mariusz Nowak
847fa3412d feat: Seclude main error handler to standalone util 2021-01-08 15:06:14 +01:00
vinothmdev
1c48b64925
docs: Improve documentation around deprecations #8665 (#8719) 2021-01-08 09:53:49 +01:00
Piotr Grzesik
036698ca5b fix(Config Schema): Use ajv formats 2021-01-06 20:33:12 +01:00
Mariusz Nowak
53773688ab
refactor: Improve var name 2021-01-05 22:31:17 +01:00
Frédéric Barthelet
66aa66fbfe
refactor: Replace _.set with native assignment 2021-01-05 11:18:10 +01:00
Frédéric Barthelet
1af73bacdf
refactor: Upgrade "ajv" to v7 and "ajv-keywords" to v4 (#8703) 2021-01-05 11:14:12 +01:00
Mariusz Nowak
cf7b25e458 style: Upgrade "prettier" to v2 2021-01-04 16:21:24 +01:00
Antoine Pham
eb11e6d92b
fix(Variables): Fix when properties are null (#8165)
* fix(Variables): Fix when properties are null

* Simplify null/undefined check

Co-authored-by: Piotr Grzesik <pj.grzesik@gmail.com>
2020-12-22 17:43:56 +01:00
Frédéric Barthelet
7266599a7d
feat(Config Schema): Validate extensions against collisions (#8655) 2020-12-22 17:07:30 +01:00
Juanjo Diaz
84d423d3be
refactor: Convert to native Promise and async/await (#8593) 2020-12-16 17:22:37 +01:00
Mariusz Nowak
3808471972 test: Move unit tests to "test/unit" folder 2020-11-30 16:53:52 +01:00
Vinod Tahelyani
42874946fc
feat(CLI): Improve general --help and remove --verbose option (#8532) 2020-11-25 10:42:08 +01:00
Frédéric Barthelet
6c6881c853
fix(Config Schema): Recognize string format of service (#8537) 2020-11-23 12:17:51 +01:00
Frédéric Barthelet
e32b771425
fix(Config Schema): Fix defineFunctionEventProperties
Fix support for multiple event types

(PR #8486)
2020-11-09 12:16:19 +01:00
Mariusz Nowak
9e9d3e3678
test(Variables): Cover nested variable references with tests 2020-11-09 11:52:03 +01:00
Frédéric Barthelet
b5abfd8554
feat(ConfigSchema): defineFuntionEventProperties schema extension method (#8471) 2020-11-06 14:53:39 +01:00
Mariusz Nowak
2fffb168bc fix(CLI): Fix handling of command options in help display 2020-11-05 10:44:44 +01:00
A. Singh
c0a2ecf453
feat: Deprecate service object notation (#8466) 2020-11-04 17:35:01 +01:00
Luis Helder
5003bbf983
feat(Config Schema): defineFunctionProperties schema extension method
(PR #8462)
2020-11-03 10:02:24 +01:00
telenord
4ae192cbfe
refactor: Remove that = this pattern (#8463) 2020-11-02 11:29:39 +01:00
Oz Weiss
61d8ee9884
feat(Config Schema): Schema for AWS s3 event (#8330) 2020-10-30 17:51:24 +01:00
Mariusz Nowak
df1b8a9433 fix(Config Schema): Run validation logic unconditionally
It's to ensure that properties normalization is applied unconditionally
2020-10-30 15:26:25 +01:00
Mariusz Nowak
9481029b59 refactor(Config Schema): No point in creating new object 2020-10-30 15:26:25 +01:00
Mariusz Nowak
c2712183a5 refactor(Config Schema): Run schema validation only in service context 2020-10-30 15:26:25 +01:00
Mariusz Nowak
214768b83a refactor: Ensure config modifications happen after its validation 2020-10-30 15:26:25 +01:00
Mariusz Nowak
b04ab55fab fix(Config Schema): Ensure to validate provider as in config file 2020-10-29 09:27:03 +01:00
Frédéric Barthelet
719fa3a3bf
feat(Config Schema): Async invocations AWS functions[] schema (#8385) 2020-10-13 10:27:07 +02:00
Mariusz Nowak
2e26e07f92 fix: Ensure to preserve undefined valued propeties as undefined 2020-10-09 12:34:20 +02:00
Mariusz Nowak
c93a799653 fix(Config Schema): Ensure to preserve null properties in user config 2020-10-07 13:36:34 +02:00
Mariusz Nowak
ac34110852 fix(Variables): Fix support for ${self:} 2020-10-05 15:47:41 +02:00
Mariusz Nowak
fd451caf90 fix(Variables): Fix handling of circular object references 2020-10-05 15:47:41 +02:00
Oz Weiss
4168dc1f30
feat(Config Schema): Schema for layers (#8299) 2020-10-01 17:39:51 +02:00
Mariusz Nowak
a6ff964d84 feat: Coerce primitive config values to arrays, when array is expected 2020-10-01 15:31:21 +02:00
Mariusz Nowak
6d1ee37004 feat: Coerce input configuration values 2020-10-01 15:31:21 +02:00
Mariusz Nowak
c51e293ff4 refactor(Config Schema): Improve comments 2020-10-01 15:31:21 +02:00
Mariusz Nowak
57996a06a0 feat: Clear null valued props in service configuration
Instead of normalizing just for schema validation, normailze also for use
2020-10-01 15:31:21 +02:00
Piotr Grzesik
56c7e443a0
refactor: Replace _.forOwn with Object.entries().forEach (#8284) 2020-09-24 17:17:39 +02:00
Matthieu Napoli
2fdeb51174
fix(Variables): Ensure no collisions with AWS CloudFormation variables
(PR #8279)
2020-09-24 15:31:02 +02:00
Piotr Grzesik
76e02cc09c
refactor: Replace _.forEach with Object.entries().forEach (#8280) 2020-09-24 10:31:32 +02:00
Piotr Grzesik
b867df147a
refactor: Replace _.{entries|entriesIn|toPairs} with Object.entries
(PR #8275)
2020-09-23 13:13:54 +02:00
Piotr Grzesik
57d1ce1a66
refactor: Replace _.values with Object.values (#8274) 2020-09-23 13:09:50 +02:00
Frédéric Barthelet
feece9a2ec
feat(Config Schema): Schema for functions[] properties (#8222) 2020-09-21 16:50:52 +02:00
Mariusz Nowak
e5e42bab8c fix(Config Schema): Treat explicit null or undefined as no value
Workaround for https://github.com/ajv-validator/ajv/issues/1287
2020-09-21 10:02:13 +02:00
Mariusz Nowak
9bec4226e5 refactor(Config Schema): Do not pass obsolete arguments 2020-09-21 10:02:13 +02:00