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