postgraphile 5.0.0-beta.46 → 5.0.0-beta.48

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,221 @@
1
1
  # postgraphile
2
2
 
3
+ ## 5.0.0-beta.48
4
+
5
+ ### Patch Changes
6
+
7
+ - [#2700](https://github.com/graphile/crystal/pull/2700)
8
+ [`dcd3583`](https://github.com/graphile/crystal/commit/dcd35835d86eb2758bbbc8e24ce647e97dee42b6)
9
+ Thanks [@benjie](https://github.com/benjie)! - Switch to consistently using
10
+ workspace:^ dependencies (in an attempt to appease pnpm)
11
+ - Updated dependencies
12
+ [[`dcd3583`](https://github.com/graphile/crystal/commit/dcd35835d86eb2758bbbc8e24ce647e97dee42b6)]:
13
+ - graphile-build-pg@5.0.0-beta.46
14
+ - @dataplan/pg@0.0.1-beta.38
15
+
16
+ ## 5.0.0-beta.47
17
+
18
+ ### Patch Changes
19
+
20
+ - [#2675](https://github.com/graphile/crystal/pull/2675)
21
+ [`b09719f`](https://github.com/graphile/crystal/commit/b09719f5107eada15104c2bbfa4f1290af0a4465)
22
+ Thanks [@slaskis](https://github.com/slaskis)! - Fix "simple subscriptions"
23
+ `ListenPayload.relatedNode` following the overhaul of polymorphism (thanks
24
+ @slaskis for the reproduction in the test suite!)
25
+
26
+ - [#2686](https://github.com/graphile/crystal/pull/2686)
27
+ [`5dbb9e8`](https://github.com/graphile/crystal/commit/5dbb9e87850ce8de29ab4fec18c9d06333b642de)
28
+ Thanks [@benjie](https://github.com/benjie)! - Fix a bug with mutations where
29
+ the results of computed columns were calculated using the snapshot from before
30
+ the mutation (due to the way Postgres works). Solved by breaking the
31
+ post-mutation function calls out into a separate post-mutation statement.
32
+
33
+ - [#2690](https://github.com/graphile/crystal/pull/2690)
34
+ [`208364f`](https://github.com/graphile/crystal/commit/208364f9423abd240a0772b661986aae6e185c47)
35
+ Thanks [@benjie](https://github.com/benjie)! - Add keepalive to grafserv
36
+ websocket connections.
37
+
38
+ - [#2689](https://github.com/graphile/crystal/pull/2689)
39
+ [`6762c70`](https://github.com/graphile/crystal/commit/6762c7005c56d17c06cebb6857e8d295d86399eb)
40
+ Thanks [@benjie](https://github.com/benjie)! - Fix bug in
41
+ PgIndexBehaviorsPlugin that would treat all view attributes as unindexed.
42
+ Views can't have indexes, so we must give them the benefit of the doubt.
43
+
44
+ - [#2694](https://github.com/graphile/crystal/pull/2694)
45
+ [`13513dd`](https://github.com/graphile/crystal/commit/13513ddaea15ad9498a77de7c4e92679498f99ca)
46
+ Thanks [@benjie](https://github.com/benjie)! - Add support for `onError` RFC
47
+ with `PROPAGATE`, `NULL` and `HALT` behaviors implemented.
48
+
49
+ - [#2659](https://github.com/graphile/crystal/pull/2659)
50
+ [`bc2b188`](https://github.com/graphile/crystal/commit/bc2b188a50e00f153dc68df6955399c5917130bd)
51
+ Thanks [@benjie](https://github.com/benjie)! - 🚨 Tracking of side effects has
52
+ been completely overhauled, the main difference for users is that if you hit
53
+ issues you may need to ensure that **this.hasSideEffects = true**, if set, is
54
+ the last thing that your step does in its constructor (previously, doing this
55
+ anywhere in the constructor was okay). This should fix a number of oddities
56
+ around side effects and their impact on the operation plan - essentially it's
57
+ a lot stricter now.
58
+
59
+ - [#2691](https://github.com/graphile/crystal/pull/2691)
60
+ [`703d162`](https://github.com/graphile/crystal/commit/703d162df2cc148ac343c1339b8e7df750aa781d)
61
+ Thanks [@benjie](https://github.com/benjie)! - Deprecate
62
+ `withPgClient`/`withPgClientTransaction` because people are using them
63
+ incorrectly and causing themselves N+1 issues. Instead, rename to
64
+ `sideEffectWithPgClient` and introduce new `loadOneWithPgClient` and
65
+ `loadManyWithPgClient` helpers that people should use instead of
66
+ `withPgClient`.
67
+
68
+ - [#2659](https://github.com/graphile/crystal/pull/2659)
69
+ [`4a9072b`](https://github.com/graphile/crystal/commit/4a9072bfa3d3e86c6013caf2b89a31e87f2bb421)
70
+ Thanks [@benjie](https://github.com/benjie)! - 🚨 **Building connections
71
+ overhauled** - `connection()` has been overhauled, please re-read the docs on
72
+ this and adjust your plans as necessary.
73
+ - If your custom steps have the `connectionClone` method, the first argument
74
+ (`$connection`) has been removed because connection depends on your
75
+ collection step (rather than the other way around as it was previously) -
76
+ this should simplify implementation.
77
+ - Custom steps that are used with `connection()` are now just assumed to be
78
+ simple lists unless they indicate otherwise using `paginationSupport` (see
79
+ the `connection()` docs) - this means you can use any (list-returning) step
80
+ with `connection()`! 🎉
81
+ - `PgPageInfoStep` is no more. Various other steps have been rearranged and
82
+ had (mostly internal, or at least extremely rarely used) methods renamed,
83
+ replaced or removed. (E.g. `PgSelectSingleStep` no longer has `.node()` or
84
+ `.cursor()` methods since it is no longer implicitly an "edge step".)
85
+ - `@stream` has been optimized somewhat, no longer requiring multiple
86
+ independent streams from the database as required previously (and as would
87
+ be required by GraphQL.js under the same circumstances)
88
+
89
+ - [#2687](https://github.com/graphile/crystal/pull/2687)
90
+ [`7766c19`](https://github.com/graphile/crystal/commit/7766c19ecefd3aebc965306db90ba29b3b05200c)
91
+ Thanks [@benjie](https://github.com/benjie)! - Fix issue whereby
92
+ nodeId:insert/nodeId:update permissions were not rejected by PgRBACPlugin when
93
+ the underlying columns were not writable.
94
+
95
+ - [#2678](https://github.com/graphile/crystal/pull/2678)
96
+ [`6dafac1`](https://github.com/graphile/crystal/commit/6dafac162955291e5147c21e57734b44e30acb98)
97
+ Thanks [@benjie](https://github.com/benjie)! - Remove peer dependency
98
+ optionality in an attempt to satisfy pnpm's installation algorithms
99
+
100
+ - [#2692](https://github.com/graphile/crystal/pull/2692)
101
+ [`aa8fb3d`](https://github.com/graphile/crystal/commit/aa8fb3dbd23b0c3b6b8039922cb4ab7293b51844)
102
+ Thanks [@benjie](https://github.com/benjie)! - Forbid export of 'build', this
103
+ has required a slight degradation of the
104
+ makeAddPgTableConditionPlugin/addPgTableCondition signature for people using
105
+ the legacy signature - namely the entire build object is no longer available
106
+ in the callback that is the fourth argument. (Only have 3 arguments to your
107
+ call? You're not impacted!) In the unlikely event this causes you any issues,
108
+ your best bet is to move to the `apply()` approach (only use the 3 documented
109
+ arguments), but we can also potentially expand the parts of build that are
110
+ made available.
111
+
112
+ - [#2688](https://github.com/graphile/crystal/pull/2688)
113
+ [`e15f886`](https://github.com/graphile/crystal/commit/e15f886cae1041416b44b74b75426f8d43000dcf)
114
+ Thanks [@benjie](https://github.com/benjie)! - Fixes bug where two different
115
+ plugins with the same name would be allowed to exist in the same (resolved)
116
+ preset. Users of dynamically created presets and plugins (e.g.
117
+ `makeV4Preset(...)` in PostGraphile) should be wary not to include two calls
118
+ to the same factory in their preset (directly or indirectly).
119
+
120
+ - [#2659](https://github.com/graphile/crystal/pull/2659)
121
+ [`185d449`](https://github.com/graphile/crystal/commit/185d449ed30d29c9134cc898b50a1473ab2910a2)
122
+ Thanks [@benjie](https://github.com/benjie)! - 🚨 `loadOne` and `loadMany` no
123
+ longer accept 2-4 arguments; instead exactly two arguments are accepted.
124
+ **There is a codeshift available** in the repository
125
+ (`shifts/loadArguments.ts`) that you can execute with `jscodeshift` (see
126
+ comment at top of file) to do this rewrite for you across your codebase. Be
127
+ sure to check the results carefully!
128
+
129
+ The first argument is unchanged, the second argument is either the loader
130
+ callback (as before) or a "loader object":
131
+ - `shared` (optional) - replaces the `unary` argument, and works as before
132
+ except you may now also use a thunk! (See below)
133
+ - `ioEquivalence` (optional) - as before
134
+ - `load` (required) - the loader callback
135
+ - `name` (optional) - display name for the callback (will appear in plan
136
+ diagrams)
137
+ - `paginationSupport` (optional) - only relevant to loadMany, add this to
138
+ indicate which optimizations your loader callback supports (see the
139
+ documentation) - for example, does it support applying a `limit`?
140
+
141
+ **The motivation for the "loader object"** is that every step that calls a
142
+ given load function should have the same `ioEquivalence`, `shared`, `name` and
143
+ `paginationSupport` - so rather than defining them in each of your plan
144
+ resolvers, we should **associate the metadata with the callback directly**.
145
+
146
+ To make this practical, `shared` (previously: `unary`) can now be a callback
147
+ so that you can create steps to provide any shared details, e.g. database or
148
+ API clients from `context()`.
149
+
150
+ Ultimately the aim is to move this boilerplate out of your plan resolvers and
151
+ instead to co-locate it with your data loading callbacks:
152
+
153
+ ```diff
154
+ function User_friends($user, { $first }) {
155
+ const $userId = get($user, "id");
156
+ - const $apiClient = context().get("apiClient");
157
+ - const $collection = loadMany(
158
+ - $userId,
159
+ - null, // ioEquivalence
160
+ - $apiClient, // shared (previously 'unary')
161
+ - batchGetFriendsByUserId // load callback
162
+ - );
163
+ + const $collection = loadMany($userId, batchGetFriendIdsByUserId);
164
+ $collection.setParam("limit", $first);
165
+ return $collection;
166
+ }
167
+
168
+ const batchGetFriendsByUserId =
169
+ + {
170
+ + shared: () => context().get("apiClient"),
171
+ + load:
172
+ (userIds, info) => {
173
+ - const apiClient = info.unary;
174
+ + const apiClient = info.shared;
175
+ /* ... */
176
+ }
177
+ + }
178
+ ```
179
+
180
+ - [#2657](https://github.com/graphile/crystal/pull/2657)
181
+ [`f83b191`](https://github.com/graphile/crystal/commit/f83b191f39c9d521fd12563cca6aa20d1a6f0494)
182
+ Thanks [@dependabot](https://github.com/apps/dependabot)! - Add support for
183
+ Koa v3 (via v2 code) and update package exports.
184
+
185
+ - Updated dependencies
186
+ [[`5dbb9e8`](https://github.com/graphile/crystal/commit/5dbb9e87850ce8de29ab4fec18c9d06333b642de),
187
+ [`cfd4c3c`](https://github.com/graphile/crystal/commit/cfd4c3cff0ef40ed87a2c700b7719c1ca0e73588),
188
+ [`c3f9c38`](https://github.com/graphile/crystal/commit/c3f9c38cb00ad4553e4bc3c04e16a7c77bd16142),
189
+ [`68a1243`](https://github.com/graphile/crystal/commit/68a1243f104227ebf7d1f3cedcbec49dc3c8e258),
190
+ [`3d5c464`](https://github.com/graphile/crystal/commit/3d5c4641df66b431066efd6c74b67ca0d38ba7f4),
191
+ [`208364f`](https://github.com/graphile/crystal/commit/208364f9423abd240a0772b661986aae6e185c47),
192
+ [`6762c70`](https://github.com/graphile/crystal/commit/6762c7005c56d17c06cebb6857e8d295d86399eb),
193
+ [`05b971e`](https://github.com/graphile/crystal/commit/05b971e2d63cb5c946512bb83e6c255a7d9ec93f),
194
+ [`13513dd`](https://github.com/graphile/crystal/commit/13513ddaea15ad9498a77de7c4e92679498f99ca),
195
+ [`bc2b188`](https://github.com/graphile/crystal/commit/bc2b188a50e00f153dc68df6955399c5917130bd),
196
+ [`5bea9c1`](https://github.com/graphile/crystal/commit/5bea9c14b7b20609eec1593fe3109f8d6c170b44),
197
+ [`87a4c92`](https://github.com/graphile/crystal/commit/87a4c92dc89093a8bd601dcd692910eadf0c4cd3),
198
+ [`703d162`](https://github.com/graphile/crystal/commit/703d162df2cc148ac343c1339b8e7df750aa781d),
199
+ [`c13813e`](https://github.com/graphile/crystal/commit/c13813eecb42c0d9a6703540c022e318e18c5751),
200
+ [`4a9072b`](https://github.com/graphile/crystal/commit/4a9072bfa3d3e86c6013caf2b89a31e87f2bb421),
201
+ [`7766c19`](https://github.com/graphile/crystal/commit/7766c19ecefd3aebc965306db90ba29b3b05200c),
202
+ [`6dafac1`](https://github.com/graphile/crystal/commit/6dafac162955291e5147c21e57734b44e30acb98),
203
+ [`aa8fb3d`](https://github.com/graphile/crystal/commit/aa8fb3dbd23b0c3b6b8039922cb4ab7293b51844),
204
+ [`e15f886`](https://github.com/graphile/crystal/commit/e15f886cae1041416b44b74b75426f8d43000dcf),
205
+ [`34efed0`](https://github.com/graphile/crystal/commit/34efed09892d4b6533f40026de4a6b0a8a35035d),
206
+ [`185d449`](https://github.com/graphile/crystal/commit/185d449ed30d29c9134cc898b50a1473ab2910a2),
207
+ [`e2048e2`](https://github.com/graphile/crystal/commit/e2048e260bf99ed946f92d6ea579e08f126ba4d5),
208
+ [`33c7784`](https://github.com/graphile/crystal/commit/33c7784a8c81ac29c1e2e4a8733d04c30ef7035b),
209
+ [`f83b191`](https://github.com/graphile/crystal/commit/f83b191f39c9d521fd12563cca6aa20d1a6f0494)]:
210
+ - graphile-build-pg@5.0.0-beta.45
211
+ - @dataplan/pg@0.0.1-beta.37
212
+ - graphile-config@0.0.1-beta.18
213
+ - grafast@0.1.1-beta.26
214
+ - graphile-build@5.0.0-beta.38
215
+ - graphile-utils@5.0.0-beta.44
216
+ - tamedevil@0.0.0-beta.9
217
+ - grafserv@0.1.1-beta.28
218
+
3
219
  ## 5.0.0-beta.46
4
220
 
5
221
  ### 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":[],"mappings":";;;AAAA,yCAA2C;AAE3C,qCAA6D;AAC7D,mDAA+D;AAElD,QAAA,6BAA6B,GAAG,IAAA,6BAAY,EAAC,CAAC,KAAK,EAAE,EAAE;IAClE,MAAM,EACJ,OAAO,EAAE,EAAE,GAAG,EAAE,GACjB,GAAG,KAAK,CAAC;IACV,MAAM,uBAAuB,GAAG,KAAK,CAAC,0BAA0B,EAAE,EAAE,CAAC;IACrE,OAAO;QACL,QAAQ,EAAE;YACR,IAAA,oBAAG,EAAA;;;;;;;;OAQF;YACD,IAAG,wCAAwC;YAC3C,CAAC,uBAAuB;gBACtB,CAAC,CAAC;oBACE,IAAA,oBAAG,EAAA;;;;;aAKF;iBACF;gBACH,CAAC,CAAC,EAAE,CAAC;SACR;QACD,OAAO,EAAE;YACP,YAAY,EAAE;gBACZ,KAAK,EAAE;oBACL,MAAM,EAAE;wBACN,aAAa,EAAE,IAAA,2BAAU,EACvB,CAAC,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,CACrC,SAAS,aAAa,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE;4BACvC,MAAM,aAAa,GAAG,OAAO,EAAE,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;4BACpD,MAAM,aAAa,GAAG,MAAM,CAC1B,MAAM,EACN,CAAC,KAAK,EAAE,EAAE,CA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C,GAAsB;IAC7C,IAAI,CAAC,GAAG;QAAE,OAAO,IAAI,CAAC;IACtB,OAAO,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;AACrE,CAAC,EACH,EAAE,EACF,iBAAiB,CAClB,CAAC;AAEF,yJAAyJ;AACzJ,MAAM,eAAe,GAAG,IAAA,2BAAU,EAChC,CAAC,GAAG,EAAE,MAAM,EAAE,eAAe,EAAE,EAAE,CAC/B,SAAS,eAAe,CAAC,MAAkC;IACzD,MAAM,QAAQ,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.48";
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.48";
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.48",
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",
@@ -217,77 +222,44 @@
217
222
  },
218
223
  "homepage": "https://graphile.org/graphile-engine/",
219
224
  "dependencies": {
220
- "@dataplan/json": "0.0.1-beta.33",
221
- "@dataplan/pg": "0.0.1-beta.36",
225
+ "@dataplan/json": "^0.0.1-beta.33",
226
+ "@dataplan/pg": "^0.0.1-beta.38",
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.46",
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
- "@dataplan/json": "0.0.1-beta.33",
243
- "@dataplan/pg": "0.0.1-beta.36",
247
+ "@dataplan/json": "^0.0.1-beta.33",
248
+ "@dataplan/pg": "^0.0.1-beta.38",
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.46",
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");