graphile-export 0.0.2-beta.2 → 0.0.2-beta.21
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 +284 -0
- package/README.md +5 -2
- package/dist/exportSchema.d.ts +4 -1
- package/dist/exportSchema.d.ts.map +1 -1
- package/dist/exportSchema.js +273 -100
- package/dist/exportSchema.js.map +1 -1
- package/dist/helpers.d.ts +1 -1
- package/dist/helpers.d.ts.map +1 -1
- package/dist/helpers.js +2 -1
- package/dist/helpers.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/optimize/index.d.ts +1 -1
- package/dist/optimize/index.d.ts.map +1 -1
- package/dist/optimize/index.js +69 -25
- package/dist/optimize/index.js.map +1 -1
- package/dist/reservedWords.d.ts +2 -0
- package/dist/reservedWords.d.ts.map +1 -0
- package/dist/reservedWords.js +100 -0
- package/dist/reservedWords.js.map +1 -0
- package/dist/wellKnown.d.ts +0 -19
- package/dist/wellKnown.d.ts.map +1 -1
- package/dist/wellKnown.js +15 -13
- package/dist/wellKnown.js.map +1 -1
- package/package.json +23 -19
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,289 @@
|
|
|
1
1
|
# graphile-export
|
|
2
2
|
|
|
3
|
+
## 0.0.2-beta.21
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
[[`76c7340b7`](https://github.com/graphile/crystal/commit/76c7340b74d257c454beec883384d19ef078b21e)]:
|
|
9
|
+
- grafast@0.1.1-beta.16
|
|
10
|
+
|
|
11
|
+
## 0.0.2-beta.20
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [#2175](https://github.com/graphile/crystal/pull/2175)
|
|
16
|
+
[`c69b2fdec`](https://github.com/graphile/crystal/commit/c69b2fdec2d73f1101440eb96fe126f9ad77db98)
|
|
17
|
+
Thanks [@benjie](https://github.com/benjie)! - Fix 'Container is falsy' error
|
|
18
|
+
message the latest Babel patch release would cause.
|
|
19
|
+
|
|
20
|
+
- [#2180](https://github.com/graphile/crystal/pull/2180)
|
|
21
|
+
[`4a4daf5ec`](https://github.com/graphile/crystal/commit/4a4daf5ec4c7002a561f4b6516257fc63e491cce)
|
|
22
|
+
Thanks [@nckswt](https://github.com/nckswt)! - Fix bug in graphile-export
|
|
23
|
+
handing modules where default export (`import mod from 'mod'`) differed from
|
|
24
|
+
wildcard export (`import * as mod from 'mod'`).
|
|
25
|
+
- Updated dependencies
|
|
26
|
+
[[`d5834def1`](https://github.com/graphile/crystal/commit/d5834def1fb84f3e2c0c0a6f146f8249a6df890a),
|
|
27
|
+
[`42b982463`](https://github.com/graphile/crystal/commit/42b9824637a6c05e02935f2b05b5e8e0c61965a6),
|
|
28
|
+
[`884a4b429`](https://github.com/graphile/crystal/commit/884a4b4297af90fdadaf73addd524f1fbbcfdcce),
|
|
29
|
+
[`38835313a`](https://github.com/graphile/crystal/commit/38835313ad93445206dccdd4cf07b90c5a6e4377),
|
|
30
|
+
[`b0865d169`](https://github.com/graphile/crystal/commit/b0865d1691105b5419009954c98c8109a27a5d81)]:
|
|
31
|
+
- grafast@0.1.1-beta.15
|
|
32
|
+
|
|
33
|
+
## 0.0.2-beta.19
|
|
34
|
+
|
|
35
|
+
### Patch Changes
|
|
36
|
+
|
|
37
|
+
- Updated dependencies
|
|
38
|
+
[[`871d32b2a`](https://github.com/graphile/crystal/commit/871d32b2a18df0d257880fc54a61d9e68c4607d6),
|
|
39
|
+
[`a26e3a30c`](https://github.com/graphile/crystal/commit/a26e3a30c02f963f8f5e9c9d021e871f33689e1b),
|
|
40
|
+
[`02c11a4d4`](https://github.com/graphile/crystal/commit/02c11a4d42bf434dffc9354b300e8d791c4eeb2d)]:
|
|
41
|
+
- grafast@0.1.1-beta.14
|
|
42
|
+
|
|
43
|
+
## 0.0.2-beta.18
|
|
44
|
+
|
|
45
|
+
### Patch Changes
|
|
46
|
+
|
|
47
|
+
- Updated dependencies
|
|
48
|
+
[[`807650035`](https://github.com/graphile/crystal/commit/8076500354a3e2bc2de1b6c4e947bd710cc5bddc)]:
|
|
49
|
+
- grafast@0.1.1-beta.13
|
|
50
|
+
|
|
51
|
+
## 0.0.2-beta.17
|
|
52
|
+
|
|
53
|
+
### Patch Changes
|
|
54
|
+
|
|
55
|
+
- [#2094](https://github.com/graphile/crystal/pull/2094)
|
|
56
|
+
[`d2d9b1965`](https://github.com/graphile/crystal/commit/d2d9b1965b0cad29891220c32c978a147d8a4015)
|
|
57
|
+
Thanks [@benjie](https://github.com/benjie)! - Output location in more error
|
|
58
|
+
messages.
|
|
59
|
+
|
|
60
|
+
- Updated dependencies
|
|
61
|
+
[[`1bd50b61e`](https://github.com/graphile/crystal/commit/1bd50b61ebb10b7d09b3612c2e2767c41cca3b78),
|
|
62
|
+
[`4e102b1a1`](https://github.com/graphile/crystal/commit/4e102b1a1cd232e6f6703df0706415f01831dab2),
|
|
63
|
+
[`7bb1573ba`](https://github.com/graphile/crystal/commit/7bb1573ba45a4d8b7fa9ad53cdd79686d2641383),
|
|
64
|
+
[`18addb385`](https://github.com/graphile/crystal/commit/18addb3852525aa91019a36d58fa2fecd8b5b443),
|
|
65
|
+
[`6ed615e55`](https://github.com/graphile/crystal/commit/6ed615e557b2ab1fb57f1e68c06730a8e3da7175),
|
|
66
|
+
[`b25cc539c`](https://github.com/graphile/crystal/commit/b25cc539c00aeda7a943c37509aaae4dc7812317),
|
|
67
|
+
[`867f33136`](https://github.com/graphile/crystal/commit/867f331365346fc46ed1e0d23c79719846e398f4),
|
|
68
|
+
[`cf535c210`](https://github.com/graphile/crystal/commit/cf535c21078da06c14dd12f30e9b4378da4ded03),
|
|
69
|
+
[`acf99b190`](https://github.com/graphile/crystal/commit/acf99b190954e3c5926e820daed68dfe8eb3ee1f),
|
|
70
|
+
[`4967a197f`](https://github.com/graphile/crystal/commit/4967a197fd2c71ee2a581fe29470ee9f30e74de5),
|
|
71
|
+
[`1908e1ba1`](https://github.com/graphile/crystal/commit/1908e1ba11883a34dac66f985fc20ab160e572b1),
|
|
72
|
+
[`084d80be6`](https://github.com/graphile/crystal/commit/084d80be6e17187c9a9932bcf079e3f460368782)]:
|
|
73
|
+
- grafast@0.1.1-beta.12
|
|
74
|
+
|
|
75
|
+
## 0.0.2-beta.16
|
|
76
|
+
|
|
77
|
+
### Patch Changes
|
|
78
|
+
|
|
79
|
+
- Updated dependencies
|
|
80
|
+
[[`582bd768f`](https://github.com/graphile/crystal/commit/582bd768fec403ce3284f293b85b9fd86e4d3f40)]:
|
|
81
|
+
- grafast@0.1.1-beta.11
|
|
82
|
+
|
|
83
|
+
## 0.0.2-beta.15
|
|
84
|
+
|
|
85
|
+
### Patch Changes
|
|
86
|
+
|
|
87
|
+
- Updated dependencies
|
|
88
|
+
[[`3c161f7e1`](https://github.com/graphile/crystal/commit/3c161f7e13375105b1035a7d5d1c0f2b507ca5c7),
|
|
89
|
+
[`a674a9923`](https://github.com/graphile/crystal/commit/a674a9923bc908c9315afa40e0cb256ee0953d16),
|
|
90
|
+
[`b7cfeffd1`](https://github.com/graphile/crystal/commit/b7cfeffd1019d61c713a5054c4f5929960a2a6ab)]:
|
|
91
|
+
- grafast@0.1.1-beta.10
|
|
92
|
+
|
|
93
|
+
## 0.0.2-beta.14
|
|
94
|
+
|
|
95
|
+
### Patch Changes
|
|
96
|
+
|
|
97
|
+
- Updated dependencies
|
|
98
|
+
[[`437570f97`](https://github.com/graphile/crystal/commit/437570f97e8520afaf3d0d0b514d1f4c31546b76)]:
|
|
99
|
+
- grafast@0.1.1-beta.9
|
|
100
|
+
|
|
101
|
+
## 0.0.2-beta.13
|
|
102
|
+
|
|
103
|
+
### Patch Changes
|
|
104
|
+
|
|
105
|
+
- Updated dependencies
|
|
106
|
+
[[`bd5a908a4`](https://github.com/graphile/crystal/commit/bd5a908a4d04310f90dfb46ad87398ffa993af3b)]:
|
|
107
|
+
- grafast@0.1.1-beta.8
|
|
108
|
+
|
|
109
|
+
## 0.0.2-beta.12
|
|
110
|
+
|
|
111
|
+
### Patch Changes
|
|
112
|
+
|
|
113
|
+
- [#2050](https://github.com/graphile/crystal/pull/2050)
|
|
114
|
+
[`a4d4de334`](https://github.com/graphile/crystal/commit/a4d4de33435d3f6d04d9e627bcc3e77f6eb66c7b)
|
|
115
|
+
Thanks [@benjie](https://github.com/benjie)! - Graphile Export now
|
|
116
|
+
auto-detects that a function has additional properties set, and makes sure
|
|
117
|
+
these properties are exported too. (Typically this is `fn.isSyncAndSafe=true`
|
|
118
|
+
for Grafast optimization.)
|
|
119
|
+
|
|
120
|
+
- [#2050](https://github.com/graphile/crystal/pull/2050)
|
|
121
|
+
[`de24f1d14`](https://github.com/graphile/crystal/commit/de24f1d143a331f410cf4955a18b10a09790f7f8)
|
|
122
|
+
Thanks [@benjie](https://github.com/benjie)! - Fix exporting input object
|
|
123
|
+
inputPlan in typeDefs mode.
|
|
124
|
+
|
|
125
|
+
- [#1993](https://github.com/graphile/crystal/pull/1993)
|
|
126
|
+
[`fdc440eb3`](https://github.com/graphile/crystal/commit/fdc440eb31004114aa5e1d91d290414dd0587746)
|
|
127
|
+
Thanks [@benjie](https://github.com/benjie)! - Ability to export values from
|
|
128
|
+
graphile-export (e.g. the registry)
|
|
129
|
+
|
|
130
|
+
- [#2050](https://github.com/graphile/crystal/pull/2050)
|
|
131
|
+
[`0dbfbb687`](https://github.com/graphile/crystal/commit/0dbfbb68747f2755ba228afe22bf2da25348c71b)
|
|
132
|
+
Thanks [@benjie](https://github.com/benjie)! - Don't pass filePath to lintText
|
|
133
|
+
to avoid ESLint ignoring the file.
|
|
134
|
+
|
|
135
|
+
- Updated dependencies
|
|
136
|
+
[[`357d475f5`](https://github.com/graphile/crystal/commit/357d475f54fecc8c51892e0346d6872b34132430),
|
|
137
|
+
[`3551725e7`](https://github.com/graphile/crystal/commit/3551725e71c3ed876554e19e5ab2c1dcb0fb1143),
|
|
138
|
+
[`80836471e`](https://github.com/graphile/crystal/commit/80836471e5cedb29dee63bc5002550c4f1713cfd),
|
|
139
|
+
[`a5c20fefb`](https://github.com/graphile/crystal/commit/a5c20fefb571dea6d1187515dc48dd547e9e6204),
|
|
140
|
+
[`1ce08980e`](https://github.com/graphile/crystal/commit/1ce08980e2a52ed9bc81564d248c19648ecd3616),
|
|
141
|
+
[`ab08cbf9c`](https://github.com/graphile/crystal/commit/ab08cbf9c504c3cc22495a99a965e7634c18a6a3),
|
|
142
|
+
[`dff4f2535`](https://github.com/graphile/crystal/commit/dff4f2535ac6ce893089b312fcd5fffcd98573a5),
|
|
143
|
+
[`a287a57c2`](https://github.com/graphile/crystal/commit/a287a57c2765da0fb6a132ea0953f64453210ceb),
|
|
144
|
+
[`2fe56f9a6`](https://github.com/graphile/crystal/commit/2fe56f9a6dac03484ace45c29c2223a65f9ca1db),
|
|
145
|
+
[`fed603d71`](https://github.com/graphile/crystal/commit/fed603d719c02f33e12190f925c9e3b06c581fac),
|
|
146
|
+
[`ed6e0d278`](https://github.com/graphile/crystal/commit/ed6e0d2788217a1c419634837f4208013eaf2923),
|
|
147
|
+
[`e82e4911e`](https://github.com/graphile/crystal/commit/e82e4911e32138df1b90ec0fde555ea963018d21),
|
|
148
|
+
[`94a05064e`](https://github.com/graphile/crystal/commit/94a05064ea05108685ff71174a9f871ab5b4c147),
|
|
149
|
+
[`42ece5aa6`](https://github.com/graphile/crystal/commit/42ece5aa6ca05345ebc17fb5c7d55df3b79b7612),
|
|
150
|
+
[`e0d69e518`](https://github.com/graphile/crystal/commit/e0d69e518a98c70f9b90f59d243ce33978c1b5a1),
|
|
151
|
+
[`6699388ec`](https://github.com/graphile/crystal/commit/6699388ec167d35c71220ce5d9113cac578da6cb),
|
|
152
|
+
[`966203504`](https://github.com/graphile/crystal/commit/96620350467ab8c65b56adf2f055e19450f8e772),
|
|
153
|
+
[`c1645b249`](https://github.com/graphile/crystal/commit/c1645b249aae949a548cd916e536ccfb63e5ab35),
|
|
154
|
+
[`ed8bbaa3c`](https://github.com/graphile/crystal/commit/ed8bbaa3cd1563a7601ca8c6b0412633b0ea4ce9),
|
|
155
|
+
[`a0e82b9c5`](https://github.com/graphile/crystal/commit/a0e82b9c5f4e585f1af1e147299cd07944ece6f8),
|
|
156
|
+
[`14e2412ee`](https://github.com/graphile/crystal/commit/14e2412ee368e8d53abf6774c7f0069f32d4e8a3),
|
|
157
|
+
[`57ab0e1e7`](https://github.com/graphile/crystal/commit/57ab0e1e72c01213b21d3efc539cd655d83d993a),
|
|
158
|
+
[`8442242e4`](https://github.com/graphile/crystal/commit/8442242e43cac7d89ca0c413cf42c9fabf6f247f),
|
|
159
|
+
[`64ce7b765`](https://github.com/graphile/crystal/commit/64ce7b7650530251aec38a51089da66f914c19b4),
|
|
160
|
+
[`cba842357`](https://github.com/graphile/crystal/commit/cba84235786acbd77ade53bae7a3fba4a9be1eb7),
|
|
161
|
+
[`2fa77d0f2`](https://github.com/graphile/crystal/commit/2fa77d0f237cdb98d3dafb6b5e4083a2c6c38673)]:
|
|
162
|
+
- grafast@0.1.1-beta.7
|
|
163
|
+
- pg-sql2@5.0.0-beta.6
|
|
164
|
+
|
|
165
|
+
## 0.0.2-beta.11
|
|
166
|
+
|
|
167
|
+
### Patch Changes
|
|
168
|
+
|
|
169
|
+
- [#1958](https://github.com/graphile/crystal/pull/1958)
|
|
170
|
+
[`8315e8d01`](https://github.com/graphile/crystal/commit/8315e8d01c118cebc4ebbc53a2f264b958b252ad)
|
|
171
|
+
Thanks [@benjie](https://github.com/benjie)! - EXPORTABLE now accepts a third
|
|
172
|
+
argument, `nameHint`, which is used to hint what variable name to use for the
|
|
173
|
+
given value. Used this in `graphile-export` along with some fixes and
|
|
174
|
+
optimizations to improve the exports further.
|
|
175
|
+
|
|
176
|
+
- [#1946](https://github.com/graphile/crystal/pull/1946)
|
|
177
|
+
[`9d53dde72`](https://github.com/graphile/crystal/commit/9d53dde726b7304962e921b88a159649e49156e5)
|
|
178
|
+
Thanks [@benjie](https://github.com/benjie)! - Exporting a schema now performs
|
|
179
|
+
ESLint 'no-use-before-define' check to catch even more invalid export
|
|
180
|
+
conditions. Fix `registerNodeIdCodec` calls caught by this.
|
|
181
|
+
- Updated dependencies
|
|
182
|
+
[[`9f85c614d`](https://github.com/graphile/crystal/commit/9f85c614d48dc745c5fed15333dbb75af7fddc88),
|
|
183
|
+
[`6c6be29f1`](https://github.com/graphile/crystal/commit/6c6be29f12b24782c926b2bc62ed2ede09ac05de),
|
|
184
|
+
[`8315e8d01`](https://github.com/graphile/crystal/commit/8315e8d01c118cebc4ebbc53a2f264b958b252ad)]:
|
|
185
|
+
- grafast@0.1.1-beta.6
|
|
186
|
+
|
|
187
|
+
## 0.0.2-beta.10
|
|
188
|
+
|
|
189
|
+
### Patch Changes
|
|
190
|
+
|
|
191
|
+
- [#1934](https://github.com/graphile/crystal/pull/1934)
|
|
192
|
+
[`9ac0ddc01`](https://github.com/graphile/crystal/commit/9ac0ddc014bfceb60b4b5641d6e8db605cc6a79b)
|
|
193
|
+
Thanks [@benjie](https://github.com/benjie)! - Automatically detect when a
|
|
194
|
+
`graphile-export` export is invalid, and throw an error indicating which
|
|
195
|
+
method needs to have `EXPORTABLE` added around it.
|
|
196
|
+
|
|
197
|
+
- [#1935](https://github.com/graphile/crystal/pull/1935)
|
|
198
|
+
[`8ea67f891`](https://github.com/graphile/crystal/commit/8ea67f8910693edaf70daa9952e35d8396166f38)
|
|
199
|
+
Thanks [@benjie](https://github.com/benjie)! - Fix lots of things related to
|
|
200
|
+
exporting a schema with `graphile-export`.
|
|
201
|
+
|
|
202
|
+
- Updated dependencies
|
|
203
|
+
[[`63dd7ea99`](https://github.com/graphile/crystal/commit/63dd7ea992d30ad711dd85a73a127484a0e35479),
|
|
204
|
+
[`d801c9778`](https://github.com/graphile/crystal/commit/d801c9778a86d61e060896460af9fe62a733534a),
|
|
205
|
+
[`ef44c29b2`](https://github.com/graphile/crystal/commit/ef44c29b24a1ad5a042ae1536a4546dd64b17195)]:
|
|
206
|
+
- grafast@0.1.1-beta.5
|
|
207
|
+
- pg-sql2@5.0.0-beta.5
|
|
208
|
+
|
|
209
|
+
## 0.0.2-beta.9
|
|
210
|
+
|
|
211
|
+
### Patch Changes
|
|
212
|
+
|
|
213
|
+
- Updated dependencies
|
|
214
|
+
[[`a2176ea32`](https://github.com/graphile/crystal/commit/a2176ea324db0801249661b30e9c9d314c6fb159),
|
|
215
|
+
[`886833e2e`](https://github.com/graphile/crystal/commit/886833e2e319f23d905d7184ca88fca701b94044)]:
|
|
216
|
+
- grafast@0.1.1-beta.4
|
|
217
|
+
|
|
218
|
+
## 0.0.2-beta.8
|
|
219
|
+
|
|
220
|
+
### Patch Changes
|
|
221
|
+
|
|
222
|
+
- Updated dependencies []:
|
|
223
|
+
- grafast@0.1.1-beta.3
|
|
224
|
+
|
|
225
|
+
## 0.0.2-beta.7
|
|
226
|
+
|
|
227
|
+
### Patch Changes
|
|
228
|
+
|
|
229
|
+
- Updated dependencies
|
|
230
|
+
[[`3fdc2bce4`](https://github.com/graphile/crystal/commit/3fdc2bce42418773f808c5b8309dfb361cd95ce9),
|
|
231
|
+
[`aeef362b5`](https://github.com/graphile/crystal/commit/aeef362b5744816f01e4a6f714bbd77f92332bc5),
|
|
232
|
+
[`8a76db07f`](https://github.com/graphile/crystal/commit/8a76db07f4c110cecc6225504f9a05ccbcbc7b92),
|
|
233
|
+
[`8a0cdb95f`](https://github.com/graphile/crystal/commit/8a0cdb95f200b28b0ea1ab5caa12b23dce5f374f),
|
|
234
|
+
[`1c9f1c0ed`](https://github.com/graphile/crystal/commit/1c9f1c0edf4e621a5b6345d3a41527a18143c6ae)]:
|
|
235
|
+
- grafast@0.1.1-beta.2
|
|
236
|
+
|
|
237
|
+
## 0.0.2-beta.6
|
|
238
|
+
|
|
239
|
+
### Patch Changes
|
|
240
|
+
|
|
241
|
+
- Updated dependencies
|
|
242
|
+
[[`49fcb0d58`](https://github.com/graphile/crystal/commit/49fcb0d585b31b291c9072c339d6f5b550eefc9f)]:
|
|
243
|
+
- grafast@0.1.1-beta.1
|
|
244
|
+
|
|
245
|
+
## 0.0.2-beta.5
|
|
246
|
+
|
|
247
|
+
### Patch Changes
|
|
248
|
+
|
|
249
|
+
- Updated dependencies
|
|
250
|
+
[[`4a4d26d87`](https://github.com/graphile/crystal/commit/4a4d26d87ce74589429b8ca5126a7bfdf30351b8),
|
|
251
|
+
[`b2bce88da`](https://github.com/graphile/crystal/commit/b2bce88da26c7a8965468be16fc2d935eadd3434),
|
|
252
|
+
[`861a8a306`](https://github.com/graphile/crystal/commit/861a8a306ef42a821da19e77903ddd7e8130bfb3)]:
|
|
253
|
+
- grafast@0.1.1-beta.0
|
|
254
|
+
|
|
255
|
+
## 0.0.2-beta.4
|
|
256
|
+
|
|
257
|
+
### Patch Changes
|
|
258
|
+
|
|
259
|
+
- [#514](https://github.com/graphile/crystal-pre-merge/pull/514)
|
|
260
|
+
[`c9848f693`](https://github.com/graphile/crystal-pre-merge/commit/c9848f6936a5abd7740c0638bfb458fb5551f03b)
|
|
261
|
+
Thanks [@benjie](https://github.com/benjie)! - Update package.json repository
|
|
262
|
+
information
|
|
263
|
+
|
|
264
|
+
- Updated dependencies
|
|
265
|
+
[[`c9848f693`](https://github.com/graphile/crystal-pre-merge/commit/c9848f6936a5abd7740c0638bfb458fb5551f03b),
|
|
266
|
+
[`ede1092fe`](https://github.com/graphile/crystal-pre-merge/commit/ede1092fe197719b6fa786f4cfa75f6a1f4c56c1),
|
|
267
|
+
[`566983fbd`](https://github.com/graphile/crystal-pre-merge/commit/566983fbd99c4b2df8c4ebd6260521670a2b7dfc),
|
|
268
|
+
[`409bf6071`](https://github.com/graphile/crystal-pre-merge/commit/409bf607180d4d8faec658c803e5ec4d1a00c451)]:
|
|
269
|
+
- grafast@0.0.1-beta.8
|
|
270
|
+
- pg-sql2@5.0.0-beta.3
|
|
271
|
+
|
|
272
|
+
## 0.0.2-beta.3
|
|
273
|
+
|
|
274
|
+
### Patch Changes
|
|
275
|
+
|
|
276
|
+
- [#496](https://github.com/benjie/crystal/pull/496)
|
|
277
|
+
[`c9bfd9892`](https://github.com/benjie/crystal/commit/c9bfd989247f9433fb5b18c5175c9d8d64cd21a1)
|
|
278
|
+
Thanks [@benjie](https://github.com/benjie)! - Update dependencies (sometimes
|
|
279
|
+
through major versions).
|
|
280
|
+
|
|
281
|
+
- Updated dependencies
|
|
282
|
+
[[`c9bfd9892`](https://github.com/benjie/crystal/commit/c9bfd989247f9433fb5b18c5175c9d8d64cd21a1),
|
|
283
|
+
[`e613b476d`](https://github.com/benjie/crystal/commit/e613b476d6ee867d1f7509c895dabee40e7f9a31)]:
|
|
284
|
+
- grafast@0.0.1-beta.6
|
|
285
|
+
- pg-sql2@5.0.0-beta.2
|
|
286
|
+
|
|
3
287
|
## 0.0.2-beta.2
|
|
4
288
|
|
|
5
289
|
### 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;
|
package/dist/exportSchema.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
+
import type { URL } from "node:url";
|
|
2
3
|
import * as t from "@babel/types";
|
|
3
4
|
import type { GraphQLSchema } from "grafast/graphql";
|
|
4
|
-
import type { URL } from "node:url";
|
|
5
5
|
import type { ExportOptions } from "./interfaces.js";
|
|
6
6
|
export declare const canRepresentAsIdentifier: (key: string) => boolean;
|
|
7
7
|
export declare function isNotNullish<T>(input: T | null | undefined): input is T;
|
|
@@ -10,5 +10,8 @@ export declare function objectNullPrototype(properties: t.ObjectProperty[]): t.E
|
|
|
10
10
|
export declare function exportSchemaAsString(schema: GraphQLSchema, options: ExportOptions): Promise<{
|
|
11
11
|
code: string;
|
|
12
12
|
}>;
|
|
13
|
+
export declare function exportValueAsString(name: string, value: any, options: ExportOptions): Promise<{
|
|
14
|
+
code: string;
|
|
15
|
+
}>;
|
|
13
16
|
export declare function exportSchema(schema: GraphQLSchema, toPath: string | URL, options?: ExportOptions): Promise<void>;
|
|
14
17
|
//# sourceMappingURL=exportSchema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exportSchema.d.ts","sourceRoot":"","sources":["../src/exportSchema.ts"],"names":[],"mappings":";
|
|
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;AAkBzB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAkCrD,eAAO,MAAM,wBAAwB,QAAS,MAAM,YACH,CAAC;AA4FlD,wBAAgB,YAAY,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,IAAI,GAAG,SAAS,GAAG,KAAK,IAAI,CAAC,CAEvE;AAuhCD,0DAA0D;AAC1D,wBAAgB,mBAAmB,CACjC,UAAU,EAAE,CAAC,CAAC,cAAc,EAAE,GAC7B,CAAC,CAAC,UAAU,CAYd;AA0pBD,wBAAsB,oBAAoB,CACxC,MAAM,EAAE,aAAa,EACrB,OAAO,EAAE,aAAa,GACrB,OAAO,CAAC;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC,CA0C3B;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;AAuFD,wBAAsB,YAAY,CAChC,MAAM,EAAE,aAAa,EACrB,MAAM,EAAE,MAAM,GAAG,GAAG,EACpB,OAAO,GAAE,aAAkB,GAC1B,OAAO,CAAC,IAAI,CAAC,CAMf"}
|