279 Commits

Author SHA1 Message Date
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
d62c3288b2 feat: Unconditionally fallback when local installation found
BREAKING CHANGE:
`enableLocalInstallationFallback` configuration property is no longer supported.
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
Mariusz Nowak
b4a25d70d3 feat: Remove tab autocomplete feature
Reasoning:
- Performance is very poor due to slow command startup time
- `tabtab` package is no longer maintained and shares security issues
- Feature usage is relatively low (telemetry data shows 7% of users has the autocompletion on)

BREAKING CHANGE:
Opt-in tab-tab autocompletion feature is removed due to performance and security issues
2022-01-27 15:21:58 +01:00
Mariusz Nowak
2746b854bb refactor: Remove evaluation of deprecated lifecycle events
BREAKING CHANGE:
Lifecycle events marked as deprecated (in context of v1) are no longer evaluated
2022-01-27 15:21:58 +01:00
Piotr Grzesik
b24ab3c059 feat: Throw error on duplicated plugin definition
BREAKING CHANGE: Duplicate plugin definition in configuration will now result
in an error instead of a warning.
2022-01-27 15:21:58 +01:00
Mariusz Nowak
f9e6e2c405 feat(Plugins): Pass log writers to plugin constructor 2022-01-27 15:21:58 +01:00
Shalvah
62d8da209e
fix(Packaging): Do not include local plugins in a bundle (#10259) 2022-01-06 16:18:16 +01:00
Piotr Grzesik
d2a75ea95e feat(CLI): Introduce deprecation for duplicate plugin definition 2021-10-15 11:09:35 +02:00
Piotr Grzesik
4da0899673 refactor(CLI): Replace warnings with modern counterparts 2021-10-15 11:09:35 +02:00
Mariusz Nowak
634b59e396 refactor: Revert from mainProgressTitles handling
It appeared as not reliable, due to lack of means for any conditional handling of progress events
2021-09-21 17:39:44 +02:00
Mariusz Nowak
fd68f9e803 feat: Support mainProgressTitles config on commands schema 2021-09-20 15:41:01 +02:00
Mariusz Nowak
76006ec1e8 refactor: Reorganize hooks resolution
Its to have access to meta that describes hook origin when processing the hook
2021-09-20 15:41:01 +02:00
Mariusz Nowak
8b4498c911 refactor: Simplify lifecycle event hooks resolution 2021-09-20 15:41:01 +02:00
Mariusz Nowak
655140b764 feat(CLI): Modern debug (previously verbose) logs related to deploy 2021-09-17 11:42:50 +02:00
Mariusz Nowak
cb4f08ad7d feat: Support finalize hook, triggered on command finalization 2021-09-16 12:16:25 +02:00
Mariusz Nowak
7663b19879 style: Simplify 2021-09-16 12:16:25 +02:00
Mariusz Nowak
dce0ff1a89 fix(Telemetry): Ensure to not show backed notification on error 2021-09-16 12:16:25 +02:00
Mariusz Nowak
46c58bfdd2 refactor: Improve var naming 2021-09-16 12:16:25 +02:00
Piotr Grzesik
7828cc77f1 feat(CLI): Add timer to final message in modern logs 2021-09-15 13:05:18 +02:00
Jonas Matos
26b8bd5c5f
refactor: Replace _.flatMap usage (#9948)
Co-authored-by: Jonas Matos <js.matos@sidi.org.br>
2021-09-15 10:57:01 +02:00
Mariusz Nowak
5c9766c085 feat: Support error hook to be triggered on command error 2021-09-09 17:29:22 +02:00
Matthieu Napoli
5c9df56f1b
fix(Plugins): Improve error message when a plugin is missing (#9798) 2021-08-03 20:54:51 +02:00
Mariusz Nowak
040036d186 fix(CLI): Do not validate configuration with plugin .. commands 2021-07-14 14:15:58 +02:00
Piotr Grzesik
e65199c052 refactor(Telemetry): Ensure generation and related utils are sync 2021-07-06 11:24:21 +02:00
Mariusz Nowak
c563581ac9 refactor: Construct user errors with ServerlessError 2021-05-19 13:16:42 +02:00
Mariusz Nowak
105807a674 refactor(CLI Onboarding): Integrate steps from dashboard plugin 2021-05-12 12:41:30 +02:00
Mariusz Nowak
4f6a50a2e1 refactor(Telemetry): Make generatePayload serverless independent 2021-05-12 12:41:30 +02:00
Piotr Grzesik
e1b9ba46bd refactor(Telemetry): Do not generate payload if telemetry disabled 2021-04-27 14:01:26 +02:00
Piotr Grzesik
fac47cfa23 refactor(Telemetry): Only process in PluginManager if flag missing 2021-04-27 14:01:26 +02:00
Piotr Grzesik
82040b427e refactor: Add code to ServerlessError in lib/classes 2021-04-23 13:34:20 +02:00
Piotr Grzesik
d3ecb7cc3b feat(Telemetry): Record all commands and send only on deploy 2021-04-19 16:18:24 +02:00
Mariusz Nowak
e8c8f1cfff refactor: Rename servicePath vars to serviceDir 2021-04-16 13:32:13 +02:00
Mariusz Nowak
87d380275b refactor: Replace config.servicePath with service.dir 2021-04-16 13:32:13 +02:00
Piotr Grzesik
8aa275725b refactor: Use async/await in PluginManager 2021-04-13 09:15:30 +02:00
Mariusz Nowak
6292197ee1 refactor(Dashboard): Provide direct internal access to dashboard plugin 2021-03-30 10:22:40 +02:00
Mariusz Nowak
afad2315a5 refactor(CLI): Move to CLI logic required options validation 2021-03-26 10:11:57 +01:00
Mariusz Nowak
aca3c0d57d refactor(CLI): Seclude command help render from internals 2021-03-26 10:11:57 +01:00
Mariusz Nowak
0f353750f1 fix: Ensure detection of external plugins is multi instance safe 2021-03-26 10:11:57 +01:00
Mariusz Nowak
2dacbcce85 feat(CLI): Validate command and options against resolved schema 2021-03-24 11:50:24 +01:00
Mariusz Nowak
1618e23c5c refactor(Plugins): Bulletproof way to recognize external plugins
It ensures that also plugins added externally by invoking `pluginManager.addPlugin` are recognized as external.

e.g. such practise can be observed here: c53f535204/src/index.ts
2021-03-24 11:50:24 +01:00
Mariusz Nowak
f8b50b7079 refactor: Remove vague comment 2021-03-24 11:50:24 +01:00
Mariusz Nowak
a48117041c refactor(CLI): Integrate isHelpRequest into resolveInput util 2021-03-18 14:36:18 +01:00
Mariusz Nowak
6ec463cbe7 fix(CLI): Improve handling of container commands
Allow to run them, and simply show help output if they're run
2021-03-16 09:34:33 +01:00
Mariusz Nowak
15b5a11ecd refactor: Refactor pluginManager.invoke to async/await 2021-03-16 09:34:33 +01:00
Mariusz Nowak
87b8d019c2 refactor: Refactor pluginManager.spawn to async/await 2021-03-16 09:34:33 +01:00
Mariusz Nowak
a9a48f675e fix(CLI): Fix internal commands merge logic
Originally some properties which should not have been overwritten (as `pluginName`) got overwritten and that resulted with errorneous help output
2021-03-16 09:34:33 +01:00
Mariusz Nowak
140990d150 refactor(CLI): Improve error construct 2021-03-16 09:34:33 +01:00