postgraphile 5.0.0-beta.46 → 5.0.0-beta.47

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/CHANGELOG.md CHANGED
@@ -1,5 +1,208 @@
1
1
  # postgraphile
2
2
 
3
+ ## 5.0.0-beta.47
4
+
5
+ ### Patch Changes
6
+
7
+ - [#2675](https://github.com/graphile/crystal/pull/2675)
8
+ [`b09719f`](https://github.com/graphile/crystal/commit/b09719f5107eada15104c2bbfa4f1290af0a4465)
9
+ Thanks [@slaskis](https://github.com/slaskis)! - Fix "simple subscriptions"
10
+ `ListenPayload.relatedNode` following the overhaul of polymorphism (thanks
11
+ @slaskis for the reproduction in the test suite!)
12
+
13
+ - [#2686](https://github.com/graphile/crystal/pull/2686)
14
+ [`5dbb9e8`](https://github.com/graphile/crystal/commit/5dbb9e87850ce8de29ab4fec18c9d06333b642de)
15
+ Thanks [@benjie](https://github.com/benjie)! - Fix a bug with mutations where
16
+ the results of computed columns were calculated using the snapshot from before
17
+ the mutation (due to the way Postgres works). Solved by breaking the
18
+ post-mutation function calls out into a separate post-mutation statement.
19
+
20
+ - [#2690](https://github.com/graphile/crystal/pull/2690)
21
+ [`208364f`](https://github.com/graphile/crystal/commit/208364f9423abd240a0772b661986aae6e185c47)
22
+ Thanks [@benjie](https://github.com/benjie)! - Add keepalive to grafserv
23
+ websocket connections.
24
+
25
+ - [#2689](https://github.com/graphile/crystal/pull/2689)
26
+ [`6762c70`](https://github.com/graphile/crystal/commit/6762c7005c56d17c06cebb6857e8d295d86399eb)
27
+ Thanks [@benjie](https://github.com/benjie)! - Fix bug in
28
+ PgIndexBehaviorsPlugin that would treat all view attributes as unindexed.
29
+ Views can't have indexes, so we must give them the benefit of the doubt.
30
+
31
+ - [#2694](https://github.com/graphile/crystal/pull/2694)
32
+ [`13513dd`](https://github.com/graphile/crystal/commit/13513ddaea15ad9498a77de7c4e92679498f99ca)
33
+ Thanks [@benjie](https://github.com/benjie)! - Add support for `onError` RFC
34
+ with `PROPAGATE`, `NULL` and `HALT` behaviors implemented.
35
+
36
+ - [#2659](https://github.com/graphile/crystal/pull/2659)
37
+ [`bc2b188`](https://github.com/graphile/crystal/commit/bc2b188a50e00f153dc68df6955399c5917130bd)
38
+ Thanks [@benjie](https://github.com/benjie)! - 🚨 Tracking of side effects has
39
+ been completely overhauled, the main difference for users is that if you hit
40
+ issues you may need to ensure that **this.hasSideEffects = true**, if set, is
41
+ the last thing that your step does in its constructor (previously, doing this
42
+ anywhere in the constructor was okay). This should fix a number of oddities
43
+ around side effects and their impact on the operation plan - essentially it's
44
+ a lot stricter now.
45
+
46
+ - [#2691](https://github.com/graphile/crystal/pull/2691)
47
+ [`703d162`](https://github.com/graphile/crystal/commit/703d162df2cc148ac343c1339b8e7df750aa781d)
48
+ Thanks [@benjie](https://github.com/benjie)! - Deprecate
49
+ `withPgClient`/`withPgClientTransaction` because people are using them
50
+ incorrectly and causing themselves N+1 issues. Instead, rename to
51
+ `sideEffectWithPgClient` and introduce new `loadOneWithPgClient` and
52
+ `loadManyWithPgClient` helpers that people should use instead of
53
+ `withPgClient`.
54
+
55
+ - [#2659](https://github.com/graphile/crystal/pull/2659)
56
+ [`4a9072b`](https://github.com/graphile/crystal/commit/4a9072bfa3d3e86c6013caf2b89a31e87f2bb421)
57
+ Thanks [@benjie](https://github.com/benjie)! - 🚨 **Building connections
58
+ overhauled** - `connection()` has been overhauled, please re-read the docs on
59
+ this and adjust your plans as necessary.
60
+ - If your custom steps have the `connectionClone` method, the first argument
61
+ (`$connection`) has been removed because connection depends on your
62
+ collection step (rather than the other way around as it was previously) -
63
+ this should simplify implementation.
64
+ - Custom steps that are used with `connection()` are now just assumed to be
65
+ simple lists unless they indicate otherwise using `paginationSupport` (see
66
+ the `connection()` docs) - this means you can use any (list-returning) step
67
+ with `connection()`! 🎉
68
+ - `PgPageInfoStep` is no more. Various other steps have been rearranged and
69
+ had (mostly internal, or at least extremely rarely used) methods renamed,
70
+ replaced or removed. (E.g. `PgSelectSingleStep` no longer has `.node()` or
71
+ `.cursor()` methods since it is no longer implicitly an "edge step".)
72
+ - `@stream` has been optimized somewhat, no longer requiring multiple
73
+ independent streams from the database as required previously (and as would
74
+ be required by GraphQL.js under the same circumstances)
75
+
76
+ - [#2687](https://github.com/graphile/crystal/pull/2687)
77
+ [`7766c19`](https://github.com/graphile/crystal/commit/7766c19ecefd3aebc965306db90ba29b3b05200c)
78
+ Thanks [@benjie](https://github.com/benjie)! - Fix issue whereby
79
+ nodeId:insert/nodeId:update permissions were not rejected by PgRBACPlugin when
80
+ the underlying columns were not writable.
81
+
82
+ - [#2678](https://github.com/graphile/crystal/pull/2678)
83
+ [`6dafac1`](https://github.com/graphile/crystal/commit/6dafac162955291e5147c21e57734b44e30acb98)
84
+ Thanks [@benjie](https://github.com/benjie)! - Remove peer dependency
85
+ optionality in an attempt to satisfy pnpm's installation algorithms
86
+
87
+ - [#2692](https://github.com/graphile/crystal/pull/2692)
88
+ [`aa8fb3d`](https://github.com/graphile/crystal/commit/aa8fb3dbd23b0c3b6b8039922cb4ab7293b51844)
89
+ Thanks [@benjie](https://github.com/benjie)! - Forbid export of 'build', this
90
+ has required a slight degradation of the
91
+ makeAddPgTableConditionPlugin/addPgTableCondition signature for people using
92
+ the legacy signature - namely the entire build object is no longer available
93
+ in the callback that is the fourth argument. (Only have 3 arguments to your
94
+ call? You're not impacted!) In the unlikely event this causes you any issues,
95
+ your best bet is to move to the `apply()` approach (only use the 3 documented
96
+ arguments), but we can also potentially expand the parts of build that are
97
+ made available.
98
+
99
+ - [#2688](https://github.com/graphile/crystal/pull/2688)
100
+ [`e15f886`](https://github.com/graphile/crystal/commit/e15f886cae1041416b44b74b75426f8d43000dcf)
101
+ Thanks [@benjie](https://github.com/benjie)! - Fixes bug where two different
102
+ plugins with the same name would be allowed to exist in the same (resolved)
103
+ preset. Users of dynamically created presets and plugins (e.g.
104
+ `makeV4Preset(...)` in PostGraphile) should be wary not to include two calls
105
+ to the same factory in their preset (directly or indirectly).
106
+
107
+ - [#2659](https://github.com/graphile/crystal/pull/2659)
108
+ [`185d449`](https://github.com/graphile/crystal/commit/185d449ed30d29c9134cc898b50a1473ab2910a2)
109
+ Thanks [@benjie](https://github.com/benjie)! - 🚨 `loadOne` and `loadMany` no
110
+ longer accept 2-4 arguments; instead exactly two arguments are accepted.
111
+ **There is a codeshift available** in the repository
112
+ (`shifts/loadArguments.ts`) that you can execute with `jscodeshift` (see
113
+ comment at top of file) to do this rewrite for you across your codebase. Be
114
+ sure to check the results carefully!
115
+
116
+ The first argument is unchanged, the second argument is either the loader
117
+ callback (as before) or a "loader object":
118
+ - `shared` (optional) - replaces the `unary` argument, and works as before
119
+ except you may now also use a thunk! (See below)
120
+ - `ioEquivalence` (optional) - as before
121
+ - `load` (required) - the loader callback
122
+ - `name` (optional) - display name for the callback (will appear in plan
123
+ diagrams)
124
+ - `paginationSupport` (optional) - only relevant to loadMany, add this to
125
+ indicate which optimizations your loader callback supports (see the
126
+ documentation) - for example, does it support applying a `limit`?
127
+
128
+ **The motivation for the "loader object"** is that every step that calls a
129
+ given load function should have the same `ioEquivalence`, `shared`, `name` and
130
+ `paginationSupport` - so rather than defining them in each of your plan
131
+ resolvers, we should **associate the metadata with the callback directly**.
132
+
133
+ To make this practical, `shared` (previously: `unary`) can now be a callback
134
+ so that you can create steps to provide any shared details, e.g. database or
135
+ API clients from `context()`.
136
+
137
+ Ultimately the aim is to move this boilerplate out of your plan resolvers and
138
+ instead to co-locate it with your data loading callbacks:
139
+
140
+ ```diff
141
+ function User_friends($user, { $first }) {
142
+ const $userId = get($user, "id");
143
+ - const $apiClient = context().get("apiClient");
144
+ - const $collection = loadMany(
145
+ - $userId,
146
+ - null, // ioEquivalence
147
+ - $apiClient, // shared (previously 'unary')
148
+ - batchGetFriendsByUserId // load callback
149
+ - );
150
+ + const $collection = loadMany($userId, batchGetFriendIdsByUserId);
151
+ $collection.setParam("limit", $first);
152
+ return $collection;
153
+ }
154
+
155
+ const batchGetFriendsByUserId =
156
+ + {
157
+ + shared: () => context().get("apiClient"),
158
+ + load:
159
+ (userIds, info) => {
160
+ - const apiClient = info.unary;
161
+ + const apiClient = info.shared;
162
+ /* ... */
163
+ }
164
+ + }
165
+ ```
166
+
167
+ - [#2657](https://github.com/graphile/crystal/pull/2657)
168
+ [`f83b191`](https://github.com/graphile/crystal/commit/f83b191f39c9d521fd12563cca6aa20d1a6f0494)
169
+ Thanks [@dependabot](https://github.com/apps/dependabot)! - Add support for
170
+ Koa v3 (via v2 code) and update package exports.
171
+
172
+ - Updated dependencies
173
+ [[`5dbb9e8`](https://github.com/graphile/crystal/commit/5dbb9e87850ce8de29ab4fec18c9d06333b642de),
174
+ [`cfd4c3c`](https://github.com/graphile/crystal/commit/cfd4c3cff0ef40ed87a2c700b7719c1ca0e73588),
175
+ [`c3f9c38`](https://github.com/graphile/crystal/commit/c3f9c38cb00ad4553e4bc3c04e16a7c77bd16142),
176
+ [`68a1243`](https://github.com/graphile/crystal/commit/68a1243f104227ebf7d1f3cedcbec49dc3c8e258),
177
+ [`3d5c464`](https://github.com/graphile/crystal/commit/3d5c4641df66b431066efd6c74b67ca0d38ba7f4),
178
+ [`208364f`](https://github.com/graphile/crystal/commit/208364f9423abd240a0772b661986aae6e185c47),
179
+ [`6762c70`](https://github.com/graphile/crystal/commit/6762c7005c56d17c06cebb6857e8d295d86399eb),
180
+ [`05b971e`](https://github.com/graphile/crystal/commit/05b971e2d63cb5c946512bb83e6c255a7d9ec93f),
181
+ [`13513dd`](https://github.com/graphile/crystal/commit/13513ddaea15ad9498a77de7c4e92679498f99ca),
182
+ [`bc2b188`](https://github.com/graphile/crystal/commit/bc2b188a50e00f153dc68df6955399c5917130bd),
183
+ [`5bea9c1`](https://github.com/graphile/crystal/commit/5bea9c14b7b20609eec1593fe3109f8d6c170b44),
184
+ [`87a4c92`](https://github.com/graphile/crystal/commit/87a4c92dc89093a8bd601dcd692910eadf0c4cd3),
185
+ [`703d162`](https://github.com/graphile/crystal/commit/703d162df2cc148ac343c1339b8e7df750aa781d),
186
+ [`c13813e`](https://github.com/graphile/crystal/commit/c13813eecb42c0d9a6703540c022e318e18c5751),
187
+ [`4a9072b`](https://github.com/graphile/crystal/commit/4a9072bfa3d3e86c6013caf2b89a31e87f2bb421),
188
+ [`7766c19`](https://github.com/graphile/crystal/commit/7766c19ecefd3aebc965306db90ba29b3b05200c),
189
+ [`6dafac1`](https://github.com/graphile/crystal/commit/6dafac162955291e5147c21e57734b44e30acb98),
190
+ [`aa8fb3d`](https://github.com/graphile/crystal/commit/aa8fb3dbd23b0c3b6b8039922cb4ab7293b51844),
191
+ [`e15f886`](https://github.com/graphile/crystal/commit/e15f886cae1041416b44b74b75426f8d43000dcf),
192
+ [`34efed0`](https://github.com/graphile/crystal/commit/34efed09892d4b6533f40026de4a6b0a8a35035d),
193
+ [`185d449`](https://github.com/graphile/crystal/commit/185d449ed30d29c9134cc898b50a1473ab2910a2),
194
+ [`e2048e2`](https://github.com/graphile/crystal/commit/e2048e260bf99ed946f92d6ea579e08f126ba4d5),
195
+ [`33c7784`](https://github.com/graphile/crystal/commit/33c7784a8c81ac29c1e2e4a8733d04c30ef7035b),
196
+ [`f83b191`](https://github.com/graphile/crystal/commit/f83b191f39c9d521fd12563cca6aa20d1a6f0494)]:
197
+ - graphile-build-pg@5.0.0-beta.45
198
+ - @dataplan/pg@0.0.1-beta.37
199
+ - graphile-config@0.0.1-beta.18
200
+ - grafast@0.1.1-beta.26
201
+ - graphile-build@5.0.0-beta.38
202
+ - graphile-utils@5.0.0-beta.44
203
+ - tamedevil@0.0.0-beta.9
204
+ - grafserv@0.1.1-beta.28
205
+
3
206
  ## 5.0.0-beta.46
4
207
 
5
208
  ### Patch Changes
package/README.md CHANGED
@@ -33,6 +33,7 @@ And please give some love to our featured sponsors 🤩:
33
33
  <table><tr>
34
34
  <td align="center"><a href="https://www.the-guild.dev/"><img src="https://graphile.org/images/sponsors/theguild.png" width="90" height="90" alt="The Guild" /><br />The Guild</a> *</td>
35
35
  <td align="center"><a href="https://gosteelhead.com/"><img src="https://graphile.org/images/sponsors/steelhead.svg" width="90" height="90" alt="Steelhead" /><br />Steelhead</a> *</td>
36
+ <td align="center"><a href="https://outbankapp.com/"><img src="https://graphile.org/images/sponsors/outbank.png" width="90" height="90" alt="Outbank" /><br />Outbank</a></td>
36
37
  </tr></table>
37
38
 
38
39
  <em>\* Sponsors the entire Graphile suite</em>
@@ -1 +1 @@
1
- {"version":3,"file":"PgV4SimpleSubscriptionsPlugin.d.ts","sourceRoot":"","sources":["../../src/plugins/PgV4SimpleSubscriptionsPlugin.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,6BAA6B,uBAoFP,CAAC"}
1
+ {"version":3,"file":"PgV4SimpleSubscriptionsPlugin.d.ts","sourceRoot":"","sources":["../../src/plugins/PgV4SimpleSubscriptionsPlugin.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,6BAA6B,uBAwEP,CAAC"}
@@ -52,13 +52,8 @@ exports.PgV4SimpleSubscriptionsPlugin = (0, graphile_utils_1.extendSchema)((buil
52
52
  }, [get]),
53
53
  ...(nodeIdHandlerByTypeName
54
54
  ? {
55
- relatedNodeId: (0, graphile_utils_1.EXPORTABLE)((nodeIdFromEvent) => ($event) => {
56
- return nodeIdFromEvent($event);
57
- }, [nodeIdFromEvent]),
58
- relatedNode: (0, graphile_utils_1.EXPORTABLE)((node, nodeIdFromEvent, nodeIdHandlerByTypeName) => ($event) => {
59
- const $nodeId = nodeIdFromEvent($event);
60
- return node(nodeIdHandlerByTypeName, $nodeId);
61
- }, [grafast_1.node, nodeIdFromEvent, nodeIdHandlerByTypeName]),
55
+ relatedNodeId: nodeIdFromEvent,
56
+ relatedNode: nodeIdFromEvent,
62
57
  }
63
58
  : null),
64
59
  },
@@ -1 +1 @@
1
- {"version":3,"file":"PgV4SimpleSubscriptionsPlugin.js","sourceRoot":"","sources":["../../src/plugins/PgV4SimpleSubscriptionsPlugin.ts"],"names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AAQ,GAAG,GAAG,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;IACzC,MAAM,OAAO,GAAG,MAAM,CAAC,QAAQ,EAAE,eAAe,CAAC,CAAC;IAClD,OAAO,OAAO,CAAC;AACjB,CAAC,EACH,CAAC,aAAG,EAAE,gBAAM,EAAE,eAAe,CAAC,EAC9B,iBAAiB,CAClB,CAAC"}
package/dist/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const version = "5.0.0-beta.46";
1
+ export declare const version = "5.0.0-beta.47";
2
2
  //# sourceMappingURL=version.d.ts.map
package/dist/version.js CHANGED
@@ -2,5 +2,5 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.version = void 0;
4
4
  // This file is autogenerated by /scripts/postversion.mjs
5
- exports.version = "5.0.0-beta.46";
5
+ exports.version = "5.0.0-beta.47";
6
6
  //# sourceMappingURL=version.js.map
@@ -0,0 +1 @@
1
+ export * from "grafserv/koa/v3";
@@ -0,0 +1 @@
1
+ module.exports = require("grafserv/koa/v3");
@@ -0,0 +1 @@
1
+ export * from "grafserv/ruru/static";
@@ -0,0 +1 @@
1
+ module.exports = require("grafserv/ruru/static");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "postgraphile",
3
- "version": "5.0.0-beta.46",
3
+ "version": "5.0.0-beta.47",
4
4
  "description": "Automatic, high performance, and highly customizable GraphQL API for PostgreSQL",
5
5
  "type": "commonjs",
6
6
  "main": "./dist/index.js",
@@ -110,6 +110,11 @@
110
110
  "node": "./fwd/grafserv/koa/v2/index.js",
111
111
  "default": "./fwd/grafserv/koa/v2/index.js"
112
112
  },
113
+ "./grafserv/koa/v3": {
114
+ "types": "./fwd/grafserv/koa/v3/index.d.ts",
115
+ "node": "./fwd/grafserv/koa/v3/index.js",
116
+ "default": "./fwd/grafserv/koa/v3/index.js"
117
+ },
113
118
  "./grafserv/fastify/v4": {
114
119
  "types": "./fwd/grafserv/fastify/v4/index.d.ts",
115
120
  "node": "./fwd/grafserv/fastify/v4/index.js",
@@ -140,16 +145,16 @@
140
145
  "node": "./fwd/grafserv/ruru/server/index.js",
141
146
  "default": "./fwd/grafserv/ruru/server/index.js"
142
147
  },
148
+ "./grafserv/ruru/static": {
149
+ "types": "./fwd/grafserv/ruru/static/index.d.ts",
150
+ "node": "./fwd/grafserv/ruru/static/index.js",
151
+ "default": "./fwd/grafserv/ruru/static/index.js"
152
+ },
143
153
  "./grafserv/ruru/cli": {
144
154
  "types": "./fwd/grafserv/ruru/cli/index.d.ts",
145
155
  "node": "./fwd/grafserv/ruru/cli/index.js",
146
156
  "default": "./fwd/grafserv/ruru/cli/index.js"
147
157
  },
148
- "./grafserv/ruru/bundle": {
149
- "types": "./fwd/grafserv/ruru/bundle/index.d.ts",
150
- "node": "./fwd/grafserv/ruru/bundle/index.js",
151
- "default": "./fwd/grafserv/ruru/bundle/index.js"
152
- },
153
158
  "./graphile-build": {
154
159
  "types": "./fwd/graphile-build/index.d.ts",
155
160
  "node": "./fwd/graphile-build/index.js",
@@ -218,76 +223,43 @@
218
223
  "homepage": "https://graphile.org/graphile-engine/",
219
224
  "dependencies": {
220
225
  "@dataplan/json": "0.0.1-beta.33",
221
- "@dataplan/pg": "0.0.1-beta.36",
226
+ "@dataplan/pg": "0.0.1-beta.37",
222
227
  "@graphile/lru": "^5.0.0-beta.4",
223
228
  "@types/node": "^22.16.3",
224
229
  "@types/pg": "^8.15.4",
225
230
  "debug": "^4.4.1",
226
- "grafast": "^0.1.1-beta.25",
227
- "grafserv": "^0.1.1-beta.27",
228
- "graphile-build": "5.0.0-beta.37",
229
- "graphile-build-pg": "5.0.0-beta.44",
230
- "graphile-config": "^0.0.1-beta.17",
231
- "graphile-utils": "^5.0.0-beta.43",
231
+ "grafast": "^0.1.1-beta.26",
232
+ "grafserv": "^0.1.1-beta.28",
233
+ "graphile-build": "5.0.0-beta.38",
234
+ "graphile-build-pg": "5.0.0-beta.45",
235
+ "graphile-config": "^0.0.1-beta.18",
236
+ "graphile-utils": "^5.0.0-beta.44",
232
237
  "graphql": "^16.1.0-experimental-stream-defer.6",
233
238
  "iterall": "^1.3.0",
234
239
  "jsonwebtoken": "^9.0.2",
235
240
  "pg": "^8.16.3",
236
241
  "pg-sql2": "^5.0.0-beta.9",
237
- "tamedevil": "^0.0.0-beta.8",
242
+ "tamedevil": "^0.0.0-beta.9",
238
243
  "tslib": "^2.8.1",
239
244
  "ws": "^8.18.3"
240
245
  },
241
246
  "peerDependencies": {
242
247
  "@dataplan/json": "0.0.1-beta.33",
243
- "@dataplan/pg": "0.0.1-beta.36",
248
+ "@dataplan/pg": "0.0.1-beta.37",
244
249
  "@envelop/core": "^5.0.0",
245
- "grafast": "^0.1.1-beta.25",
246
- "grafserv": "^0.1.1-beta.27",
247
- "graphile-build": "5.0.0-beta.37",
248
- "graphile-build-pg": "5.0.0-beta.44",
249
- "graphile-config": "^0.0.1-beta.17",
250
+ "grafast": "^0.1.1-beta.26",
251
+ "grafserv": "^0.1.1-beta.28",
252
+ "graphile-build": "5.0.0-beta.38",
253
+ "graphile-build-pg": "5.0.0-beta.45",
254
+ "graphile-config": "^0.0.1-beta.18",
250
255
  "graphql": "^16.1.0-experimental-stream-defer.6",
251
256
  "pg": "^8.7.1",
252
257
  "pg-sql2": "^5.0.0-beta.9",
253
- "tamedevil": "^0.0.0-beta.8"
258
+ "tamedevil": "^0.0.0-beta.9"
254
259
  },
255
260
  "peerDependenciesMeta": {
256
- "@dataplan/json": {
257
- "optional": true
258
- },
259
- "@dataplan/pg": {
260
- "optional": true
261
- },
262
261
  "@envelop/core": {
263
262
  "optional": true
264
- },
265
- "grafast": {
266
- "optional": true
267
- },
268
- "grafserv": {
269
- "optional": true
270
- },
271
- "graphile-build": {
272
- "optional": true
273
- },
274
- "graphile-build-pg": {
275
- "optional": true
276
- },
277
- "graphile-config": {
278
- "optional": true
279
- },
280
- "graphql": {
281
- "optional": true
282
- },
283
- "pg": {
284
- "optional": true
285
- },
286
- "pg-sql2": {
287
- "optional": true
288
- },
289
- "tamedevil": {
290
- "optional": true
291
263
  }
292
264
  },
293
265
  "engines": {
@@ -304,8 +276,8 @@
304
276
  "@types/jest": "^30.0.0",
305
277
  "@types/jsonwebtoken": "^9.0.10",
306
278
  "@types/nodemon": "3.1.1",
307
- "graphile": "^5.0.0-beta.44",
308
- "graphile-export": "^0.0.2-beta.29",
279
+ "graphile": "^5.0.0-beta.45",
280
+ "graphile-export": "^0.0.2-beta.30",
309
281
  "jest": "^30.0.4",
310
282
  "nodemon": "^3.1.10",
311
283
  "ts-node": "^10.9.2",
@@ -1 +0,0 @@
1
- export * from "grafserv/ruru/bundle";
@@ -1 +0,0 @@
1
- module.exports = require("grafserv/ruru/bundle");