* enabled direct access by default * removed obsolete direct access option test case * quick fix test * Set RESTController during tests * Properly handle RESTController * Documentation * revert changes * rerun tests * remove extra parse instance * Revert "remove extra parse instance" This reverts commit 21422f45f1548ebddddd1c4ccbc03a94b4994429. * Ensure restcontroller is set * Fix test * improved option docs * renamed direct access env var * added deprecations to README * added deprecation definition * fixed docs typo * improve promise rejection warning test * added renaming of env var to deprecation warning Co-authored-by: Diamond Lewis <findlewis@gmail.com>
26 lines
1.1 KiB
JavaScript
26 lines
1.1 KiB
JavaScript
/**
|
|
* 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.
|
|
* - `solution`: The instruction to resolve this deprecation warning. Optional. This
|
|
* instruction must not include the deprecation warning which is auto-generated.
|
|
* It should only contain additional instruction regarding the deprecation if
|
|
* necessary.
|
|
*
|
|
* If there are no deprecations, this must return an empty array.
|
|
*/
|
|
module.exports = [
|
|
{
|
|
optionKey: 'directAccess',
|
|
changeNewDefault: 'true',
|
|
solution:
|
|
"Additionally, the environment variable 'PARSE_SERVER_ENABLE_EXPERIMENTAL_DIRECT_ACCESS' will be deprecated and renamed to 'PARSE_SERVER_DIRECT_ACCESS' in a future version; it is currently possible to use either one.",
|
|
},
|
|
];
|