@constructive-io/graphql-server 5.28.2 → 5.28.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.
@@ -5,7 +5,7 @@ import { getNodeEnv } from '@pgpmjs/env';
5
5
  import { Logger } from '@pgpmjs/logger';
6
6
  import { createGraphileInstance, graphileCache } from 'graphile-cache';
7
7
  import { createFunctionBindingsPlugin } from 'graphile-function-bindings';
8
- import { createConstructivePreset } from 'graphile-settings';
8
+ import { createConstructivePreset, createGrafastCacheLimitsPreset } from 'graphile-settings';
9
9
  import { getPgPool } from 'pg-cache';
10
10
  import { getPgEnvOptions } from 'pg-env';
11
11
  import { isGraphqlObservabilityEnabled } from '../diagnostics/observability';
@@ -60,13 +60,17 @@ const reqLabel = (req) => (req.requestId ? `[${req.requestId}]` : '[req]');
60
60
  const buildPreset = async (pool, schemas, anonRole, roleName, introspectionRole, graphileOptions, databaseSettings, apiId, compute) => {
61
61
  const introspection = await makeIntrospectionWiring(pool, schemas, graphileOptions, undefined, introspectionRole);
62
62
  const configuredPreset = graphileOptions?.preset ?? {};
63
+ const grafastCachePreset = createGrafastCacheLimitsPreset(graphileOptions?.grafastCache);
63
64
  return {
64
65
  ...configuredPreset,
65
66
  extends: [
66
67
  createConstructivePreset(databaseSettings),
67
68
  ...(graphileOptions?.extends ?? []),
68
69
  ...(configuredPreset.extends ?? []),
69
- ...introspection.presets
70
+ ...introspection.presets,
71
+ ...(Object.keys(grafastCachePreset).length > 0
72
+ ? [grafastCachePreset]
73
+ : [])
70
74
  ],
71
75
  plugins: [
72
76
  ...(configuredPreset.plugins ?? []),
@@ -66,13 +66,17 @@ const reqLabel = (req) => (req.requestId ? `[${req.requestId}]` : '[req]');
66
66
  const buildPreset = async (pool, schemas, anonRole, roleName, introspectionRole, graphileOptions, databaseSettings, apiId, compute) => {
67
67
  const introspection = await (0, graphile_introspection_1.makeIntrospectionWiring)(pool, schemas, graphileOptions, undefined, introspectionRole);
68
68
  const configuredPreset = graphileOptions?.preset ?? {};
69
+ const grafastCachePreset = (0, graphile_settings_1.createGrafastCacheLimitsPreset)(graphileOptions?.grafastCache);
69
70
  return {
70
71
  ...configuredPreset,
71
72
  extends: [
72
73
  (0, graphile_settings_1.createConstructivePreset)(databaseSettings),
73
74
  ...(graphileOptions?.extends ?? []),
74
75
  ...(configuredPreset.extends ?? []),
75
- ...introspection.presets
76
+ ...introspection.presets,
77
+ ...(Object.keys(grafastCachePreset).length > 0
78
+ ? [grafastCachePreset]
79
+ : [])
76
80
  ],
77
81
  plugins: [
78
82
  ...(configuredPreset.plugins ?? []),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@constructive-io/graphql-server",
3
- "version": "5.28.2",
3
+ "version": "5.28.3",
4
4
  "author": "Constructive <developers@constructive.io>",
5
5
  "description": "Constructive GraphQL Server",
6
6
  "main": "index.js",
@@ -43,19 +43,19 @@
43
43
  "dependencies": {
44
44
  "@agentic-kit/ollama": "2.15.0",
45
45
  "@constructive-io/csrf": "^0.30.0",
46
- "@constructive-io/errors": "^0.20.0",
47
- "@constructive-io/express-context": "^0.33.2",
48
- "@constructive-io/graphql-env": "^3.34.2",
49
- "@constructive-io/graphql-types": "^3.33.2",
46
+ "@constructive-io/errors": "^0.20.1",
47
+ "@constructive-io/express-context": "^0.33.3",
48
+ "@constructive-io/graphql-env": "^3.34.3",
49
+ "@constructive-io/graphql-types": "^3.33.3",
50
50
  "@constructive-io/llm-env": "^0.15.0",
51
- "@constructive-io/query-builder": "^3.16.2",
51
+ "@constructive-io/query-builder": "^3.16.3",
52
52
  "@constructive-io/s3-utils": "^2.34.0",
53
53
  "@constructive-io/url-domains": "^2.31.0",
54
54
  "@graphile-contrib/pg-many-to-many": "2.0.0-rc.2",
55
- "@pgpmjs/env": "^2.45.2",
55
+ "@pgpmjs/env": "^2.46.0",
56
56
  "@pgpmjs/logger": "^2.26.0",
57
- "@pgpmjs/server-utils": "^3.29.2",
58
- "@pgpmjs/types": "^2.55.2",
57
+ "@pgpmjs/server-utils": "^3.29.3",
58
+ "@pgpmjs/types": "^2.56.0",
59
59
  "cors": "^2.8.6",
60
60
  "deepmerge": "^4.3.1",
61
61
  "express": "^5.2.1",
@@ -64,17 +64,17 @@
64
64
  "grafserv": "1.0.1",
65
65
  "graphile-build": "5.1.1",
66
66
  "graphile-build-pg": "5.1.3",
67
- "graphile-cache": "^4.14.2",
67
+ "graphile-cache": "^4.14.3",
68
68
  "graphile-config": "1.1.0",
69
- "graphile-function-bindings": "^1.17.2",
70
- "graphile-scoped-introspection": "^0.4.2",
71
- "graphile-settings": "^6.24.2",
69
+ "graphile-function-bindings": "^1.17.3",
70
+ "graphile-scoped-introspection": "^0.4.3",
71
+ "graphile-settings": "^6.24.3",
72
72
  "graphile-utils": "5.0.3",
73
73
  "graphql": "16.13.0",
74
74
  "graphql-upload": "^13.0.0",
75
75
  "lru-cache": "^11.2.7",
76
76
  "pg": "^8.21.0",
77
- "pg-cache": "^3.29.2",
77
+ "pg-cache": "^3.29.3",
78
78
  "pg-env": "^1.32.0",
79
79
  "pg-query-context": "^2.31.0",
80
80
  "pg-sql2": "5.0.1",
@@ -91,11 +91,11 @@
91
91
  "@types/request-ip": "^0.0.41",
92
92
  "@types/supertest": "^7.2.1",
93
93
  "cookie-parser": "^1.4.7",
94
- "graphile-test": "5.17.2",
94
+ "graphile-test": "5.17.3",
95
95
  "makage": "^0.8.0",
96
96
  "nodemon": "^3.1.14",
97
97
  "supertest": "^7.2.2",
98
98
  "ts-node": "^10.9.2"
99
99
  },
100
- "gitHead": "e05686fb94c5e22c954436f18c25aa4439b9e83e"
100
+ "gitHead": "4c68f85c7d9b3c72082f8305dffc0b3dfca80941"
101
101
  }