@baeta/plugin-graphql 2.0.0-next.0 → 2.0.0-next.10

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 ADDED
@@ -0,0 +1,461 @@
1
+ # @baeta/plugin-graphql
2
+
3
+ ## 2.0.0-next.10
4
+
5
+ ## 2.0.0-next.9
6
+
7
+ ### Patch Changes
8
+
9
+ - Updated dependencies [[`831cfa2`](https://github.com/andreisergiu98/baeta/commit/831cfa2a11445aaf7f2d1a1d7ddf073db9bb8008), [`831cfa2`](https://github.com/andreisergiu98/baeta/commit/831cfa2a11445aaf7f2d1a1d7ddf073db9bb8008)]:
10
+ - @baeta/generator-sdk@2.0.0-next.4
11
+ - @baeta/util-path@2.0.0-next.3
12
+
13
+ ## 2.0.0-next.8
14
+
15
+ ## 2.0.0-next.7
16
+
17
+ ### Patch Changes
18
+
19
+ - [#214](https://github.com/andreisergiu98/baeta/pull/214) [`c47665a`](https://github.com/andreisergiu98/baeta/commit/c47665a76a0f88bae07f42983b380361e4f0843a) Thanks [@andreisergiu98](https://github.com/andreisergiu98)! - Improve typesafety by type checking the exported module
20
+
21
+ ## 2.0.0-next.3
22
+
23
+ ### Patch Changes
24
+
25
+ - [#214](https://github.com/andreisergiu98/baeta/pull/214) [`6de5d15`](https://github.com/andreisergiu98/baeta/commit/6de5d15484d341a1717a1b2f3f45272912e6a886) Thanks [@andreisergiu98](https://github.com/andreisergiu98)! - Fix generated import paths with custom config
26
+
27
+ - Update generator-sdk package
28
+
29
+ - Updated dependencies [[`6de5d15`](https://github.com/andreisergiu98/baeta/commit/6de5d15484d341a1717a1b2f3f45272912e6a886)]:
30
+ - @baeta/generator-sdk@2.0.0-next.3
31
+
32
+ ## 2.0.0-next.2
33
+
34
+ ### Patch Changes
35
+
36
+ - Fix broken types
37
+
38
+ - Updated dependencies []:
39
+ - @baeta/generator-sdk@2.0.0-next.2
40
+ - @baeta/util-path@2.0.0-next.2
41
+
42
+ ## 2.0.0-next.1
43
+
44
+ ### Patch Changes
45
+
46
+ - Fix release version
47
+
48
+ - Updated dependencies []:
49
+ - @baeta/generator-sdk@2.0.0-next.1
50
+ - @baeta/util-path@2.0.0-next.1
51
+
52
+ ## 2.0.0-next.0
53
+
54
+ ### Major Changes
55
+
56
+ - [#214](https://github.com/andreisergiu98/baeta/pull/214) [`31d1a50`](https://github.com/andreisergiu98/baeta/commit/31d1a509f96535b43ae85d19c770eb1a5f09dc94) Thanks [@andreisergiu98](https://github.com/andreisergiu98)! - Baeta v2 – major refactor
57
+ - **Side-effect-free type generation & resolver definitions.**
58
+ The types generator and resolver definitions were reworked to be side-effect free, improving type safety.
59
+ - **Stricter type safety.**
60
+ You must now **explicitly define resolvers for every field** during development—breakages that used to surface at runtime are now caught at compile time.
61
+ - **Removed `@baeta/compiler`.**
62
+ Since modern runtimes can execute TypeScript natively, the separate compiler package is no longer needed. Use your runtime’s native TS support or your existing build setup.
63
+ - **Subscriptions update.**
64
+ `@baeta/subscriptions-pubsub` now targets **`graphql-subscriptions` v3**.
65
+
66
+ ### Patch Changes
67
+
68
+ - Updated dependencies [[`31d1a50`](https://github.com/andreisergiu98/baeta/commit/31d1a509f96535b43ae85d19c770eb1a5f09dc94)]:
69
+ - @baeta/generator-sdk@2.0.0-next.0
70
+ - @baeta/util-path@2.0.0-next.0
71
+
72
+ ## 1.0.11
73
+
74
+ ### Patch Changes
75
+
76
+ - [`c7b9c05`](https://github.com/andreisergiu98/baeta/commit/c7b9c0523eb9827c99b2bcfc7dbe02f5ef389f21) Thanks [@andreisergiu98](https://github.com/andreisergiu98)! - Allow import from packages for scalars and context
77
+
78
+ - Updated dependencies [[`7cbd2ef`](https://github.com/andreisergiu98/baeta/commit/7cbd2ef5b7697f703e4cc6f8d9612c7d01a10dd1), [`c7b9c05`](https://github.com/andreisergiu98/baeta/commit/c7b9c0523eb9827c99b2bcfc7dbe02f5ef389f21)]:
79
+ - @baeta/generator-sdk@1.0.2
80
+
81
+ ## 1.0.9
82
+
83
+ ### Patch Changes
84
+
85
+ - [`583014f`](https://github.com/andreisergiu98/baeta/commit/583014f0bac810b25d9a8226bda2df4c9039f5e3) Thanks [@andreisergiu98](https://github.com/andreisergiu98)! - Update dependencies
86
+
87
+ - Updated dependencies [[`583014f`](https://github.com/andreisergiu98/baeta/commit/583014f0bac810b25d9a8226bda2df4c9039f5e3)]:
88
+ - @baeta/generator-sdk@1.0.1
89
+ - @baeta/util-path@1.0.1
90
+
91
+ ## 1.0.8
92
+
93
+ ### Patch Changes
94
+
95
+ - [#189](https://github.com/andreisergiu98/baeta/pull/189) [`d500378`](https://github.com/andreisergiu98/baeta/commit/d500378198e0a9c48298c4242913bca8ad348228) Thanks [@andreisergiu98](https://github.com/andreisergiu98)! - add jsdocs
96
+
97
+ - [#165](https://github.com/andreisergiu98/baeta/pull/165) [`1334c2a`](https://github.com/andreisergiu98/baeta/commit/1334c2a866676c88f0f3d380b22133d81c4e98bc) Thanks [@andreisergiu98](https://github.com/andreisergiu98)! - mark as stable
98
+
99
+ - Updated dependencies [[`d500378`](https://github.com/andreisergiu98/baeta/commit/d500378198e0a9c48298c4242913bca8ad348228), [`1334c2a`](https://github.com/andreisergiu98/baeta/commit/1334c2a866676c88f0f3d380b22133d81c4e98bc)]:
100
+ - @baeta/generator-sdk@1.0.0
101
+ - @baeta/util-path@1.0.0
102
+
103
+ ## 0.1.5
104
+
105
+ ### Patch Changes
106
+
107
+ - Updated dependencies [[`bf2d1a3`](https://github.com/andreisergiu98/baeta/commit/bf2d1a326235e5f34e723a5acc81cd7b974b913b)]:
108
+ - @baeta/generator-sdk@0.1.5
109
+
110
+ ## 0.1.4
111
+
112
+ ### Patch Changes
113
+
114
+ - [`b59db50`](https://github.com/andreisergiu98/baeta/commit/b59db501a83275ab2d964933080e688a3a5d8820) Thanks [@andreisergiu98](https://github.com/andreisergiu98)! - add readme
115
+
116
+ - Updated dependencies [[`b59db50`](https://github.com/andreisergiu98/baeta/commit/b59db501a83275ab2d964933080e688a3a5d8820)]:
117
+ - @baeta/generator-sdk@0.1.4
118
+ - @baeta/util-path@0.1.4
119
+
120
+ ## 0.1.3
121
+
122
+ ### Patch Changes
123
+
124
+ - [#180](https://github.com/andreisergiu98/baeta/pull/180) [`483c709`](https://github.com/andreisergiu98/baeta/commit/483c70932f815fd114732c00b74f9488d7924c72) Thanks [@andreisergiu98](https://github.com/andreisergiu98)! - Raise minimum required NodeJS version to 22.12.0. Drop CommonJS builds in favor of the require_esm feature from NodeJS 22.12.0 onwards.
125
+
126
+ - [`de6e89c`](https://github.com/andreisergiu98/baeta/commit/de6e89c1b592e280967c73a4137d24ee56ef1857) Thanks [@andreisergiu98](https://github.com/andreisergiu98)! - raise es target to 2024
127
+
128
+ - Updated dependencies [[`483c709`](https://github.com/andreisergiu98/baeta/commit/483c70932f815fd114732c00b74f9488d7924c72), [`de6e89c`](https://github.com/andreisergiu98/baeta/commit/de6e89c1b592e280967c73a4137d24ee56ef1857)]:
129
+ - @baeta/generator-sdk@0.1.3
130
+ - @baeta/util-path@0.1.3
131
+
132
+ ## 0.1.2
133
+
134
+ ### Patch Changes
135
+
136
+ - [#170](https://github.com/andreisergiu98/baeta/pull/170) [`59bbb9c`](https://github.com/andreisergiu98/baeta/commit/59bbb9c4baaf716f27dc251fe7aeb0231e6c5321) Thanks [@andreisergiu98](https://github.com/andreisergiu98)! - update dependencies
137
+
138
+ - [#169](https://github.com/andreisergiu98/baeta/pull/169) [`e84137f`](https://github.com/andreisergiu98/baeta/commit/e84137f5a0cd65402e88cd56224fff450057c473) Thanks [@andreisergiu98](https://github.com/andreisergiu98)! - fix #163, resolve custom scalar types relative to baeta config
139
+
140
+ - Updated dependencies [[`e3fb6f8`](https://github.com/andreisergiu98/baeta/commit/e3fb6f877b4b20e248ad79cbaa3655cabe973f6b), [`59bbb9c`](https://github.com/andreisergiu98/baeta/commit/59bbb9c4baaf716f27dc251fe7aeb0231e6c5321)]:
141
+ - @baeta/generator-sdk@0.1.2
142
+ - @baeta/util-path@0.1.2
143
+
144
+ ## 0.1.1
145
+
146
+ ### Patch Changes
147
+
148
+ - [`7f1958c`](https://github.com/andreisergiu98/baeta/commit/7f1958c44d1b9bed473e48c875fdaa7020c434fa) Thanks [@andreisergiu98](https://github.com/andreisergiu98)! - allow custom extension for generated file imports
149
+
150
+ - [#157](https://github.com/andreisergiu98/baeta/pull/157) [`b9638eb`](https://github.com/andreisergiu98/baeta/commit/b9638eb9fb713507efa9821b4f04cc7896a997b1) Thanks [@andreisergiu98](https://github.com/andreisergiu98)! - stricter linting, better type safety
151
+
152
+ - [`9d8d6a1`](https://github.com/andreisergiu98/baeta/commit/9d8d6a15d63579a2e0bdaa07b7efdcf10aff2492) Thanks [@andreisergiu98](https://github.com/andreisergiu98)! - remove all loaders apart from graphql file loader, and let users define extra loaders if needed
153
+
154
+ - [`a3f0e5d`](https://github.com/andreisergiu98/baeta/commit/a3f0e5d03fc9ef21a87d3ec6bf264d0e9707636a) Thanks [@andreisergiu98](https://github.com/andreisergiu98)! - fix exports order in package.json
155
+
156
+ - [#161](https://github.com/andreisergiu98/baeta/pull/161) [`cca37dd`](https://github.com/andreisergiu98/baeta/commit/cca37dd7135a2852f1f6e287c46911306bdc8da0) Thanks [@andreisergiu98](https://github.com/andreisergiu98)! - update dependencies
157
+
158
+ - [`34877dc`](https://github.com/andreisergiu98/baeta/commit/34877dce585a36abd3bb21adfaa2b84075a416a9) Thanks [@andreisergiu98](https://github.com/andreisergiu98)! - revert blank objects
159
+
160
+ - [#107](https://github.com/andreisergiu98/baeta/pull/107) [`b6e87ce`](https://github.com/andreisergiu98/baeta/commit/b6e87ce347406164a9c0fca49172f1d5d4f50f74) Thanks [@andreisergiu98](https://github.com/andreisergiu98)! - add type hashes
161
+
162
+ - Updated dependencies [[`7f1958c`](https://github.com/andreisergiu98/baeta/commit/7f1958c44d1b9bed473e48c875fdaa7020c434fa), [`b9638eb`](https://github.com/andreisergiu98/baeta/commit/b9638eb9fb713507efa9821b4f04cc7896a997b1), [`fd3a5d2`](https://github.com/andreisergiu98/baeta/commit/fd3a5d27b497aca4b8807155e801b1c1197c5fe2), [`9d8d6a1`](https://github.com/andreisergiu98/baeta/commit/9d8d6a15d63579a2e0bdaa07b7efdcf10aff2492), [`a3f0e5d`](https://github.com/andreisergiu98/baeta/commit/a3f0e5d03fc9ef21a87d3ec6bf264d0e9707636a), [`cca37dd`](https://github.com/andreisergiu98/baeta/commit/cca37dd7135a2852f1f6e287c46911306bdc8da0)]:
163
+ - @baeta/generator-sdk@0.1.1
164
+ - @baeta/util-path@0.1.1
165
+
166
+ ## 0.1.0
167
+
168
+ ### Minor Changes
169
+
170
+ - [#156](https://github.com/andreisergiu98/baeta/pull/156) [`01f3c20`](https://github.com/andreisergiu98/baeta/commit/01f3c20365539fad6e8a8694c59a8e86c95784e8) Thanks [@andreisergiu98](https://github.com/andreisergiu98)! - raise engine requirement to node >= 22
171
+
172
+ ### Patch Changes
173
+
174
+ - [#152](https://github.com/andreisergiu98/baeta/pull/152) [`d538c79`](https://github.com/andreisergiu98/baeta/commit/d538c7905e6ba96d9f294e2d528f9252e83acbe7) Thanks [@andreisergiu98](https://github.com/andreisergiu98)! - update formatter
175
+
176
+ - [#145](https://github.com/andreisergiu98/baeta/pull/145) [`08428d4`](https://github.com/andreisergiu98/baeta/commit/08428d4f03b79cab9c116ff7b3a3cf9a0b2620f2) Thanks [@andreisergiu98](https://github.com/andreisergiu98)! - update dependencies
177
+
178
+ - Updated dependencies [[`01f3c20`](https://github.com/andreisergiu98/baeta/commit/01f3c20365539fad6e8a8694c59a8e86c95784e8), [`d538c79`](https://github.com/andreisergiu98/baeta/commit/d538c7905e6ba96d9f294e2d528f9252e83acbe7), [`08428d4`](https://github.com/andreisergiu98/baeta/commit/08428d4f03b79cab9c116ff7b3a3cf9a0b2620f2)]:
179
+ - @baeta/generator-sdk@0.1.0
180
+ - @baeta/util-path@0.1.0
181
+
182
+ ## 0.0.34
183
+
184
+ ### Patch Changes
185
+
186
+ - [#139](https://github.com/andreisergiu98/baeta/pull/139) [`00dbc8f`](https://github.com/andreisergiu98/baeta/commit/00dbc8f35839aaa6524a6c0125ff38a766e45be4) Thanks [@andreisergiu98](https://github.com/andreisergiu98)! - update dependencies
187
+
188
+ - [#139](https://github.com/andreisergiu98/baeta/pull/139) [`00dbc8f`](https://github.com/andreisergiu98/baeta/commit/00dbc8f35839aaa6524a6c0125ff38a766e45be4) Thanks [@andreisergiu98](https://github.com/andreisergiu98)! - update typescript
189
+
190
+ - [`c403694`](https://github.com/andreisergiu98/baeta/commit/c403694c89aa51259866dddc9b93f3cf4566e341) Thanks [@andreisergiu98](https://github.com/andreisergiu98)! - fix type for external unions
191
+
192
+ - Updated dependencies [[`00dbc8f`](https://github.com/andreisergiu98/baeta/commit/00dbc8f35839aaa6524a6c0125ff38a766e45be4), [`00dbc8f`](https://github.com/andreisergiu98/baeta/commit/00dbc8f35839aaa6524a6c0125ff38a766e45be4)]:
193
+ - @baeta/generator-sdk@0.0.14
194
+ - @baeta/util-path@0.0.6
195
+
196
+ ## 0.0.33
197
+
198
+ ### Patch Changes
199
+
200
+ - [`966e1b7`](https://github.com/andreisergiu98/baeta/commit/966e1b7697090b1de5a3ed1638aee474b48088c3) Thanks [@andreisergiu98](https://github.com/andreisergiu98)! - Fix union withouth extension pick
201
+
202
+ ## 0.0.32
203
+
204
+ ### Patch Changes
205
+
206
+ - [`5d22b52`](https://github.com/andreisergiu98/baeta/commit/5d22b520e0181ee44111f6438036380050d140c3) Thanks [@andreisergiu98](https://github.com/andreisergiu98)! - Fix type for unions and interfaces when the name is not pascal case
207
+
208
+ ## 0.0.31
209
+
210
+ ### Patch Changes
211
+
212
+ - [#133](https://github.com/andreisergiu98/baeta/pull/133) [`325f623`](https://github.com/andreisergiu98/baeta/commit/325f623caa9aab2d6ae45258f214be1d7518396a) Thanks [@andreisergiu98](https://github.com/andreisergiu98)! - add support for type resolver for interfaces and unions
213
+
214
+ ## 0.0.30
215
+
216
+ ### Patch Changes
217
+
218
+ - [`0896994`](https://github.com/andreisergiu98/baeta/commit/089699451b41dbbe92d96bb4b9987e13893e7501) Thanks [@andreisergiu98](https://github.com/andreisergiu98)! - add typename to union
219
+
220
+ ## 0.0.29
221
+
222
+ ### Patch Changes
223
+
224
+ - [#128](https://github.com/andreisergiu98/baeta/pull/128) [`534917a`](https://github.com/andreisergiu98/baeta/commit/534917a18e7ed5d788a90a0335a5370d6af8f4a4) Thanks [@andreisergiu98](https://github.com/andreisergiu98)! - update dependencies
225
+
226
+ - Updated dependencies [[`534917a`](https://github.com/andreisergiu98/baeta/commit/534917a18e7ed5d788a90a0335a5370d6af8f4a4)]:
227
+ - @baeta/generator-sdk@0.0.13
228
+ - @baeta/util-path@0.0.5
229
+
230
+ ## 0.0.28
231
+
232
+ ### Patch Changes
233
+
234
+ - [`74a06d6`](https://github.com/andreisergiu98/baeta/commit/74a06d65345e1ae3bd454e9015ff70f7178b5ff2) Thanks [@andreisergiu98](https://github.com/andreisergiu98)! - feat: add validation errors when parsing schema
235
+ feat: improve union type generation
236
+
237
+ ## 0.0.27
238
+
239
+ ### Patch Changes
240
+
241
+ - [#121](https://github.com/andreisergiu98/baeta/pull/121) [`ceae50d`](https://github.com/andreisergiu98/baeta/commit/ceae50d88e4e59b22c603637620f4fc6b28b2454) Thanks [@andreisergiu98](https://github.com/andreisergiu98)! - Update Node to v20
242
+
243
+ - [`5ab9740`](https://github.com/andreisergiu98/baeta/commit/5ab97405bbdeac3d9baa59cfe9502cdbff101163) Thanks [@andreisergiu98](https://github.com/andreisergiu98)! - fix type definition of union
244
+
245
+ - Updated dependencies [[`ceae50d`](https://github.com/andreisergiu98/baeta/commit/ceae50d88e4e59b22c603637620f4fc6b28b2454), [`d94ee47`](https://github.com/andreisergiu98/baeta/commit/d94ee47bc485c541ff011290c4ac6ef0c145c83f)]:
246
+ - @baeta/generator-sdk@0.0.12
247
+ - @baeta/util-path@0.0.4
248
+
249
+ ## 0.0.26
250
+
251
+ ### Patch Changes
252
+
253
+ - [#119](https://github.com/andreisergiu98/baeta/pull/119) [`643a2eb`](https://github.com/andreisergiu98/baeta/commit/643a2eb17c2789cd25361ddeede149a0e459e68a) Thanks [@andreisergiu98](https://github.com/andreisergiu98)! - update dependencies
254
+
255
+ - Updated dependencies [[`18db339`](https://github.com/andreisergiu98/baeta/commit/18db339719aa309c619372d2161c5fdbc08fa316), [`643a2eb`](https://github.com/andreisergiu98/baeta/commit/643a2eb17c2789cd25361ddeede149a0e459e68a)]:
256
+ - @baeta/generator-sdk@0.0.11
257
+ - @baeta/util-path@0.0.3
258
+
259
+ ## 0.0.25
260
+
261
+ ### Patch Changes
262
+
263
+ - [#102](https://github.com/andreisergiu98/baeta/pull/102) [`c9e37fd`](https://github.com/andreisergiu98/baeta/commit/c9e37fd1d64588fd8eb63facd7eda08c0009470c) Thanks [@andreisergiu98](https://github.com/andreisergiu98)! - update dependencies
264
+
265
+ - [#102](https://github.com/andreisergiu98/baeta/pull/102) [`c9e37fd`](https://github.com/andreisergiu98/baeta/commit/c9e37fd1d64588fd8eb63facd7eda08c0009470c) Thanks [@andreisergiu98](https://github.com/andreisergiu98)! - update dependencies and builder
266
+
267
+ - [#106](https://github.com/andreisergiu98/baeta/pull/106) [`01788ab`](https://github.com/andreisergiu98/baeta/commit/01788ab04ff6956b2b50186af5bec8ed7ebbe76e) Thanks [@andreisergiu98](https://github.com/andreisergiu98)! - add compatibility with windows
268
+
269
+ - [#101](https://github.com/andreisergiu98/baeta/pull/101) [`03d1353`](https://github.com/andreisergiu98/baeta/commit/03d1353bcedf211d3b7dcfbe38132e43422742b1) Thanks [@andreisergiu98](https://github.com/andreisergiu98)! - ignore extended fields when using object types
270
+
271
+ - Updated dependencies [[`c9e37fd`](https://github.com/andreisergiu98/baeta/commit/c9e37fd1d64588fd8eb63facd7eda08c0009470c), [`c9e37fd`](https://github.com/andreisergiu98/baeta/commit/c9e37fd1d64588fd8eb63facd7eda08c0009470c), [`01788ab`](https://github.com/andreisergiu98/baeta/commit/01788ab04ff6956b2b50186af5bec8ed7ebbe76e)]:
272
+ - @baeta/generator-sdk@0.0.10
273
+ - @baeta/util-path@0.0.2
274
+
275
+ ## 0.0.24
276
+
277
+ ### Patch Changes
278
+
279
+ - [#81](https://github.com/andreisergiu98/baeta/pull/81) [`3ff5e54`](https://github.com/andreisergiu98/baeta/commit/3ff5e54f31cf42ba2264b12309338d6e78710722) Thanks [@andreisergiu98](https://github.com/andreisergiu98)! - add file transformation function from config
280
+
281
+ - [#69](https://github.com/andreisergiu98/baeta/pull/69) [`3cdd9b3`](https://github.com/andreisergiu98/baeta/commit/3cdd9b30369d21179769a4b8d5f76e326ae6db37) Thanks [@andreisergiu98](https://github.com/andreisergiu98)! - update dependencies
282
+
283
+ - [#91](https://github.com/andreisergiu98/baeta/pull/91) [`e0944f6`](https://github.com/andreisergiu98/baeta/commit/e0944f6320e6cf2f0a3d2c9f51edd282bdce0546) Thanks [@andreisergiu98](https://github.com/andreisergiu98)! - update dependencies
284
+
285
+ - Updated dependencies [[`3ff5e54`](https://github.com/andreisergiu98/baeta/commit/3ff5e54f31cf42ba2264b12309338d6e78710722), [`3cdd9b3`](https://github.com/andreisergiu98/baeta/commit/3cdd9b30369d21179769a4b8d5f76e326ae6db37), [`e0944f6`](https://github.com/andreisergiu98/baeta/commit/e0944f6320e6cf2f0a3d2c9f51edd282bdce0546)]:
286
+ - @baeta/generator-sdk@0.0.9
287
+
288
+ ## 0.0.23
289
+
290
+ ### Patch Changes
291
+
292
+ - [#66](https://github.com/andreisergiu98/baeta/pull/66) [`9a4a021`](https://github.com/andreisergiu98/baeta/commit/9a4a0214351b70295ce4f7eecaa8c49ab0e1325b) Thanks [@andreisergiu98](https://github.com/andreisergiu98)! - replace chokidar with @parcel/watcher
293
+
294
+ - Updated dependencies [[`9a4a021`](https://github.com/andreisergiu98/baeta/commit/9a4a0214351b70295ce4f7eecaa8c49ab0e1325b)]:
295
+ - @baeta/generator-sdk@0.0.8
296
+
297
+ ## 0.0.22
298
+
299
+ ### Patch Changes
300
+
301
+ - Updated dependencies []:
302
+ - @baeta/generator-sdk@0.0.7
303
+
304
+ ## 0.0.21
305
+
306
+ ### Patch Changes
307
+
308
+ - [#52](https://github.com/andreisergiu98/baeta/pull/52) [`d88cca7`](https://github.com/andreisergiu98/baeta/commit/d88cca7c271ce99e6296396e2ada5e3a905f886a) Thanks [@andreisergiu98](https://github.com/andreisergiu98)! - update dependencies
309
+
310
+ ## 0.0.20
311
+
312
+ ### Patch Changes
313
+
314
+ - [#47](https://github.com/andreisergiu98/baeta/pull/47) [`eb7096d`](https://github.com/andreisergiu98/baeta/commit/eb7096d42a53b17bae0a8365eccb795e7ded02e9) Thanks [@andreisergiu98](https://github.com/andreisergiu98)! - update dependencies
315
+
316
+ - [#43](https://github.com/andreisergiu98/baeta/pull/43) [`670501b`](https://github.com/andreisergiu98/baeta/commit/670501b2b1cfb1126be3421293b8ccd597c6ffc2) Thanks [@andreisergiu98](https://github.com/andreisergiu98)! - bump dependencies
317
+
318
+ - Updated dependencies [[`eb7096d`](https://github.com/andreisergiu98/baeta/commit/eb7096d42a53b17bae0a8365eccb795e7ded02e9), [`670501b`](https://github.com/andreisergiu98/baeta/commit/670501b2b1cfb1126be3421293b8ccd597c6ffc2)]:
319
+ - @baeta/generator-sdk@0.0.6
320
+
321
+ ## 0.0.19
322
+
323
+ ### Patch Changes
324
+
325
+ - [#40](https://github.com/andreisergiu98/baeta/pull/40) [`9f937f4`](https://github.com/andreisergiu98/baeta/commit/9f937f47d3464a082680047414ee13a76cf6c056) Thanks [@andreisergiu98](https://github.com/andreisergiu98)! - normalize config
326
+
327
+ - Updated dependencies [[`9f937f4`](https://github.com/andreisergiu98/baeta/commit/9f937f47d3464a082680047414ee13a76cf6c056), [`9f937f4`](https://github.com/andreisergiu98/baeta/commit/9f937f47d3464a082680047414ee13a76cf6c056)]:
328
+ - @baeta/generator-sdk@0.0.5
329
+
330
+ ## 0.0.18
331
+
332
+ ### Patch Changes
333
+
334
+ - [`d1190c1`](https://github.com/andreisergiu98/baeta/commit/d1190c10e3c259c73ddeeb73a4bd312b22bf2ea4) Thanks [@andreisergiu98](https://github.com/andreisergiu98)! - create cli sdk
335
+ release prisma plugin
336
+ update dependencies
337
+ refactor generator plugins
338
+ - Updated dependencies [[`d1190c1`](https://github.com/andreisergiu98/baeta/commit/d1190c10e3c259c73ddeeb73a4bd312b22bf2ea4)]:
339
+ - @baeta/generator-sdk@0.0.4
340
+
341
+ ## 0.0.17
342
+
343
+ ### Patch Changes
344
+
345
+ - [`02936ae`](https://github.com/andreisergiu98/baeta/commit/02936aeb606c75a2a79b6ce4524851c6c62afb82) Thanks [@andreisergiu98](https://github.com/andreisergiu98)! - bump packages
346
+
347
+ - Updated dependencies [[`02936ae`](https://github.com/andreisergiu98/baeta/commit/02936aeb606c75a2a79b6ce4524851c6c62afb82)]:
348
+ - @baeta/generator@0.0.18
349
+ - @baeta/generator-sdk@0.0.3
350
+
351
+ ## 0.0.16
352
+
353
+ ### Patch Changes
354
+
355
+ - [#25](https://github.com/andreisergiu98/baeta/pull/25) [`c2c5875`](https://github.com/andreisergiu98/baeta/commit/c2c5875f8356e166f34a20b3e4384f9bce093e61) Thanks [@andreisergiu98](https://github.com/andreisergiu98)! - refactor cli and plugins
356
+
357
+ - Updated dependencies [[`c2c5875`](https://github.com/andreisergiu98/baeta/commit/c2c5875f8356e166f34a20b3e4384f9bce093e61)]:
358
+ - @baeta/generator-sdk@0.0.2
359
+ - @baeta/generator@0.0.15
360
+
361
+ ## 0.0.15
362
+
363
+ ### Patch Changes
364
+
365
+ - [`11031eb`](https://github.com/andreisergiu98/baeta/commit/11031ebf71808e1c20e8f8e98259359ceb50cd77) Thanks [@andreisergiu98](https://github.com/andreisergiu98)! - add a more reliable publishing method
366
+
367
+ - Updated dependencies [[`c034d77`](https://github.com/andreisergiu98/baeta/commit/c034d77a1e3c75871ed768ab8bf3594635b02c0a), [`11031eb`](https://github.com/andreisergiu98/baeta/commit/11031ebf71808e1c20e8f8e98259359ceb50cd77)]:
368
+ - @baeta/config@0.0.9
369
+ - @baeta/plugin@0.0.14
370
+
371
+ ## 0.0.14
372
+
373
+ ### Patch Changes
374
+
375
+ - [`dfaf0dc`](https://github.com/andreisergiu98/baeta/commit/dfaf0dc108244b0ada332ab978aa7f39fbfe7e7d) Thanks [@andreisergiu98](https://github.com/andreisergiu98)! - add generator support for runtime extensions
376
+
377
+ - Updated dependencies [[`dfaf0dc`](https://github.com/andreisergiu98/baeta/commit/dfaf0dc108244b0ada332ab978aa7f39fbfe7e7d)]:
378
+ - @baeta/config@0.0.8
379
+ - @baeta/plugin@0.0.13
380
+
381
+ ## 0.0.13
382
+
383
+ ### Patch Changes
384
+
385
+ - [`a4a64a3`](https://github.com/andreisergiu98/baeta/commit/a4a64a35a75e66ca4077a86a9fd5d3ffad481b55) Thanks [@andreisergiu98](https://github.com/andreisergiu98)! - fix broken publishing
386
+
387
+ - Updated dependencies [[`a4a64a3`](https://github.com/andreisergiu98/baeta/commit/a4a64a35a75e66ca4077a86a9fd5d3ffad481b55)]:
388
+ - @baeta/config@0.0.7
389
+ - @baeta/plugin@0.0.12
390
+
391
+ ## 0.0.12
392
+
393
+ ### Patch Changes
394
+
395
+ - [#15](https://github.com/andreisergiu98/baeta/pull/15) [`af4859a`](https://github.com/andreisergiu98/baeta/commit/af4859ae2aee4768d5710189d094059d50647e59) Thanks [@andreisergiu98](https://github.com/andreisergiu98)! - support for runtime extensions part 1
396
+
397
+ - Updated dependencies [[`af4859a`](https://github.com/andreisergiu98/baeta/commit/af4859ae2aee4768d5710189d094059d50647e59)]:
398
+ - @baeta/config@0.0.6
399
+ - @baeta/plugin@0.0.11
400
+
401
+ ## 0.0.11
402
+
403
+ ### Patch Changes
404
+
405
+ - [`f2429cd`](https://github.com/andreisergiu98/baeta/commit/f2429cdec7fe4522f7df0a90d582a06fcf792ef7) Thanks [@andreisergiu98](https://github.com/andreisergiu98)! - fix build, remove turborepo
406
+
407
+ - Updated dependencies [[`f2429cd`](https://github.com/andreisergiu98/baeta/commit/f2429cdec7fe4522f7df0a90d582a06fcf792ef7)]:
408
+ - @baeta/config@0.0.5
409
+ - @baeta/plugin@0.0.10
410
+
411
+ ## 0.0.10
412
+
413
+ ### Patch Changes
414
+
415
+ - [`a262a56`](https://github.com/andreisergiu98/baeta/commit/a262a56db0f5b08a9b256e0a8402e60cd1be7b51) Thanks [@andreisergiu98](https://github.com/andreisergiu98)! - fix type declarations
416
+
417
+ - Updated dependencies [[`a262a56`](https://github.com/andreisergiu98/baeta/commit/a262a56db0f5b08a9b256e0a8402e60cd1be7b51)]:
418
+ - @baeta/config@0.0.4
419
+ - @baeta/plugin@0.0.9
420
+
421
+ ## 0.0.9
422
+
423
+ ### Patch Changes
424
+
425
+ - [`f87d828`](https://github.com/andreisergiu98/baeta/commit/f87d828a87a6a12326a3bfcb5846b4390431f0c4) Thanks [@andreisergiu98](https://github.com/andreisergiu98)! - change export dir
426
+
427
+ - Updated dependencies [[`f87d828`](https://github.com/andreisergiu98/baeta/commit/f87d828a87a6a12326a3bfcb5846b4390431f0c4)]:
428
+ - @baeta/config@0.0.3
429
+ - @baeta/plugin@0.0.8
430
+
431
+ ## 0.0.8
432
+
433
+ ### Patch Changes
434
+
435
+ - [#7](https://github.com/andreisergiu98/baeta/pull/7) [`913c1cf`](https://github.com/andreisergiu98/baeta/commit/913c1cf803a1a1058729d9a6eabcd0d9b1208321) Thanks [@andreisergiu98](https://github.com/andreisergiu98)! - Drop graphql-modules
436
+ Fix circular dependencies
437
+ Switch to rome and pnpm
438
+ - Updated dependencies [[`913c1cf`](https://github.com/andreisergiu98/baeta/commit/913c1cf803a1a1058729d9a6eabcd0d9b1208321)]:
439
+ - @baeta/config@0.0.2
440
+ - @baeta/core@0.0.14
441
+ - @baeta/plugin@0.0.7
442
+
443
+ ## 0.0.7
444
+
445
+ ### Patch Changes
446
+
447
+ - [`9358a06`](https://github.com/andreisergiu98/baeta/commit/9358a06f23665d6f920538cf1ee636b489d93b3e) Thanks [@andreisergiu98](https://github.com/andreisergiu98)! - fix changeset release
448
+
449
+ - Updated dependencies [[`9358a06`](https://github.com/andreisergiu98/baeta/commit/9358a06f23665d6f920538cf1ee636b489d93b3e)]:
450
+ - @baeta/core@0.0.13
451
+ - @baeta/plugin@0.0.6
452
+
453
+ ## 0.0.6
454
+
455
+ ### Patch Changes
456
+
457
+ - [`ffa2fe8`](https://github.com/andreisergiu98/baeta/commit/ffa2fe83df6798375252a01ad14bbd37ffd07d50) Thanks [@andreisergiu98](https://github.com/andreisergiu98)! - add repository information to package.json
458
+
459
+ - Updated dependencies [[`ffa2fe8`](https://github.com/andreisergiu98/baeta/commit/ffa2fe83df6798375252a01ad14bbd37ffd07d50)]:
460
+ - @baeta/core@0.0.12
461
+ - @baeta/plugin@0.0.5
package/README.md CHANGED
@@ -5,7 +5,7 @@
5
5
  <div align="center">
6
6
  <h1>Baeta</h1>
7
7
  <a href="https://www.npmjs.com/package/@baeta/cli"><img src="https://img.shields.io/npm/v/@baeta/cli.svg?style=flat" /></a>
8
- <a href="https://github.com/andreisergiu98/baeta/actions/workflows/testing.yml"><img src="https://img.shields.io/github/actions/workflow/status/andreisergiu98/baeta/testing.yml" /></a>
8
+ <a href="https://github.com/andreisergiu98/baeta/actions/workflows/checks.yml"><img src="https://img.shields.io/github/actions/workflow/status/andreisergiu98/baeta/checks.yml" /></a>
9
9
  <a href="https://github.com/andreisergiu98/baeta/pulls"><img src="https://img.shields.io/badge/PRs-welcome-brightgreen.svg" /></a>
10
10
  <a href="https://github.com/andreisergiu98/baeta/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-MIT-blue" /></a>
11
11
  <br />
@@ -77,43 +77,68 @@ type Query {
77
77
  #### 2. Implement your resolvers
78
78
 
79
79
  ```typescript
80
- import { getUserModule } from "./typedef";
80
+ import { UserModule } from "./typedef.ts";
81
81
 
82
- const { Query } = getUserModule();
82
+ const { Query } = UserModule;
83
83
 
84
- Query.user(({ args }) => {
84
+ const userQuery = Query.user.resolve(({ args }) => {
85
85
  return dataSource.user.find(args.where);
86
86
  });
87
87
 
88
- Query.users(() => {
88
+ const usersQuery = Query.users.resolve(() => {
89
89
  return dataSource.user.findMany();
90
90
  });
91
+
92
+ Query.$fields({
93
+ user: userQuery,
94
+ users: usersQuery,
95
+ });
91
96
  ```
92
97
 
93
98
  #### 3. Add authorization
94
99
 
95
100
  ```typescript
96
- const { Query, Mutation } = getUserModule();
97
-
98
- Query.users.$auth({
99
- $or: {
100
- isPublic: true,
101
- isLoggedIn: true,
102
- },
103
- });
101
+ import { UserModule } from "./typedef.ts";
102
+
103
+ const { Query } = UserModule;
104
+
105
+ const userQuery = Query.user
106
+ .$auth({
107
+ $or: {
108
+ isPublic: true,
109
+ isLoggedIn: true,
110
+ },
111
+ })
112
+ .resolve(async ({ args }) => {
113
+ // ...
114
+ });
104
115
  ```
105
116
 
106
117
  #### 4. Add caching
107
118
 
108
119
  ```typescript
109
- import { getUserModule } from "./typedef";
110
-
111
- const { User, Query } = getUserModule();
120
+ const { Query, Mutation, User } = UserModule;
112
121
 
113
122
  export const userCache = User.$createCache();
114
123
 
115
- Query.user.$useCache(userCache);
116
- Query.users.$useCache(userCache);
124
+ const userQuery = Query.user
125
+ .$auth({
126
+ // ...
127
+ })
128
+ .$useCache(userCache)
129
+ .resolve(async ({ args }) => {
130
+ // ...
131
+ });
132
+
133
+ const updateUserMutation = Mutation.updateUser
134
+ .$use(async (next) => {
135
+ const user = await next();
136
+ await userCache.save(user);
137
+ return user;
138
+ })
139
+ .resolve(async ({ args }) => {
140
+ // ...
141
+ });
117
142
  ```
118
143
 
119
144
  ## Compatibility
@@ -0,0 +1,7 @@
1
+ import * as _baeta_generator_sdk0 from "@baeta/generator-sdk";
2
+
3
+ //#region index.d.ts
4
+ declare function graphqlPlugin(): _baeta_generator_sdk0.GeneratorPluginV1<unknown>;
5
+ //#endregion
6
+ export { graphqlPlugin };
7
+ //# sourceMappingURL=index.d.ts.map