You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`DeprecationWarning: The Parse Server option '${deprecations[0].optionKey}' is deprecated and will be removed in a future version. ${deprecations[0].solution}`
117
+
);
118
+
});
119
+
120
+
it('does not log deprecation for removed key when option is not set',async()=>{
Copy file name to clipboardExpand all lines: src/Deprecator/Deprecations.js
+10Lines changed: 10 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -31,4 +31,14 @@ module.exports = [
31
31
changeNewDefault: '["127.0.0.1", "::1"]',
32
32
solution: "Set 'readOnlyMasterKeyIps' to the IP addresses that should be allowed to use the read-only master key, or to '[\"127.0.0.1\", \"::1\"]' to restrict access to localhost.",
33
33
},
34
+
{
35
+
optionKey: 'mountPlayground',
36
+
changeNewKey: '',
37
+
solution: "Use Parse Dashboard as GraphQL IDE or configure a third-party GraphQL client such as Apollo Sandbox, GraphiQL, or Insomnia with custom request headers.",
38
+
},
39
+
{
40
+
optionKey: 'playgroundPath',
41
+
changeNewKey: '',
42
+
solution: "Use Parse Dashboard as GraphQL IDE or configure a third-party GraphQL client such as Apollo Sandbox, GraphiQL, or Insomnia with custom request headers.",
help: 'Mounts the GraphQL Playground which exposes the master key in the browser - never use this option in production',
407
+
help: 'Deprecated. Mounts the GraphQL Playground which is deprecated and will be removed in a future version. The playground exposes the master key in the browser. Use Parse Dashboard as GraphQL IDE or configure a third-party GraphQL client with custom request headers.',
/* Mounts the GraphQL Playground which exposes the master key in the browser - never use this option in production
345
+
/* Deprecated. Mounts the GraphQL Playground which is deprecated and will be removed in a future version. The playground exposes the master key in the browser. Use Parse Dashboard as GraphQL IDE or configure a third-party GraphQL client with custom request headers.
346
346
:ENV: PARSE_SERVER_MOUNT_PLAYGROUND
347
347
:DEFAULT: false */
348
348
mountPlayground: ?boolean;
349
-
/* Mount path for the GraphQL Playground, defaults to /playground
349
+
/* Deprecated. Mount path for the GraphQL Playground. The playground is deprecated and will be removed in a future version.
Copy file name to clipboardExpand all lines: src/ParseServer.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -460,7 +460,7 @@ class ParseServer {
460
460
if(options.mountPlayground){
461
461
parseGraphQLServer.applyPlayground(app);
462
462
logging.getLogger().warn(
463
-
'GraphQL Playground is enabled and exposes the master key in the browser. The playground is a developer tool and should not be used in production. Use Parse Dashboard for production environments.'
463
+
'GraphQL Playground is deprecated and will be removed in a future version. It exposes the master key in the browser. Use Parse Dashboard as GraphQL IDE or configure a third-party GraphQL client with custom request headers.'
0 commit comments