Adds deprecator (#7303)

* adds deprecator

* un-fit

* added changelog entry

* some fixes

* un-fit

* removed deprecation definition

* changed deprecation log syntax according to Nodejs
This commit is contained in:
Manuel
2021-03-30 22:42:34 +02:00
committed by GitHub
parent a080e4c766
commit 2093d61616
6 changed files with 131 additions and 1 deletions

View File

@@ -0,0 +1,14 @@
/**
* The deprecations.
*
* Add deprecations to the array using the following keys:
* - `optionKey`: The option key incl. its path, e.g. `security.enableCheck`.
* - `envKey`: The environment key, e.g. `PARSE_SERVER_SECURITY`.
* - `changeNewKey`: Set the new key name if the current key will be replaced,
* or set to an empty string if the current key will be removed without replacement.
* - `changeNewDefault`: Set the new default value if the key's default value
* will change in a future version.
*
* If there are no deprecations this must return an empty array anyway.
*/
module.exports = [];