grafserv 0.1.1-beta.2 → 0.1.1-beta.20
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 +354 -0
- package/README.md +3 -5
- package/dist/core/base.d.ts +14 -7
- package/dist/core/base.d.ts.map +1 -1
- package/dist/core/base.js +271 -38
- package/dist/core/base.js.map +1 -1
- package/dist/envelop/index.d.ts +19 -0
- package/dist/envelop/index.d.ts.map +1 -0
- package/dist/envelop/index.js +71 -0
- package/dist/envelop/index.js.map +1 -0
- package/dist/hooks.d.ts +6 -2
- package/dist/hooks.d.ts.map +1 -1
- package/dist/hooks.js +64 -10
- package/dist/hooks.js.map +1 -1
- package/dist/index.d.ts +118 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/interfaces.d.ts +38 -100
- package/dist/interfaces.d.ts.map +1 -1
- package/dist/interfaces.js.map +1 -1
- package/dist/middleware/graphiql.d.ts +3 -1
- package/dist/middleware/graphiql.d.ts.map +1 -1
- package/dist/middleware/graphiql.js +8 -5
- package/dist/middleware/graphiql.js.map +1 -1
- package/dist/middleware/graphql.d.ts +4 -4
- package/dist/middleware/graphql.d.ts.map +1 -1
- package/dist/middleware/graphql.js +43 -69
- package/dist/middleware/graphql.js.map +1 -1
- package/dist/options.d.ts +4 -2
- package/dist/options.d.ts.map +1 -1
- package/dist/options.js +7 -4
- package/dist/options.js.map +1 -1
- package/dist/servers/fastify/v4/index.d.ts.map +1 -1
- package/dist/servers/fastify/v4/index.js +33 -27
- package/dist/servers/fastify/v4/index.js.map +1 -1
- package/dist/servers/h3/v1/index.d.ts +2 -10
- package/dist/servers/h3/v1/index.d.ts.map +1 -1
- package/dist/servers/h3/v1/index.js +39 -41
- package/dist/servers/h3/v1/index.js.map +1 -1
- package/dist/servers/node/index.d.ts.map +1 -1
- package/dist/servers/node/index.js +3 -0
- package/dist/servers/node/index.js.map +1 -1
- package/dist/utils.d.ts +7 -2
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js +90 -98
- package/dist/utils.js.map +1 -1
- package/dist/version.d.ts +2 -0
- package/dist/version.d.ts.map +1 -0
- package/dist/version.js +6 -0
- package/dist/version.js.map +1 -0
- package/package.json +23 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,359 @@
|
|
|
1
1
|
# grafserv
|
|
2
2
|
|
|
3
|
+
## 0.1.1-beta.20
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
[[`7580bc16a`](https://github.com/graphile/crystal/commit/7580bc16a050fd8d916c6dabe9d1ded980090349),
|
|
9
|
+
[`b336a5829`](https://github.com/graphile/crystal/commit/b336a58291cfec7aef884d3843172d408abfaf3c)]:
|
|
10
|
+
- graphile-config@0.0.1-beta.13
|
|
11
|
+
- grafast@0.1.1-beta.18
|
|
12
|
+
- ruru@2.0.0-beta.18
|
|
13
|
+
|
|
14
|
+
## 0.1.1-beta.19
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- [#2252](https://github.com/graphile/crystal/pull/2252)
|
|
19
|
+
[`866673e14`](https://github.com/graphile/crystal/commit/866673e14f7ad76b6f6d83d1b4e3a4eff8fdba37)
|
|
20
|
+
Thanks [@benjie](https://github.com/benjie)! - Overhaul maskError types to
|
|
21
|
+
return GraphQLFormattedError.
|
|
22
|
+
|
|
23
|
+
- [#2240](https://github.com/graphile/crystal/pull/2240)
|
|
24
|
+
[`9a0f9e78c`](https://github.com/graphile/crystal/commit/9a0f9e78c4ee46f50f49bb068baddef7e1de4119)
|
|
25
|
+
Thanks [@benjie](https://github.com/benjie)! - Adopt new MiddlewareHandlers
|
|
26
|
+
type for simplicity, and in doing so fix type of middleware (for plugins) that
|
|
27
|
+
incorrectly unwrapped promise resulting in TypeScript incorrectly suggesting
|
|
28
|
+
that `await` was not necessary.
|
|
29
|
+
- Updated dependencies
|
|
30
|
+
[[`69ab227b5`](https://github.com/graphile/crystal/commit/69ab227b5e1c057a6fc8ebba87bde80d5aa7f3c8),
|
|
31
|
+
[`38163c86a`](https://github.com/graphile/crystal/commit/38163c86ae628fed84cf38fc6a1cc76a7bc7932a),
|
|
32
|
+
[`d13b76f0f`](https://github.com/graphile/crystal/commit/d13b76f0fef2a58466ecb44880af62d25910e83e),
|
|
33
|
+
[`b167bd849`](https://github.com/graphile/crystal/commit/b167bd8499be5866b71bac6594d55bd768fda1d0),
|
|
34
|
+
[`6a13ecbd4`](https://github.com/graphile/crystal/commit/6a13ecbd45534c39c846c1d8bc58242108426dd1)]:
|
|
35
|
+
- grafast@0.1.1-beta.17
|
|
36
|
+
- ruru@2.0.0-beta.17
|
|
37
|
+
- graphile-config@0.0.1-beta.12
|
|
38
|
+
|
|
39
|
+
## 0.1.1-beta.18
|
|
40
|
+
|
|
41
|
+
### Patch Changes
|
|
42
|
+
|
|
43
|
+
- [#2204](https://github.com/graphile/crystal/pull/2204)
|
|
44
|
+
[`bf2a2e72a`](https://github.com/graphile/crystal/commit/bf2a2e72ab78a01f5aba6cda97b5a125563b1f3d)
|
|
45
|
+
Thanks [@Dodobibi](https://github.com/Dodobibi)! - Overhaul websocket support
|
|
46
|
+
in nuxt/h3 server adaptor. Removes experimental methods since they are no
|
|
47
|
+
longer needed. Docs have been updated - please follow the docs. Any issues,
|
|
48
|
+
please let us know (or better: open a PR!)
|
|
49
|
+
- Updated dependencies
|
|
50
|
+
[[`5626c7d36`](https://github.com/graphile/crystal/commit/5626c7d3649285e11fe9857dfa319d2883d027eb),
|
|
51
|
+
[`76c7340b7`](https://github.com/graphile/crystal/commit/76c7340b74d257c454beec883384d19ef078b21e)]:
|
|
52
|
+
- graphile-config@0.0.1-beta.11
|
|
53
|
+
- grafast@0.1.1-beta.16
|
|
54
|
+
- ruru@2.0.0-beta.16
|
|
55
|
+
|
|
56
|
+
## 0.1.1-beta.17
|
|
57
|
+
|
|
58
|
+
### Patch Changes
|
|
59
|
+
|
|
60
|
+
- Updated dependencies
|
|
61
|
+
[[`d5834def1`](https://github.com/graphile/crystal/commit/d5834def1fb84f3e2c0c0a6f146f8249a6df890a),
|
|
62
|
+
[`42b982463`](https://github.com/graphile/crystal/commit/42b9824637a6c05e02935f2b05b5e8e0c61965a6),
|
|
63
|
+
[`884a4b429`](https://github.com/graphile/crystal/commit/884a4b4297af90fdadaf73addd524f1fbbcfdcce),
|
|
64
|
+
[`38835313a`](https://github.com/graphile/crystal/commit/38835313ad93445206dccdd4cf07b90c5a6e4377),
|
|
65
|
+
[`cc0941731`](https://github.com/graphile/crystal/commit/cc0941731a1679bc04ce7b7fd4254009bb5f1f62),
|
|
66
|
+
[`b0865d169`](https://github.com/graphile/crystal/commit/b0865d1691105b5419009954c98c8109a27a5d81),
|
|
67
|
+
[`8b472cd51`](https://github.com/graphile/crystal/commit/8b472cd51cd66d8227f9f2722d09c0a774792b0f),
|
|
68
|
+
[`9cd9bb522`](https://github.com/graphile/crystal/commit/9cd9bb5222a9f0398ee4b8bfa4f741b6de2a2192)]:
|
|
69
|
+
- grafast@0.1.1-beta.15
|
|
70
|
+
- graphile-config@0.0.1-beta.10
|
|
71
|
+
- ruru@2.0.0-beta.15
|
|
72
|
+
|
|
73
|
+
## 0.1.1-beta.16
|
|
74
|
+
|
|
75
|
+
### Patch Changes
|
|
76
|
+
|
|
77
|
+
- Updated dependencies
|
|
78
|
+
[[`871d32b2a`](https://github.com/graphile/crystal/commit/871d32b2a18df0d257880fc54a61d9e68c4607d6),
|
|
79
|
+
[`a26e3a30c`](https://github.com/graphile/crystal/commit/a26e3a30c02f963f8f5e9c9d021e871f33689e1b),
|
|
80
|
+
[`02c11a4d4`](https://github.com/graphile/crystal/commit/02c11a4d42bf434dffc9354b300e8d791c4eeb2d)]:
|
|
81
|
+
- grafast@0.1.1-beta.14
|
|
82
|
+
- ruru@2.0.0-beta.14
|
|
83
|
+
|
|
84
|
+
## 0.1.1-beta.15
|
|
85
|
+
|
|
86
|
+
### Patch Changes
|
|
87
|
+
|
|
88
|
+
- Updated dependencies
|
|
89
|
+
[[`807650035`](https://github.com/graphile/crystal/commit/8076500354a3e2bc2de1b6c4e947bd710cc5bddc)]:
|
|
90
|
+
- grafast@0.1.1-beta.13
|
|
91
|
+
- ruru@2.0.0-beta.14
|
|
92
|
+
|
|
93
|
+
## 0.1.1-beta.14
|
|
94
|
+
|
|
95
|
+
### Patch Changes
|
|
96
|
+
|
|
97
|
+
- [#2097](https://github.com/graphile/crystal/pull/2097)
|
|
98
|
+
[`61f8bbca5`](https://github.com/graphile/crystal/commit/61f8bbca5badda5b27872e0ee01a2d4c1372210d)
|
|
99
|
+
Thanks [@FelixZY](https://github.com/FelixZY)! - Improve logging of masked
|
|
100
|
+
errors (thanks @FelixZY)
|
|
101
|
+
|
|
102
|
+
- Updated dependencies
|
|
103
|
+
[[`1bd50b61e`](https://github.com/graphile/crystal/commit/1bd50b61ebb10b7d09b3612c2e2767c41cca3b78),
|
|
104
|
+
[`4e102b1a1`](https://github.com/graphile/crystal/commit/4e102b1a1cd232e6f6703df0706415f01831dab2),
|
|
105
|
+
[`7bb1573ba`](https://github.com/graphile/crystal/commit/7bb1573ba45a4d8b7fa9ad53cdd79686d2641383),
|
|
106
|
+
[`18addb385`](https://github.com/graphile/crystal/commit/18addb3852525aa91019a36d58fa2fecd8b5b443),
|
|
107
|
+
[`6ed615e55`](https://github.com/graphile/crystal/commit/6ed615e557b2ab1fb57f1e68c06730a8e3da7175),
|
|
108
|
+
[`b25cc539c`](https://github.com/graphile/crystal/commit/b25cc539c00aeda7a943c37509aaae4dc7812317),
|
|
109
|
+
[`867f33136`](https://github.com/graphile/crystal/commit/867f331365346fc46ed1e0d23c79719846e398f4),
|
|
110
|
+
[`cf535c210`](https://github.com/graphile/crystal/commit/cf535c21078da06c14dd12f30e9b4378da4ded03),
|
|
111
|
+
[`acf99b190`](https://github.com/graphile/crystal/commit/acf99b190954e3c5926e820daed68dfe8eb3ee1f),
|
|
112
|
+
[`4967a197f`](https://github.com/graphile/crystal/commit/4967a197fd2c71ee2a581fe29470ee9f30e74de5),
|
|
113
|
+
[`1908e1ba1`](https://github.com/graphile/crystal/commit/1908e1ba11883a34dac66f985fc20ab160e572b1),
|
|
114
|
+
[`084d80be6`](https://github.com/graphile/crystal/commit/084d80be6e17187c9a9932bcf079e3f460368782)]:
|
|
115
|
+
- grafast@0.1.1-beta.12
|
|
116
|
+
- ruru@2.0.0-beta.14
|
|
117
|
+
|
|
118
|
+
## 0.1.1-beta.13
|
|
119
|
+
|
|
120
|
+
### Patch Changes
|
|
121
|
+
|
|
122
|
+
- [#2071](https://github.com/graphile/crystal/pull/2071)
|
|
123
|
+
[`582bd768f`](https://github.com/graphile/crystal/commit/582bd768fec403ce3284f293b85b9fd86e4d3f40)
|
|
124
|
+
Thanks [@benjie](https://github.com/benjie)! - `GrafastExecutionArgs` now
|
|
125
|
+
accepts `resolvedPreset` and `requestContext` directly; passing these through
|
|
126
|
+
additional arguments is now deprecated and support will be removed in a future
|
|
127
|
+
revision. This affects:
|
|
128
|
+
|
|
129
|
+
- `grafast()`
|
|
130
|
+
- `execute()`
|
|
131
|
+
- `subscribe()`
|
|
132
|
+
- `hookArgs()`
|
|
133
|
+
|
|
134
|
+
`graphile-config` has gained a middleware system which is more powerful than
|
|
135
|
+
it's AsyncHooks system. Old hooks can be emulated through the middleware
|
|
136
|
+
system safely since middleware is a superset of hooks' capabilities.
|
|
137
|
+
`applyHooks` has been renamed to `orderedApply` (because it applies to more
|
|
138
|
+
than just hooks), calling `applyHooks` will still work but is deprecated.
|
|
139
|
+
|
|
140
|
+
🚨 `grafast` no longer automatically reads your `graphile.config.ts` or
|
|
141
|
+
similar; you must do that yourself and pass the `resolvedPreset` to grafast
|
|
142
|
+
via the `args`. This is to aid in bundling of grafast since it should not need
|
|
143
|
+
to read from filesystem or dynamically load modules.
|
|
144
|
+
|
|
145
|
+
`grafast` no longer outputs performance warning when you set
|
|
146
|
+
`GRAPHILE_ENV=development`.
|
|
147
|
+
|
|
148
|
+
🚨 `plugin.grafast.hooks.args` is now `plugin.grafast.middleware.prepareArgs`,
|
|
149
|
+
and the signature has changed - you must be sure to call the `next()` function
|
|
150
|
+
and ctx/resolvedPreset can be extracted directly from `args`:
|
|
151
|
+
|
|
152
|
+
```diff
|
|
153
|
+
const plugin = {
|
|
154
|
+
grafast: {
|
|
155
|
+
- hooks: {
|
|
156
|
+
+ middleware: {
|
|
157
|
+
- args({ args, ctx, resolvedPreset }) {
|
|
158
|
+
+ prepareArgs(next, { args }) {
|
|
159
|
+
+ const { requestContext: ctx, resolvedPreset } = args;
|
|
160
|
+
// ...
|
|
161
|
+
+ return next();
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
Many more middleware have been added; use TypeScript's autocomplete to see
|
|
169
|
+
what's available until we have proper documentation for them.
|
|
170
|
+
|
|
171
|
+
`plugin.grafserv.hooks.*` are still supported but deprecated; instead use
|
|
172
|
+
middleware `plugin.grafserv.middleware.*` (note that call signatures have
|
|
173
|
+
changed slightly, similar to the diff above):
|
|
174
|
+
|
|
175
|
+
- `hooks.init` -> `middleware.setPreset`
|
|
176
|
+
- `hooks.processGraphQLRequestBody` -> `middleware.processGraphQLRequestBody`
|
|
177
|
+
- `hooks.ruruHTMLParts` -> `middleware.ruruHTMLParts`
|
|
178
|
+
|
|
179
|
+
A few TypeScript types related to Hooks have been renamed, but their old names
|
|
180
|
+
are still available, just deprecated. They will be removed in a future update:
|
|
181
|
+
|
|
182
|
+
- `HookObject` -> `FunctionalityObject`
|
|
183
|
+
- `PluginHook` -> `CallbackOrDescriptor`
|
|
184
|
+
- `PluginHookObject` -> `CallbackDescriptor`
|
|
185
|
+
- `PluginHookCallback` -> `UnwrapCallback`
|
|
186
|
+
|
|
187
|
+
- Updated dependencies
|
|
188
|
+
[[`582bd768f`](https://github.com/graphile/crystal/commit/582bd768fec403ce3284f293b85b9fd86e4d3f40)]:
|
|
189
|
+
- graphile-config@0.0.1-beta.9
|
|
190
|
+
- grafast@0.1.1-beta.11
|
|
191
|
+
- ruru@2.0.0-beta.13
|
|
192
|
+
|
|
193
|
+
## 0.1.1-beta.12
|
|
194
|
+
|
|
195
|
+
### Patch Changes
|
|
196
|
+
|
|
197
|
+
- Updated dependencies
|
|
198
|
+
[[`3c161f7e1`](https://github.com/graphile/crystal/commit/3c161f7e13375105b1035a7d5d1c0f2b507ca5c7),
|
|
199
|
+
[`a674a9923`](https://github.com/graphile/crystal/commit/a674a9923bc908c9315afa40e0cb256ee0953d16),
|
|
200
|
+
[`b7cfeffd1`](https://github.com/graphile/crystal/commit/b7cfeffd1019d61c713a5054c4f5929960a2a6ab)]:
|
|
201
|
+
- grafast@0.1.1-beta.10
|
|
202
|
+
- ruru@2.0.0-beta.12
|
|
203
|
+
|
|
204
|
+
## 0.1.1-beta.11
|
|
205
|
+
|
|
206
|
+
### Patch Changes
|
|
207
|
+
|
|
208
|
+
- Updated dependencies
|
|
209
|
+
[[`437570f97`](https://github.com/graphile/crystal/commit/437570f97e8520afaf3d0d0b514d1f4c31546b76)]:
|
|
210
|
+
- grafast@0.1.1-beta.9
|
|
211
|
+
- ruru@2.0.0-beta.12
|
|
212
|
+
|
|
213
|
+
## 0.1.1-beta.10
|
|
214
|
+
|
|
215
|
+
### Patch Changes
|
|
216
|
+
|
|
217
|
+
- Updated dependencies
|
|
218
|
+
[[`bd5a908a4`](https://github.com/graphile/crystal/commit/bd5a908a4d04310f90dfb46ad87398ffa993af3b)]:
|
|
219
|
+
- grafast@0.1.1-beta.8
|
|
220
|
+
- ruru@2.0.0-beta.12
|
|
221
|
+
|
|
222
|
+
## 0.1.1-beta.9
|
|
223
|
+
|
|
224
|
+
### Patch Changes
|
|
225
|
+
|
|
226
|
+
- [#2046](https://github.com/graphile/crystal/pull/2046)
|
|
227
|
+
[`a5a0816bd`](https://github.com/graphile/crystal/commit/a5a0816bddc85a841770202db57457ff13137852)
|
|
228
|
+
Thanks [@benjie](https://github.com/benjie)! - Massive refactor of Grafserv
|
|
229
|
+
internals.
|
|
230
|
+
|
|
231
|
+
- Updated dependencies
|
|
232
|
+
[[`357d475f5`](https://github.com/graphile/crystal/commit/357d475f54fecc8c51892e0346d6872b34132430),
|
|
233
|
+
[`3551725e7`](https://github.com/graphile/crystal/commit/3551725e71c3ed876554e19e5ab2c1dcb0fb1143),
|
|
234
|
+
[`80836471e`](https://github.com/graphile/crystal/commit/80836471e5cedb29dee63bc5002550c4f1713cfd),
|
|
235
|
+
[`a5c20fefb`](https://github.com/graphile/crystal/commit/a5c20fefb571dea6d1187515dc48dd547e9e6204),
|
|
236
|
+
[`1ce08980e`](https://github.com/graphile/crystal/commit/1ce08980e2a52ed9bc81564d248c19648ecd3616),
|
|
237
|
+
[`dff4f2535`](https://github.com/graphile/crystal/commit/dff4f2535ac6ce893089b312fcd5fffcd98573a5),
|
|
238
|
+
[`a287a57c2`](https://github.com/graphile/crystal/commit/a287a57c2765da0fb6a132ea0953f64453210ceb),
|
|
239
|
+
[`2fe56f9a6`](https://github.com/graphile/crystal/commit/2fe56f9a6dac03484ace45c29c2223a65f9ca1db),
|
|
240
|
+
[`fed603d71`](https://github.com/graphile/crystal/commit/fed603d719c02f33e12190f925c9e3b06c581fac),
|
|
241
|
+
[`ed6e0d278`](https://github.com/graphile/crystal/commit/ed6e0d2788217a1c419634837f4208013eaf2923),
|
|
242
|
+
[`e82e4911e`](https://github.com/graphile/crystal/commit/e82e4911e32138df1b90ec0fde555ea963018d21),
|
|
243
|
+
[`42ece5aa6`](https://github.com/graphile/crystal/commit/42ece5aa6ca05345ebc17fb5c7d55df3b79b7612),
|
|
244
|
+
[`e0d69e518`](https://github.com/graphile/crystal/commit/e0d69e518a98c70f9b90f59d243ce33978c1b5a1),
|
|
245
|
+
[`db8ceed0f`](https://github.com/graphile/crystal/commit/db8ceed0f17923eb78ff09c9f3f28800a5c7e3b6),
|
|
246
|
+
[`6699388ec`](https://github.com/graphile/crystal/commit/6699388ec167d35c71220ce5d9113cac578da6cb),
|
|
247
|
+
[`966203504`](https://github.com/graphile/crystal/commit/96620350467ab8c65b56adf2f055e19450f8e772),
|
|
248
|
+
[`c1645b249`](https://github.com/graphile/crystal/commit/c1645b249aae949a548cd916e536ccfb63e5ab35),
|
|
249
|
+
[`ed8bbaa3c`](https://github.com/graphile/crystal/commit/ed8bbaa3cd1563a7601ca8c6b0412633b0ea4ce9),
|
|
250
|
+
[`a0e82b9c5`](https://github.com/graphile/crystal/commit/a0e82b9c5f4e585f1af1e147299cd07944ece6f8),
|
|
251
|
+
[`14e2412ee`](https://github.com/graphile/crystal/commit/14e2412ee368e8d53abf6774c7f0069f32d4e8a3),
|
|
252
|
+
[`57ab0e1e7`](https://github.com/graphile/crystal/commit/57ab0e1e72c01213b21d3efc539cd655d83d993a),
|
|
253
|
+
[`8442242e4`](https://github.com/graphile/crystal/commit/8442242e43cac7d89ca0c413cf42c9fabf6f247f),
|
|
254
|
+
[`64ce7b765`](https://github.com/graphile/crystal/commit/64ce7b7650530251aec38a51089da66f914c19b4),
|
|
255
|
+
[`cba842357`](https://github.com/graphile/crystal/commit/cba84235786acbd77ade53bae7a3fba4a9be1eb7),
|
|
256
|
+
[`2fa77d0f2`](https://github.com/graphile/crystal/commit/2fa77d0f237cdb98d3dafb6b5e4083a2c6c38673)]:
|
|
257
|
+
- grafast@0.1.1-beta.7
|
|
258
|
+
- graphile-config@0.0.1-beta.8
|
|
259
|
+
- ruru@2.0.0-beta.12
|
|
260
|
+
|
|
261
|
+
## 0.1.1-beta.8
|
|
262
|
+
|
|
263
|
+
### Patch Changes
|
|
264
|
+
|
|
265
|
+
- Updated dependencies
|
|
266
|
+
[[`9f85c614d`](https://github.com/graphile/crystal/commit/9f85c614d48dc745c5fed15333dbb75af7fddc88),
|
|
267
|
+
[`6c6be29f1`](https://github.com/graphile/crystal/commit/6c6be29f12b24782c926b2bc62ed2ede09ac05de),
|
|
268
|
+
[`8315e8d01`](https://github.com/graphile/crystal/commit/8315e8d01c118cebc4ebbc53a2f264b958b252ad)]:
|
|
269
|
+
- grafast@0.1.1-beta.6
|
|
270
|
+
- ruru@2.0.0-beta.11
|
|
271
|
+
|
|
272
|
+
## 0.1.1-beta.7
|
|
273
|
+
|
|
274
|
+
### Patch Changes
|
|
275
|
+
|
|
276
|
+
- [#1937](https://github.com/graphile/crystal/pull/1937)
|
|
277
|
+
[`c21252541`](https://github.com/graphile/crystal/commit/c212525410cb2d97a808964ad727d0a68dd15f8b)
|
|
278
|
+
Thanks [@benjie](https://github.com/benjie)! - Export `defaultMaskError` from
|
|
279
|
+
`grafserv`.
|
|
280
|
+
|
|
281
|
+
- Updated dependencies
|
|
282
|
+
[[`63dd7ea99`](https://github.com/graphile/crystal/commit/63dd7ea992d30ad711dd85a73a127484a0e35479),
|
|
283
|
+
[`d801c9778`](https://github.com/graphile/crystal/commit/d801c9778a86d61e060896460af9fe62a733534a),
|
|
284
|
+
[`ef44c29b2`](https://github.com/graphile/crystal/commit/ef44c29b24a1ad5a042ae1536a4546dd64b17195),
|
|
285
|
+
[`941e28003`](https://github.com/graphile/crystal/commit/941e280038a735014a9fe4e24fc534a197fac0f2),
|
|
286
|
+
[`068be2f51`](https://github.com/graphile/crystal/commit/068be2f51d7a9c17311f26c6c9451985397c9e1f),
|
|
287
|
+
[`5de3e86eb`](https://github.com/graphile/crystal/commit/5de3e86eba1ddfe5e07732d0325c63e5d72d4b5b)]:
|
|
288
|
+
- grafast@0.1.1-beta.5
|
|
289
|
+
- ruru@2.0.0-beta.11
|
|
290
|
+
- graphile-config@0.0.1-beta.7
|
|
291
|
+
|
|
292
|
+
## 0.1.1-beta.6
|
|
293
|
+
|
|
294
|
+
### Patch Changes
|
|
295
|
+
|
|
296
|
+
- [#1903](https://github.com/graphile/crystal/pull/1903)
|
|
297
|
+
[`de7add402`](https://github.com/graphile/crystal/commit/de7add402bd4a45c8782fce69bf210635360cbe8)
|
|
298
|
+
Thanks [@benjie](https://github.com/benjie)! - Fix bug where stack traces are
|
|
299
|
+
added to masked errors
|
|
300
|
+
|
|
301
|
+
- Updated dependencies
|
|
302
|
+
[[`a2176ea32`](https://github.com/graphile/crystal/commit/a2176ea324db0801249661b30e9c9d314c6fb159),
|
|
303
|
+
[`886833e2e`](https://github.com/graphile/crystal/commit/886833e2e319f23d905d7184ca88fca701b94044)]:
|
|
304
|
+
- grafast@0.1.1-beta.4
|
|
305
|
+
- ruru@2.0.0-beta.10
|
|
306
|
+
|
|
307
|
+
## 0.1.1-beta.5
|
|
308
|
+
|
|
309
|
+
### Patch Changes
|
|
310
|
+
|
|
311
|
+
- Updated dependencies
|
|
312
|
+
[[`0df5511ac`](https://github.com/graphile/crystal/commit/0df5511ac8b79ea34f8d12ebf8feeb421f8fe971)]:
|
|
313
|
+
- graphile-config@0.0.1-beta.6
|
|
314
|
+
- grafast@0.1.1-beta.3
|
|
315
|
+
- ruru@2.0.0-beta.10
|
|
316
|
+
|
|
317
|
+
## 0.1.1-beta.4
|
|
318
|
+
|
|
319
|
+
### Patch Changes
|
|
320
|
+
|
|
321
|
+
- [#1877](https://github.com/graphile/crystal/pull/1877)
|
|
322
|
+
[`8a0cdb95f`](https://github.com/graphile/crystal/commit/8a0cdb95f200b28b0ea1ab5caa12b23dce5f374f)
|
|
323
|
+
Thanks [@benjie](https://github.com/benjie)! - Move 'declare global' out of
|
|
324
|
+
'interfaces.ts' and into 'index.ts' or equivalent. Should make TypeScript more
|
|
325
|
+
aware of these types.
|
|
326
|
+
|
|
327
|
+
- [#1849](https://github.com/graphile/crystal/pull/1849)
|
|
328
|
+
[`995e25035`](https://github.com/graphile/crystal/commit/995e250352217fdf8f036b8ed6cad3fab520817f)
|
|
329
|
+
Thanks [@TimoStolz](https://github.com/TimoStolz)! - Tweak websocket
|
|
330
|
+
integration with Fastify: `wsHandlers` are only allowed if method is `GET`.
|
|
331
|
+
- Updated dependencies
|
|
332
|
+
[[`3fdc2bce4`](https://github.com/graphile/crystal/commit/3fdc2bce42418773f808c5b8309dfb361cd95ce9),
|
|
333
|
+
[`aeef362b5`](https://github.com/graphile/crystal/commit/aeef362b5744816f01e4a6f714bbd77f92332bc5),
|
|
334
|
+
[`8a76db07f`](https://github.com/graphile/crystal/commit/8a76db07f4c110cecc6225504f9a05ccbcbc7b92),
|
|
335
|
+
[`8a0cdb95f`](https://github.com/graphile/crystal/commit/8a0cdb95f200b28b0ea1ab5caa12b23dce5f374f),
|
|
336
|
+
[`1c9f1c0ed`](https://github.com/graphile/crystal/commit/1c9f1c0edf4e621a5b6345d3a41527a18143c6ae)]:
|
|
337
|
+
- grafast@0.1.1-beta.2
|
|
338
|
+
- graphile-config@0.0.1-beta.5
|
|
339
|
+
- ruru@2.0.0-beta.9
|
|
340
|
+
|
|
341
|
+
## 0.1.1-beta.3
|
|
342
|
+
|
|
343
|
+
### Patch Changes
|
|
344
|
+
|
|
345
|
+
- [#1807](https://github.com/graphile/crystal/pull/1807)
|
|
346
|
+
[`9696a1b08`](https://github.com/graphile/crystal/commit/9696a1b0885442f44e3a6ca6a4909ec96a445884)
|
|
347
|
+
Thanks [@innermatrix](https://github.com/innermatrix)! - Export lambda server
|
|
348
|
+
from `grafserv/lambda/v1`
|
|
349
|
+
|
|
350
|
+
- Updated dependencies
|
|
351
|
+
[[`49fcb0d58`](https://github.com/graphile/crystal/commit/49fcb0d585b31b291c9072c339d6f5b550eefc9f),
|
|
352
|
+
[`7aef73319`](https://github.com/graphile/crystal/commit/7aef73319a8a147c700727be62427e1eefdefbf8)]:
|
|
353
|
+
- grafast@0.1.1-beta.1
|
|
354
|
+
- graphile-config@0.0.1-beta.4
|
|
355
|
+
- ruru@2.0.0-beta.8
|
|
356
|
+
|
|
3
357
|
## 0.1.1-beta.2
|
|
4
358
|
|
|
5
359
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -26,12 +26,10 @@ And please give some love to our featured sponsors 🤩:
|
|
|
26
26
|
<table><tr>
|
|
27
27
|
<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>
|
|
28
28
|
<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>
|
|
29
|
-
<td align="center"><a href="https://www.netflix.com/"><img src="https://graphile.org/images/sponsors/Netflix.png" width="90" height="90" alt="Netflix" /><br />Netflix</a> *</td>
|
|
30
|
-
<td align="center"><a href=""><img src="https://graphile.org/images/sponsors/chadf.png" width="90" height="90" alt="Chad Furman" /><br />Chad Furman</a> *</td>
|
|
31
|
-
</tr><tr>
|
|
32
29
|
<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>
|
|
33
|
-
<td align="center"><a href="https://
|
|
34
|
-
|
|
30
|
+
<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>
|
|
31
|
+
</tr><tr>
|
|
32
|
+
<td align="center"><a href=""><img src="https://graphile.org/images/sponsors/latchbio.jpg" width="90" height="90" alt="LatchBio" /><br />LatchBio</a> *</td>
|
|
35
33
|
</tr></table>
|
|
36
34
|
|
|
37
35
|
<em>\* Sponsors the entire Graphile suite</em>
|
package/dist/core/base.d.ts
CHANGED
|
@@ -1,34 +1,41 @@
|
|
|
1
1
|
import type { PromiseOrDirect, TypedEventEmitter } from "grafast";
|
|
2
2
|
import type { GraphQLSchema } from "grafast/graphql";
|
|
3
|
-
import type {
|
|
3
|
+
import type { Middleware } from "graphile-config";
|
|
4
|
+
import type { DynamicOptions, ErrorResult, ExecutionConfig, GrafservConfig, HandlerResult, RequestDigest, Result, SchemaChangeEvent } from "../interfaces.js";
|
|
4
5
|
import { makeGraphiQLHandler } from "../middleware/graphiql.js";
|
|
5
6
|
import { makeGraphQLHandler } from "../middleware/graphql.js";
|
|
6
|
-
import type { OptionsFromConfig } from "../options.js";
|
|
7
7
|
export declare class GrafservBase {
|
|
8
8
|
private releaseHandlers;
|
|
9
9
|
private releasing;
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
dynamicOptions: DynamicOptions;
|
|
11
|
+
getExecutionConfig(_ctx: Partial<Grafast.RequestContext>): PromiseOrDirect<ExecutionConfig>;
|
|
12
12
|
resolvedPreset: GraphileConfig.ResolvedPreset;
|
|
13
|
+
grafastMiddleware: Middleware<GraphileConfig.GrafastMiddleware> | null;
|
|
13
14
|
protected schema: GraphQLSchema | PromiseLike<GraphQLSchema> | null;
|
|
14
15
|
protected schemaError: PromiseLike<GraphQLSchema> | null;
|
|
15
16
|
protected eventEmitter: TypedEventEmitter<{
|
|
16
17
|
"schema:ready": GraphQLSchema;
|
|
17
18
|
"schema:error": any;
|
|
19
|
+
"dynamicOptions:ready": Record<string, never>;
|
|
20
|
+
"dynamicOptions:error": any;
|
|
18
21
|
}>;
|
|
19
22
|
private initialized;
|
|
20
23
|
graphqlHandler: ReturnType<typeof makeGraphQLHandler>;
|
|
21
24
|
graphiqlHandler: ReturnType<typeof makeGraphiQLHandler>;
|
|
22
25
|
constructor(config: GrafservConfig);
|
|
23
|
-
|
|
24
|
-
protected processRequest(request: RequestDigest): PromiseOrDirect<Result | null>;
|
|
26
|
+
protected processRequest(requestDigest: RequestDigest): PromiseOrDirect<Result | null>;
|
|
25
27
|
getPreset(): GraphileConfig.ResolvedPreset;
|
|
26
28
|
getSchema(): PromiseOrDirect<GraphQLSchema>;
|
|
27
29
|
release(): Promise<void>;
|
|
28
30
|
onRelease(cb: () => PromiseOrDirect<void>): void;
|
|
29
|
-
|
|
31
|
+
private _settingPreset;
|
|
32
|
+
setPreset(newPreset: GraphileConfig.Preset): PromiseOrDirect<void>;
|
|
30
33
|
setSchema(newSchema: GraphQLSchema): void;
|
|
31
34
|
private refreshHandlers;
|
|
35
|
+
private waitForGraphqlHandler;
|
|
36
|
+
private waitForGraphiqlHandler;
|
|
37
|
+
private failedGraphqlHandler;
|
|
38
|
+
private failedGraphiqlHandler;
|
|
32
39
|
makeStream(): AsyncIterableIterator<SchemaChangeEvent>;
|
|
33
40
|
}
|
|
34
41
|
export declare function convertHandlerResultToResult(handlerResult: HandlerResult | null): PromiseOrDirect<Result | null>;
|
package/dist/core/base.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../src/core/base.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../src/core/base.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AASlE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAIlD,OAAO,KAAK,EAEV,cAAc,EACd,WAAW,EAEX,eAAe,EACf,cAAc,EACd,aAAa,EAKb,aAAa,EACb,MAAM,EACN,iBAAiB,EAElB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAEL,kBAAkB,EAEnB,MAAM,0BAA0B,CAAC;AAUlC,qBAAa,YAAY;IACvB,OAAO,CAAC,eAAe,CAA0C;IACjE,OAAO,CAAC,SAAS,CAAS;IACnB,cAAc,EAAE,cAAc,CAAC;IAC/B,kBAAkB,CACvB,IAAI,EAAE,OAAO,CAAC,OAAO,CAAC,cAAc,CAAC,GACpC,eAAe,CAAC,eAAe,CAAC;IAG5B,cAAc,EAAE,cAAc,CAAC,cAAc,CAAC;IAG9C,iBAAiB,EAAE,UAAU,CAAC,cAAc,CAAC,iBAAiB,CAAC,GAAG,IAAI,CAAC;IAC9E,SAAS,CAAC,MAAM,EAAE,aAAa,GAAG,WAAW,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC;IACpE,SAAS,CAAC,WAAW,EAAE,WAAW,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC;IACzD,SAAS,CAAC,YAAY,EAAE,iBAAiB,CAAC;QACxC,cAAc,EAAE,aAAa,CAAC;QAC9B,cAAc,EAAE,GAAG,CAAC;QACpB,sBAAsB,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;QAC9C,sBAAsB,EAAE,GAAG,CAAC;KAC7B,CAAC,CAAC;IACH,OAAO,CAAC,WAAW,CAAS;IACrB,cAAc,EAAG,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAC;IACvD,eAAe,EAAG,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC;gBAEpD,MAAM,EAAE,cAAc;IA4FlC,SAAS,CAAC,cAAc,CACtB,aAAa,EAAE,aAAa,GAC3B,eAAe,CAAC,MAAM,GAAG,IAAI,CAAC;IAY1B,SAAS,IAAI,cAAc,CAAC,cAAc;IAI1C,SAAS,IAAI,eAAe,CAAC,aAAa,CAAC;IAIrC,OAAO;IAeb,SAAS,CAAC,EAAE,EAAE,MAAM,eAAe,CAAC,IAAI,CAAC;IAShD,OAAO,CAAC,cAAc,CAAS;IACxB,SAAS,CAAC,SAAS,EAAE,cAAc,CAAC,MAAM,GAAG,eAAe,CAAC,IAAI,CAAC;IAmDlE,SAAS,CAAC,SAAS,EAAE,aAAa;IAuBzC,OAAO,CAAC,eAAe;IAavB,OAAO,CAAC,qBAAqB,CAuCzB;IAEJ,OAAO,CAAC,sBAAsB,CAwC1B;IAEJ,OAAO,CAAC,oBAAoB,CAcxB;IAEJ,OAAO,CAAC,qBAAqB,CAczB;IAGG,UAAU,IAAI,qBAAqB,CAAC,iBAAiB,CAAC;CAyD9D;AA+FD,wBAAgB,4BAA4B,CAC1C,aAAa,EAAE,aAAa,GAAG,IAAI,GAClC,eAAe,CAAC,MAAM,GAAG,IAAI,CAAC,CAoLhC;AAED,eAAO,MAAM,yBAAyB,UAC7B,KAAK,GAAG;IAAE,UAAU,CAAC,EAAE,MAAM,CAAA;CAAE,KACrC,WASF,CAAC"}
|