graphile-export 0.0.2-beta.8 → 1.0.0-rc.1

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,564 @@
1
1
  # graphile-export
2
2
 
3
+ ## 1.0.0-rc.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`8a5a7c5`](https://github.com/graphile/crystal/commit/8a5a7c536fc4b9b702600c5cc3d413724670c327)
8
+ Thanks [@benjie](https://github.com/benjie)! - Bump to release candidate
9
+
10
+ - Updated dependencies
11
+ [[`abb623d`](https://github.com/graphile/crystal/commit/abb623d59e517c0949f0fef5440b817103c685bf),
12
+ [`31b388c`](https://github.com/graphile/crystal/commit/31b388c6d5546640af7dcf4e6021643e47892ed1),
13
+ [`930240a`](https://github.com/graphile/crystal/commit/930240a4a7d3373f5691d495df752bb8fedac2af),
14
+ [`7b86454`](https://github.com/graphile/crystal/commit/7b864546fa81803ce0e573a2efa2e7f0905b2040),
15
+ [`42a0785`](https://github.com/graphile/crystal/commit/42a0785ddabf58812a22d764eeddfde9362974e5),
16
+ [`d196d60`](https://github.com/graphile/crystal/commit/d196d60664fbc9ffd410c11645db27554b22ac0b),
17
+ [`c6cbe61`](https://github.com/graphile/crystal/commit/c6cbe6175b0f1f034db59d42cbe594e7d329aba6),
18
+ [`d4ac603`](https://github.com/graphile/crystal/commit/d4ac603da7df6ea01aaa483a7cb29b1e514a90cd),
19
+ [`8a5a7c5`](https://github.com/graphile/crystal/commit/8a5a7c536fc4b9b702600c5cc3d413724670c327),
20
+ [`ea0135f`](https://github.com/graphile/crystal/commit/ea0135fac3f43850b65828f2ff2b01a34cfdff15),
21
+ [`b6821f5`](https://github.com/graphile/crystal/commit/b6821f5f4dc13abd0b605be7396c1b3c36e66177)]:
22
+ - grafast@1.0.0-rc.1
23
+ - pg-sql2@5.0.0-rc.1
24
+
25
+ ## 0.0.2-beta.31
26
+
27
+ ### Patch Changes
28
+
29
+ - [#2730](https://github.com/graphile/crystal/pull/2730)
30
+ [`4c3cf22`](https://github.com/graphile/crystal/commit/4c3cf22592f44cb28e399434474ca5fcef0e1a3b)
31
+ Thanks [@benjie](https://github.com/benjie)! - Update `graphql` version range
32
+
33
+ - [#2142](https://github.com/graphile/crystal/pull/2142)
34
+ [`ab96e5f`](https://github.com/graphile/crystal/commit/ab96e5f58aa3315db9b85b452b048f600cb8353e)
35
+ Thanks [@benjie](https://github.com/benjie)! - Support for `@defer` and
36
+ `@stream` no longer requires `graphql@16.1.0-experimental-stream-defer.6`.
37
+ `graphql@^16.9.0` should now work, since we ponyfill everything we need.
38
+ - Updated dependencies
39
+ [[`4c3cf22`](https://github.com/graphile/crystal/commit/4c3cf22592f44cb28e399434474ca5fcef0e1a3b),
40
+ [`71e0af2`](https://github.com/graphile/crystal/commit/71e0af265c90e9d9d0dc764cc552f7470e860251),
41
+ [`ab96e5f`](https://github.com/graphile/crystal/commit/ab96e5f58aa3315db9b85b452b048f600cb8353e),
42
+ [`278b4d3`](https://github.com/graphile/crystal/commit/278b4d398eb7db1935caba4155e1d1727284a370),
43
+ [`eaa771b`](https://github.com/graphile/crystal/commit/eaa771b34dbdac1c4d701faa8fb5947e9cf1d1be),
44
+ [`d0c15cc`](https://github.com/graphile/crystal/commit/d0c15ccc32ed8dec19ff068f851529132dc93302),
45
+ [`bffbb77`](https://github.com/graphile/crystal/commit/bffbb775ea76d1add85422866a6b7e904d2311af),
46
+ [`c48ca48`](https://github.com/graphile/crystal/commit/c48ca4840227b8e5e6a1dc198a189cfd911a602b)]:
47
+ - grafast@0.1.1-beta.27
48
+
49
+ ## 0.0.2-beta.30
50
+
51
+ ### Patch Changes
52
+
53
+ - [#2692](https://github.com/graphile/crystal/pull/2692)
54
+ [`3d5c464`](https://github.com/graphile/crystal/commit/3d5c4641df66b431066efd6c74b67ca0d38ba7f4)
55
+ Thanks [@benjie](https://github.com/benjie)! - Allow forbidding certain
56
+ objects/functions from being exported, and raise error as early as possible.
57
+ - Updated dependencies
58
+ [[`c3f9c38`](https://github.com/graphile/crystal/commit/c3f9c38cb00ad4553e4bc3c04e16a7c77bd16142),
59
+ [`13513dd`](https://github.com/graphile/crystal/commit/13513ddaea15ad9498a77de7c4e92679498f99ca),
60
+ [`bc2b188`](https://github.com/graphile/crystal/commit/bc2b188a50e00f153dc68df6955399c5917130bd),
61
+ [`c13813e`](https://github.com/graphile/crystal/commit/c13813eecb42c0d9a6703540c022e318e18c5751),
62
+ [`4a9072b`](https://github.com/graphile/crystal/commit/4a9072bfa3d3e86c6013caf2b89a31e87f2bb421),
63
+ [`6dafac1`](https://github.com/graphile/crystal/commit/6dafac162955291e5147c21e57734b44e30acb98),
64
+ [`34efed0`](https://github.com/graphile/crystal/commit/34efed09892d4b6533f40026de4a6b0a8a35035d),
65
+ [`185d449`](https://github.com/graphile/crystal/commit/185d449ed30d29c9134cc898b50a1473ab2910a2)]:
66
+ - grafast@0.1.1-beta.26
67
+
68
+ ## 0.0.2-beta.29
69
+
70
+ ### Patch Changes
71
+
72
+ - [#2577](https://github.com/graphile/crystal/pull/2577)
73
+ [`0c6b1f1`](https://github.com/graphile/crystal/commit/0c6b1f1e188f6e2913832adfed9ca76dfdc25c47)
74
+ Thanks [@benjie](https://github.com/benjie)! - Update dependencies
75
+
76
+ - Updated dependencies
77
+ [[`0c6b1f1`](https://github.com/graphile/crystal/commit/0c6b1f1e188f6e2913832adfed9ca76dfdc25c47)]:
78
+ - grafast@0.1.1-beta.23
79
+
80
+ ## 0.0.2-beta.28
81
+
82
+ ### Patch Changes
83
+
84
+ - [#2576](https://github.com/graphile/crystal/pull/2576)
85
+ [`8dd9bb3701b8d01ece4349161e7ce065c21487a6`](https://github.com/graphile/crystal/commit/8dd9bb3701b8d01ece4349161e7ce065c21487a6)
86
+ Thanks [@benjie](https://github.com/benjie)! - Provide option to allow
87
+ disabling optimize (to reduce memory pressure).
88
+
89
+ - [#2574](https://github.com/graphile/crystal/pull/2574)
90
+ [`ec25997a6a2557cde9aaa9e27eb202ad945b6015`](https://github.com/graphile/crystal/commit/ec25997a6a2557cde9aaa9e27eb202ad945b6015)
91
+ Thanks [@benjie](https://github.com/benjie)! - Fix dependency ranges to allow
92
+ ESLint 9
93
+
94
+ ## 0.0.2-beta.27
95
+
96
+ ### Patch Changes
97
+
98
+ - [#2535](https://github.com/graphile/crystal/pull/2535)
99
+ [`fae2629f7bdd39b62ca7f8a911306a0dda3232b5`](https://github.com/graphile/crystal/commit/fae2629f7bdd39b62ca7f8a911306a0dda3232b5)
100
+ Thanks [@benjie](https://github.com/benjie)! - Graphile Export now exports in
101
+ the new typeDefs/objects/interfaces/unions/... format, and further sorts the
102
+ types and fields (but not the SDL!) for easier lookup.
103
+
104
+ - [#2482](https://github.com/graphile/crystal/pull/2482)
105
+ [`459e1869a2ec58925b2bac5458af487c52a8ca37`](https://github.com/graphile/crystal/commit/459e1869a2ec58925b2bac5458af487c52a8ca37)
106
+ Thanks [@benjie](https://github.com/benjie)! - Minimum version of Node.js
107
+ bumped to Node 22 (the latest LTS).
108
+
109
+ - [#2446](https://github.com/graphile/crystal/pull/2446)
110
+ [`a1d17ca2a18f3e733ca728e29645781c7789ebab`](https://github.com/graphile/crystal/commit/a1d17ca2a18f3e733ca728e29645781c7789ebab)
111
+ Thanks [@nckswt](https://github.com/nckswt)! - graphile-export now uses ES2022
112
+ syntax for ESLint check on exported schema, fixing compatibility with
113
+ `@graphile/pg-aggregates`.
114
+
115
+ - [#2497](https://github.com/graphile/crystal/pull/2497)
116
+ [`d0be66bcbcb497c06fc992a11d80b220fb6ac168`](https://github.com/graphile/crystal/commit/d0be66bcbcb497c06fc992a11d80b220fb6ac168)
117
+ Thanks [@benjie](https://github.com/benjie)! - Fix detection of SQL when
118
+ `pg-sql2` isn't available at runtime, and improve misleading error around
119
+ class instances
120
+ - Updated dependencies
121
+ [[`0e36cb9077c76710d2e407830323f86c5038126e`](https://github.com/graphile/crystal/commit/0e36cb9077c76710d2e407830323f86c5038126e),
122
+ [`5a26196eff8fd1956d73e0b8fdf5cfcb7f01b7d3`](https://github.com/graphile/crystal/commit/5a26196eff8fd1956d73e0b8fdf5cfcb7f01b7d3),
123
+ [`c0c3f48fa9f60cb9a4436ea135979b779ecc71ec`](https://github.com/graphile/crystal/commit/c0c3f48fa9f60cb9a4436ea135979b779ecc71ec),
124
+ [`cef9a37f846b4af105ac20960530d65c9f44afa9`](https://github.com/graphile/crystal/commit/cef9a37f846b4af105ac20960530d65c9f44afa9),
125
+ [`56ce94a847c6a4094643665cbf5d3712f56140b6`](https://github.com/graphile/crystal/commit/56ce94a847c6a4094643665cbf5d3712f56140b6),
126
+ [`192a27e08763ea26607344a2ea6c7f5c595cc2a3`](https://github.com/graphile/crystal/commit/192a27e08763ea26607344a2ea6c7f5c595cc2a3),
127
+ [`6ef6abce15936a896156d5316020df55cf7d18e3`](https://github.com/graphile/crystal/commit/6ef6abce15936a896156d5316020df55cf7d18e3),
128
+ [`0239c2d519300a72f545e0db7c371adae4ade2a9`](https://github.com/graphile/crystal/commit/0239c2d519300a72f545e0db7c371adae4ade2a9),
129
+ [`0ea439d33ccef7f8d01ac5f54893ab2bbf1cbd4d`](https://github.com/graphile/crystal/commit/0ea439d33ccef7f8d01ac5f54893ab2bbf1cbd4d),
130
+ [`8034614d1078b1bd177b6e7fcc949420614e3245`](https://github.com/graphile/crystal/commit/8034614d1078b1bd177b6e7fcc949420614e3245),
131
+ [`459e1869a2ec58925b2bac5458af487c52a8ca37`](https://github.com/graphile/crystal/commit/459e1869a2ec58925b2bac5458af487c52a8ca37),
132
+ [`c350e49e372ec12a4cbf04fb6b4260e01832d12b`](https://github.com/graphile/crystal/commit/c350e49e372ec12a4cbf04fb6b4260e01832d12b),
133
+ [`3176ea3e57d626b39613a73117ef97627370ec83`](https://github.com/graphile/crystal/commit/3176ea3e57d626b39613a73117ef97627370ec83),
134
+ [`46a42f5547c041289aa98657ebc6815f4b6c8539`](https://github.com/graphile/crystal/commit/46a42f5547c041289aa98657ebc6815f4b6c8539),
135
+ [`a87bbd76f1a8b60fd86de65922746d830cc160b4`](https://github.com/graphile/crystal/commit/a87bbd76f1a8b60fd86de65922746d830cc160b4),
136
+ [`be3f174c5aae8fe78a240e1bc4e1de7f18644b43`](https://github.com/graphile/crystal/commit/be3f174c5aae8fe78a240e1bc4e1de7f18644b43),
137
+ [`576fb8bad56cb940ab444574d752e914d462018a`](https://github.com/graphile/crystal/commit/576fb8bad56cb940ab444574d752e914d462018a),
138
+ [`9f459101fa4428aa4bac71531e75f99e33da8e17`](https://github.com/graphile/crystal/commit/9f459101fa4428aa4bac71531e75f99e33da8e17),
139
+ [`921665df8babe2651ab3b5886ab68bb518f2125b`](https://github.com/graphile/crystal/commit/921665df8babe2651ab3b5886ab68bb518f2125b),
140
+ [`78bb1a615754d772a5fda000e96073c91fa9eba7`](https://github.com/graphile/crystal/commit/78bb1a615754d772a5fda000e96073c91fa9eba7),
141
+ [`c9cd0cc72a4db4b02b2bdf770161c9346cb4b174`](https://github.com/graphile/crystal/commit/c9cd0cc72a4db4b02b2bdf770161c9346cb4b174),
142
+ [`ab0bcda5fc3c136eea09493a7d9ed4542975858e`](https://github.com/graphile/crystal/commit/ab0bcda5fc3c136eea09493a7d9ed4542975858e),
143
+ [`455f4811d37ad8fff91183c7a88621bcf9d79acf`](https://github.com/graphile/crystal/commit/455f4811d37ad8fff91183c7a88621bcf9d79acf),
144
+ [`45adaff886e7cd72b864150927be6c0cb4a7dfe8`](https://github.com/graphile/crystal/commit/45adaff886e7cd72b864150927be6c0cb4a7dfe8)]:
145
+ - grafast@0.1.1-beta.22
146
+ - pg-sql2@5.0.0-beta.9
147
+
148
+ ## 0.0.2-beta.26
149
+
150
+ ### Patch Changes
151
+
152
+ - [#2356](https://github.com/graphile/crystal/pull/2356)
153
+ [`eb34f24cbbddd3553e2bd00176193ca998f35fb4`](https://github.com/graphile/crystal/commit/eb34f24cbbddd3553e2bd00176193ca998f35fb4)
154
+ Thanks [@benjie](https://github.com/benjie)! - No longer outputs 'undefined'
155
+ properties for arguments that have no extensions/etc.
156
+
157
+ - [#2356](https://github.com/graphile/crystal/pull/2356)
158
+ [`4b49dbd2df3b339a2ba3f1e9ff400fa1a125298b`](https://github.com/graphile/crystal/commit/4b49dbd2df3b339a2ba3f1e9ff400fa1a125298b)
159
+ Thanks [@benjie](https://github.com/benjie)! - 🚨 makeGrafastSchema and schema
160
+ export now export extensions directly rather than extensions.grafast - applies
161
+ to fields and arguments. All previous exports cannot be (safely) executed with
162
+ latest makeGrafastSchema - please regenerate exports.
163
+
164
+ - [#2424](https://github.com/graphile/crystal/pull/2424)
165
+ [`bff9ad1af9a4ef33ab3f7684bf384a069343d5ff`](https://github.com/graphile/crystal/commit/bff9ad1af9a4ef33ab3f7684bf384a069343d5ff)
166
+ Thanks [@benjie](https://github.com/benjie)! - Implement a large number of
167
+ optimizations against the exported code and update to the latest
168
+ makeGrafastSchema format.
169
+
170
+ - [#2377](https://github.com/graphile/crystal/pull/2377)
171
+ [`7c38cdeffe034c9b4f5cdd03a8f7f446bd52dcb7`](https://github.com/graphile/crystal/commit/7c38cdeffe034c9b4f5cdd03a8f7f446bd52dcb7)
172
+ Thanks [@benjie](https://github.com/benjie)! - Since `ModifierStep` and
173
+ `BaseStep` are no more; `ExecutableStep` can be renamed to simply `Step`. The
174
+ old name (`ExecutableStep`) is now deprecated.
175
+
176
+ - [#2376](https://github.com/graphile/crystal/pull/2376)
177
+ [`da6f3c04efe3d8634c0bc3fcf93ac2518de85322`](https://github.com/graphile/crystal/commit/da6f3c04efe3d8634c0bc3fcf93ac2518de85322)
178
+ Thanks [@benjie](https://github.com/benjie)! - Overhaul Grafast to remove more
179
+ input planning - inputs should be evaluated at runtime - and remove more
180
+ plan-time step evaluation.
181
+
182
+ `FieldArgs.get` is no more; use `FieldArgs.getRaw` or use `bakedInput()`
183
+ (TODO: document) to get the "baked" version of a raw input value.
184
+
185
+ Input object fields no longer have `applyPlan`/`inputPlan`, instead having the
186
+ runtime equivalents `apply()` and `baked()`. `FieldArgs` is no longer
187
+ available on input object fields, since these fields are no longer called at
188
+ plantime; instead, the actual value is passed.
189
+
190
+ `FieldArgs` gains `.typeAt(path)` method that details the GraphQL input type
191
+ at the given path.
192
+
193
+ Field arguments are no longer passed `FieldArgs`, instead they're passed a
194
+ (similar) `FieldArg` object representing the argument value itself.
195
+
196
+ `autoApplyAfterParentPlan` is no more - instead if an argument has `applyPlan`
197
+ it will be called automatically unless it was called during the field plan
198
+ resolver itself.
199
+
200
+ `autoApplyAfterParentSubscribePlan` is no more - instead if an argument has
201
+ `applySubscribePlan` it will be called automatically unless it was called
202
+ during the field plan resolver itself.
203
+
204
+ Field arguments no longer support `inputPlan` - use `bakedInput()` if you need
205
+ that.
206
+
207
+ Input fields no longer support `inputPlan`, `applyPlan`,
208
+ `autoApplyAfterParentInputPlan` nor `autoApplyAfterParentApplyPlan`. Instead,
209
+ `apply()` (which is called by `applyStep()` at runtime) has been added.
210
+
211
+ `sqlValueWithCodec(value, codec)` can be used at runtime in places where
212
+ `$step.placeholder($value, codec)` would have been used previously.
213
+ `placeholder` has been removed from all places that are now runtime - namely
214
+ the list of modifiers below...
215
+
216
+ The following `ModifierStep` classes have all dropped their `Step` suffix,
217
+ these `Modifier` classes now all run at runtime, and are thus no longer steps;
218
+ they're invoked as part of the new `applyInput()` (TODO: document) step:
219
+ - `ModifierStep` ⇒ `Modifier`
220
+ - `PgBooleanFilterStep` ⇒ `PgBooleanFilter`
221
+ - `PgClassFilterStep` ⇒ `PgClassFilter`
222
+ - `PgConditionCapableParentStep` ⇒ `PgConditionCapableParent`
223
+ - `PgConditionLikeStep` ⇒ `PgConditionLike`
224
+ - `PgConditionStepMode` ⇒ `PgConditionMode`
225
+ - `PgConditionStep` ⇒ `PgCondition`
226
+ - `PgManyFilterStep` ⇒ `PgManyFilter`
227
+ - `PgOrFilterStep` ⇒ `PgOrFilter`
228
+ - `PgTempTableStep` ⇒ `PgTempTable`
229
+ - `SetterCapableStep` ⇒ `SetterCapable`
230
+ - `SetterStep` ⇒ `Setter`
231
+
232
+ (Interestingly, other than the removal of `placeholder` and the fact they deal
233
+ with runtime values rather than steps now, they're very similar to what they
234
+ were before.)
235
+
236
+ The deprecated forms of the above have been removed.
237
+
238
+ Methods that rely on these modifier plans have been removed:
239
+ - `PgUnionAllStep.wherePlan` - use
240
+ `fieldArg.apply($unionAll, qb => qb.whereBuilder())` instead
241
+ - `PgUnionAllStep.havingPlan` - use
242
+ `fieldArg.apply($unionAll, qb => qb.havingBuilder())` instead
243
+ - Same for PgSelectStep
244
+
245
+ The following gain query builders:
246
+ - `PgInsertSingle`
247
+ - `PgUpdateSingle`
248
+ - `PgDeleteSingle`
249
+
250
+ Query builders gain `meta`, an object that can be augmented with metadata
251
+ about the operation (typically this relates to cursors and similar
252
+ functionality). This is now used to implement `clientMutationId`.
253
+
254
+ Extends query builders with additional functionality.
255
+
256
+ Many of the types have had their generics changed, TypeScript should guide you
257
+ if you have issues here.
258
+
259
+ `NodeIdHandler` now requires a `getIdentifiers` method that runs at runtime
260
+ and returns the identifiers from a decoded NodeId string.
261
+
262
+ Types around GraphQL Global Object Identification (i.e. `Node` / `id`) have
263
+ changed.
264
+
265
+ - Updated dependencies
266
+ [[`d34014a9a3c469154cc796086ba13719954731e5`](https://github.com/graphile/crystal/commit/d34014a9a3c469154cc796086ba13719954731e5),
267
+ [`98516379ac355a0833a64e002f3717cc3a1d6473`](https://github.com/graphile/crystal/commit/98516379ac355a0833a64e002f3717cc3a1d6473),
268
+ [`f8602d05eed3247c90b87c55d7af580d1698effc`](https://github.com/graphile/crystal/commit/f8602d05eed3247c90b87c55d7af580d1698effc),
269
+ [`65df25534fa3f787ba2ab7fd9547d295ff2b1288`](https://github.com/graphile/crystal/commit/65df25534fa3f787ba2ab7fd9547d295ff2b1288),
270
+ [`1b3c76efd27df73eab3a5a1d221ce13de4cd6b1a`](https://github.com/graphile/crystal/commit/1b3c76efd27df73eab3a5a1d221ce13de4cd6b1a),
271
+ [`e10c372dafbe0d6014b1e946349b22f40aa87ef9`](https://github.com/graphile/crystal/commit/e10c372dafbe0d6014b1e946349b22f40aa87ef9),
272
+ [`3c0a925f26f10cae627a23c49c75ccd8d76b60c8`](https://github.com/graphile/crystal/commit/3c0a925f26f10cae627a23c49c75ccd8d76b60c8),
273
+ [`fcaeb48844156e258a037f420ea1505edb50c52a`](https://github.com/graphile/crystal/commit/fcaeb48844156e258a037f420ea1505edb50c52a),
274
+ [`68926abc31c32ce527327ffbb1ede4b0b7be446b`](https://github.com/graphile/crystal/commit/68926abc31c32ce527327ffbb1ede4b0b7be446b),
275
+ [`4b49dbd2df3b339a2ba3f1e9ff400fa1a125298b`](https://github.com/graphile/crystal/commit/4b49dbd2df3b339a2ba3f1e9ff400fa1a125298b),
276
+ [`d7950e8e28ec6106a4ce2f7fe5e35d88b10eac48`](https://github.com/graphile/crystal/commit/d7950e8e28ec6106a4ce2f7fe5e35d88b10eac48),
277
+ [`c8f1971ea4198633ec97f72f82abf65089f71a88`](https://github.com/graphile/crystal/commit/c8f1971ea4198633ec97f72f82abf65089f71a88),
278
+ [`dd3d22eab73a8554715bf1111e30586251f69a88`](https://github.com/graphile/crystal/commit/dd3d22eab73a8554715bf1111e30586251f69a88),
279
+ [`a120a8e43b24dfc174950cdbb69e481272a0b45e`](https://github.com/graphile/crystal/commit/a120a8e43b24dfc174950cdbb69e481272a0b45e),
280
+ [`3b0f5082b2272997ce33ce8823a4752513d19e28`](https://github.com/graphile/crystal/commit/3b0f5082b2272997ce33ce8823a4752513d19e28),
281
+ [`84f06eafa051e907a3050237ac6ee5aefb184652`](https://github.com/graphile/crystal/commit/84f06eafa051e907a3050237ac6ee5aefb184652),
282
+ [`4a3aeaa77c8b8d2e39c1a9d05581d0c613b812cf`](https://github.com/graphile/crystal/commit/4a3aeaa77c8b8d2e39c1a9d05581d0c613b812cf),
283
+ [`3789326b2e2fdb86519acc75e606c752ddefe590`](https://github.com/graphile/crystal/commit/3789326b2e2fdb86519acc75e606c752ddefe590),
284
+ [`0fc2db95d90df918cf5c59ef85f22ac78d8000d3`](https://github.com/graphile/crystal/commit/0fc2db95d90df918cf5c59ef85f22ac78d8000d3),
285
+ [`90e81a5deeae554a8be2dd55dcd01489860e96e6`](https://github.com/graphile/crystal/commit/90e81a5deeae554a8be2dd55dcd01489860e96e6),
286
+ [`c59132eb7a93bc82493d2f1ca050db8aaea9f4d1`](https://github.com/graphile/crystal/commit/c59132eb7a93bc82493d2f1ca050db8aaea9f4d1),
287
+ [`7c38cdeffe034c9b4f5cdd03a8f7f446bd52dcb7`](https://github.com/graphile/crystal/commit/7c38cdeffe034c9b4f5cdd03a8f7f446bd52dcb7),
288
+ [`728888b28fcd2a6fc481e0ccdfe20d41181a091f`](https://github.com/graphile/crystal/commit/728888b28fcd2a6fc481e0ccdfe20d41181a091f),
289
+ [`f4f39092d7a51517668384945895d3b450237cce`](https://github.com/graphile/crystal/commit/f4f39092d7a51517668384945895d3b450237cce),
290
+ [`5cf3dc9d158891eaf324b2cd4f485d1d4bbb6b5e`](https://github.com/graphile/crystal/commit/5cf3dc9d158891eaf324b2cd4f485d1d4bbb6b5e),
291
+ [`83d3b533e702cc875b46ba2ca02bf3642b421be8`](https://github.com/graphile/crystal/commit/83d3b533e702cc875b46ba2ca02bf3642b421be8),
292
+ [`7001138c38e09822ad13db1018c62d2cac37941e`](https://github.com/graphile/crystal/commit/7001138c38e09822ad13db1018c62d2cac37941e),
293
+ [`e9e7e33665e22ec397e9ead054d2e4aad3eadc8c`](https://github.com/graphile/crystal/commit/e9e7e33665e22ec397e9ead054d2e4aad3eadc8c),
294
+ [`bb6ec8d834e3e630e28316196246f514114a2296`](https://github.com/graphile/crystal/commit/bb6ec8d834e3e630e28316196246f514114a2296),
295
+ [`2b1918d053f590cdc534c8cb81f7e74e96c1bbe6`](https://github.com/graphile/crystal/commit/2b1918d053f590cdc534c8cb81f7e74e96c1bbe6),
296
+ [`d1ecb39693a341f85762b27012ec4ea013857b0c`](https://github.com/graphile/crystal/commit/d1ecb39693a341f85762b27012ec4ea013857b0c),
297
+ [`042ebafe11fcf7e2ecac9b131265a55dddd42a6d`](https://github.com/graphile/crystal/commit/042ebafe11fcf7e2ecac9b131265a55dddd42a6d),
298
+ [`fa005eb0783c58a2476add984fbdd462e0e91dbe`](https://github.com/graphile/crystal/commit/fa005eb0783c58a2476add984fbdd462e0e91dbe),
299
+ [`df0e5a0f968cf6f9ae97b68745a9a2f391324bf5`](https://github.com/graphile/crystal/commit/df0e5a0f968cf6f9ae97b68745a9a2f391324bf5),
300
+ [`ef4cf75acd80e6b9c700c2b5a7ace899e565ef7f`](https://github.com/graphile/crystal/commit/ef4cf75acd80e6b9c700c2b5a7ace899e565ef7f),
301
+ [`c041fd250372c57601188b65a6411c8f440afab6`](https://github.com/graphile/crystal/commit/c041fd250372c57601188b65a6411c8f440afab6),
302
+ [`629b45aab49151810f6efc18ac18f7d735626433`](https://github.com/graphile/crystal/commit/629b45aab49151810f6efc18ac18f7d735626433),
303
+ [`6d19724330d50d076aab9442660fa8abddd095cb`](https://github.com/graphile/crystal/commit/6d19724330d50d076aab9442660fa8abddd095cb),
304
+ [`ca5bc1a834df7b894088fb8602a12f9fcff55b38`](https://github.com/graphile/crystal/commit/ca5bc1a834df7b894088fb8602a12f9fcff55b38),
305
+ [`da6f3c04efe3d8634c0bc3fcf93ac2518de85322`](https://github.com/graphile/crystal/commit/da6f3c04efe3d8634c0bc3fcf93ac2518de85322),
306
+ [`412b92a0b1e03ad962521f630b57a996d8620cf6`](https://github.com/graphile/crystal/commit/412b92a0b1e03ad962521f630b57a996d8620cf6),
307
+ [`f0bc64b71914dfdd3612f4b65370401fd85b97bc`](https://github.com/graphile/crystal/commit/f0bc64b71914dfdd3612f4b65370401fd85b97bc)]:
308
+ - grafast@0.1.1-beta.21
309
+ - pg-sql2@5.0.0-beta.8
310
+
311
+ ## 0.0.2-beta.25
312
+
313
+ ### Patch Changes
314
+
315
+ - Updated dependencies
316
+ [[`fc9d64eb8`](https://github.com/graphile/crystal/commit/fc9d64eb8002d3b72625bc505ed76c07f4296d68),
317
+ [`a2dbad945`](https://github.com/graphile/crystal/commit/a2dbad9457195bec797d72e4e6d45f45278f9f69),
318
+ [`31078842a`](https://github.com/graphile/crystal/commit/31078842ad0eeaa7111491fa9eb5e3bd026fb38a),
319
+ [`5a0ec31de`](https://github.com/graphile/crystal/commit/5a0ec31deae91f1dd17a77a4bb7c1a911a27e26a)]:
320
+ - grafast@0.1.1-beta.20
321
+
322
+ ## 0.0.2-beta.24
323
+
324
+ ### Patch Changes
325
+
326
+ - Updated dependencies []:
327
+ - grafast@0.1.1-beta.19
328
+
329
+ ## 0.0.2-beta.23
330
+
331
+ ### Patch Changes
332
+
333
+ - Updated dependencies
334
+ [[`b336a5829`](https://github.com/graphile/crystal/commit/b336a58291cfec7aef884d3843172d408abfaf3c)]:
335
+ - grafast@0.1.1-beta.18
336
+
337
+ ## 0.0.2-beta.22
338
+
339
+ ### Patch Changes
340
+
341
+ - Updated dependencies
342
+ [[`69ab227b5`](https://github.com/graphile/crystal/commit/69ab227b5e1c057a6fc8ebba87bde80d5aa7f3c8),
343
+ [`7bf045282`](https://github.com/graphile/crystal/commit/7bf04528264c3b9c509f148253fed96d3394141d)]:
344
+ - grafast@0.1.1-beta.17
345
+ - pg-sql2@5.0.0-beta.7
346
+
347
+ ## 0.0.2-beta.21
348
+
349
+ ### Patch Changes
350
+
351
+ - Updated dependencies
352
+ [[`76c7340b7`](https://github.com/graphile/crystal/commit/76c7340b74d257c454beec883384d19ef078b21e)]:
353
+ - grafast@0.1.1-beta.16
354
+
355
+ ## 0.0.2-beta.20
356
+
357
+ ### Patch Changes
358
+
359
+ - [#2175](https://github.com/graphile/crystal/pull/2175)
360
+ [`c69b2fdec`](https://github.com/graphile/crystal/commit/c69b2fdec2d73f1101440eb96fe126f9ad77db98)
361
+ Thanks [@benjie](https://github.com/benjie)! - Fix 'Container is falsy' error
362
+ message the latest Babel patch release would cause.
363
+
364
+ - [#2180](https://github.com/graphile/crystal/pull/2180)
365
+ [`4a4daf5ec`](https://github.com/graphile/crystal/commit/4a4daf5ec4c7002a561f4b6516257fc63e491cce)
366
+ Thanks [@nckswt](https://github.com/nckswt)! - Fix bug in graphile-export
367
+ handing modules where default export (`import mod from 'mod'`) differed from
368
+ wildcard export (`import * as mod from 'mod'`).
369
+ - Updated dependencies
370
+ [[`d5834def1`](https://github.com/graphile/crystal/commit/d5834def1fb84f3e2c0c0a6f146f8249a6df890a),
371
+ [`42b982463`](https://github.com/graphile/crystal/commit/42b9824637a6c05e02935f2b05b5e8e0c61965a6),
372
+ [`884a4b429`](https://github.com/graphile/crystal/commit/884a4b4297af90fdadaf73addd524f1fbbcfdcce),
373
+ [`38835313a`](https://github.com/graphile/crystal/commit/38835313ad93445206dccdd4cf07b90c5a6e4377),
374
+ [`b0865d169`](https://github.com/graphile/crystal/commit/b0865d1691105b5419009954c98c8109a27a5d81)]:
375
+ - grafast@0.1.1-beta.15
376
+
377
+ ## 0.0.2-beta.19
378
+
379
+ ### Patch Changes
380
+
381
+ - Updated dependencies
382
+ [[`871d32b2a`](https://github.com/graphile/crystal/commit/871d32b2a18df0d257880fc54a61d9e68c4607d6),
383
+ [`a26e3a30c`](https://github.com/graphile/crystal/commit/a26e3a30c02f963f8f5e9c9d021e871f33689e1b),
384
+ [`02c11a4d4`](https://github.com/graphile/crystal/commit/02c11a4d42bf434dffc9354b300e8d791c4eeb2d)]:
385
+ - grafast@0.1.1-beta.14
386
+
387
+ ## 0.0.2-beta.18
388
+
389
+ ### Patch Changes
390
+
391
+ - Updated dependencies
392
+ [[`807650035`](https://github.com/graphile/crystal/commit/8076500354a3e2bc2de1b6c4e947bd710cc5bddc)]:
393
+ - grafast@0.1.1-beta.13
394
+
395
+ ## 0.0.2-beta.17
396
+
397
+ ### Patch Changes
398
+
399
+ - [#2094](https://github.com/graphile/crystal/pull/2094)
400
+ [`d2d9b1965`](https://github.com/graphile/crystal/commit/d2d9b1965b0cad29891220c32c978a147d8a4015)
401
+ Thanks [@benjie](https://github.com/benjie)! - Output location in more error
402
+ messages.
403
+
404
+ - Updated dependencies
405
+ [[`1bd50b61e`](https://github.com/graphile/crystal/commit/1bd50b61ebb10b7d09b3612c2e2767c41cca3b78),
406
+ [`4e102b1a1`](https://github.com/graphile/crystal/commit/4e102b1a1cd232e6f6703df0706415f01831dab2),
407
+ [`7bb1573ba`](https://github.com/graphile/crystal/commit/7bb1573ba45a4d8b7fa9ad53cdd79686d2641383),
408
+ [`18addb385`](https://github.com/graphile/crystal/commit/18addb3852525aa91019a36d58fa2fecd8b5b443),
409
+ [`6ed615e55`](https://github.com/graphile/crystal/commit/6ed615e557b2ab1fb57f1e68c06730a8e3da7175),
410
+ [`b25cc539c`](https://github.com/graphile/crystal/commit/b25cc539c00aeda7a943c37509aaae4dc7812317),
411
+ [`867f33136`](https://github.com/graphile/crystal/commit/867f331365346fc46ed1e0d23c79719846e398f4),
412
+ [`cf535c210`](https://github.com/graphile/crystal/commit/cf535c21078da06c14dd12f30e9b4378da4ded03),
413
+ [`acf99b190`](https://github.com/graphile/crystal/commit/acf99b190954e3c5926e820daed68dfe8eb3ee1f),
414
+ [`4967a197f`](https://github.com/graphile/crystal/commit/4967a197fd2c71ee2a581fe29470ee9f30e74de5),
415
+ [`1908e1ba1`](https://github.com/graphile/crystal/commit/1908e1ba11883a34dac66f985fc20ab160e572b1),
416
+ [`084d80be6`](https://github.com/graphile/crystal/commit/084d80be6e17187c9a9932bcf079e3f460368782)]:
417
+ - grafast@0.1.1-beta.12
418
+
419
+ ## 0.0.2-beta.16
420
+
421
+ ### Patch Changes
422
+
423
+ - Updated dependencies
424
+ [[`582bd768f`](https://github.com/graphile/crystal/commit/582bd768fec403ce3284f293b85b9fd86e4d3f40)]:
425
+ - grafast@0.1.1-beta.11
426
+
427
+ ## 0.0.2-beta.15
428
+
429
+ ### Patch Changes
430
+
431
+ - Updated dependencies
432
+ [[`3c161f7e1`](https://github.com/graphile/crystal/commit/3c161f7e13375105b1035a7d5d1c0f2b507ca5c7),
433
+ [`a674a9923`](https://github.com/graphile/crystal/commit/a674a9923bc908c9315afa40e0cb256ee0953d16),
434
+ [`b7cfeffd1`](https://github.com/graphile/crystal/commit/b7cfeffd1019d61c713a5054c4f5929960a2a6ab)]:
435
+ - grafast@0.1.1-beta.10
436
+
437
+ ## 0.0.2-beta.14
438
+
439
+ ### Patch Changes
440
+
441
+ - Updated dependencies
442
+ [[`437570f97`](https://github.com/graphile/crystal/commit/437570f97e8520afaf3d0d0b514d1f4c31546b76)]:
443
+ - grafast@0.1.1-beta.9
444
+
445
+ ## 0.0.2-beta.13
446
+
447
+ ### Patch Changes
448
+
449
+ - Updated dependencies
450
+ [[`bd5a908a4`](https://github.com/graphile/crystal/commit/bd5a908a4d04310f90dfb46ad87398ffa993af3b)]:
451
+ - grafast@0.1.1-beta.8
452
+
453
+ ## 0.0.2-beta.12
454
+
455
+ ### Patch Changes
456
+
457
+ - [#2050](https://github.com/graphile/crystal/pull/2050)
458
+ [`a4d4de334`](https://github.com/graphile/crystal/commit/a4d4de33435d3f6d04d9e627bcc3e77f6eb66c7b)
459
+ Thanks [@benjie](https://github.com/benjie)! - Graphile Export now
460
+ auto-detects that a function has additional properties set, and makes sure
461
+ these properties are exported too. (Typically this is `fn.isSyncAndSafe=true`
462
+ for Grafast optimization.)
463
+
464
+ - [#2050](https://github.com/graphile/crystal/pull/2050)
465
+ [`de24f1d14`](https://github.com/graphile/crystal/commit/de24f1d143a331f410cf4955a18b10a09790f7f8)
466
+ Thanks [@benjie](https://github.com/benjie)! - Fix exporting input object
467
+ inputPlan in typeDefs mode.
468
+
469
+ - [#1993](https://github.com/graphile/crystal/pull/1993)
470
+ [`fdc440eb3`](https://github.com/graphile/crystal/commit/fdc440eb31004114aa5e1d91d290414dd0587746)
471
+ Thanks [@benjie](https://github.com/benjie)! - Ability to export values from
472
+ graphile-export (e.g. the registry)
473
+
474
+ - [#2050](https://github.com/graphile/crystal/pull/2050)
475
+ [`0dbfbb687`](https://github.com/graphile/crystal/commit/0dbfbb68747f2755ba228afe22bf2da25348c71b)
476
+ Thanks [@benjie](https://github.com/benjie)! - Don't pass filePath to lintText
477
+ to avoid ESLint ignoring the file.
478
+
479
+ - Updated dependencies
480
+ [[`357d475f5`](https://github.com/graphile/crystal/commit/357d475f54fecc8c51892e0346d6872b34132430),
481
+ [`3551725e7`](https://github.com/graphile/crystal/commit/3551725e71c3ed876554e19e5ab2c1dcb0fb1143),
482
+ [`80836471e`](https://github.com/graphile/crystal/commit/80836471e5cedb29dee63bc5002550c4f1713cfd),
483
+ [`a5c20fefb`](https://github.com/graphile/crystal/commit/a5c20fefb571dea6d1187515dc48dd547e9e6204),
484
+ [`1ce08980e`](https://github.com/graphile/crystal/commit/1ce08980e2a52ed9bc81564d248c19648ecd3616),
485
+ [`ab08cbf9c`](https://github.com/graphile/crystal/commit/ab08cbf9c504c3cc22495a99a965e7634c18a6a3),
486
+ [`dff4f2535`](https://github.com/graphile/crystal/commit/dff4f2535ac6ce893089b312fcd5fffcd98573a5),
487
+ [`a287a57c2`](https://github.com/graphile/crystal/commit/a287a57c2765da0fb6a132ea0953f64453210ceb),
488
+ [`2fe56f9a6`](https://github.com/graphile/crystal/commit/2fe56f9a6dac03484ace45c29c2223a65f9ca1db),
489
+ [`fed603d71`](https://github.com/graphile/crystal/commit/fed603d719c02f33e12190f925c9e3b06c581fac),
490
+ [`ed6e0d278`](https://github.com/graphile/crystal/commit/ed6e0d2788217a1c419634837f4208013eaf2923),
491
+ [`e82e4911e`](https://github.com/graphile/crystal/commit/e82e4911e32138df1b90ec0fde555ea963018d21),
492
+ [`94a05064e`](https://github.com/graphile/crystal/commit/94a05064ea05108685ff71174a9f871ab5b4c147),
493
+ [`42ece5aa6`](https://github.com/graphile/crystal/commit/42ece5aa6ca05345ebc17fb5c7d55df3b79b7612),
494
+ [`e0d69e518`](https://github.com/graphile/crystal/commit/e0d69e518a98c70f9b90f59d243ce33978c1b5a1),
495
+ [`6699388ec`](https://github.com/graphile/crystal/commit/6699388ec167d35c71220ce5d9113cac578da6cb),
496
+ [`966203504`](https://github.com/graphile/crystal/commit/96620350467ab8c65b56adf2f055e19450f8e772),
497
+ [`c1645b249`](https://github.com/graphile/crystal/commit/c1645b249aae949a548cd916e536ccfb63e5ab35),
498
+ [`ed8bbaa3c`](https://github.com/graphile/crystal/commit/ed8bbaa3cd1563a7601ca8c6b0412633b0ea4ce9),
499
+ [`a0e82b9c5`](https://github.com/graphile/crystal/commit/a0e82b9c5f4e585f1af1e147299cd07944ece6f8),
500
+ [`14e2412ee`](https://github.com/graphile/crystal/commit/14e2412ee368e8d53abf6774c7f0069f32d4e8a3),
501
+ [`57ab0e1e7`](https://github.com/graphile/crystal/commit/57ab0e1e72c01213b21d3efc539cd655d83d993a),
502
+ [`8442242e4`](https://github.com/graphile/crystal/commit/8442242e43cac7d89ca0c413cf42c9fabf6f247f),
503
+ [`64ce7b765`](https://github.com/graphile/crystal/commit/64ce7b7650530251aec38a51089da66f914c19b4),
504
+ [`cba842357`](https://github.com/graphile/crystal/commit/cba84235786acbd77ade53bae7a3fba4a9be1eb7),
505
+ [`2fa77d0f2`](https://github.com/graphile/crystal/commit/2fa77d0f237cdb98d3dafb6b5e4083a2c6c38673)]:
506
+ - grafast@0.1.1-beta.7
507
+ - pg-sql2@5.0.0-beta.6
508
+
509
+ ## 0.0.2-beta.11
510
+
511
+ ### Patch Changes
512
+
513
+ - [#1958](https://github.com/graphile/crystal/pull/1958)
514
+ [`8315e8d01`](https://github.com/graphile/crystal/commit/8315e8d01c118cebc4ebbc53a2f264b958b252ad)
515
+ Thanks [@benjie](https://github.com/benjie)! - EXPORTABLE now accepts a third
516
+ argument, `nameHint`, which is used to hint what variable name to use for the
517
+ given value. Used this in `graphile-export` along with some fixes and
518
+ optimizations to improve the exports further.
519
+
520
+ - [#1946](https://github.com/graphile/crystal/pull/1946)
521
+ [`9d53dde72`](https://github.com/graphile/crystal/commit/9d53dde726b7304962e921b88a159649e49156e5)
522
+ Thanks [@benjie](https://github.com/benjie)! - Exporting a schema now performs
523
+ ESLint 'no-use-before-define' check to catch even more invalid export
524
+ conditions. Fix `registerNodeIdCodec` calls caught by this.
525
+ - Updated dependencies
526
+ [[`9f85c614d`](https://github.com/graphile/crystal/commit/9f85c614d48dc745c5fed15333dbb75af7fddc88),
527
+ [`6c6be29f1`](https://github.com/graphile/crystal/commit/6c6be29f12b24782c926b2bc62ed2ede09ac05de),
528
+ [`8315e8d01`](https://github.com/graphile/crystal/commit/8315e8d01c118cebc4ebbc53a2f264b958b252ad)]:
529
+ - grafast@0.1.1-beta.6
530
+
531
+ ## 0.0.2-beta.10
532
+
533
+ ### Patch Changes
534
+
535
+ - [#1934](https://github.com/graphile/crystal/pull/1934)
536
+ [`9ac0ddc01`](https://github.com/graphile/crystal/commit/9ac0ddc014bfceb60b4b5641d6e8db605cc6a79b)
537
+ Thanks [@benjie](https://github.com/benjie)! - Automatically detect when a
538
+ `graphile-export` export is invalid, and throw an error indicating which
539
+ method needs to have `EXPORTABLE` added around it.
540
+
541
+ - [#1935](https://github.com/graphile/crystal/pull/1935)
542
+ [`8ea67f891`](https://github.com/graphile/crystal/commit/8ea67f8910693edaf70daa9952e35d8396166f38)
543
+ Thanks [@benjie](https://github.com/benjie)! - Fix lots of things related to
544
+ exporting a schema with `graphile-export`.
545
+
546
+ - Updated dependencies
547
+ [[`63dd7ea99`](https://github.com/graphile/crystal/commit/63dd7ea992d30ad711dd85a73a127484a0e35479),
548
+ [`d801c9778`](https://github.com/graphile/crystal/commit/d801c9778a86d61e060896460af9fe62a733534a),
549
+ [`ef44c29b2`](https://github.com/graphile/crystal/commit/ef44c29b24a1ad5a042ae1536a4546dd64b17195)]:
550
+ - grafast@0.1.1-beta.5
551
+ - pg-sql2@5.0.0-beta.5
552
+
553
+ ## 0.0.2-beta.9
554
+
555
+ ### Patch Changes
556
+
557
+ - Updated dependencies
558
+ [[`a2176ea32`](https://github.com/graphile/crystal/commit/a2176ea324db0801249661b30e9c9d314c6fb159),
559
+ [`886833e2e`](https://github.com/graphile/crystal/commit/886833e2e319f23d905d7184ca88fca701b94044)]:
560
+ - grafast@0.1.1-beta.4
561
+
3
562
  ## 0.0.2-beta.8
4
563
 
5
564
  ### Patch Changes
package/README.md CHANGED
@@ -46,7 +46,7 @@ undefined
46
46
 
47
47
  When you do so, the `add` function is augmented with the properties
48
48
  `$exporter$factory` and `$exporter$args` that represent the first and second
49
- arguments to the `EXPORTABLE(factory, args)` function respectively.
49
+ arguments to the `EXPORTABLE(factory, args, nameHint)` function respectively.
50
50
 
51
51
  The function still works as before:
52
52
 
@@ -82,7 +82,7 @@ with a lot of the pain.
82
82
  To install:
83
83
 
84
84
  ```
85
- yarn add eslint-plugin-graphile-export@beta
85
+ yarn add eslint-plugin-graphile-export
86
86
  ```
87
87
 
88
88
  To set up, add `"graphile-export"` to your ESLint configuration's `plugins`
@@ -157,6 +157,7 @@ into your code:
157
157
  export function EXPORTABLE<T, TScope extends any[]>(
158
158
  factory: (...args: TScope) => T,
159
159
  args: [...TScope],
160
+ nameHint?: string,
160
161
  ): T {
161
162
  const fn: T = factory(...args);
162
163
  if (
@@ -166,6 +167,7 @@ export function EXPORTABLE<T, TScope extends any[]>(
166
167
  Object.defineProperties(fn, {
167
168
  $exporter$args: { value: args },
168
169
  $exporter$factory: { value: factory },
170
+ $exporter$name: { writable: true, value: nameHint },
169
171
  });
170
172
  }
171
173
  return fn;
@@ -175,7 +177,7 @@ export function EXPORTABLE<T, TScope extends any[]>(
175
177
  (Or, if you're using plain JavaScript:
176
178
 
177
179
  ```js
178
- export function EXPORTABLE(factory, args) {
180
+ export function EXPORTABLE(factory, args, nameHint) {
179
181
  const fn = factory(...args);
180
182
  if (
181
183
  ((typeof fn === "object" && fn !== null) || typeof fn === "function") &&
@@ -184,6 +186,7 @@ export function EXPORTABLE(factory, args) {
184
186
  Object.defineProperties(fn, {
185
187
  $exporter$args: { value: args },
186
188
  $exporter$factory: { value: factory },
189
+ $exporter$name: { writable: true, value: nameHint },
187
190
  });
188
191
  }
189
192
  return fn;
@@ -1,14 +1,18 @@
1
- /// <reference types="node" />
2
1
  import type { URL } from "node:url";
3
2
  import * as t from "@babel/types";
4
3
  import type { GraphQLSchema } from "grafast/graphql";
5
4
  import type { ExportOptions } from "./interfaces.js";
6
5
  export declare const canRepresentAsIdentifier: (key: string) => boolean;
7
- export declare function isNotNullish<T>(input: T | null | undefined): input is T;
8
- /** Maps to `Object.assign(Object.create(null), {...})` */
6
+ /**
7
+ * Maps to `{__proto__: null, ...}` which is similar to
8
+ * `Object.assign(Object.create(null), {...})`
9
+ */
9
10
  export declare function objectNullPrototype(properties: t.ObjectProperty[]): t.Expression;
10
11
  export declare function exportSchemaAsString(schema: GraphQLSchema, options: ExportOptions): Promise<{
11
12
  code: string;
12
13
  }>;
14
+ export declare function exportValueAsString(name: string, value: any, options: ExportOptions): Promise<{
15
+ code: string;
16
+ }>;
13
17
  export declare function exportSchema(schema: GraphQLSchema, toPath: string | URL, options?: ExportOptions): Promise<void>;
14
18
  //# sourceMappingURL=exportSchema.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"exportSchema.d.ts","sourceRoot":"","sources":["../src/exportSchema.ts"],"names":[],"mappings":";AACA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAOpC,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAClC,OAAO,KAAK,EAgBV,aAAa,EAId,MAAM,iBAAiB,CAAC;AAkBzB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAiCrD,eAAO,MAAM,wBAAwB,QAAS,MAAM,YACH,CAAC;AAgFlD,wBAAgB,YAAY,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,IAAI,GAAG,SAAS,GAAG,KAAK,IAAI,CAAC,CAEvE;AA2/BD,0DAA0D;AAC1D,wBAAgB,mBAAmB,CACjC,UAAU,EAAE,CAAC,CAAC,cAAc,EAAE,GAC7B,CAAC,CAAC,UAAU,CAYd;AAmiBD,wBAAsB,oBAAoB,CACxC,MAAM,EAAE,aAAa,EACrB,OAAO,EAAE,aAAa,GACrB,OAAO,CAAC;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC,CAuC3B;AAED,wBAAsB,YAAY,CAChC,MAAM,EAAE,aAAa,EACrB,MAAM,EAAE,MAAM,GAAG,GAAG,EACpB,OAAO,GAAE,aAAkB,GAC1B,OAAO,CAAC,IAAI,CAAC,CAef"}
1
+ {"version":3,"file":"exportSchema.d.ts","sourceRoot":"","sources":["../src/exportSchema.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AASpC,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAClC,OAAO,KAAK,EAgBV,aAAa,EAId,MAAM,iBAAiB,CAAC;AAoBzB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAmCrD,eAAO,MAAM,wBAAwB,GAAI,KAAK,MAAM,YACH,CAAC;AAmmClD;;;GAGG;AACH,wBAAgB,mBAAmB,CACjC,UAAU,EAAE,CAAC,CAAC,cAAc,EAAE,GAC7B,CAAC,CAAC,UAAU,CAKd;AAgzBD,wBAAsB,oBAAoB,CACxC,MAAM,EAAE,aAAa,EACrB,OAAO,EAAE,aAAa,GACrB,OAAO,CAAC;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC,CAgC3B;AAWD,wBAAsB,mBAAmB,CACvC,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,GAAG,EACV,OAAO,EAAE,aAAa,GACrB,OAAO,CAAC;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC,CAgB3B;AAsFD,wBAAsB,YAAY,CAChC,MAAM,EAAE,aAAa,EACrB,MAAM,EAAE,MAAM,GAAG,GAAG,EACpB,OAAO,GAAE,aAAkB,GAC1B,OAAO,CAAC,IAAI,CAAC,CAMf"}