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:
14
src/Deprecator/Deprecations.js
Normal file
14
src/Deprecator/Deprecations.js
Normal 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 = [];
|
||||
Reference in New Issue
Block a user