2021-03-30 22:42:34 +02:00
/ * *
* The deprecations .
*
* Add deprecations to the array using the following keys :
2021-10-08 14:24:20 +11:00
* - ` optionKey ` { String } : The option key incl . its path , e . g . ` security.enableCheck ` .
* - ` envKey ` { String } : The environment key , e . g . ` PARSE_SERVER_SECURITY ` .
* - ` changeNewKey ` { String } : Set the new key name if the current key will be replaced ,
2021-03-30 22:42:34 +02:00
* or set to an empty string if the current key will be removed without replacement .
2021-10-08 14:24:20 +11:00
* - ` changeNewDefault ` { String } : Set the new default value if the key ' s default value
2021-03-30 22:42:34 +02:00
* will change in a future version .
2021-04-05 02:28:28 +02:00
* - ` 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 .
2021-03-30 22:42:34 +02:00
*
2021-04-05 02:28:28 +02:00
* If there are no deprecations , this must return an empty array .
2021-03-30 22:42:34 +02:00
* /
2021-04-05 02:28:28 +02:00
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." ,
} ,
2021-10-08 14:24:20 +11:00
{ optionKey : 'enforcePrivateUsers' , changeNewDefault : 'true' } ,
2021-04-05 02:28:28 +02:00
] ;