903 Commits

Author SHA1 Message Date
Piotr Grzesik
e65199c052 refactor(Telemetry): Ensure generation and related utils are sync 2021-07-06 11:24:21 +02:00
Mariusz Nowak
9b624a5067 feat(CLI): New warn:summary (default) deprecations logging mode
To avoid confusion, in case of local fallback always resort to `warn`
2021-07-05 22:15:50 +02:00
Mariusz Nowak
07a69a836c refactor: Make deprecations default mode internally modifyable 2021-07-05 22:15:50 +02:00
Piotr Grzesik
cc24bc2ae2 refactor(Telemetry): Report commandUsage as object 2021-07-05 14:13:32 +02:00
Sudipto Das
3500f641f5
refactor: Replace fse.createWriteStream with fs.createWriteStream 2021-07-05 09:49:04 +02:00
Mariusz Nowak
01f158695b feat(Telemetry): Report configuration validation result 2021-07-01 08:32:33 +02:00
Mariusz Nowak
8e2d48fee5 feat(Telemetry): Report configValidationMode 2021-07-01 08:32:33 +02:00
Mariusz Nowak
7264d1672e refactor(Telemetry): Increase error location coverage 2021-07-01 08:32:33 +02:00
Piotr Grzesik
ac03d83289 refactor(Telemetry): Include commandUsage in case of error 2021-06-30 16:14:45 +02:00
Sudipto Das
83c772684d
refactor: Replace fse.chmod with fs.promises.chmod (#9647) 2021-06-28 15:32:05 +02:00
Piotr Grzesik
5e0d80579e feat(Telemetry): Add hasLocalCredentials 2021-06-28 15:19:55 +02:00
Piotr Grzesik
0eba2dcdfe feat(CLI Onboarding): Add telemetry for interactive flow 2021-06-28 15:19:55 +02:00
Piotr Grzesik
98e3668a2c refactor: Add resolveRegion util 2021-06-28 11:54:45 +02:00
Piotr Grzesik
09bb4fa122 refactor: Add resolveStage util 2021-06-28 11:54:45 +02:00
Mariusz Nowak
4bc8e2e194 fix(CLI): Fix standalone detection on Windows 2021-06-28 11:49:56 +02:00
Sean Dawson
70fb8b9861
fix(Packaging): Fix artifact generation with temp path on other device
(PR #9616)
2021-06-28 09:54:58 +02:00
Mariusz Nowak
1681af4897 fix(CLI): Fix standalone detection (case of a fallback from standalone) 2021-06-25 12:41:31 +02:00
Sudipto Das
e6ff2286a5
refactor: Replace fse.rename with fs.promises.rename (#9605) 2021-06-24 13:04:49 +02:00
Mariusz Nowak
660201310e refactor: Improve var naming 2021-06-21 17:31:50 +02:00
Mariusz Nowak
c22a8b99f2 feat: Introduce an opt-in "error" deprecation notification mode 2021-06-21 17:31:50 +02:00
Piotr Grzesik
9e10ceaf81 refactor(Telemetry): Recognize constructs 2021-06-21 17:15:30 +02:00
Mariusz Nowak
f3ff6d2175 refactor(Telemetry): Optimise error location length 2021-06-10 10:14:57 +02:00
Mariusz Nowak
542b691a64 refactor(Telemetry): Improve variable names 2021-06-10 10:14:57 +02:00
Mariusz Nowak
f6a7d03b04 refactor(Telemetry): Reduce length of error location 2021-06-10 10:14:57 +02:00
Piotr Grzesik
716b31216e refactor: Use download from @serverless/utils 2021-05-24 11:37:54 +02:00
Mariusz Nowak
db16df2faa refactor: Do not recognize YAML Exception as user error 2021-05-20 13:38:43 +02:00
Mariusz Nowak
8d0ff078f7 feat(Telemetry): Report awsUserResourceTypes 2021-05-19 15:32:45 +02:00
Piotr Grzesik
da7a70d83f feat(CLI Onboarding): Remove serverless.template.yml from template 2021-05-17 15:55:23 +02:00
Piotr Grzesik
e4ea50d401 feat(CLI Onboarding): Fetch templates from serverless/examples 2021-05-17 15:55:23 +02:00
Piotr Grzesik
53575dc360 feat(CLI Onboarding): Support --name CLI option 2021-05-14 14:17:19 +02:00
Piotr Grzesik
03011baf07 refactor: Add create-from-local-template util 2021-05-14 14:17:19 +02:00
Mariusz Nowak
105807a674 refactor(CLI Onboarding): Integrate steps from dashboard plugin 2021-05-12 12:41:30 +02:00
Mariusz Nowak
c13586ee23 refactor(CLI Onboarding): Simplify tabcompletion support check 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
Mariusz Nowak
b915cc4671 refactor: Refactor isNpmPackageWritable to not depend on serverless 2021-05-12 12:41:30 +02:00
Mariusz Nowak
096ed9652b fix(Telemetry): For local fallback ensure to report locally used version 2021-05-11 08:57:29 +02:00
Mariusz Nowak
2672047c2f refactor: Resolve path to package in resolveLocalServerlessPath 2021-05-11 08:57:29 +02:00
Mariusz Nowak
fa8c076c56 fix(CLI): Fix local installation fallback
Older versions expose just `serverless.isInvokedByGlobalInstallation` property, not `serverless._isInvokedByGlobalInstallation`
2021-05-11 08:57:29 +02:00
Piotr Grzesik
7361e04960 fix(Telemetry): Ensure telemetry only matches js stacktrace paths 2021-05-10 15:52:53 +02:00
Mariusz Nowak
ae9442e53b fix(Telemetry): Do not share telemetry cache folder with old versions
Fixes the issue for global to local fallback case, where older global which send cache on every command was sending same telemetry as local
2021-05-04 22:12:00 +02:00
Piotr Grzesik
bdbf154c97 fix(Telemetry): Split stack lines properly on all OS-es 2021-05-03 12:12:24 +02:00
Piotr Grzesik
3ab06282fd fix(Telemetry): Handle error locations not enclosed in parens 2021-05-03 12:12:24 +02:00
Piotr Grzesik
3ccf6a3af3
fix(Telemetry): Properly resolve location when for only relative paths (#9418) 2021-05-03 11:35:17 +02:00
Piotr Grzesik
d647125ff5 feat(Telemetry): Add commandDurationMs to payload 2021-04-30 11:57:03 +02:00
Piotr Grzesik
5861d08768 feat(Telemetry): Report failures via telemetry 2021-04-30 11:54:29 +02:00
Piotr Grzesik
8860397798 refactor(Telemetry): Add resolveErrorLocation util 2021-04-30 11:54:29 +02:00
Piotr Grzesik
f1a9a7b760 refactor(Telemetry): Add anonymizeStacktracePaths util 2021-04-30 11:54:29 +02:00
Piotr Grzesik
f5b2b9be39 feat(Telemetry): Add commandOptionNames to payload 2021-04-28 16:30:47 +02:00
Piotr Grzesik
ba5f207d0a refactor(Telemetry): Make serverless optional in generatePayload 2021-04-27 17:46:19 +02:00
Piotr Grzesik
11e7311032 refactor: Introduce is-using-local-installation util 2021-04-27 17:46:19 +02:00