postgraphile 5.0.0-beta.40 → 5.0.0-beta.42
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 +238 -0
- package/README.md +0 -4
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +1 -0
- package/dist/cli.js.map +1 -1
- package/dist/plugins/PgV4SimpleSubscriptionsPlugin.d.ts.map +1 -1
- package/dist/plugins/PgV4SimpleSubscriptionsPlugin.js +32 -27
- package/dist/plugins/PgV4SimpleSubscriptionsPlugin.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/fwd/grafserv/hono/v4/index.d.ts +1 -0
- package/fwd/grafserv/hono/v4/index.js +1 -0
- package/fwd/grafserv/ruru/bundle/index.d.ts +1 -0
- package/fwd/grafserv/ruru/bundle/index.js +1 -0
- package/fwd/grafserv/whatwg-node__server/v4/index.d.ts +1 -0
- package/fwd/grafserv/whatwg-node__server/v4/index.js +1 -0
- package/package.json +41 -26
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,243 @@
|
|
|
1
1
|
# postgraphile
|
|
2
2
|
|
|
3
|
+
## 5.0.0-beta.42
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#2575](https://github.com/graphile/crystal/pull/2575)
|
|
8
|
+
[`5c802ea6819361eed36b75f246ae0adb35b14669`](https://github.com/graphile/crystal/commit/5c802ea6819361eed36b75f246ae0adb35b14669)
|
|
9
|
+
Thanks [@benjie](https://github.com/benjie)! - Fixes a bug in relational
|
|
10
|
+
polymorphism where PostgreSQL functions returning polymorphic records were
|
|
11
|
+
causing planning errors.
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
[[`5c802ea6819361eed36b75f246ae0adb35b14669`](https://github.com/graphile/crystal/commit/5c802ea6819361eed36b75f246ae0adb35b14669)]:
|
|
14
|
+
- graphile-build-pg@5.0.0-beta.40
|
|
15
|
+
- graphile-utils@5.0.0-beta.40
|
|
16
|
+
- @dataplan/pg@0.0.1-beta.33
|
|
17
|
+
- graphile-build@5.0.0-beta.34
|
|
18
|
+
|
|
19
|
+
## 5.0.0-beta.41
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- [#2444](https://github.com/graphile/crystal/pull/2444)
|
|
24
|
+
[`192a27e08763ea26607344a2ea6c7f5c595cc2a3`](https://github.com/graphile/crystal/commit/192a27e08763ea26607344a2ea6c7f5c595cc2a3)
|
|
25
|
+
Thanks [@benjie](https://github.com/benjie)! - Upgrade to Mermaid 11, and
|
|
26
|
+
reduce verbosity of polymorphism in plan diagrams.
|
|
27
|
+
|
|
28
|
+
- [#2525](https://github.com/graphile/crystal/pull/2525)
|
|
29
|
+
[`09d95319be3e25e023dfbab9d1542dfe06f65355`](https://github.com/graphile/crystal/commit/09d95319be3e25e023dfbab9d1542dfe06f65355)
|
|
30
|
+
Thanks [@benjie](https://github.com/benjie)! - Plan computed column inputs
|
|
31
|
+
(particularly Node IDs) in the root layer plan, allowing for greater plan
|
|
32
|
+
deduplication and more efficient SQL generation.
|
|
33
|
+
|
|
34
|
+
- [#2478](https://github.com/graphile/crystal/pull/2478)
|
|
35
|
+
[`a830770e775a65ce1d09fa767f38e84f5c0e5139`](https://github.com/graphile/crystal/commit/a830770e775a65ce1d09fa767f38e84f5c0e5139)
|
|
36
|
+
Thanks [@benjie](https://github.com/benjie)! - Use new .addRef and .getRef
|
|
37
|
+
methods from grafast.
|
|
38
|
+
|
|
39
|
+
- [#2482](https://github.com/graphile/crystal/pull/2482)
|
|
40
|
+
[`459e1869a2ec58925b2bac5458af487c52a8ca37`](https://github.com/graphile/crystal/commit/459e1869a2ec58925b2bac5458af487c52a8ca37)
|
|
41
|
+
Thanks [@benjie](https://github.com/benjie)! - Minimum version of Node.js
|
|
42
|
+
bumped to Node 22 (the latest LTS).
|
|
43
|
+
|
|
44
|
+
- [#2521](https://github.com/graphile/crystal/pull/2521)
|
|
45
|
+
[`c43ed67b9d3acbadb172ee88ba9c2a4d32528a25`](https://github.com/graphile/crystal/commit/c43ed67b9d3acbadb172ee88ba9c2a4d32528a25)
|
|
46
|
+
Thanks [@benjie](https://github.com/benjie)! - Fix bug in nullable nodeID
|
|
47
|
+
handling for computed column arguments with the Relay preset that was causing
|
|
48
|
+
the entire select to be inhibited on null/undefined.
|
|
49
|
+
|
|
50
|
+
- [#2527](https://github.com/graphile/crystal/pull/2527)
|
|
51
|
+
[`576fb8bad56cb940ab444574d752e914d462018a`](https://github.com/graphile/crystal/commit/576fb8bad56cb940ab444574d752e914d462018a)
|
|
52
|
+
Thanks [@{](https://github.com/{)! - In order to make the libraries more type
|
|
53
|
+
safe, `makeGrafastSchema` (from `grafast`) and `makeExtendSchemaPlugin` (from
|
|
54
|
+
`postgraphile/utils`) have deprecated the `typeDefs`/`plans` pattern since
|
|
55
|
+
`plans` (like `resolvers` in the traditional format) ended up being a
|
|
56
|
+
mish-mash of lots of different types and `__`-prefixed fields for special
|
|
57
|
+
cases.
|
|
58
|
+
|
|
59
|
+
Instead the configuration should be split into `typeDefs` with `objects`,
|
|
60
|
+
`interfaces`, `unions`, `inputObjects`, `scalars` and `enums`; and object and
|
|
61
|
+
input object fields should be specified via the `plans` entry within the type
|
|
62
|
+
to avoid conflicts with `resolveType`/`isTypeOf`/`planType`/`scope` and
|
|
63
|
+
similar type-level (rather than field-level) properties. Similarly, enum
|
|
64
|
+
values should be added under a `values` property. This also means these
|
|
65
|
+
type-level fields no longer have the `__` prefix.
|
|
66
|
+
|
|
67
|
+
Migration is quite straightforward:
|
|
68
|
+
|
|
69
|
+
1. **Add new top-level properties**. Add `objects`, `interfaces`, `unions`,
|
|
70
|
+
`inputObjects`, `scalars`, and `enums` as top level properties alongside
|
|
71
|
+
`typeDefs` and `plans`. Each should be an empty object. You can skip any
|
|
72
|
+
where you're not defining types of that kind.
|
|
73
|
+
1. **Split definitions based on type kind**. For each type defined in `plans`
|
|
74
|
+
move it into the appropriate new property based on the keyword used to
|
|
75
|
+
define the type in the `typeDefs` (`type` → `objects`, `interface`
|
|
76
|
+
→ `interfaces`, `union` → `unions`, `input object` →
|
|
77
|
+
`inputObjects`, `scalar` → `scalars`, `enum` → `enums`).
|
|
78
|
+
1. **Move field plans into nested `plans: {...}` object**. For each type
|
|
79
|
+
defined in the new `objects` and `inputObjects` maps: create a
|
|
80
|
+
`plans: { ... }` entry inside the type and move all fields (anything not
|
|
81
|
+
prefixed with `__`) inside this new (nested) property.
|
|
82
|
+
1. **Move enum values into nested `values: {...}` object**. For each type
|
|
83
|
+
defined in the new `enums` map: create a `values: { ... }` entry inside the
|
|
84
|
+
type and move all values (anything not prefixed with `__`) inside this new
|
|
85
|
+
(nested) property.
|
|
86
|
+
1. **Remove `__` prefixes**. For each type across
|
|
87
|
+
`objects`/`interfaces`/`unions`/`interfaceObjects`/`scalars` and `enums`:
|
|
88
|
+
remove the `__` prefix from any methods/properties.
|
|
89
|
+
|
|
90
|
+
Example:
|
|
91
|
+
|
|
92
|
+
```diff
|
|
93
|
+
typeDefs: ...,
|
|
94
|
+
-plans: {
|
|
95
|
+
+objects: {
|
|
96
|
+
|
|
97
|
+
- __isTypeOf(v) {
|
|
98
|
+
+ isTypeOf(v) {
|
|
99
|
+
return v.username != null;
|
|
100
|
+
},
|
|
101
|
+
+ plans: {
|
|
102
|
+
fieldName($source, fieldArgs) {
|
|
103
|
+
// ...
|
|
104
|
+
},
|
|
105
|
+
+ },
|
|
106
|
+
},
|
|
107
|
+
+},
|
|
108
|
+
+interfaces: {,
|
|
109
|
+
MyInterface: {
|
|
110
|
+
- __resolveType($specifier) {
|
|
111
|
+
+ resolveType($specifier) {
|
|
112
|
+
// ...
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
+},
|
|
116
|
+
+enums: {
|
|
117
|
+
MyEnum: {
|
|
118
|
+
+ values: {
|
|
119
|
+
ONE: {value: 1},
|
|
120
|
+
TWO: {value: 2},
|
|
121
|
+
THREE: {value: 3},
|
|
122
|
+
+ }
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
Other changes:
|
|
128
|
+
|
|
129
|
+
- `ObjectPlans`/`GrafastPlans`/`FieldPlans`/`InputObjectPlans`/`ScalarPlans`
|
|
130
|
+
all changed to signular
|
|
131
|
+
- `InterfaceOrUnionPlans` split to `InterfacePlan`/`UnionPlan` (identical
|
|
132
|
+
currently)
|
|
133
|
+
- Shape of `ObjectPlan`/`InterfacePlan`/`UnionPlan` has changed;
|
|
134
|
+
`DeprecatedObjectPlan`/etc exist for backcompat
|
|
135
|
+
- `FieldArgs` can now accept an input shape indicating the args and their
|
|
136
|
+
types
|
|
137
|
+
- `FieldPlanResolver<TArgs, TParentStep, TResultStep>` has switched the order
|
|
138
|
+
of the first two generic parameters:
|
|
139
|
+
`FieldPlanResolver<TParentStep, TArgs, TResultStep>` - this is to reflect
|
|
140
|
+
the order of the arguments to the function. Also null has been removed from
|
|
141
|
+
the generics.
|
|
142
|
+
- Various generics (including `GrafastFieldConfig`) that used to take a
|
|
143
|
+
GraphQL type instance as a generic parameter no longer do - you need to use
|
|
144
|
+
external code generation because TypeScript cannot handle the dynamic
|
|
145
|
+
creation.
|
|
146
|
+
- `GrafastFieldConfig` last two generics swapped order.
|
|
147
|
+
- `GrafastArgumentConfig` generics completely changed
|
|
148
|
+
|
|
149
|
+
- [#2548](https://github.com/graphile/crystal/pull/2548)
|
|
150
|
+
[`45adaff886e7cd72b864150927be6c0cb4a7dfe8`](https://github.com/graphile/crystal/commit/45adaff886e7cd72b864150927be6c0cb4a7dfe8)
|
|
151
|
+
Thanks [@benjie](https://github.com/benjie)! - 🚨 Complete overhaul of
|
|
152
|
+
polymorphism:
|
|
153
|
+
|
|
154
|
+
- Centralized the responsibility of polymorphic resolution from field plan
|
|
155
|
+
resolvers into abstract types.
|
|
156
|
+
- Eliminated the concept of "polymorphic capable" steps: any step may now be
|
|
157
|
+
used for polymorphism.
|
|
158
|
+
- Steps such as `polymorphicBranch`, `pgPolymorphism`, and other polymorphism
|
|
159
|
+
related steps no longer exist as they are no longer supported in this new
|
|
160
|
+
paradigm.
|
|
161
|
+
- Abstract types gain a `planType` method: passed a `$specifier` step from the
|
|
162
|
+
field plan resolver, and returns an `AbstractTypePlanner` object which
|
|
163
|
+
returns a `$__typename` step indicating the concrete object type name for
|
|
164
|
+
this `$specifier` along with an (optional) `planForType(objectType)` method
|
|
165
|
+
to plan how to turn the `$specifier` into a step suitable for usage by the
|
|
166
|
+
given object type (assuming the `$__typename` matches).
|
|
167
|
+
- No more exponential branching: we now merge the previous polymorphic branch
|
|
168
|
+
into a single `$specifier` step before planning the next level of
|
|
169
|
+
polymorphism.
|
|
170
|
+
|
|
171
|
+
PostGraphile Postgres-level polymorphism users are unaffected (all changes
|
|
172
|
+
have been done for you); SQL queries are now slightly smaller, and in general
|
|
173
|
+
there may be fewer requests to the DB.
|
|
174
|
+
|
|
175
|
+
If you've written your own plan resolvers by hand, first: thanks for being
|
|
176
|
+
brave! Second, sorry... You're going to have to rewrite them. Hopefully the
|
|
177
|
+
result will be a net reduction in complexity though — you can move
|
|
178
|
+
repetative polymorphism handling code from the field plan resolvers themselves
|
|
179
|
+
to the new `planType` method on the abstract type. It's hard to explain all
|
|
180
|
+
the possible ways of re-writing these plans, so read the docs about the new
|
|
181
|
+
pattern first and, if you still need help, please do reach out
|
|
182
|
+
[on Discord](https://discord.gg/graphile)!
|
|
183
|
+
|
|
184
|
+
This is the last breaking change to hand written plan resolvers that we expect
|
|
185
|
+
to make before the v1.0 release (other than some improvements around
|
|
186
|
+
TypeScript types) and marks the completion of the fourth and final epic that
|
|
187
|
+
was outlined in the first Grafast Working Group. With this change, we're much
|
|
188
|
+
closer to moving to release candidate status!
|
|
189
|
+
|
|
190
|
+
- [#2523](https://github.com/graphile/crystal/pull/2523)
|
|
191
|
+
[`b05d57b932ea00d10715dcab9f79d443408881fc`](https://github.com/graphile/crystal/commit/b05d57b932ea00d10715dcab9f79d443408881fc)
|
|
192
|
+
Thanks [@Dacjan](https://github.com/Dacjan)! - Fix bug with `@ref ... plural`
|
|
193
|
+
smart tag where multiple `@refVia` are present but the target type is not
|
|
194
|
+
abstract.
|
|
195
|
+
- Updated dependencies
|
|
196
|
+
[[`0e36cb9077c76710d2e407830323f86c5038126e`](https://github.com/graphile/crystal/commit/0e36cb9077c76710d2e407830323f86c5038126e),
|
|
197
|
+
[`5a26196eff8fd1956d73e0b8fdf5cfcb7f01b7d3`](https://github.com/graphile/crystal/commit/5a26196eff8fd1956d73e0b8fdf5cfcb7f01b7d3),
|
|
198
|
+
[`c0c3f48fa9f60cb9a4436ea135979b779ecc71ec`](https://github.com/graphile/crystal/commit/c0c3f48fa9f60cb9a4436ea135979b779ecc71ec),
|
|
199
|
+
[`cef9a37f846b4af105ac20960530d65c9f44afa9`](https://github.com/graphile/crystal/commit/cef9a37f846b4af105ac20960530d65c9f44afa9),
|
|
200
|
+
[`56ce94a847c6a4094643665cbf5d3712f56140b6`](https://github.com/graphile/crystal/commit/56ce94a847c6a4094643665cbf5d3712f56140b6),
|
|
201
|
+
[`070467c4ea693a2516fc8006bebb88b1ab96fb26`](https://github.com/graphile/crystal/commit/070467c4ea693a2516fc8006bebb88b1ab96fb26),
|
|
202
|
+
[`192a27e08763ea26607344a2ea6c7f5c595cc2a3`](https://github.com/graphile/crystal/commit/192a27e08763ea26607344a2ea6c7f5c595cc2a3),
|
|
203
|
+
[`142e39f26ce329f09bee0b5427f1ddc5103e610e`](https://github.com/graphile/crystal/commit/142e39f26ce329f09bee0b5427f1ddc5103e610e),
|
|
204
|
+
[`6ef6abce15936a896156d5316020df55cf7d18e3`](https://github.com/graphile/crystal/commit/6ef6abce15936a896156d5316020df55cf7d18e3),
|
|
205
|
+
[`17b160d5450e20e0f5c6597d5cffe125ece49d65`](https://github.com/graphile/crystal/commit/17b160d5450e20e0f5c6597d5cffe125ece49d65),
|
|
206
|
+
[`0239c2d519300a72f545e0db7c371adae4ade2a9`](https://github.com/graphile/crystal/commit/0239c2d519300a72f545e0db7c371adae4ade2a9),
|
|
207
|
+
[`09d95319be3e25e023dfbab9d1542dfe06f65355`](https://github.com/graphile/crystal/commit/09d95319be3e25e023dfbab9d1542dfe06f65355),
|
|
208
|
+
[`873b24dc70cea68e236e5dcf5bc7ff8f46fa43fe`](https://github.com/graphile/crystal/commit/873b24dc70cea68e236e5dcf5bc7ff8f46fa43fe),
|
|
209
|
+
[`eb771be5e8b06a0cd53476cb36495e7e1aca56b7`](https://github.com/graphile/crystal/commit/eb771be5e8b06a0cd53476cb36495e7e1aca56b7),
|
|
210
|
+
[`0ea439d33ccef7f8d01ac5f54893ab2bbf1cbd4d`](https://github.com/graphile/crystal/commit/0ea439d33ccef7f8d01ac5f54893ab2bbf1cbd4d),
|
|
211
|
+
[`8034614d1078b1bd177b6e7fcc949420614e3245`](https://github.com/graphile/crystal/commit/8034614d1078b1bd177b6e7fcc949420614e3245),
|
|
212
|
+
[`a830770e775a65ce1d09fa767f38e84f5c0e5139`](https://github.com/graphile/crystal/commit/a830770e775a65ce1d09fa767f38e84f5c0e5139),
|
|
213
|
+
[`459e1869a2ec58925b2bac5458af487c52a8ca37`](https://github.com/graphile/crystal/commit/459e1869a2ec58925b2bac5458af487c52a8ca37),
|
|
214
|
+
[`c350e49e372ec12a4cbf04fb6b4260e01832d12b`](https://github.com/graphile/crystal/commit/c350e49e372ec12a4cbf04fb6b4260e01832d12b),
|
|
215
|
+
[`3176ea3e57d626b39613a73117ef97627370ec83`](https://github.com/graphile/crystal/commit/3176ea3e57d626b39613a73117ef97627370ec83),
|
|
216
|
+
[`46a42f5547c041289aa98657ebc6815f4b6c8539`](https://github.com/graphile/crystal/commit/46a42f5547c041289aa98657ebc6815f4b6c8539),
|
|
217
|
+
[`a87bbd76f1a8b60fd86de65922746d830cc160b4`](https://github.com/graphile/crystal/commit/a87bbd76f1a8b60fd86de65922746d830cc160b4),
|
|
218
|
+
[`be3f174c5aae8fe78a240e1bc4e1de7f18644b43`](https://github.com/graphile/crystal/commit/be3f174c5aae8fe78a240e1bc4e1de7f18644b43),
|
|
219
|
+
[`c43ed67b9d3acbadb172ee88ba9c2a4d32528a25`](https://github.com/graphile/crystal/commit/c43ed67b9d3acbadb172ee88ba9c2a4d32528a25),
|
|
220
|
+
[`576fb8bad56cb940ab444574d752e914d462018a`](https://github.com/graphile/crystal/commit/576fb8bad56cb940ab444574d752e914d462018a),
|
|
221
|
+
[`9f459101fa4428aa4bac71531e75f99e33da8e17`](https://github.com/graphile/crystal/commit/9f459101fa4428aa4bac71531e75f99e33da8e17),
|
|
222
|
+
[`921665df8babe2651ab3b5886ab68bb518f2125b`](https://github.com/graphile/crystal/commit/921665df8babe2651ab3b5886ab68bb518f2125b),
|
|
223
|
+
[`78bb1a615754d772a5fda000e96073c91fa9eba7`](https://github.com/graphile/crystal/commit/78bb1a615754d772a5fda000e96073c91fa9eba7),
|
|
224
|
+
[`c9cd0cc72a4db4b02b2bdf770161c9346cb4b174`](https://github.com/graphile/crystal/commit/c9cd0cc72a4db4b02b2bdf770161c9346cb4b174),
|
|
225
|
+
[`ab0bcda5fc3c136eea09493a7d9ed4542975858e`](https://github.com/graphile/crystal/commit/ab0bcda5fc3c136eea09493a7d9ed4542975858e),
|
|
226
|
+
[`455f4811d37ad8fff91183c7a88621bcf9d79acf`](https://github.com/graphile/crystal/commit/455f4811d37ad8fff91183c7a88621bcf9d79acf),
|
|
227
|
+
[`45adaff886e7cd72b864150927be6c0cb4a7dfe8`](https://github.com/graphile/crystal/commit/45adaff886e7cd72b864150927be6c0cb4a7dfe8),
|
|
228
|
+
[`b05d57b932ea00d10715dcab9f79d443408881fc`](https://github.com/graphile/crystal/commit/b05d57b932ea00d10715dcab9f79d443408881fc)]:
|
|
229
|
+
- grafast@0.1.1-beta.22
|
|
230
|
+
- pg-sql2@5.0.0-beta.9
|
|
231
|
+
- @dataplan/pg@0.0.1-beta.33
|
|
232
|
+
- grafserv@0.1.1-beta.25
|
|
233
|
+
- graphile-build-pg@5.0.0-beta.39
|
|
234
|
+
- @dataplan/json@0.0.1-beta.31
|
|
235
|
+
- graphile-build@5.0.0-beta.34
|
|
236
|
+
- graphile-utils@5.0.0-beta.39
|
|
237
|
+
- graphile-config@0.0.1-beta.16
|
|
238
|
+
- @graphile/lru@5.0.0-beta.4
|
|
239
|
+
- tamedevil@0.0.0-beta.8
|
|
240
|
+
|
|
3
241
|
## 5.0.0-beta.40
|
|
4
242
|
|
|
5
243
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -32,11 +32,7 @@ And please give some love to our featured sponsors 🤩:
|
|
|
32
32
|
|
|
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
|
-
<td align="center"><a href="https://dovetailapp.com/"><img src="https://graphile.org/images/sponsors/dovetail.png" width="90" height="90" alt="Dovetail" /><br />Dovetail</a> *</td>
|
|
36
|
-
<td align="center"><a href="https://stellate.co/"><img src="https://graphile.org/images/sponsors/Stellate.png" width="90" height="90" alt="Stellate" /><br />Stellate</a> *</td>
|
|
37
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>
|
|
38
|
-
</tr><tr>
|
|
39
|
-
<td align="center"><a href=""><img src="https://graphile.org/images/sponsors/latchbio.jpg" width="90" height="90" alt="LatchBio" /><br />LatchBio</a> *</td>
|
|
40
36
|
</tr></table>
|
|
41
37
|
|
|
42
38
|
<em>\* Sponsors the entire Graphile suite</em>
|
package/dist/cli.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,eAAe,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAQjE,wBAAgB,OAAO,CAAC,KAAK,EAAE,IAAI;;;;;;;;;;;;;;;;;;;;GAiElC;
|
|
1
|
+
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,eAAe,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAQjE,wBAAgB,OAAO,CAAC,KAAK,EAAE,IAAI;;;;;;;;;;;;;;;;;;;;GAiElC;AAqED,wBAAsB,GAAG,CAAC,IAAI,EAAE,eAAe,CAAC,OAAO,OAAO,CAAC,iBA0J9D"}
|
package/dist/cli.js
CHANGED
|
@@ -98,6 +98,7 @@ async function loadPresets(presetSpecs) {
|
|
|
98
98
|
const exportName = colonIndex >= 0 ? spec.substring(colonIndex + 1) : null;
|
|
99
99
|
let mod;
|
|
100
100
|
try {
|
|
101
|
+
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
|
101
102
|
mod = require(moduleName);
|
|
102
103
|
}
|
|
103
104
|
catch (e) {
|
package/dist/cli.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";;AAeA,0BAiEC;
|
|
1
|
+
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";;AAeA,0BAiEC;AAqED,kBA0JC;AA/SD,yCAAyC;AACzC,uCAAyC;AACzC,yCAAoC;AAGpC,wCAAyC;AACzC,qDAAgD;AAEhD,+CAAkD;AAElD,yCAA0C;AAE1C,0DAA0D;AAC1D,MAAM,kBAAkB,GAAG,qCAAqC,CAAC;AAEjE,SAAgB,OAAO,CAAC,KAAW;IACjC,OAAO,KAAK;SACT,mBAAmB,CAAC;QACnB,yDAAyD;QACzD,2BAA2B,EAAE,KAAK;KACnC,CAAC;SACD,KAAK,CAAC,IAAI,EAAE,gCAAgC,CAAC;SAC7C,OAAO,CACN,kFAAkF,E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6B,
|
|
1
|
+
{"version":3,"file":"PgV4SimpleSubscriptionsPlugin.d.ts","sourceRoot":"","sources":["../../src/plugins/PgV4SimpleSubscriptionsPlugin.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,6BAA6B,uBAoFP,CAAC"}
|
|
@@ -5,6 +5,7 @@ const json_1 = require("@dataplan/json");
|
|
|
5
5
|
const grafast_1 = require("grafast");
|
|
6
6
|
const graphile_utils_1 = require("graphile-utils");
|
|
7
7
|
exports.PgV4SimpleSubscriptionsPlugin = (0, graphile_utils_1.makeExtendSchemaPlugin)((build) => {
|
|
8
|
+
const { grafast: { get }, } = build;
|
|
8
9
|
const nodeIdHandlerByTypeName = build.getNodeIdHandlerByTypeName?.();
|
|
9
10
|
return {
|
|
10
11
|
typeDefs: [
|
|
@@ -29,34 +30,38 @@ exports.PgV4SimpleSubscriptionsPlugin = (0, graphile_utils_1.makeExtendSchemaPlu
|
|
|
29
30
|
]
|
|
30
31
|
: []),
|
|
31
32
|
],
|
|
32
|
-
|
|
33
|
+
objects: {
|
|
33
34
|
Subscription: {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
35
|
+
plans: {
|
|
36
|
+
listen: {
|
|
37
|
+
subscribePlan: (0, graphile_utils_1.EXPORTABLE)((context, jsonParse, lambda, listen) => function subscribePlan(_$root, { $topic }) {
|
|
38
|
+
const $pgSubscriber = context().get("pgSubscriber");
|
|
39
|
+
const $derivedTopic = lambda($topic, (topic) => `postgraphile:${topic}`);
|
|
40
|
+
return listen($pgSubscriber, $derivedTopic, jsonParse);
|
|
41
|
+
}, [grafast_1.context, json_1.jsonParse, grafast_1.lambda, grafast_1.listen]),
|
|
42
|
+
plan: (0, graphile_utils_1.EXPORTABLE)(() => function plan($event) {
|
|
43
|
+
return $event;
|
|
44
|
+
}, []),
|
|
45
|
+
},
|
|
43
46
|
},
|
|
44
47
|
},
|
|
45
48
|
ListenPayload: {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
49
|
+
plans: {
|
|
50
|
+
event: (0, graphile_utils_1.EXPORTABLE)((get) => ($event) => {
|
|
51
|
+
return get($event, "event");
|
|
52
|
+
}, [get]),
|
|
53
|
+
...(nodeIdHandlerByTypeName
|
|
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]),
|
|
62
|
+
}
|
|
63
|
+
: null),
|
|
64
|
+
},
|
|
60
65
|
},
|
|
61
66
|
},
|
|
62
67
|
};
|
|
@@ -68,9 +73,9 @@ const nodeObjToNodeId = (0, graphile_utils_1.EXPORTABLE)(() => function nodeObjT
|
|
|
68
73
|
return Buffer.from(JSON.stringify(obj), "utf8").toString("base64");
|
|
69
74
|
}, [], "nodeObjToNodeId");
|
|
70
75
|
// WARNING: this function assumes that you're using the `base64JSON` NodeID codec, which was the case for PostGraphile V4. If you are not doing so, YMMV.
|
|
71
|
-
const nodeIdFromEvent = (0, graphile_utils_1.EXPORTABLE)((lambda, nodeObjToNodeId) => function nodeIdFromEvent($event) {
|
|
72
|
-
const $nodeObj = $event
|
|
76
|
+
const nodeIdFromEvent = (0, graphile_utils_1.EXPORTABLE)((get, lambda, nodeObjToNodeId) => function nodeIdFromEvent($event) {
|
|
77
|
+
const $nodeObj = get($event, "__node__");
|
|
73
78
|
const $nodeId = lambda($nodeObj, nodeObjToNodeId);
|
|
74
79
|
return $nodeId;
|
|
75
|
-
}, [grafast_1.lambda, nodeObjToNodeId], "nodeIdFromEvent");
|
|
80
|
+
}, [grafast_1.get, grafast_1.lambda, nodeObjToNodeId], "nodeIdFromEvent");
|
|
76
81
|
//# sourceMappingURL=PgV4SimpleSubscriptionsPlugin.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PgV4SimpleSubscriptionsPlugin.js","sourceRoot":"","sources":["../../src/plugins/PgV4SimpleSubscriptionsPlugin.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"PgV4SimpleSubscriptionsPlugin.js","sourceRoot":"","sources":["../../src/plugins/PgV4SimpleSubscriptionsPlugin.ts"],"names":[],"mappings":";;;AAAA,yCAA2C;AAE3C,qCAA6D;AAC7D,mDAAyE;AAE5D,QAAA,6BAA6B,GAAG,IAAA,uCAAsB,EAAC,CAAC,KAAK,EAAE,EAAE;IAC5E,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,EA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BAAuB,CAAC,CACjD;yBACF;wBACH,CAAC,CAAC,IAAI,CAAC;iBACV;aACuD;SAC3D;KACF,CAAC;AACJ,CAAC,EAAE,+BAA+B,CAAC,CAAC;AAEpC,wBAAwB;AACxB,MAAM,eAAe,GAAG,IAAA,2BAAU,EAChC,GAAG,EAAE,CACH,SAAS,eAAe,CAAC,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.
|
|
1
|
+
export declare const version = "5.0.0-beta.42";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/dist/version.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "grafserv/hono/v4";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require("grafserv/hono/v4");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "grafserv/ruru/bundle";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require("grafserv/ruru/bundle");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "grafserv/whatwg-node__server/v4";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require("grafserv/whatwg-node__server/v4");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "postgraphile",
|
|
3
|
-
"version": "5.0.0-beta.
|
|
3
|
+
"version": "5.0.0-beta.42",
|
|
4
4
|
"description": "Automatic, high performance, and highly customizable GraphQL API for PostgreSQL",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -120,6 +120,16 @@
|
|
|
120
120
|
"node": "./fwd/grafserv/h3/v1/index.js",
|
|
121
121
|
"default": "./fwd/grafserv/h3/v1/index.js"
|
|
122
122
|
},
|
|
123
|
+
"./grafserv/hono/v4": {
|
|
124
|
+
"types": "./fwd/grafserv/hono/v4/index.d.ts",
|
|
125
|
+
"node": "./fwd/grafserv/hono/v4/index.js",
|
|
126
|
+
"default": "./fwd/grafserv/hono/v4/index.js"
|
|
127
|
+
},
|
|
128
|
+
"./grafserv/whatwg-node__server/v4": {
|
|
129
|
+
"types": "./fwd/grafserv/whatwg-node__server/v4/index.d.ts",
|
|
130
|
+
"node": "./fwd/grafserv/whatwg-node__server/v4/index.js",
|
|
131
|
+
"default": "./fwd/grafserv/whatwg-node__server/v4/index.js"
|
|
132
|
+
},
|
|
123
133
|
"./grafserv/ruru": {
|
|
124
134
|
"types": "./fwd/grafserv/ruru/index.d.ts",
|
|
125
135
|
"node": "./fwd/grafserv/ruru/index.js",
|
|
@@ -135,6 +145,11 @@
|
|
|
135
145
|
"node": "./fwd/grafserv/ruru/cli/index.js",
|
|
136
146
|
"default": "./fwd/grafserv/ruru/cli/index.js"
|
|
137
147
|
},
|
|
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
|
+
},
|
|
138
153
|
"./graphile-build": {
|
|
139
154
|
"types": "./fwd/graphile-build/index.d.ts",
|
|
140
155
|
"node": "./fwd/graphile-build/index.js",
|
|
@@ -202,40 +217,40 @@
|
|
|
202
217
|
},
|
|
203
218
|
"homepage": "https://graphile.org/graphile-engine/",
|
|
204
219
|
"dependencies": {
|
|
205
|
-
"@dataplan/json": "0.0.1-beta.
|
|
206
|
-
"@dataplan/pg": "0.0.1-beta.
|
|
207
|
-
"@graphile/lru": "^5.0.0-beta.
|
|
208
|
-
"@types/node": "^20.
|
|
220
|
+
"@dataplan/json": "0.0.1-beta.31",
|
|
221
|
+
"@dataplan/pg": "0.0.1-beta.33",
|
|
222
|
+
"@graphile/lru": "^5.0.0-beta.4",
|
|
223
|
+
"@types/node": "^20.17.30",
|
|
209
224
|
"@types/pg": "^8.10.2",
|
|
210
225
|
"debug": "^4.3.4",
|
|
211
|
-
"grafast": "^0.1.1-beta.
|
|
212
|
-
"grafserv": "^0.1.1-beta.
|
|
213
|
-
"graphile-build": "5.0.0-beta.
|
|
214
|
-
"graphile-build-pg": "5.0.0-beta.
|
|
215
|
-
"graphile-config": "^0.0.1-beta.
|
|
216
|
-
"graphile-utils": "^5.0.0-beta.
|
|
226
|
+
"grafast": "^0.1.1-beta.22",
|
|
227
|
+
"grafserv": "^0.1.1-beta.25",
|
|
228
|
+
"graphile-build": "5.0.0-beta.34",
|
|
229
|
+
"graphile-build-pg": "5.0.0-beta.40",
|
|
230
|
+
"graphile-config": "^0.0.1-beta.16",
|
|
231
|
+
"graphile-utils": "^5.0.0-beta.40",
|
|
217
232
|
"graphql": "^16.1.0-experimental-stream-defer.6",
|
|
218
233
|
"iterall": "^1.3.0",
|
|
219
234
|
"jsonwebtoken": "^9.0.2",
|
|
220
235
|
"pg": "^8.13.3",
|
|
221
|
-
"pg-sql2": "^5.0.0-beta.
|
|
222
|
-
"tamedevil": "^0.0.0-beta.
|
|
223
|
-
"tslib": "^2.
|
|
236
|
+
"pg-sql2": "^5.0.0-beta.9",
|
|
237
|
+
"tamedevil": "^0.0.0-beta.8",
|
|
238
|
+
"tslib": "^2.8.1",
|
|
224
239
|
"ws": "^8.17.1"
|
|
225
240
|
},
|
|
226
241
|
"peerDependencies": {
|
|
227
|
-
"@dataplan/json": "0.0.1-beta.
|
|
228
|
-
"@dataplan/pg": "0.0.1-beta.
|
|
242
|
+
"@dataplan/json": "0.0.1-beta.31",
|
|
243
|
+
"@dataplan/pg": "0.0.1-beta.33",
|
|
229
244
|
"@envelop/core": "^5.0.0",
|
|
230
|
-
"grafast": "^0.1.1-beta.
|
|
231
|
-
"grafserv": "^0.1.1-beta.
|
|
232
|
-
"graphile-build": "5.0.0-beta.
|
|
233
|
-
"graphile-build-pg": "5.0.0-beta.
|
|
234
|
-
"graphile-config": "^0.0.1-beta.
|
|
245
|
+
"grafast": "^0.1.1-beta.22",
|
|
246
|
+
"grafserv": "^0.1.1-beta.25",
|
|
247
|
+
"graphile-build": "5.0.0-beta.34",
|
|
248
|
+
"graphile-build-pg": "5.0.0-beta.40",
|
|
249
|
+
"graphile-config": "^0.0.1-beta.16",
|
|
235
250
|
"graphql": "^16.1.0-experimental-stream-defer.6",
|
|
236
251
|
"pg": "^8.7.1",
|
|
237
|
-
"pg-sql2": "^5.0.0-beta.
|
|
238
|
-
"tamedevil": "^0.0.0-beta.
|
|
252
|
+
"pg-sql2": "^5.0.0-beta.9",
|
|
253
|
+
"tamedevil": "^0.0.0-beta.8"
|
|
239
254
|
},
|
|
240
255
|
"peerDependenciesMeta": {
|
|
241
256
|
"@envelop/core": {
|
|
@@ -256,11 +271,11 @@
|
|
|
256
271
|
"@types/jest": "^29.5.4",
|
|
257
272
|
"@types/jsonwebtoken": "^9.0.2",
|
|
258
273
|
"@types/nodemon": "1.19.2",
|
|
259
|
-
"graphile": "^5.0.0-beta.
|
|
260
|
-
"graphile-export": "^0.0.2-beta.
|
|
274
|
+
"graphile": "^5.0.0-beta.42",
|
|
275
|
+
"graphile-export": "^0.0.2-beta.28",
|
|
261
276
|
"jest": "^29.6.4",
|
|
262
277
|
"nodemon": "^3.0.1",
|
|
263
278
|
"ts-node": "^10.9.1",
|
|
264
|
-
"typescript": "^5.
|
|
279
|
+
"typescript": "^5.8.3"
|
|
265
280
|
}
|
|
266
281
|
}
|