graphile-export 0.0.2-beta.3 → 0.0.2-beta.31

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