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