Skip to content

Commit 5c5ad69

Browse files
authored
feat: Change default value of Parse Server option encodeParseObjectInCloudFunction to true (#9527)
BREAKING CHANGE: The default value of Parse Server option `encodeParseObjectInCloudFunction` changes to `true`; the option has been deprecated and will be removed in a future version.
1 parent 7534eb7 commit 5c5ad69

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

DEPRECATIONS.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ The following is a list of deprecations, according to the [Deprecation Policy](h
1313
| DEPPS7 | Remove file trigger syntax `Parse.Cloud.beforeSaveFile((request) => {})` | [#7966](https://github.com/parse-community/parse-server/pull/7966) | 5.3.0 (2022) | 7.0.0 (2024) | removed | - |
1414
| DEPPS8 | Login with expired 3rd party authentication token defaults to `false` | [#7079](https://github.com/parse-community/parse-server/pull/7079) | 5.3.0 (2022) | 7.0.0 (2024) | removed | - |
1515
| DEPPS9 | Rename LiveQuery `fields` option to `keys` | [#8389](https://github.com/parse-community/parse-server/issues/8389) | 6.0.0 (2023) | 7.0.0 (2024) | removed | - |
16-
| DEPPS10 | Config option `encodeParseObjectInCloudFunction` defaults to `true` | [#8634](https://github.com/parse-community/parse-server/issues/8634) | 6.2.0 (2023) | 8.0.0 (2025) | deprecated | - |
16+
| DEPPS10 | Encode `Parse.Object` in Cloud Function and remove option `encodeParseObjectInCloudFunction` | [#8634](https://github.com/parse-community/parse-server/issues/8634) | 6.2.0 (2023) | 9.0.0 (2026) | deprecated | - |
1717
| DEPPS11 | Replace `PublicAPIRouter` with `PagesRouter` | [#7625](https://github.com/parse-community/parse-server/issues/7625) | 8.0.0 (2025) | 9.0.0 (2026) | deprecated | - |
1818

1919
[i_deprecation]: ## "The version and date of the deprecation."

src/Deprecator/Deprecations.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@
1515
*
1616
* If there are no deprecations, this must return an empty array.
1717
*/
18-
module.exports = [{ optionKey: 'encodeParseObjectInCloudFunction', changeNewDefault: 'true' }];
18+
module.exports = [{ optionKey: 'encodeParseObjectInCloudFunction', changeNewKey: '' }]

src/Options/Definitions.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ module.exports.ParseServerOptions = {
238238
help:
239239
'If set to `true`, a `Parse.Object` that is in the payload when calling a Cloud Function will be converted to an instance of `Parse.Object`. If `false`, the object will not be converted and instead be a plain JavaScript object, which contains the raw data of a `Parse.Object` but is not an actual instance of `Parse.Object`. Default is `false`. <br><br>\u2139\uFE0F The expected behavior would be that the object is converted to an instance of `Parse.Object`, so you would normally set this option to `true`. The default is `false` because this is a temporary option that has been introduced to avoid a breaking change when fixing a bug where JavaScript objects are not converted to actual instances of `Parse.Object`.',
240240
action: parsers.booleanParser,
241-
default: false,
241+
default: true,
242242
},
243243
encryptionKey: {
244244
env: 'PARSE_SERVER_ENCRYPTION_KEY',

src/Options/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ export interface ParseServerOptions {
212212
/* Adapter module for email sending */
213213
emailAdapter: ?Adapter<MailAdapter>;
214214
/* If set to `true`, a `Parse.Object` that is in the payload when calling a Cloud Function will be converted to an instance of `Parse.Object`. If `false`, the object will not be converted and instead be a plain JavaScript object, which contains the raw data of a `Parse.Object` but is not an actual instance of `Parse.Object`. Default is `false`. <br><br>ℹ️ The expected behavior would be that the object is converted to an instance of `Parse.Object`, so you would normally set this option to `true`. The default is `false` because this is a temporary option that has been introduced to avoid a breaking change when fixing a bug where JavaScript objects are not converted to actual instances of `Parse.Object`.
215-
:DEFAULT: false */
215+
:DEFAULT: true */
216216
encodeParseObjectInCloudFunction: ?boolean;
217217
/* Public URL to your parse server with http:// or https://.
218218
:ENV: PARSE_PUBLIC_SERVER_URL */

0 commit comments

Comments
 (0)