Skip to content

Commit a28e145

Browse files
authored
fix: Remove encodeParseObjectInCloudFunction feature (#133)
* fix: Remove encodeParseObjectInCloudFunction feature * Remove PARSE_SERVER_ENCODE_PARSE_OBJECT_IN_CLOUD_FUNCTION Removed the option for encoding Parse objects in Cloud Functions, which was a temporary workaround for a bug.
1 parent 1764ae0 commit a28e145

2 files changed

Lines changed: 0 additions & 10 deletions

File tree

app.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -249,10 +249,6 @@
249249
"description": "Enables database real-time hooks to update single schema cache. Set to `true` if using multiple Parse Servers instances connected to the same database. Failing to do so will cause a schema change to not propagate to all instances and re-syncing will only happen when the instances restart.",
250250
"value": "true"
251251
},
252-
"PARSE_SERVER_ENCODE_PARSE_OBJECT_IN_CLOUD_FUNCTION": {
253-
"description": "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`. 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`.",
254-
"value": "true"
255-
},
256252
"PARSE_SERVER_PAGES_ENABLE_ROUTER": {
257253
"description": "Is true if the pages router should be enabled; this is required for any of the pages options to take effect.",
258254
"value": "true"

parse/index.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -112,11 +112,6 @@ if (process.env.PARSE_SERVER_DATABASE_ENABLE_SCHEMA_HOOKS == 'true') {
112112
enableSchemaHooks = true
113113
}
114114

115-
let encodeParseObjectInCloudFunction = false;
116-
if (process.env.PARSE_SERVER_ENCODE_PARSE_OBJECT_IN_CLOUD_FUNCTION == 'true') {
117-
encodeParseObjectInCloudFunction = true
118-
}
119-
120115
let enablePagesRouter = false;
121116
if (process.env.PARSE_SERVER_PAGES_ENABLE_ROUTER == 'true') {
122117
enablePagesRouter = true
@@ -307,7 +302,6 @@ configuration = {
307302
fileExtensions: fileExtensions,
308303
},
309304
maxUploadSize: fileMaxUploadSize,
310-
encodeParseObjectInCloudFunction: encodeParseObjectInCloudFunction,
311305
directAccess: useDirectAccess,
312306
allowExpiredAuthDataToken: allowExpiredAuthDataToken,
313307
enforcePrivateUsers: enforcePrivateUsers,

0 commit comments

Comments
 (0)