@strapi/plugin-graphql 4.3.2 → 4.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@strapi/plugin-graphql",
3
- "version": "4.3.2",
3
+ "version": "4.3.3",
4
4
  "description": "Adds GraphQL endpoint with default API methods.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -27,19 +27,16 @@
27
27
  "test:front:watch:ce": "cross-env IS_EE=false jest --config ./jest.config.front.js --watchAll"
28
28
  },
29
29
  "dependencies": {
30
- "@apollo/federation": "^0.28.0",
31
30
  "@graphql-tools/schema": "8.1.2",
32
- "@graphql-tools/utils": "^8.0.2",
33
- "@strapi/utils": "4.3.2",
31
+ "@graphql-tools/utils": "^8.9.0",
32
+ "@strapi/utils": "4.3.3",
34
33
  "apollo-server-core": "3.1.2",
35
34
  "apollo-server-koa": "3.10.0",
36
35
  "glob": "^7.1.7",
37
36
  "graphql": "^15.5.1",
38
37
  "graphql-depth-limit": "^1.1.0",
39
- "graphql-iso-date": "^3.6.1",
40
38
  "graphql-playground-middleware-koa": "^1.6.21",
41
- "graphql-type-json": "^0.3.2",
42
- "graphql-type-long": "^0.1.1",
39
+ "graphql-scalars": "1.17.0",
43
40
  "graphql-upload": "^13.0.0",
44
41
  "koa-compose": "^4.1.0",
45
42
  "lodash": "4.17.21",
@@ -64,5 +61,5 @@
64
61
  "description": "Adds GraphQL endpoint with default API methods.",
65
62
  "kind": "plugin"
66
63
  },
67
- "gitHead": "7039c0d22836c94457130515b3a55eb93d2411f8"
64
+ "gitHead": "4d60bfdeee6eb5e9b42b5a614690d7bb86c5f84a"
68
65
  }
@@ -61,6 +61,8 @@ module.exports = async ({ strapi }) => {
61
61
  ? ApolloServerPluginLandingPageDisabled()
62
62
  : ApolloServerPluginLandingPageGraphQLPlayground(),
63
63
  ],
64
+
65
+ cache: 'bounded',
64
66
  };
65
67
 
66
68
  const serverConfig = merge(defaultServerConfig, config('apolloServer'));
@@ -112,7 +114,7 @@ module.exports = async ({ strapi }) => {
112
114
 
113
115
  // allow graphql playground to load without authentication
114
116
  if (ctx.request.method === 'GET') return next();
115
-
117
+
116
118
  return strapi.auth.authenticate(ctx, next);
117
119
  },
118
120
 
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const { GraphQLDate } = require('graphql-iso-date/dist');
3
+ const { GraphQLDate } = require('graphql-scalars');
4
4
 
5
5
  const parseAndCast = parseFn => (...args) => {
6
6
  const parsedValue = parseFn(...args);
@@ -1,8 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const GraphQLJSON = require('graphql-type-json');
4
- const GraphQLLong = require('graphql-type-long');
5
- const { GraphQLDateTime } = require('graphql-iso-date/dist');
3
+ const { GraphQLDateTime, GraphQLLong, GraphQLJSON } = require('graphql-scalars');
6
4
  const { GraphQLUpload } = require('graphql-upload');
7
5
  const { asNexusMethod } = require('nexus');
8
6