101 Commits

Author SHA1 Message Date
Mariusz Nowak
77e21f9045 fix(Variables): Fix reporting of unresolved sources 2022-05-16 21:10:15 +02:00
Luke LaFountaine
8e3640317e
chore: Fix several typos throughout the project (#11015) 2022-04-27 10:48:18 +02:00
Piotr Grzesik
f7ffb19788 refactor: Support custom error message for variables resolution 2022-04-20 13:07:59 +02:00
Mariusz Nowak
8dae213758 feat(Variables): Ensure support for promise properties at file source 2022-04-08 13:00:31 +02:00
Mariusz Nowak
e6cdc9d68b refactor(Console): Do not disable dashboard with console 2022-03-24 16:51:14 +01:00
Mariusz Nowak
1f12b19a22 fix(CLI Onboarding): Improve fix for initial variables resolution 2022-03-18 15:45:55 +01:00
Julian Grinblat
df08283810
feat(Variables): Add support for csj in file source (#10776) 2022-03-01 11:15:50 +01:00
Mariusz Nowak
bdaf21e1a1 feat(Console): Initial integration 2022-02-25 20:12:02 +01:00
Mariusz Nowak
ba34c573f4 refactor: Expose isDashboardEnabled resolver 2022-02-25 20:12:02 +01:00
Mariusz Nowak
2cf86e4ee9 refactor: Rename lib/utils/logDeprecation.js 2022-01-27 15:21:58 +01:00
Piotr Grzesik
1cb6a2ff2d refactor: Remove legacy logs 2022-01-27 15:21:58 +01:00
Mariusz Nowak
731b3ba1e1 feat(Variables): Remove old variables resolver
BREAKING CHANGE:
Old variables resolver is permanently removed. Any resolution error as approached with current resolver is assumed as final (there's no longer fallback to old resolver)
2022-01-27 15:21:58 +01:00
Mariusz Nowak
870a116bb1 refactor: Rely on require.resolve to detect wether module exist 2022-01-27 15:21:58 +01:00
Mariusz Nowak
5fc55c0464 refactor: Replace ncjsm/resolve usage with native createRequire 2022-01-27 15:21:58 +01:00
Steven Noorbergen
8db03c90ff
fix(Variables): Fix too eager nested resolution tracking (#10554) 2022-01-24 14:03:32 +01:00
Piotr Grzesik
05fb97fdab refactor: Refactor direct use of @serverless/utils/log 2022-01-19 11:59:39 +01:00
Mariusz Nowak
cc905c1e39 refactor: Remove not actual TODO comments 2022-01-12 16:33:14 +01:00
Mariusz Nowak
5a764373c4 feat(Variables): Resign from projectDir concept 2022-01-10 11:52:25 +01:00
Mariusz Nowak
365a7f13af refactor(Variables): Support custom sources in internal resolver 2021-12-20 17:54:26 +01:00
Omer Shacham
503c0319b7
fix(Variables): Provide opt-out from forced decryption atssm source
(PR #10315)
2021-12-08 12:39:47 +01:00
Mariusz Nowak
63d54e1537 fix(Variables): Resolve variables in resolved address & params values 2021-12-02 11:51:08 +01:00
Mariusz Nowak
9c75044fd5 refactor(Variables): Seclude internal logic for reuse 2021-12-02 11:51:08 +01:00
Mariusz Nowak
c0f8459680 refactor(Variables): Cleanup logic 2021-12-02 11:51:08 +01:00
Piotr Grzesik
723927f2dc feat(Variables): Recognize : in address to support output source 2021-11-08 16:55:03 +01:00
Sudipto Das
f431218790
refactor: Replace fse.readFile with fs.promises.readFile (#9935) 2021-09-10 12:00:44 +02:00
Mariusz Nowak
bbb6c6cd7d feat(CLI): Enable env variables in provider.stage property 2021-08-31 10:02:47 +02:00
Mariusz Nowak
56e9423cd7 refactor(Variables): Enable early sls:stage resolution 2021-08-27 14:54:15 +02:00
Mariusz Nowak
b7f4e08661 fix(Variables): Unconditionally deprecate old vars engine extensions 2021-08-11 15:25:58 +02:00
Piotr Grzesik
60d729b5d4 feat(Telemetry): Detect used variable sources 2021-07-28 13:18:31 +02:00
Shane R. Spencer
612f668c93
feat(Variables): Accept case-insensitive strings in strToBool (#9770)
* Lowercase stringValue to allow for wider range of inputs.

This change simply adds toLowerCase() when assigning stringValue to allow enable a case-insensitive input (True, TRUE, False, False)

* Update variables.md

Added documentation showing lowercase change to strToBool

* Update str-to-bool.test.js

Added uppercase/mixedcase test

* Update str-to-bool.test.js

fixed test description for str-to-bool case checks

* fix linting/prettier issues with strToBool test/func patch
2021-07-27 13:53:58 +02:00
Mariusz Nowak
8c741d1d97 fix(Variables): In ssm source auto parse only object JSON notation 2021-07-15 11:20:13 +02:00
Mariusz Nowak
5b54ed2e26 refactor: Drop old variables engine related deprecation
Old variables engine will be removed with next major, so there's no point to communicate breaking changes that were supposed to introduced if it was to stay
2021-07-06 12:03:51 +02:00
KIDANI Akito
f16c45f84b
refactor(CLI): Fix typo in error message (#9682) 2021-07-02 13:31:53 +02:00
Piotr Grzesik
33794ea504 feat(Variables): Support aws:region and aws:accountId variables 2021-06-30 13:02:59 +02:00
Mariusz Nowak
80b76406ac feat(Variables): Support variables across file address resolution 2021-06-29 17:37:11 +02:00
Mariusz Nowak
0e3db01db8 feat(Variables): Resolve vars in strings which are subject to be joined 2021-06-29 17:37:11 +02:00
Mariusz Nowak
ac7efb1b7b refactor(Variables): Remove redundancy 2021-06-29 17:37:11 +02:00
Mariusz Nowak
4a732e2ebf refactor(Variables): Improve error message 2021-06-14 13:28:33 +02:00
Mariusz Nowak
f61859fd25 fix(Variables): Strip unrecognized legacy instructions 2021-06-14 13:28:33 +02:00
Mariusz Nowak
8dbb56ecbd feat(Variables): Allow to reference files in scope of project directory 2021-06-08 10:22:19 +02:00
Mariusz Nowak
bb3b766946 fix(Variables): Unify error messaging for function resolvers 2021-06-02 16:17:15 +02:00
Mariusz Nowak
6efc161e5f refactor(Variables): Seclude resolution of sources from external plugins 2021-06-02 15:17:06 +02:00
Piotr Grzesik
ee66585fdc fix(Variables): Ensure proper resolution in case of errors 2021-05-25 12:04:26 +02:00
Mariusz Nowak
c563581ac9 refactor: Construct user errors with ServerlessError 2021-05-19 13:16:42 +02:00
Mariusz Nowak
a8f4aebe5d fix(Variables): Ensure report user error as user error 2021-05-19 13:16:42 +02:00
Mariusz Nowak
f6b7cfaaaf fix(Variables): Fix reporting of variable resolution errors 2021-05-14 13:42:54 +02:00
Mariusz Nowak
2ff58b16bf feat(Variables): Expose variable resolver function to variable sources 2021-04-27 13:48:57 +02:00
Mariusz Nowak
102d0bafe6 refactor(Variables): Fix inline comment typo 2021-04-27 13:48:57 +02:00
Piotr Grzesik
8c37e0ac6d refactor: Adjust invalid code for ServerlessError 2021-04-23 13:34:20 +02:00
Piotr Grzesik
395bdc8b23 refactor: Add code to ServerlessError in lib/configuration 2021-04-23 13:34:20 +02:00