Skip to content

Commit 755e967

Browse files
committed
rename
1 parent ff3cbb3 commit 755e967

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

DEPRECATIONS.md

Lines changed: 1 addition & 1 deletion
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) | deprecated | - |
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) | deprecated | - |
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) | deprecated | - |
16-
| DEPPS10 | `encodePointerInCloudFunction` defaults to `true` | [#8634](https://github.com/parse-community/parse-server/issues/8634) | 6.2.0 (2023) | 7.0.0 (2024) | deprecated | - |
16+
| DEPPS10 | `encodeParseObjectInCloudFunction` defaults to `true` | [#8634](https://github.com/parse-community/parse-server/issues/8634) | 6.2.0 (2023) | 7.0.0 (2024) | deprecated | - |
1717

1818
[i_deprecation]: ## "The version and date of the deprecation."
1919
[i_removal]: ## "The version and date of the planned removal."

spec/CloudCode.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1373,7 +1373,7 @@ describe('Cloud Code', () => {
13731373
});
13741374

13751375
it('allow cloud to encode Parse Objects', async () => {
1376-
await reconfigureServer({ encodeCloudPointers: true });
1376+
await reconfigureServer({ encodeParseObjectInCloudFunction: true });
13771377
const user = new Parse.User();
13781378
user.setUsername('username');
13791379
user.setPassword('password');

src/Deprecator/Deprecations.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@
1818
module.exports = [
1919
{ optionKey: 'allowClientClassCreation', changeNewDefault: 'false' },
2020
{ optionKey: 'allowExpiredAuthDataToken', changeNewDefault: 'false' },
21-
{ optionKey: 'encodePointerInCloudFunction', changeNewDefault: 'true' },
21+
{ optionKey: 'encodeParseObjectInCloudFunction', changeNewDefault: 'true' },
2222
];

src/Options/Definitions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ module.exports.ParseServerOptions = {
210210
action: parsers.booleanParser,
211211
default: false,
212212
},
213-
encodePointerInCloudFunction: {
213+
encodeParseObjectInCloudFunction: {
214214
env: 'PARSE_SERVER_ENCODE_POINTER_IN_CLOUD_FUNCTION',
215215
help:
216216
'If set to `true`, a `Parse.Pointer` that is in the payload when calling a Cloud Function will be converted to an instance of a `Parse.Pointer`. If `false`, the object will not be converted and instead be a plain JavaScript object, which contains the raw data of a `Parse.Pointer` but is not an actual instance of a `Parse.Pointer`. Default is `false`. <br><br>\u2139\uFE0F The expected behavior would be that the object is converted to an instance of `Parse.Pointer`, 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 `Parse.Pointer` objects are not converted to actual instances of `Parse.Pointer`.',

src/Options/docs.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Options/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ export interface ParseServerOptions {
204204
emailAdapter: ?Adapter<MailAdapter>;
205205
/* If set to `true`, a `Parse.Pointer` that is in the payload when calling a Cloud Function will be converted to an instance of a `Parse.Pointer`. If `false`, the object will not be converted and instead be a plain JavaScript object, which contains the raw data of a `Parse.Pointer` but is not an actual instance of a `Parse.Pointer`. Default is `false`. <br><br>ℹ️ The expected behavior would be that the object is converted to an instance of `Parse.Pointer`, 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 `Parse.Pointer` objects are not converted to actual instances of `Parse.Pointer`.
206206
:DEFAULT: false */
207-
encodePointerInCloudFunction: ?boolean;
207+
encodeParseObjectInCloudFunction: ?boolean;
208208
/* Public URL to your parse server with http:// or https://.
209209
:ENV: PARSE_PUBLIC_SERVER_URL */
210210
publicServerURL: ?string;

src/Routers/FunctionsRouter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ function parseObject(obj, config) {
1818
return Object.assign(new Date(obj.iso), obj);
1919
} else if (obj && obj.__type == 'File') {
2020
return Parse.File.fromJSON(obj);
21-
} else if (obj && obj.__type == 'Pointer' && config.encodeCloudPointers) {
21+
} else if (obj && obj.__type == 'Pointer' && config.encodeParseObjectInCloudFunction) {
2222
return Parse.Object.fromJSON({
2323
__type: 'Pointer',
2424
className: obj.className,

0 commit comments

Comments
 (0)