@grafserv/persisted 0.0.0-beta.9 → 1.0.0-rc.2

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,487 @@
1
1
  # @grafserv/persisted
2
2
 
3
+ ## 1.0.0-rc.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#2829](https://github.com/graphile/crystal/pull/2829)
8
+ [`a82e6fa`](https://github.com/graphile/crystal/commit/a82e6fae099f7e9d62fb3fc1ee173368cdabca27)
9
+ Thanks [@benjie](https://github.com/benjie)! - Update dependency ranges.
10
+
11
+ - Updated dependencies
12
+ [[`f3a9869`](https://github.com/graphile/crystal/commit/f3a9869c6f9e7aa1eb501af5f7d582d2073be585),
13
+ [`68f61cd`](https://github.com/graphile/crystal/commit/68f61cdbeea19e81b1d59a3fac69a569642c5c88),
14
+ [`a82e6fa`](https://github.com/graphile/crystal/commit/a82e6fae099f7e9d62fb3fc1ee173368cdabca27)]:
15
+ - grafast@1.0.0-rc.2
16
+ - graphile-config@1.0.0-rc.2
17
+ - grafserv@1.0.0-rc.2
18
+ - @graphile/lru@5.0.0-rc.2
19
+
20
+ ## 1.0.0-rc.1
21
+
22
+ ### Patch Changes
23
+
24
+ - [`8a5a7c5`](https://github.com/graphile/crystal/commit/8a5a7c536fc4b9b702600c5cc3d413724670c327)
25
+ Thanks [@benjie](https://github.com/benjie)! - Bump to release candidate
26
+
27
+ - Updated dependencies
28
+ [[`abb623d`](https://github.com/graphile/crystal/commit/abb623d59e517c0949f0fef5440b817103c685bf),
29
+ [`7b86454`](https://github.com/graphile/crystal/commit/7b864546fa81803ce0e573a2efa2e7f0905b2040),
30
+ [`42a0785`](https://github.com/graphile/crystal/commit/42a0785ddabf58812a22d764eeddfde9362974e5),
31
+ [`d196d60`](https://github.com/graphile/crystal/commit/d196d60664fbc9ffd410c11645db27554b22ac0b),
32
+ [`6a4e3b9`](https://github.com/graphile/crystal/commit/6a4e3b9ec182f7d066600aee0f8cc21d451b0ae2),
33
+ [`c6cbe61`](https://github.com/graphile/crystal/commit/c6cbe6175b0f1f034db59d42cbe594e7d329aba6),
34
+ [`d4ac603`](https://github.com/graphile/crystal/commit/d4ac603da7df6ea01aaa483a7cb29b1e514a90cd),
35
+ [`f23e0e0`](https://github.com/graphile/crystal/commit/f23e0e0da9105a973dd8ac76f8ae519345d0a5b1),
36
+ [`8a5a7c5`](https://github.com/graphile/crystal/commit/8a5a7c536fc4b9b702600c5cc3d413724670c327),
37
+ [`ea0135f`](https://github.com/graphile/crystal/commit/ea0135fac3f43850b65828f2ff2b01a34cfdff15),
38
+ [`b6821f5`](https://github.com/graphile/crystal/commit/b6821f5f4dc13abd0b605be7396c1b3c36e66177)]:
39
+ - grafast@1.0.0-rc.1
40
+ - grafserv@1.0.0-rc.1
41
+ - graphile-config@1.0.0-rc.1
42
+ - @graphile/lru@5.0.0-rc.1
43
+
44
+ ## 0.0.0-beta.38
45
+
46
+ ### Patch Changes
47
+
48
+ - [#2730](https://github.com/graphile/crystal/pull/2730)
49
+ [`4c3cf22`](https://github.com/graphile/crystal/commit/4c3cf22592f44cb28e399434474ca5fcef0e1a3b)
50
+ Thanks [@benjie](https://github.com/benjie)! - Update `graphql` version range
51
+
52
+ - Updated dependencies
53
+ [[`4c3cf22`](https://github.com/graphile/crystal/commit/4c3cf22592f44cb28e399434474ca5fcef0e1a3b),
54
+ [`71e0af2`](https://github.com/graphile/crystal/commit/71e0af265c90e9d9d0dc764cc552f7470e860251),
55
+ [`a26ad3e`](https://github.com/graphile/crystal/commit/a26ad3ebcc008acb9a6f5216e3f27ef74f138953),
56
+ [`ab96e5f`](https://github.com/graphile/crystal/commit/ab96e5f58aa3315db9b85b452b048f600cb8353e),
57
+ [`278b4d3`](https://github.com/graphile/crystal/commit/278b4d398eb7db1935caba4155e1d1727284a370),
58
+ [`eaa771b`](https://github.com/graphile/crystal/commit/eaa771b34dbdac1c4d701faa8fb5947e9cf1d1be),
59
+ [`d0c15cc`](https://github.com/graphile/crystal/commit/d0c15ccc32ed8dec19ff068f851529132dc93302),
60
+ [`bffbb77`](https://github.com/graphile/crystal/commit/bffbb775ea76d1add85422866a6b7e904d2311af),
61
+ [`c48ca48`](https://github.com/graphile/crystal/commit/c48ca4840227b8e5e6a1dc198a189cfd911a602b)]:
62
+ - grafserv@0.1.1-beta.29
63
+ - grafast@0.1.1-beta.27
64
+
65
+ ## 0.0.0-beta.37
66
+
67
+ ### Patch Changes
68
+
69
+ - [#2605](https://github.com/graphile/crystal/pull/2605)
70
+ [`9d86063`](https://github.com/graphile/crystal/commit/9d86063aacf2d064c35bd62e2cf58ea687910ac8)
71
+ Thanks [@benjie](https://github.com/benjie)! - Tweak deps/peerDeps.
72
+
73
+ - Updated dependencies
74
+ [[`1d76d2f`](https://github.com/graphile/crystal/commit/1d76d2f0d19b4d56895ee9988440a35d2c60f9f9),
75
+ [`c54c6db`](https://github.com/graphile/crystal/commit/c54c6db320b3967ab16784a504770c9b5ef24494),
76
+ [`a480f6d`](https://github.com/graphile/crystal/commit/a480f6d22605fbb0d0fcdf6845cbdf294d3194b5),
77
+ [`ad588ec`](https://github.com/graphile/crystal/commit/ad588ecde230359f56800e414b7c5fa1aed14957)]:
78
+ - grafserv@0.1.1-beta.27
79
+ - grafast@0.1.1-beta.24
80
+
81
+ ## 0.0.0-beta.36
82
+
83
+ ### Patch Changes
84
+
85
+ - Updated dependencies
86
+ [[`0c6b1f1`](https://github.com/graphile/crystal/commit/0c6b1f1e188f6e2913832adfed9ca76dfdc25c47),
87
+ [`1f4544d`](https://github.com/graphile/crystal/commit/1f4544d011a1442688c4e34b677f7123f3ae6927),
88
+ [`e0cdabe`](https://github.com/graphile/crystal/commit/e0cdabe25c8894da550546c93bc03b895585544c),
89
+ [`faee38b`](https://github.com/graphile/crystal/commit/faee38bbff0421bbccfaa77c0dffa5c2d44e2b92)]:
90
+ - graphile-config@0.0.1-beta.17
91
+ - grafserv@0.1.1-beta.26
92
+ - grafast@0.1.1-beta.23
93
+
94
+ ## 0.0.0-beta.35
95
+
96
+ ### Patch Changes
97
+
98
+ - [#2482](https://github.com/graphile/crystal/pull/2482)
99
+ [`459e1869a2ec58925b2bac5458af487c52a8ca37`](https://github.com/graphile/crystal/commit/459e1869a2ec58925b2bac5458af487c52a8ca37)
100
+ Thanks [@benjie](https://github.com/benjie)! - Minimum version of Node.js
101
+ bumped to Node 22 (the latest LTS).
102
+
103
+ - Updated dependencies
104
+ [[`0e36cb9077c76710d2e407830323f86c5038126e`](https://github.com/graphile/crystal/commit/0e36cb9077c76710d2e407830323f86c5038126e),
105
+ [`c0c3f48fa9f60cb9a4436ea135979b779ecc71ec`](https://github.com/graphile/crystal/commit/c0c3f48fa9f60cb9a4436ea135979b779ecc71ec),
106
+ [`cef9a37f846b4af105ac20960530d65c9f44afa9`](https://github.com/graphile/crystal/commit/cef9a37f846b4af105ac20960530d65c9f44afa9),
107
+ [`56ce94a847c6a4094643665cbf5d3712f56140b6`](https://github.com/graphile/crystal/commit/56ce94a847c6a4094643665cbf5d3712f56140b6),
108
+ [`192a27e08763ea26607344a2ea6c7f5c595cc2a3`](https://github.com/graphile/crystal/commit/192a27e08763ea26607344a2ea6c7f5c595cc2a3),
109
+ [`6ef6abce15936a896156d5316020df55cf7d18e3`](https://github.com/graphile/crystal/commit/6ef6abce15936a896156d5316020df55cf7d18e3),
110
+ [`0239c2d519300a72f545e0db7c371adae4ade2a9`](https://github.com/graphile/crystal/commit/0239c2d519300a72f545e0db7c371adae4ade2a9),
111
+ [`873b24dc70cea68e236e5dcf5bc7ff8f46fa43fe`](https://github.com/graphile/crystal/commit/873b24dc70cea68e236e5dcf5bc7ff8f46fa43fe),
112
+ [`eb771be5e8b06a0cd53476cb36495e7e1aca56b7`](https://github.com/graphile/crystal/commit/eb771be5e8b06a0cd53476cb36495e7e1aca56b7),
113
+ [`0ea439d33ccef7f8d01ac5f54893ab2bbf1cbd4d`](https://github.com/graphile/crystal/commit/0ea439d33ccef7f8d01ac5f54893ab2bbf1cbd4d),
114
+ [`8034614d1078b1bd177b6e7fcc949420614e3245`](https://github.com/graphile/crystal/commit/8034614d1078b1bd177b6e7fcc949420614e3245),
115
+ [`459e1869a2ec58925b2bac5458af487c52a8ca37`](https://github.com/graphile/crystal/commit/459e1869a2ec58925b2bac5458af487c52a8ca37),
116
+ [`c350e49e372ec12a4cbf04fb6b4260e01832d12b`](https://github.com/graphile/crystal/commit/c350e49e372ec12a4cbf04fb6b4260e01832d12b),
117
+ [`3176ea3e57d626b39613a73117ef97627370ec83`](https://github.com/graphile/crystal/commit/3176ea3e57d626b39613a73117ef97627370ec83),
118
+ [`46a42f5547c041289aa98657ebc6815f4b6c8539`](https://github.com/graphile/crystal/commit/46a42f5547c041289aa98657ebc6815f4b6c8539),
119
+ [`be3f174c5aae8fe78a240e1bc4e1de7f18644b43`](https://github.com/graphile/crystal/commit/be3f174c5aae8fe78a240e1bc4e1de7f18644b43),
120
+ [`576fb8bad56cb940ab444574d752e914d462018a`](https://github.com/graphile/crystal/commit/576fb8bad56cb940ab444574d752e914d462018a),
121
+ [`9f459101fa4428aa4bac71531e75f99e33da8e17`](https://github.com/graphile/crystal/commit/9f459101fa4428aa4bac71531e75f99e33da8e17),
122
+ [`921665df8babe2651ab3b5886ab68bb518f2125b`](https://github.com/graphile/crystal/commit/921665df8babe2651ab3b5886ab68bb518f2125b),
123
+ [`78bb1a615754d772a5fda000e96073c91fa9eba7`](https://github.com/graphile/crystal/commit/78bb1a615754d772a5fda000e96073c91fa9eba7),
124
+ [`ab0bcda5fc3c136eea09493a7d9ed4542975858e`](https://github.com/graphile/crystal/commit/ab0bcda5fc3c136eea09493a7d9ed4542975858e),
125
+ [`455f4811d37ad8fff91183c7a88621bcf9d79acf`](https://github.com/graphile/crystal/commit/455f4811d37ad8fff91183c7a88621bcf9d79acf),
126
+ [`45adaff886e7cd72b864150927be6c0cb4a7dfe8`](https://github.com/graphile/crystal/commit/45adaff886e7cd72b864150927be6c0cb4a7dfe8)]:
127
+ - grafast@0.1.1-beta.22
128
+ - grafserv@0.1.1-beta.25
129
+ - graphile-config@0.0.1-beta.16
130
+ - @graphile/lru@5.0.0-beta.4
131
+
132
+ ## 0.0.0-beta.34
133
+
134
+ ### Patch Changes
135
+
136
+ - Updated dependencies []:
137
+ - grafserv@0.1.1-beta.24
138
+
139
+ ## 0.0.0-beta.33
140
+
141
+ ### Patch Changes
142
+
143
+ - Updated dependencies
144
+ [[`d34014a9a3c469154cc796086ba13719954731e5`](https://github.com/graphile/crystal/commit/d34014a9a3c469154cc796086ba13719954731e5),
145
+ [`98516379ac355a0833a64e002f3717cc3a1d6473`](https://github.com/graphile/crystal/commit/98516379ac355a0833a64e002f3717cc3a1d6473),
146
+ [`f8602d05eed3247c90b87c55d7af580d1698effc`](https://github.com/graphile/crystal/commit/f8602d05eed3247c90b87c55d7af580d1698effc),
147
+ [`65df25534fa3f787ba2ab7fd9547d295ff2b1288`](https://github.com/graphile/crystal/commit/65df25534fa3f787ba2ab7fd9547d295ff2b1288),
148
+ [`1b3c76efd27df73eab3a5a1d221ce13de4cd6b1a`](https://github.com/graphile/crystal/commit/1b3c76efd27df73eab3a5a1d221ce13de4cd6b1a),
149
+ [`3c0a925f26f10cae627a23c49c75ccd8d76b60c8`](https://github.com/graphile/crystal/commit/3c0a925f26f10cae627a23c49c75ccd8d76b60c8),
150
+ [`fcaeb48844156e258a037f420ea1505edb50c52a`](https://github.com/graphile/crystal/commit/fcaeb48844156e258a037f420ea1505edb50c52a),
151
+ [`68926abc31c32ce527327ffbb1ede4b0b7be446b`](https://github.com/graphile/crystal/commit/68926abc31c32ce527327ffbb1ede4b0b7be446b),
152
+ [`4b49dbd2df3b339a2ba3f1e9ff400fa1a125298b`](https://github.com/graphile/crystal/commit/4b49dbd2df3b339a2ba3f1e9ff400fa1a125298b),
153
+ [`d7950e8e28ec6106a4ce2f7fe5e35d88b10eac48`](https://github.com/graphile/crystal/commit/d7950e8e28ec6106a4ce2f7fe5e35d88b10eac48),
154
+ [`c8f1971ea4198633ec97f72f82abf65089f71a88`](https://github.com/graphile/crystal/commit/c8f1971ea4198633ec97f72f82abf65089f71a88),
155
+ [`dd3d22eab73a8554715bf1111e30586251f69a88`](https://github.com/graphile/crystal/commit/dd3d22eab73a8554715bf1111e30586251f69a88),
156
+ [`a120a8e43b24dfc174950cdbb69e481272a0b45e`](https://github.com/graphile/crystal/commit/a120a8e43b24dfc174950cdbb69e481272a0b45e),
157
+ [`84f06eafa051e907a3050237ac6ee5aefb184652`](https://github.com/graphile/crystal/commit/84f06eafa051e907a3050237ac6ee5aefb184652),
158
+ [`4a3aeaa77c8b8d2e39c1a9d05581d0c613b812cf`](https://github.com/graphile/crystal/commit/4a3aeaa77c8b8d2e39c1a9d05581d0c613b812cf),
159
+ [`0fc2db95d90df918cf5c59ef85f22ac78d8000d3`](https://github.com/graphile/crystal/commit/0fc2db95d90df918cf5c59ef85f22ac78d8000d3),
160
+ [`90e81a5deeae554a8be2dd55dcd01489860e96e6`](https://github.com/graphile/crystal/commit/90e81a5deeae554a8be2dd55dcd01489860e96e6),
161
+ [`c59132eb7a93bc82493d2f1ca050db8aaea9f4d1`](https://github.com/graphile/crystal/commit/c59132eb7a93bc82493d2f1ca050db8aaea9f4d1),
162
+ [`7c38cdeffe034c9b4f5cdd03a8f7f446bd52dcb7`](https://github.com/graphile/crystal/commit/7c38cdeffe034c9b4f5cdd03a8f7f446bd52dcb7),
163
+ [`728888b28fcd2a6fc481e0ccdfe20d41181a091f`](https://github.com/graphile/crystal/commit/728888b28fcd2a6fc481e0ccdfe20d41181a091f),
164
+ [`f4f39092d7a51517668384945895d3b450237cce`](https://github.com/graphile/crystal/commit/f4f39092d7a51517668384945895d3b450237cce),
165
+ [`5cf3dc9d158891eaf324b2cd4f485d1d4bbb6b5e`](https://github.com/graphile/crystal/commit/5cf3dc9d158891eaf324b2cd4f485d1d4bbb6b5e),
166
+ [`83d3b533e702cc875b46ba2ca02bf3642b421be8`](https://github.com/graphile/crystal/commit/83d3b533e702cc875b46ba2ca02bf3642b421be8),
167
+ [`7001138c38e09822ad13db1018c62d2cac37941e`](https://github.com/graphile/crystal/commit/7001138c38e09822ad13db1018c62d2cac37941e),
168
+ [`e9e7e33665e22ec397e9ead054d2e4aad3eadc8c`](https://github.com/graphile/crystal/commit/e9e7e33665e22ec397e9ead054d2e4aad3eadc8c),
169
+ [`bb6ec8d834e3e630e28316196246f514114a2296`](https://github.com/graphile/crystal/commit/bb6ec8d834e3e630e28316196246f514114a2296),
170
+ [`2b1918d053f590cdc534c8cb81f7e74e96c1bbe6`](https://github.com/graphile/crystal/commit/2b1918d053f590cdc534c8cb81f7e74e96c1bbe6),
171
+ [`d1ecb39693a341f85762b27012ec4ea013857b0c`](https://github.com/graphile/crystal/commit/d1ecb39693a341f85762b27012ec4ea013857b0c),
172
+ [`042ebafe11fcf7e2ecac9b131265a55dddd42a6d`](https://github.com/graphile/crystal/commit/042ebafe11fcf7e2ecac9b131265a55dddd42a6d),
173
+ [`fa005eb0783c58a2476add984fbdd462e0e91dbe`](https://github.com/graphile/crystal/commit/fa005eb0783c58a2476add984fbdd462e0e91dbe),
174
+ [`df0e5a0f968cf6f9ae97b68745a9a2f391324bf5`](https://github.com/graphile/crystal/commit/df0e5a0f968cf6f9ae97b68745a9a2f391324bf5),
175
+ [`ef4cf75acd80e6b9c700c2b5a7ace899e565ef7f`](https://github.com/graphile/crystal/commit/ef4cf75acd80e6b9c700c2b5a7ace899e565ef7f),
176
+ [`c041fd250372c57601188b65a6411c8f440afab6`](https://github.com/graphile/crystal/commit/c041fd250372c57601188b65a6411c8f440afab6),
177
+ [`629b45aab49151810f6efc18ac18f7d735626433`](https://github.com/graphile/crystal/commit/629b45aab49151810f6efc18ac18f7d735626433),
178
+ [`6d19724330d50d076aab9442660fa8abddd095cb`](https://github.com/graphile/crystal/commit/6d19724330d50d076aab9442660fa8abddd095cb),
179
+ [`ca5bc1a834df7b894088fb8602a12f9fcff55b38`](https://github.com/graphile/crystal/commit/ca5bc1a834df7b894088fb8602a12f9fcff55b38),
180
+ [`da6f3c04efe3d8634c0bc3fcf93ac2518de85322`](https://github.com/graphile/crystal/commit/da6f3c04efe3d8634c0bc3fcf93ac2518de85322),
181
+ [`00d79e6f5608affc3f36bb0ce4ca2547230174e7`](https://github.com/graphile/crystal/commit/00d79e6f5608affc3f36bb0ce4ca2547230174e7),
182
+ [`f0bc64b71914dfdd3612f4b65370401fd85b97bc`](https://github.com/graphile/crystal/commit/f0bc64b71914dfdd3612f4b65370401fd85b97bc)]:
183
+ - grafast@0.1.1-beta.21
184
+ - graphile-config@0.0.1-beta.15
185
+ - grafserv@0.1.1-beta.23
186
+
187
+ ## 0.0.0-beta.32
188
+
189
+ ### Patch Changes
190
+
191
+ - Updated dependencies
192
+ [[`fc9d64eb8`](https://github.com/graphile/crystal/commit/fc9d64eb8002d3b72625bc505ed76c07f4296d68),
193
+ [`a2dbad945`](https://github.com/graphile/crystal/commit/a2dbad9457195bec797d72e4e6d45f45278f9f69),
194
+ [`31078842a`](https://github.com/graphile/crystal/commit/31078842ad0eeaa7111491fa9eb5e3bd026fb38a),
195
+ [`5a0ec31de`](https://github.com/graphile/crystal/commit/5a0ec31deae91f1dd17a77a4bb7c1a911a27e26a)]:
196
+ - grafast@0.1.1-beta.20
197
+ - grafserv@0.1.1-beta.22
198
+
199
+ ## 0.0.0-beta.31
200
+
201
+ ### Patch Changes
202
+
203
+ - Updated dependencies
204
+ [[`83c546509`](https://github.com/graphile/crystal/commit/83c546509d24be2955a56120981363ad3c3a5f3f)]:
205
+ - graphile-config@0.0.1-beta.14
206
+ - grafast@0.1.1-beta.19
207
+ - grafserv@0.1.1-beta.21
208
+
209
+ ## 0.0.0-beta.30
210
+
211
+ ### Patch Changes
212
+
213
+ - Updated dependencies
214
+ [[`7580bc16a`](https://github.com/graphile/crystal/commit/7580bc16a050fd8d916c6dabe9d1ded980090349),
215
+ [`b336a5829`](https://github.com/graphile/crystal/commit/b336a58291cfec7aef884d3843172d408abfaf3c)]:
216
+ - graphile-config@0.0.1-beta.13
217
+ - grafast@0.1.1-beta.18
218
+ - grafserv@0.1.1-beta.20
219
+
220
+ ## 0.0.0-beta.29
221
+
222
+ ### Patch Changes
223
+
224
+ - Updated dependencies
225
+ [[`866673e14`](https://github.com/graphile/crystal/commit/866673e14f7ad76b6f6d83d1b4e3a4eff8fdba37),
226
+ [`69ab227b5`](https://github.com/graphile/crystal/commit/69ab227b5e1c057a6fc8ebba87bde80d5aa7f3c8),
227
+ [`9a0f9e78c`](https://github.com/graphile/crystal/commit/9a0f9e78c4ee46f50f49bb068baddef7e1de4119),
228
+ [`d13b76f0f`](https://github.com/graphile/crystal/commit/d13b76f0fef2a58466ecb44880af62d25910e83e),
229
+ [`b167bd849`](https://github.com/graphile/crystal/commit/b167bd8499be5866b71bac6594d55bd768fda1d0),
230
+ [`6a13ecbd4`](https://github.com/graphile/crystal/commit/6a13ecbd45534c39c846c1d8bc58242108426dd1)]:
231
+ - grafserv@0.1.1-beta.19
232
+ - grafast@0.1.1-beta.17
233
+ - graphile-config@0.0.1-beta.12
234
+
235
+ ## 0.0.0-beta.28
236
+
237
+ ### Patch Changes
238
+
239
+ - Updated dependencies
240
+ [[`5626c7d36`](https://github.com/graphile/crystal/commit/5626c7d3649285e11fe9857dfa319d2883d027eb),
241
+ [`bf2a2e72a`](https://github.com/graphile/crystal/commit/bf2a2e72ab78a01f5aba6cda97b5a125563b1f3d),
242
+ [`76c7340b7`](https://github.com/graphile/crystal/commit/76c7340b74d257c454beec883384d19ef078b21e)]:
243
+ - graphile-config@0.0.1-beta.11
244
+ - grafserv@0.1.1-beta.18
245
+ - grafast@0.1.1-beta.16
246
+
247
+ ## 0.0.0-beta.27
248
+
249
+ ### Patch Changes
250
+
251
+ - Updated dependencies
252
+ [[`d5834def1`](https://github.com/graphile/crystal/commit/d5834def1fb84f3e2c0c0a6f146f8249a6df890a),
253
+ [`42b982463`](https://github.com/graphile/crystal/commit/42b9824637a6c05e02935f2b05b5e8e0c61965a6),
254
+ [`884a4b429`](https://github.com/graphile/crystal/commit/884a4b4297af90fdadaf73addd524f1fbbcfdcce),
255
+ [`38835313a`](https://github.com/graphile/crystal/commit/38835313ad93445206dccdd4cf07b90c5a6e4377),
256
+ [`cc0941731`](https://github.com/graphile/crystal/commit/cc0941731a1679bc04ce7b7fd4254009bb5f1f62),
257
+ [`b0865d169`](https://github.com/graphile/crystal/commit/b0865d1691105b5419009954c98c8109a27a5d81),
258
+ [`8b472cd51`](https://github.com/graphile/crystal/commit/8b472cd51cd66d8227f9f2722d09c0a774792b0f),
259
+ [`9cd9bb522`](https://github.com/graphile/crystal/commit/9cd9bb5222a9f0398ee4b8bfa4f741b6de2a2192)]:
260
+ - grafast@0.1.1-beta.15
261
+ - graphile-config@0.0.1-beta.10
262
+ - grafserv@0.1.1-beta.17
263
+
264
+ ## 0.0.0-beta.26
265
+
266
+ ### Patch Changes
267
+
268
+ - Updated dependencies
269
+ [[`871d32b2a`](https://github.com/graphile/crystal/commit/871d32b2a18df0d257880fc54a61d9e68c4607d6),
270
+ [`a26e3a30c`](https://github.com/graphile/crystal/commit/a26e3a30c02f963f8f5e9c9d021e871f33689e1b),
271
+ [`02c11a4d4`](https://github.com/graphile/crystal/commit/02c11a4d42bf434dffc9354b300e8d791c4eeb2d)]:
272
+ - grafast@0.1.1-beta.14
273
+ - grafserv@0.1.1-beta.16
274
+
275
+ ## 0.0.0-beta.25
276
+
277
+ ### Patch Changes
278
+
279
+ - Updated dependencies
280
+ [[`807650035`](https://github.com/graphile/crystal/commit/8076500354a3e2bc2de1b6c4e947bd710cc5bddc)]:
281
+ - grafast@0.1.1-beta.13
282
+ - grafserv@0.1.1-beta.15
283
+
284
+ ## 0.0.0-beta.24
285
+
286
+ ### Patch Changes
287
+
288
+ - Updated dependencies
289
+ [[`1bd50b61e`](https://github.com/graphile/crystal/commit/1bd50b61ebb10b7d09b3612c2e2767c41cca3b78),
290
+ [`61f8bbca5`](https://github.com/graphile/crystal/commit/61f8bbca5badda5b27872e0ee01a2d4c1372210d),
291
+ [`4e102b1a1`](https://github.com/graphile/crystal/commit/4e102b1a1cd232e6f6703df0706415f01831dab2),
292
+ [`7bb1573ba`](https://github.com/graphile/crystal/commit/7bb1573ba45a4d8b7fa9ad53cdd79686d2641383),
293
+ [`18addb385`](https://github.com/graphile/crystal/commit/18addb3852525aa91019a36d58fa2fecd8b5b443),
294
+ [`6ed615e55`](https://github.com/graphile/crystal/commit/6ed615e557b2ab1fb57f1e68c06730a8e3da7175),
295
+ [`b25cc539c`](https://github.com/graphile/crystal/commit/b25cc539c00aeda7a943c37509aaae4dc7812317),
296
+ [`867f33136`](https://github.com/graphile/crystal/commit/867f331365346fc46ed1e0d23c79719846e398f4),
297
+ [`cf535c210`](https://github.com/graphile/crystal/commit/cf535c21078da06c14dd12f30e9b4378da4ded03),
298
+ [`acf99b190`](https://github.com/graphile/crystal/commit/acf99b190954e3c5926e820daed68dfe8eb3ee1f),
299
+ [`4967a197f`](https://github.com/graphile/crystal/commit/4967a197fd2c71ee2a581fe29470ee9f30e74de5),
300
+ [`1908e1ba1`](https://github.com/graphile/crystal/commit/1908e1ba11883a34dac66f985fc20ab160e572b1),
301
+ [`084d80be6`](https://github.com/graphile/crystal/commit/084d80be6e17187c9a9932bcf079e3f460368782)]:
302
+ - grafast@0.1.1-beta.12
303
+ - grafserv@0.1.1-beta.14
304
+
305
+ ## 0.0.0-beta.23
306
+
307
+ ### Patch Changes
308
+
309
+ - Updated dependencies
310
+ [[`582bd768f`](https://github.com/graphile/crystal/commit/582bd768fec403ce3284f293b85b9fd86e4d3f40)]:
311
+ - graphile-config@0.0.1-beta.9
312
+ - grafserv@0.1.1-beta.13
313
+ - grafast@0.1.1-beta.11
314
+
315
+ ## 0.0.0-beta.22
316
+
317
+ ### Patch Changes
318
+
319
+ - Updated dependencies
320
+ [[`3c161f7e1`](https://github.com/graphile/crystal/commit/3c161f7e13375105b1035a7d5d1c0f2b507ca5c7),
321
+ [`a674a9923`](https://github.com/graphile/crystal/commit/a674a9923bc908c9315afa40e0cb256ee0953d16),
322
+ [`b7cfeffd1`](https://github.com/graphile/crystal/commit/b7cfeffd1019d61c713a5054c4f5929960a2a6ab)]:
323
+ - grafast@0.1.1-beta.10
324
+ - grafserv@0.1.1-beta.12
325
+
326
+ ## 0.0.0-beta.21
327
+
328
+ ### Patch Changes
329
+
330
+ - Updated dependencies
331
+ [[`437570f97`](https://github.com/graphile/crystal/commit/437570f97e8520afaf3d0d0b514d1f4c31546b76)]:
332
+ - grafast@0.1.1-beta.9
333
+ - grafserv@0.1.1-beta.11
334
+
335
+ ## 0.0.0-beta.20
336
+
337
+ ### Patch Changes
338
+
339
+ - Updated dependencies
340
+ [[`bd5a908a4`](https://github.com/graphile/crystal/commit/bd5a908a4d04310f90dfb46ad87398ffa993af3b)]:
341
+ - grafast@0.1.1-beta.8
342
+ - grafserv@0.1.1-beta.10
343
+
344
+ ## 0.0.0-beta.19
345
+
346
+ ### Patch Changes
347
+
348
+ - Updated dependencies
349
+ [[`357d475f5`](https://github.com/graphile/crystal/commit/357d475f54fecc8c51892e0346d6872b34132430),
350
+ [`3551725e7`](https://github.com/graphile/crystal/commit/3551725e71c3ed876554e19e5ab2c1dcb0fb1143),
351
+ [`80836471e`](https://github.com/graphile/crystal/commit/80836471e5cedb29dee63bc5002550c4f1713cfd),
352
+ [`a5c20fefb`](https://github.com/graphile/crystal/commit/a5c20fefb571dea6d1187515dc48dd547e9e6204),
353
+ [`1ce08980e`](https://github.com/graphile/crystal/commit/1ce08980e2a52ed9bc81564d248c19648ecd3616),
354
+ [`dff4f2535`](https://github.com/graphile/crystal/commit/dff4f2535ac6ce893089b312fcd5fffcd98573a5),
355
+ [`a287a57c2`](https://github.com/graphile/crystal/commit/a287a57c2765da0fb6a132ea0953f64453210ceb),
356
+ [`2fe56f9a6`](https://github.com/graphile/crystal/commit/2fe56f9a6dac03484ace45c29c2223a65f9ca1db),
357
+ [`fed603d71`](https://github.com/graphile/crystal/commit/fed603d719c02f33e12190f925c9e3b06c581fac),
358
+ [`ed6e0d278`](https://github.com/graphile/crystal/commit/ed6e0d2788217a1c419634837f4208013eaf2923),
359
+ [`e82e4911e`](https://github.com/graphile/crystal/commit/e82e4911e32138df1b90ec0fde555ea963018d21),
360
+ [`42ece5aa6`](https://github.com/graphile/crystal/commit/42ece5aa6ca05345ebc17fb5c7d55df3b79b7612),
361
+ [`e0d69e518`](https://github.com/graphile/crystal/commit/e0d69e518a98c70f9b90f59d243ce33978c1b5a1),
362
+ [`db8ceed0f`](https://github.com/graphile/crystal/commit/db8ceed0f17923eb78ff09c9f3f28800a5c7e3b6),
363
+ [`a5a0816bd`](https://github.com/graphile/crystal/commit/a5a0816bddc85a841770202db57457ff13137852),
364
+ [`6699388ec`](https://github.com/graphile/crystal/commit/6699388ec167d35c71220ce5d9113cac578da6cb),
365
+ [`966203504`](https://github.com/graphile/crystal/commit/96620350467ab8c65b56adf2f055e19450f8e772),
366
+ [`c1645b249`](https://github.com/graphile/crystal/commit/c1645b249aae949a548cd916e536ccfb63e5ab35),
367
+ [`ed8bbaa3c`](https://github.com/graphile/crystal/commit/ed8bbaa3cd1563a7601ca8c6b0412633b0ea4ce9),
368
+ [`a0e82b9c5`](https://github.com/graphile/crystal/commit/a0e82b9c5f4e585f1af1e147299cd07944ece6f8),
369
+ [`14e2412ee`](https://github.com/graphile/crystal/commit/14e2412ee368e8d53abf6774c7f0069f32d4e8a3),
370
+ [`57ab0e1e7`](https://github.com/graphile/crystal/commit/57ab0e1e72c01213b21d3efc539cd655d83d993a),
371
+ [`8442242e4`](https://github.com/graphile/crystal/commit/8442242e43cac7d89ca0c413cf42c9fabf6f247f),
372
+ [`64ce7b765`](https://github.com/graphile/crystal/commit/64ce7b7650530251aec38a51089da66f914c19b4),
373
+ [`cba842357`](https://github.com/graphile/crystal/commit/cba84235786acbd77ade53bae7a3fba4a9be1eb7),
374
+ [`2fa77d0f2`](https://github.com/graphile/crystal/commit/2fa77d0f237cdb98d3dafb6b5e4083a2c6c38673)]:
375
+ - grafast@0.1.1-beta.7
376
+ - graphile-config@0.0.1-beta.8
377
+ - grafserv@0.1.1-beta.9
378
+
379
+ ## 0.0.0-beta.18
380
+
381
+ ### Patch Changes
382
+
383
+ - Updated dependencies
384
+ [[`9f85c614d`](https://github.com/graphile/crystal/commit/9f85c614d48dc745c5fed15333dbb75af7fddc88),
385
+ [`6c6be29f1`](https://github.com/graphile/crystal/commit/6c6be29f12b24782c926b2bc62ed2ede09ac05de),
386
+ [`8315e8d01`](https://github.com/graphile/crystal/commit/8315e8d01c118cebc4ebbc53a2f264b958b252ad)]:
387
+ - grafast@0.1.1-beta.6
388
+ - grafserv@0.1.1-beta.8
389
+
390
+ ## 0.0.0-beta.17
391
+
392
+ ### Patch Changes
393
+
394
+ - Updated dependencies
395
+ [[`63dd7ea99`](https://github.com/graphile/crystal/commit/63dd7ea992d30ad711dd85a73a127484a0e35479),
396
+ [`d801c9778`](https://github.com/graphile/crystal/commit/d801c9778a86d61e060896460af9fe62a733534a),
397
+ [`c21252541`](https://github.com/graphile/crystal/commit/c212525410cb2d97a808964ad727d0a68dd15f8b),
398
+ [`ef44c29b2`](https://github.com/graphile/crystal/commit/ef44c29b24a1ad5a042ae1536a4546dd64b17195),
399
+ [`5de3e86eb`](https://github.com/graphile/crystal/commit/5de3e86eba1ddfe5e07732d0325c63e5d72d4b5b)]:
400
+ - grafast@0.1.1-beta.5
401
+ - grafserv@0.1.1-beta.7
402
+ - graphile-config@0.0.1-beta.7
403
+
404
+ ## 0.0.0-beta.16
405
+
406
+ ### Patch Changes
407
+
408
+ - Updated dependencies
409
+ [[`de7add402`](https://github.com/graphile/crystal/commit/de7add402bd4a45c8782fce69bf210635360cbe8),
410
+ [`a2176ea32`](https://github.com/graphile/crystal/commit/a2176ea324db0801249661b30e9c9d314c6fb159),
411
+ [`886833e2e`](https://github.com/graphile/crystal/commit/886833e2e319f23d905d7184ca88fca701b94044)]:
412
+ - grafserv@0.1.1-beta.6
413
+ - grafast@0.1.1-beta.4
414
+
415
+ ## 0.0.0-beta.15
416
+
417
+ ### Patch Changes
418
+
419
+ - Updated dependencies
420
+ [[`0df5511ac`](https://github.com/graphile/crystal/commit/0df5511ac8b79ea34f8d12ebf8feeb421f8fe971)]:
421
+ - graphile-config@0.0.1-beta.6
422
+ - grafast@0.1.1-beta.3
423
+ - grafserv@0.1.1-beta.5
424
+
425
+ ## 0.0.0-beta.14
426
+
427
+ ### Patch Changes
428
+
429
+ - [#1877](https://github.com/graphile/crystal/pull/1877)
430
+ [`8a0cdb95f`](https://github.com/graphile/crystal/commit/8a0cdb95f200b28b0ea1ab5caa12b23dce5f374f)
431
+ Thanks [@benjie](https://github.com/benjie)! - Move 'declare global' out of
432
+ 'interfaces.ts' and into 'index.ts' or equivalent. Should make TypeScript more
433
+ aware of these types.
434
+ - Updated dependencies
435
+ [[`3fdc2bce4`](https://github.com/graphile/crystal/commit/3fdc2bce42418773f808c5b8309dfb361cd95ce9),
436
+ [`aeef362b5`](https://github.com/graphile/crystal/commit/aeef362b5744816f01e4a6f714bbd77f92332bc5),
437
+ [`8a76db07f`](https://github.com/graphile/crystal/commit/8a76db07f4c110cecc6225504f9a05ccbcbc7b92),
438
+ [`8a0cdb95f`](https://github.com/graphile/crystal/commit/8a0cdb95f200b28b0ea1ab5caa12b23dce5f374f),
439
+ [`995e25035`](https://github.com/graphile/crystal/commit/995e250352217fdf8f036b8ed6cad3fab520817f),
440
+ [`1c9f1c0ed`](https://github.com/graphile/crystal/commit/1c9f1c0edf4e621a5b6345d3a41527a18143c6ae)]:
441
+ - grafast@0.1.1-beta.2
442
+ - graphile-config@0.0.1-beta.5
443
+ - grafserv@0.1.1-beta.4
444
+
445
+ ## 0.0.0-beta.13
446
+
447
+ ### Patch Changes
448
+
449
+ - Updated dependencies
450
+ [[`9696a1b08`](https://github.com/graphile/crystal/commit/9696a1b0885442f44e3a6ca6a4909ec96a445884),
451
+ [`49fcb0d58`](https://github.com/graphile/crystal/commit/49fcb0d585b31b291c9072c339d6f5b550eefc9f),
452
+ [`7aef73319`](https://github.com/graphile/crystal/commit/7aef73319a8a147c700727be62427e1eefdefbf8)]:
453
+ - grafserv@0.1.1-beta.3
454
+ - grafast@0.1.1-beta.1
455
+ - graphile-config@0.0.1-beta.4
456
+
457
+ ## 0.0.0-beta.12
458
+
459
+ ### Patch Changes
460
+
461
+ - Updated dependencies []:
462
+ - grafserv@0.1.1-beta.2
463
+
464
+ ## 0.0.0-beta.11
465
+
466
+ ### Patch Changes
467
+
468
+ - Updated dependencies
469
+ [[`781a89758`](https://github.com/graphile/crystal/commit/781a89758fff2712f0080d8fafb4048da189b782),
470
+ [`a38e650d6`](https://github.com/graphile/crystal/commit/a38e650d67d6c7ff0cf5b853377622090ede3a50)]:
471
+ - grafserv@0.1.1-beta.1
472
+
473
+ ## 0.0.0-beta.10
474
+
475
+ ### Patch Changes
476
+
477
+ - Updated dependencies
478
+ [[`4a4d26d87`](https://github.com/graphile/crystal/commit/4a4d26d87ce74589429b8ca5126a7bfdf30351b8),
479
+ [`b2bce88da`](https://github.com/graphile/crystal/commit/b2bce88da26c7a8965468be16fc2d935eadd3434),
480
+ [`861a8a306`](https://github.com/graphile/crystal/commit/861a8a306ef42a821da19e77903ddd7e8130bfb3),
481
+ [`2d31f058b`](https://github.com/graphile/crystal/commit/2d31f058b34d3f5ef11699582b9a4960a4ebc471)]:
482
+ - grafast@0.1.1-beta.0
483
+ - grafserv@0.1.1-beta.0
484
+
3
485
  ## 0.0.0-beta.9
4
486
 
5
487
  ### Patch Changes
package/README.md CHANGED
@@ -31,13 +31,7 @@ And please give some love to our featured sponsors 🤩:
31
31
 
32
32
  <table><tr>
33
33
  <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>
34
- <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>
35
- <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>
36
- <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>
37
- </tr><tr>
38
- <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>
39
- <td align="center"><a href="https://www.accenture.com/"><img src="https://graphile.org/images/sponsors/accenture.svg" width="90" height="90" alt="Accenture" /><br />Accenture</a> *</td>
40
- <td align="center"><a href="https://microteam.io/"><img src="https://graphile.org/images/sponsors/micro.png" width="90" height="90" alt="We Love Micro" /><br />We Love Micro</a> *</td>
34
+ <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>
41
35
  </tr></table>
42
36
 
43
37
  <em>\* Sponsors the entire Graphile suite</em>
@@ -47,8 +41,8 @@ And please give some love to our featured sponsors 🤩:
47
41
  ## Installation
48
42
 
49
43
  ```sh
50
- yarn add @grafserv/persisted@beta
51
- # or: npm install --save @grafserv/persisted@beta
44
+ yarn add @grafserv/persisted
45
+ # or: npm install --save @grafserv/persisted
52
46
  ```
53
47
 
54
48
  ## Usage
package/dist/index.d.ts CHANGED
@@ -1,4 +1,86 @@
1
+ import type { ParsedGraphQLBody, ProcessGraphQLRequestBodyEvent } from "grafserv";
1
2
  export type { PersistedOperationGetter } from "./interfaces.js";
3
+ import type { PersistedOperationGetter } from "./interfaces.js";
4
+ declare global {
5
+ namespace GraphileConfig {
6
+ interface Plugins {
7
+ PersistedPlugin: true;
8
+ }
9
+ }
10
+ }
2
11
  declare const PersistedPlugin: GraphileConfig.Plugin;
3
12
  export default PersistedPlugin;
13
+ declare global {
14
+ namespace GraphileConfig {
15
+ interface GrafservOptions {
16
+ /**
17
+ * This function will be passed a GraphQL request object (normally
18
+ * `{query: string, variables?: any, operationName?: string, extensions?: any}`,
19
+ * but in the case of persisted operations it likely won't have a `query`
20
+ * property), and must extract the hash to use to identify the persisted
21
+ * operation. For Apollo Client, this might be something like:
22
+ * `request?.extensions?.persistedQuery?.sha256Hash`; for Relay something
23
+ * like: `request?.documentId`.
24
+ */
25
+ hashFromPayload?(request: ParsedGraphQLBody): string | undefined;
26
+ /**
27
+ * We can read persisted operations from a folder (they must be named
28
+ * `<hash>.graphql`). When used in this way, the first request for a hash
29
+ * will read the file, and then the result will be cached such that the
30
+ * **filesystem read** will only impact the first use of that hash. We
31
+ * periodically scan the folder for new files, requests for hashes that
32
+ * were not present in our last scan of the folder will be rejected to
33
+ * mitigate denial of service attacks asking for non-existent hashes.
34
+ */
35
+ persistedOperationsDirectory?: string;
36
+ /**
37
+ * How many milliseconds should we leave it between scans of the persisted
38
+ * operations folder, checking for new files?
39
+ *
40
+ * Set this to the string "watch" to use `fs.watch` to monitor for changes. [EXPERIMENTAL].
41
+ *
42
+ * Set to `-1` to disable.
43
+ *
44
+ * Default: -1
45
+ */
46
+ persistedOperationsDirectoryScanInterval?: number | "watch";
47
+ /**
48
+ * An optional string-string key-value object defining the persisted
49
+ * operations, where the keys are the hashes, and the values are the
50
+ * operation document strings to use.
51
+ */
52
+ persistedOperations?: {
53
+ [hash: string]: string;
54
+ };
55
+ /**
56
+ * If your known persisted operations may change over time, or you'd rather
57
+ * load them on demand, you may supply this function. Note this function is
58
+ * **performance critical** so you should use caching to improve
59
+ * performance of any follow-up requests for the same hash.
60
+ */
61
+ persistedOperationsGetter?: PersistedOperationGetter;
62
+ /**
63
+ * There are situations where you may want to allow arbitrary operations
64
+ * (for example using GraphiQL in development, or allowing an admin to
65
+ * make arbitrary requests in production) whilst enforcing Persisted
66
+ * Operations for the application and non-admin users. This function
67
+ * allows you to determine under which circumstances persisted operations
68
+ * may be bypassed.
69
+ *
70
+ * IMPORTANT: this function must not throw!
71
+ *
72
+ * @example
73
+ *
74
+ * ```
75
+ * app.use(postgraphile(DATABASE_URL, SCHEMAS, {
76
+ * allowUnpersistedOperation(event) {
77
+ * return process.env.NODE_ENV === "development" && event.request?.getHeader('referer')?.endsWith("/graphiql");
78
+ * }
79
+ * });
80
+ * ```
81
+ */
82
+ allowUnpersistedOperation?: boolean | ((event: ProcessGraphQLRequestBodyEvent) => boolean);
83
+ }
84
+ }
85
+ }
4
86
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAUA,YAAY,EAAE,wBAAwB,EAAE,MAAM,iBAAiB,CAAC;AAKhE,QAAA,MAAM,eAAe,EAAE,cAAc,CAAC,MA8CrC,CAAC;AAEF,eAAe,eAAe,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,iBAAiB,EACjB,8BAA8B,EAC/B,MAAM,UAAU,CAAC;AAGlB,YAAY,EAAE,wBAAwB,EAAE,MAAM,iBAAiB,CAAC;AAGhE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,iBAAiB,CAAC;AAGhE,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,cAAc,CAAC;QACvB,UAAU,OAAO;YACf,eAAe,EAAE,IAAI,CAAC;SACvB;KACF;CACF;AAED,QAAA,MAAM,eAAe,EAAE,cAAc,CAAC,MA+CrC,CAAC;AAEF,eAAe,eAAe,CAAC;AAoR/B,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,cAAc,CAAC;QACvB,UAAU,eAAe;YACvB;;;;;;;;eAQG;YACH,eAAe,CAAC,CAAC,OAAO,EAAE,iBAAiB,GAAG,MAAM,GAAG,SAAS,CAAC;YAEjE;;;;;;;;eAQG;YACH,4BAA4B,CAAC,EAAE,MAAM,CAAC;YAEtC;;;;;;;;;eASG;YACH,wCAAwC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;YAE5D;;;;eAIG;YACH,mBAAmB,CAAC,EAAE;gBAAE,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAA;aAAE,CAAC;YAEjD;;;;;eAKG;YACH,yBAAyB,CAAC,EAAE,wBAAwB,CAAC;YAErD;;;;;;;;;;;;;;;;;;;eAmBG;YACH,yBAAyB,CAAC,EACtB,OAAO,GACP,CAAC,CAAC,KAAK,EAAE,8BAA8B,KAAK,OAAO,CAAC,CAAC;SAC1D;KACF;CACF"}
package/dist/index.js CHANGED
@@ -10,10 +10,10 @@ const PersistedPlugin = {
10
10
  description: "Enables persisted operations in Grafserv",
11
11
  version: version_js_1.version,
12
12
  grafserv: {
13
- hooks: {
14
- processGraphQLRequestBody(info, event) {
15
- const { body } = event;
16
- const options = info.resolvedPreset.grafserv;
13
+ middleware: {
14
+ processGraphQLRequestBody(next, event) {
15
+ const { body, resolvedPreset } = event;
16
+ const options = resolvedPreset.grafserv;
17
17
  if (!options) {
18
18
  throw new grafast_1.SafeError("Persisted operations misconfigured; rejecting requests.", { statusCode: 500 });
19
19
  }
@@ -37,6 +37,7 @@ const PersistedPlugin = {
37
37
  throw new grafast_1.SafeError("Persisted operations are enabled on this server, please provide an approved document id.", { statusCode: 400 });
38
38
  }
39
39
  }
40
+ return next();
40
41
  },
41
42
  },
42
43
  },
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,wEAAmC;AAGnC,qCAAoC;AAQpC,gEAAgC;AAEhC,6CAAuC;AAEvC,MAAM,eAAe,GAA0B;IAC7C,IAAI,EAAE,iBAAiB;IACvB,WAAW,EAAE,0CAA0C;IACvD,OAAO,EAAP,oBAAO;IAEP,QAAQ,EAAE;QACR,KAAK,EAAE;YACL,yBAAyB,CAAC,IAAI,EAAE,KAAK;gBACnC,MAAM,EAAE,IAA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AAI,GAAG,eAAe,CAAC,OAAyB,CAAC,CAAC;QACxD,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE,CAAC;YAC7B,IAAI,yBAAyB,IAAI,OAAO,OAAO,EAAE,KAAK,KAAK,QAAQ,EAAE,CAAC;gBACpE,OAAO,OAAO,CAAC,KAAK,CAAC;YACvB,CAAC;YAED,MAAM,IAAI,KAAK,CACb,qEAAqE,CACtE,CAAC;QACJ,CAAC;QACD,MAAM,MAAM,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;QAC1C,OAAO,MAAM,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACX,OAAO,CAAC,KAAK,CAAC,gDAAgD,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC;QAE5E,2EAA2E;QAC3E,6BAA6B;QAC7B,OAAO,IAAI,CAAC;IACd,CAAC;AACH,CAAC"}
@@ -1,81 +1,7 @@
1
1
  import type { PromiseOrDirect } from "grafast";
2
- import type { ParsedGraphQLBody, ProcessGraphQLRequestBodyEvent } from "grafserv";
3
2
  /**
4
3
  * Given a persisted operation hash, return the associated GraphQL operation
5
4
  * document.
6
5
  */
7
6
  export type PersistedOperationGetter = (hash: string) => PromiseOrDirect<string>;
8
- declare global {
9
- namespace GraphileConfig {
10
- interface GrafservOptions {
11
- /**
12
- * This function will be passed a GraphQL request object (normally
13
- * `{query: string, variables?: any, operationName?: string, extensions?: any}`,
14
- * but in the case of persisted operations it likely won't have a `query`
15
- * property), and must extract the hash to use to identify the persisted
16
- * operation. For Apollo Client, this might be something like:
17
- * `request?.extensions?.persistedQuery?.sha256Hash`; for Relay something
18
- * like: `request?.documentId`.
19
- */
20
- hashFromPayload?(request: ParsedGraphQLBody): string | undefined;
21
- /**
22
- * We can read persisted operations from a folder (they must be named
23
- * `<hash>.graphql`). When used in this way, the first request for a hash
24
- * will read the file, and then the result will be cached such that the
25
- * **filesystem read** will only impact the first use of that hash. We
26
- * periodically scan the folder for new files, requests for hashes that
27
- * were not present in our last scan of the folder will be rejected to
28
- * mitigate denial of service attacks asking for non-existent hashes.
29
- */
30
- persistedOperationsDirectory?: string;
31
- /**
32
- * How many milliseconds should we leave it between scans of the persisted
33
- * operations folder, checking for new files?
34
- *
35
- * Set this to the string "watch" to use `fs.watch` to monitor for changes. [EXPERIMENTAL].
36
- *
37
- * Set to `-1` to disable.
38
- *
39
- * Default: -1
40
- */
41
- persistedOperationsDirectoryScanInterval?: number | "watch";
42
- /**
43
- * An optional string-string key-value object defining the persisted
44
- * operations, where the keys are the hashes, and the values are the
45
- * operation document strings to use.
46
- */
47
- persistedOperations?: {
48
- [hash: string]: string;
49
- };
50
- /**
51
- * If your known persisted operations may change over time, or you'd rather
52
- * load them on demand, you may supply this function. Note this function is
53
- * **performance critical** so you should use caching to improve
54
- * performance of any follow-up requests for the same hash.
55
- */
56
- persistedOperationsGetter?: PersistedOperationGetter;
57
- /**
58
- * There are situations where you may want to allow arbitrary operations
59
- * (for example using GraphiQL in development, or allowing an admin to
60
- * make arbitrary requests in production) whilst enforcing Persisted
61
- * Operations for the application and non-admin users. This function
62
- * allows you to determine under which circumstances persisted operations
63
- * may be bypassed.
64
- *
65
- * IMPORTANT: this function must not throw!
66
- *
67
- * @example
68
- *
69
- * ```
70
- * app.use(postgraphile(DATABASE_URL, SCHEMAS, {
71
- * allowUnpersistedOperation(event) {
72
- * return process.env.NODE_ENV === "development" && event.request?.getHeader('referer')?.endsWith("/graphiql");
73
- * }
74
- * });
75
- * ```
76
- */
77
- allowUnpersistedOperation?: boolean | ((event: ProcessGraphQLRequestBodyEvent) => boolean);
78
- }
79
- }
80
- }
81
7
  //# sourceMappingURL=interfaces.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../src/interfaces.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAC/C,OAAO,KAAK,EACV,iBAAiB,EACjB,8BAA8B,EAC/B,MAAM,UAAU,CAAC;AAGlB;;;GAGG;AACH,MAAM,MAAM,wBAAwB,GAAG,CACrC,IAAI,EAAE,MAAM,KACT,eAAe,CAAC,MAAM,CAAC,CAAC;AAE7B,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,cAAc,CAAC;QACvB,UAAU,eAAe;YACvB;;;;;;;;eAQG;YACH,eAAe,CAAC,CAAC,OAAO,EAAE,iBAAiB,GAAG,MAAM,GAAG,SAAS,CAAC;YAEjE;;;;;;;;eAQG;YACH,4BAA4B,CAAC,EAAE,MAAM,CAAC;YAEtC;;;;;;;;;eASG;YACH,wCAAwC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;YAE5D;;;;eAIG;YACH,mBAAmB,CAAC,EAAE;gBAAE,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAA;aAAE,CAAC;YAEjD;;;;;eAKG;YACH,yBAAyB,CAAC,EAAE,wBAAwB,CAAC;YAErD;;;;;;;;;;;;;;;;;;;eAmBG;YACH,yBAAyB,CAAC,EACtB,OAAO,GACP,CAAC,CAAC,KAAK,EAAE,8BAA8B,KAAK,OAAO,CAAC,CAAC;SAC1D;KACF;CACF"}
1
+ {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../src/interfaces.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAG/C;;;GAGG;AACH,MAAM,MAAM,wBAAwB,GAAG,CACrC,IAAI,EAAE,MAAM,KACT,eAAe,CAAC,MAAM,CAAC,CAAC"}
package/dist/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const version = "0.0.0-beta.9";
1
+ export declare const version = "1.0.0-rc.2";
2
2
  //# sourceMappingURL=version.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,OAAO,iBAAiB,CAAC"}
1
+ {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,OAAO,eAAe,CAAC"}
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 = "0.0.0-beta.9";
5
+ exports.version = "1.0.0-rc.2";
6
6
  //# sourceMappingURL=version.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.js","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":";;;AAAA,yDAAyD;AAC5C,QAAA,OAAO,GAAG,cAAc,CAAC"}
1
+ {"version":3,"file":"version.js","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":";;;AAAA,yDAAyD;AAC5C,QAAA,OAAO,GAAG,YAAY,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grafserv/persisted",
3
- "version": "0.0.0-beta.9",
3
+ "version": "1.0.0-rc.2",
4
4
  "description": "Persisted operations support for Grafserv",
5
5
  "type": "commonjs",
6
6
  "main": "dist/index.js",
@@ -39,16 +39,17 @@
39
39
  },
40
40
  "homepage": "https://github.com/graphile/crystal/tree/main/grafast/grafserv-persisted",
41
41
  "dependencies": {
42
- "@graphile/lru": "^5.0.0-beta.3",
43
- "tslib": "^2.6.2"
42
+ "@graphile/lru": "^5.0.0-rc.2",
43
+ "tslib": "^2.8.1"
44
44
  },
45
45
  "engines": {
46
46
  "node": ">=16.10"
47
47
  },
48
48
  "peerDependencies": {
49
- "grafast": "^0.0.1-beta.8",
50
- "grafserv": "^0.0.1-beta.9",
51
- "graphile-config": "^0.0.1-beta.3"
49
+ "grafast": "^1.0.0-rc.2",
50
+ "grafserv": "^1.0.0-rc.2",
51
+ "graphile-config": "^1.0.0-rc.2",
52
+ "graphql": "^16.9.0"
52
53
  },
53
54
  "peerDependenciesMeta": {
54
55
  "graphile-config": {
@@ -56,13 +57,15 @@
56
57
  }
57
58
  },
58
59
  "devDependencies": {
59
- "grafast": "^0.0.1-beta.8",
60
- "grafserv": "^0.0.1-beta.9",
61
- "graphile-config": "^0.0.1-beta.3",
62
- "jest": "^29.6.4",
63
- "jest-serializer-graphql-schema": "^5.0.0-beta.3",
64
- "ts-node": "^10.9.1",
65
- "typescript": "^5.2.2"
60
+ "@types/node": "^22.19.1",
61
+ "grafast": "^1.0.0-rc.2",
62
+ "grafserv": "^1.0.0-rc.2",
63
+ "graphile-config": "^1.0.0-rc.2",
64
+ "graphql": "^16.9.0",
65
+ "jest": "^30.2.0",
66
+ "jest-serializer-graphql-schema": "^5.0.0-rc.2",
67
+ "ts-node": "^10.9.2",
68
+ "typescript": "^5.9.3"
66
69
  },
67
70
  "files": [
68
71
  "dist",