Repository navigation
docs: Improve documentation around deprecations #8665 - #8719
Conversation
Codecov Report
@@ Coverage Diff @@
## master #8719 +/- ##
=======================================
Coverage 87.42% 87.42%
=======================================
Files 254 254
Lines 9615 9616 +1
=======================================
+ Hits 8406 8407 +1
Misses 1209 1209
Continue to review full report at Codecov.
|
pgrzesik
left a comment
There was a problem hiding this comment.
Thank you @vinothmdev 🎉 You're on a good path, please see my comments and let me know what you think
| this.consoleLog(chalk.dim('* Set SLS_DEBUG=* to see debugging logs')); | ||
| this.consoleLog(chalk.dim('* Set SLS_WARNING_DISABLE=* to hide warnings from the output')); | ||
| this.consoleLog( | ||
| chalk.dim('* Set SLS_DEPRECATION_DISABLE=* to disable deprications if required') |
There was a problem hiding this comment.
I would rewrite it as * Set SLS_DEPRECATION_DISABLE=* to disable deprecation logs
|
|
||
| Please use `bin/serverless.js` instead. `bin/serverless` will be removed with v2.0.0 | ||
|
|
||
| ## To Disable specific Deprecations |
There was a problem hiding this comment.
I think it would be better to move that section to the top of the document, right after # Serverless Framework Deprecations. I would also call this section: How to disable specific deprecations.
There was a problem hiding this comment.
I believe It would be better if it
How to disable specific deprecation logs
|
|
||
| ## To Disable specific Deprecations | ||
|
|
||
| To disable specific deprecations set `SLS_DEPRECATION_DISABLE` environment variable. |
There was a problem hiding this comment.
I would write this whole section in one paragraph, without putting it on new lines, so something like this:
To disable specific deprecations set `SLS_DEPRECATION_DISABLE` environment variable. Setting `SLS_DEPRECATION_DISABLE=*` will disable all deprecations. If you want to disable specific depreciations set `SLS_DEPRECATION_DISABLE=CODE1,CODE2`.
| Setting `SLS_DEPRECATION_DISABLE=*` will disable all deprecations. | ||
| If you want to disable specific depreications set `SLS_DEPRECATION_DISABLE=CODE1,CODE2`. | ||
|
|
||
| ## List of Deprecation Codes |
There was a problem hiding this comment.
Instead of listing the codes as a separate section, I believe it might be better to add Deprecation code: CODE in each existing section, for example:
<a name="AWS_ALB_ALLOW_UNAUTHENTICATED"><div> </div></a>
## AWS ALB `allowUnauthenticated`
Deprecation code: `AWS_ALB_ALLOW_UNAUTHENTICATED`
Please use `onUnauthenticatedRequest` instead. `allowUnauthenticated` will be removed with v2.0.0
There was a problem hiding this comment.
Thanks for your feedback, I have made the changes according to them.
Merge latest changes to fork
pgrzesik
left a comment
There was a problem hiding this comment.
Thanks 🙇 I only have a few small comments and we should be good to go 🙌
|
|
||
| ## How to disable specific deprecation logs | ||
|
|
||
| To disable specific deprecations set `SLS_DEPRECATION_DISABLE` environment variable. Setting `SLS_DEPRECATION_DISABLE=*` will disable all deprecations. If you want to disable specific depreications set `SLS_DEPRECATION_DISABLE=CODE1,CODE2`. |
There was a problem hiding this comment.
Typo: depreications -> deprecations
|
|
||
| ## Support for `enableLocalInstallationFallback` setting is to be removed | ||
|
|
||
| Deprecation code: `DISABLE_LOCAL_INSTALLATION_FALLBACK_SETTING` |
There was a problem hiding this comment.
Let's also add these codes below, for deprecations that were removed with v2.0.0, as some people might still be on lower versions for some reason
There was a problem hiding this comment.
I have updated both the review comments. Please check and let me know your feedback. Thank you
Fetch changes from upstream
pgrzesik
left a comment
There was a problem hiding this comment.
Well done @vinothmdev, thank you 👍
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #8719 +/- ##
=======================================
Coverage 87.42% 87.42%
=======================================
Files 254 254
Lines 9615 9616 +1
=======================================
+ Hits 8406 8407 +1
Misses 1209 1209 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Implemented the proposed in issue #8665. Please review.
Closes: #8665