@effect-app/vue 4.0.0-beta.7 → 4.0.0-beta.70
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 +455 -0
- package/dist/{experimental/commander.d.ts → commander.d.ts} +12 -13
- package/dist/commander.d.ts.map +1 -0
- package/dist/commander.js +556 -0
- package/dist/{experimental/confirm.d.ts → confirm.d.ts} +2 -2
- package/dist/confirm.d.ts.map +1 -0
- package/dist/confirm.js +28 -0
- package/dist/form.d.ts +9 -0
- package/dist/form.d.ts.map +1 -1
- package/dist/form.js +38 -9
- package/dist/intl.d.ts +15 -0
- package/dist/intl.d.ts.map +1 -0
- package/dist/intl.js +9 -0
- package/dist/makeClient.d.ts +12 -235
- package/dist/makeClient.d.ts.map +1 -1
- package/dist/makeClient.js +12 -335
- package/dist/{experimental/makeUseCommand.d.ts → makeUseCommand.d.ts} +1 -1
- package/dist/makeUseCommand.d.ts.map +1 -0
- package/dist/makeUseCommand.js +13 -0
- package/dist/mutate.d.ts +1 -1
- package/dist/mutate.d.ts.map +1 -1
- package/dist/mutate.js +2 -2
- package/dist/query.d.ts +10 -14
- package/dist/query.d.ts.map +1 -1
- package/dist/query.js +23 -23
- package/dist/runtime.d.ts +3 -0
- package/dist/runtime.d.ts.map +1 -1
- package/dist/runtime.js +15 -3
- package/dist/{experimental/toast.d.ts → toast.d.ts} +9 -10
- package/dist/toast.d.ts.map +1 -0
- package/dist/toast.js +32 -0
- package/dist/{experimental/withToast.d.ts → withToast.d.ts} +2 -2
- package/dist/withToast.d.ts.map +1 -0
- package/dist/withToast.js +45 -0
- package/package.json +43 -43
- package/src/{experimental/commander.ts → commander.ts} +15 -17
- package/src/{experimental/confirm.ts → confirm.ts} +2 -2
- package/src/form.ts +46 -8
- package/src/intl.ts +12 -0
- package/src/makeClient.ts +19 -916
- package/src/{experimental/makeUseCommand.ts → makeUseCommand.ts} +1 -1
- package/src/mutate.ts +1 -1
- package/src/query.ts +44 -45
- package/src/runtime.ts +25 -2
- package/src/{experimental/toast.ts → toast.ts} +11 -25
- package/src/{experimental/withToast.ts → withToast.ts} +2 -2
- package/test/Mutation.test.ts +1 -1
- package/test/dist/form.test.d.ts.map +1 -1
- package/test/dist/stubs.d.ts +42 -60
- package/test/dist/stubs.d.ts.map +1 -1
- package/test/dist/stubs.js +10 -11
- package/test/form-validation-errors.test.ts +23 -19
- package/test/form.test.ts +20 -2
- package/test/makeClient.test.ts +12 -21
- package/test/stubs.ts +9 -10
- package/tsconfig.json +0 -1
- package/dist/experimental/commander.d.ts.map +0 -1
- package/dist/experimental/commander.js +0 -558
- package/dist/experimental/confirm.d.ts.map +0 -1
- package/dist/experimental/confirm.js +0 -28
- package/dist/experimental/intl.d.ts +0 -16
- package/dist/experimental/intl.d.ts.map +0 -1
- package/dist/experimental/intl.js +0 -5
- package/dist/experimental/makeUseCommand.d.ts.map +0 -1
- package/dist/experimental/makeUseCommand.js +0 -13
- package/dist/experimental/toast.d.ts.map +0 -1
- package/dist/experimental/toast.js +0 -41
- package/dist/experimental/withToast.d.ts.map +0 -1
- package/dist/experimental/withToast.js +0 -45
- package/src/experimental/intl.ts +0 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,454 @@
|
|
|
1
1
|
# @effect-app/vue
|
|
2
2
|
|
|
3
|
+
## 4.0.0-beta.70
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- effect-app@4.0.0-beta.70
|
|
8
|
+
|
|
9
|
+
## 4.0.0-beta.69
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- dc465e3: update to latest effect beta
|
|
14
|
+
- Updated dependencies [dc465e3]
|
|
15
|
+
- effect-app@4.0.0-beta.69
|
|
16
|
+
|
|
17
|
+
## 4.0.0-beta.68
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- Updated dependencies [e6f2341]
|
|
22
|
+
- effect-app@4.0.0-beta.68
|
|
23
|
+
|
|
24
|
+
## 4.0.0-beta.67
|
|
25
|
+
|
|
26
|
+
### Patch Changes
|
|
27
|
+
|
|
28
|
+
- effect-app@4.0.0-beta.67
|
|
29
|
+
|
|
30
|
+
## 4.0.0-beta.66
|
|
31
|
+
|
|
32
|
+
### Patch Changes
|
|
33
|
+
|
|
34
|
+
- Updated dependencies [edc52e4]
|
|
35
|
+
- effect-app@4.0.0-beta.66
|
|
36
|
+
|
|
37
|
+
## 4.0.0-beta.65
|
|
38
|
+
|
|
39
|
+
### Minor Changes
|
|
40
|
+
|
|
41
|
+
- 1f103b2: Replace `proxify` with explicit service accessor helpers: `accessFn`, `accessEffectFn`, `accessCn`, `accessEffectCn`.
|
|
42
|
+
|
|
43
|
+
### Patch Changes
|
|
44
|
+
|
|
45
|
+
- Updated dependencies [31739d7]
|
|
46
|
+
- Updated dependencies [1f103b2]
|
|
47
|
+
- effect-app@4.0.0-beta.65
|
|
48
|
+
|
|
49
|
+
## 4.0.0-beta.64
|
|
50
|
+
|
|
51
|
+
### Patch Changes
|
|
52
|
+
|
|
53
|
+
- Updated dependencies [c1a6fdc]
|
|
54
|
+
- effect-app@4.0.0-beta.64
|
|
55
|
+
|
|
56
|
+
## 4.0.0-beta.63
|
|
57
|
+
|
|
58
|
+
### Minor Changes
|
|
59
|
+
|
|
60
|
+
- b3ed68a: Remove `legacy` from `makeClient` return and clean up `LegacyMutation`, `LegacyMutationImpl`, and related types.
|
|
61
|
+
|
|
62
|
+
### Patch Changes
|
|
63
|
+
|
|
64
|
+
- effect-app@4.0.0-beta.63
|
|
65
|
+
|
|
66
|
+
## 4.0.0-beta.62
|
|
67
|
+
|
|
68
|
+
### Patch Changes
|
|
69
|
+
|
|
70
|
+
- Updated dependencies [0b21a02]
|
|
71
|
+
- effect-app@4.0.0-beta.62
|
|
72
|
+
|
|
73
|
+
## 4.0.0-beta.61
|
|
74
|
+
|
|
75
|
+
### Patch Changes
|
|
76
|
+
|
|
77
|
+
- effect-app@4.0.0-beta.61
|
|
78
|
+
|
|
79
|
+
## 4.0.0-beta.60
|
|
80
|
+
|
|
81
|
+
### Patch Changes
|
|
82
|
+
|
|
83
|
+
- effect-app@4.0.0-beta.60
|
|
84
|
+
|
|
85
|
+
## 4.0.0-beta.59
|
|
86
|
+
|
|
87
|
+
### Patch Changes
|
|
88
|
+
|
|
89
|
+
- cec026d: update packages
|
|
90
|
+
- Updated dependencies [cec026d]
|
|
91
|
+
- effect-app@4.0.0-beta.59
|
|
92
|
+
|
|
93
|
+
## 4.0.0-beta.58
|
|
94
|
+
|
|
95
|
+
### Patch Changes
|
|
96
|
+
|
|
97
|
+
- 7fd35e4: update tanstack/query
|
|
98
|
+
- effect-app@4.0.0-beta.58
|
|
99
|
+
|
|
100
|
+
## 4.0.0-beta.57
|
|
101
|
+
|
|
102
|
+
### Patch Changes
|
|
103
|
+
|
|
104
|
+
- effect-app@4.0.0-beta.57
|
|
105
|
+
|
|
106
|
+
## 4.0.0-beta.56
|
|
107
|
+
|
|
108
|
+
### Patch Changes
|
|
109
|
+
|
|
110
|
+
- effect-app@4.0.0-beta.56
|
|
111
|
+
|
|
112
|
+
## 4.0.0-beta.55
|
|
113
|
+
|
|
114
|
+
### Patch Changes
|
|
115
|
+
|
|
116
|
+
- eceb3a3: align CauseException
|
|
117
|
+
- effect-app@4.0.0-beta.55
|
|
118
|
+
|
|
119
|
+
## 4.0.0-beta.54
|
|
120
|
+
|
|
121
|
+
### Patch Changes
|
|
122
|
+
|
|
123
|
+
- d867272: the return of `Context`
|
|
124
|
+
- Updated dependencies [d867272]
|
|
125
|
+
- effect-app@4.0.0-beta.54
|
|
126
|
+
|
|
127
|
+
## 4.0.0-beta.53
|
|
128
|
+
|
|
129
|
+
### Patch Changes
|
|
130
|
+
|
|
131
|
+
- Updated dependencies [ee9694e]
|
|
132
|
+
- effect-app@4.0.0-beta.53
|
|
133
|
+
|
|
134
|
+
## 4.0.0-beta.52
|
|
135
|
+
|
|
136
|
+
### Patch Changes
|
|
137
|
+
|
|
138
|
+
- Updated dependencies [6252808]
|
|
139
|
+
- effect-app@4.0.0-beta.52
|
|
140
|
+
|
|
141
|
+
## 4.0.0-beta.51
|
|
142
|
+
|
|
143
|
+
### Patch Changes
|
|
144
|
+
|
|
145
|
+
- effect-app@4.0.0-beta.51
|
|
146
|
+
|
|
147
|
+
## 4.0.0-beta.50
|
|
148
|
+
|
|
149
|
+
### Patch Changes
|
|
150
|
+
|
|
151
|
+
- effect-app@4.0.0-beta.50
|
|
152
|
+
|
|
153
|
+
## 4.0.0-beta.49
|
|
154
|
+
|
|
155
|
+
### Patch Changes
|
|
156
|
+
|
|
157
|
+
- Updated dependencies [e585c9c]
|
|
158
|
+
- effect-app@4.0.0-beta.49
|
|
159
|
+
|
|
160
|
+
## 4.0.0-beta.48
|
|
161
|
+
|
|
162
|
+
### Patch Changes
|
|
163
|
+
|
|
164
|
+
- Updated dependencies [0c88f78]
|
|
165
|
+
- effect-app@4.0.0-beta.48
|
|
166
|
+
|
|
167
|
+
## 4.0.0-beta.47
|
|
168
|
+
|
|
169
|
+
### Patch Changes
|
|
170
|
+
|
|
171
|
+
- Updated dependencies [3365758]
|
|
172
|
+
- effect-app@4.0.0-beta.47
|
|
173
|
+
|
|
174
|
+
## 4.0.0-beta.46
|
|
175
|
+
|
|
176
|
+
### Patch Changes
|
|
177
|
+
|
|
178
|
+
- 28a0b29: expose Input
|
|
179
|
+
- 0c42d67: move out Commander and friends from experimental
|
|
180
|
+
- effect-app@4.0.0-beta.46
|
|
181
|
+
|
|
182
|
+
## 4.0.0-beta.45
|
|
183
|
+
|
|
184
|
+
### Patch Changes
|
|
185
|
+
|
|
186
|
+
- 10b55ff: update packages
|
|
187
|
+
- Updated dependencies [10b55ff]
|
|
188
|
+
- effect-app@4.0.0-beta.45
|
|
189
|
+
|
|
190
|
+
## 4.0.0-beta.44
|
|
191
|
+
|
|
192
|
+
### Patch Changes
|
|
193
|
+
|
|
194
|
+
- a37aa38: Update to effect beta 43
|
|
195
|
+
- Updated dependencies [a37aa38]
|
|
196
|
+
- effect-app@4.0.0-beta.44
|
|
197
|
+
|
|
198
|
+
## 4.0.0-beta.43
|
|
199
|
+
|
|
200
|
+
### Patch Changes
|
|
201
|
+
|
|
202
|
+
- effect-app@4.0.0-beta.43
|
|
203
|
+
|
|
204
|
+
## 4.0.0-beta.42
|
|
205
|
+
|
|
206
|
+
### Patch Changes
|
|
207
|
+
|
|
208
|
+
- d195003: Fix numeric field type detection in `getMetadataFromSchema` for Effect v4 JSON schema output. `S.Number` now emits `anyOf` instead of a top-level `type: "number"`, causing fields to fall back to `"text"`. Detection now recurses through `anyOf`/`oneOf`/`allOf` to find the underlying numeric type.
|
|
209
|
+
- effect-app@4.0.0-beta.42
|
|
210
|
+
|
|
211
|
+
## 4.0.0-beta.41
|
|
212
|
+
|
|
213
|
+
### Patch Changes
|
|
214
|
+
|
|
215
|
+
- 702d51c: also make runSync version available\
|
|
216
|
+
- effect-app@4.0.0-beta.41
|
|
217
|
+
|
|
218
|
+
## 4.0.0-beta.40
|
|
219
|
+
|
|
220
|
+
### Patch Changes
|
|
221
|
+
|
|
222
|
+
- 18fd1df: unify runPromise
|
|
223
|
+
- effect-app@4.0.0-beta.40
|
|
224
|
+
|
|
225
|
+
## 4.0.0-beta.39
|
|
226
|
+
|
|
227
|
+
### Patch Changes
|
|
228
|
+
|
|
229
|
+
- Updated dependencies [10e90d5]
|
|
230
|
+
- effect-app@4.0.0-beta.39
|
|
231
|
+
|
|
232
|
+
## 4.0.0-beta.38
|
|
233
|
+
|
|
234
|
+
### Patch Changes
|
|
235
|
+
|
|
236
|
+
- Updated dependencies [0b3e00e]
|
|
237
|
+
- effect-app@4.0.0-beta.38
|
|
238
|
+
|
|
239
|
+
## 4.0.0-beta.37
|
|
240
|
+
|
|
241
|
+
### Patch Changes
|
|
242
|
+
|
|
243
|
+
- 04fc985: Fixes error handling
|
|
244
|
+
- Updated dependencies [947fe20]
|
|
245
|
+
- effect-app@4.0.0-beta.37
|
|
246
|
+
|
|
247
|
+
## 4.0.0-beta.36
|
|
248
|
+
|
|
249
|
+
### Patch Changes
|
|
250
|
+
|
|
251
|
+
- effect-app@4.0.0-beta.36
|
|
252
|
+
|
|
253
|
+
## 4.0.0-beta.35
|
|
254
|
+
|
|
255
|
+
### Patch Changes
|
|
256
|
+
|
|
257
|
+
- effect-app@4.0.0-beta.35
|
|
258
|
+
|
|
259
|
+
## 4.0.0-beta.34
|
|
260
|
+
|
|
261
|
+
### Patch Changes
|
|
262
|
+
|
|
263
|
+
- 8c645d5: update to latest effect
|
|
264
|
+
- Updated dependencies [8c645d5]
|
|
265
|
+
- effect-app@4.0.0-beta.34
|
|
266
|
+
|
|
267
|
+
## 4.0.0-beta.33
|
|
268
|
+
|
|
269
|
+
### Patch Changes
|
|
270
|
+
|
|
271
|
+
- 4b95009: use Finite instead of Number
|
|
272
|
+
- 7328c76: add deprecation notices
|
|
273
|
+
- Updated dependencies [4b95009]
|
|
274
|
+
- effect-app@4.0.0-beta.33
|
|
275
|
+
|
|
276
|
+
## 4.0.0-beta.32
|
|
277
|
+
|
|
278
|
+
### Patch Changes
|
|
279
|
+
|
|
280
|
+
- Updated dependencies [01d862a]
|
|
281
|
+
- effect-app@4.0.0-beta.32
|
|
282
|
+
|
|
283
|
+
## 4.0.0-beta.31
|
|
284
|
+
|
|
285
|
+
### Patch Changes
|
|
286
|
+
|
|
287
|
+
- Updated dependencies [6b6d601]
|
|
288
|
+
- effect-app@4.0.0-beta.31
|
|
289
|
+
|
|
290
|
+
## 4.0.0-beta.30
|
|
291
|
+
|
|
292
|
+
### Patch Changes
|
|
293
|
+
|
|
294
|
+
- Updated dependencies [5ec1f45]
|
|
295
|
+
- effect-app@4.0.0-beta.30
|
|
296
|
+
|
|
297
|
+
## 4.0.0-beta.29
|
|
298
|
+
|
|
299
|
+
### Patch Changes
|
|
300
|
+
|
|
301
|
+
- Updated dependencies [a899d46]
|
|
302
|
+
- effect-app@4.0.0-beta.29
|
|
303
|
+
|
|
304
|
+
## 4.0.0-beta.28
|
|
305
|
+
|
|
306
|
+
### Patch Changes
|
|
307
|
+
|
|
308
|
+
- Updated dependencies [0099208]
|
|
309
|
+
- effect-app@4.0.0-beta.28
|
|
310
|
+
|
|
311
|
+
## 4.0.0-beta.27
|
|
312
|
+
|
|
313
|
+
### Patch Changes
|
|
314
|
+
|
|
315
|
+
- 601a1ff: update effect to 4.0.0-beta.37 and drop the Schema Class disableValidation workaround now that the patched effect schema covers it
|
|
316
|
+
- Updated dependencies [601a1ff]
|
|
317
|
+
- effect-app@4.0.0-beta.27
|
|
318
|
+
|
|
319
|
+
## 4.0.0-beta.26
|
|
320
|
+
|
|
321
|
+
### Patch Changes
|
|
322
|
+
|
|
323
|
+
- Updated dependencies [4da28e2]
|
|
324
|
+
- effect-app@4.0.0-beta.26
|
|
325
|
+
|
|
326
|
+
## 4.0.0-beta.25
|
|
327
|
+
|
|
328
|
+
### Patch Changes
|
|
329
|
+
|
|
330
|
+
- Updated dependencies [6282d4b]
|
|
331
|
+
- effect-app@4.0.0-beta.25
|
|
332
|
+
|
|
333
|
+
## 4.0.0-beta.24
|
|
334
|
+
|
|
335
|
+
### Patch Changes
|
|
336
|
+
|
|
337
|
+
- Updated dependencies [32f71bf]
|
|
338
|
+
- effect-app@4.0.0-beta.24
|
|
339
|
+
|
|
340
|
+
## 4.0.0-beta.23
|
|
341
|
+
|
|
342
|
+
### Patch Changes
|
|
343
|
+
|
|
344
|
+
- Updated dependencies [ea08a79]
|
|
345
|
+
- effect-app@4.0.0-beta.23
|
|
346
|
+
|
|
347
|
+
## 4.0.0-beta.22
|
|
348
|
+
|
|
349
|
+
### Patch Changes
|
|
350
|
+
|
|
351
|
+
- effect-app@4.0.0-beta.22
|
|
352
|
+
|
|
353
|
+
## 4.0.0-beta.21
|
|
354
|
+
|
|
355
|
+
### Patch Changes
|
|
356
|
+
|
|
357
|
+
- 75c72ee: update effect to 4.0.0-beta.36, adapt to Option<A> revert from A | undefined
|
|
358
|
+
- Updated dependencies [0d349e7]
|
|
359
|
+
- Updated dependencies [75c72ee]
|
|
360
|
+
- effect-app@4.0.0-beta.21
|
|
361
|
+
|
|
362
|
+
## 4.0.0-beta.20
|
|
363
|
+
|
|
364
|
+
### Patch Changes
|
|
365
|
+
|
|
366
|
+
- Updated dependencies [aa921db]
|
|
367
|
+
- effect-app@4.0.0-beta.20
|
|
368
|
+
|
|
369
|
+
## 4.0.0-beta.19
|
|
370
|
+
|
|
371
|
+
### Patch Changes
|
|
372
|
+
|
|
373
|
+
- Updated dependencies [ffc10a4]
|
|
374
|
+
- effect-app@4.0.0-beta.19
|
|
375
|
+
|
|
376
|
+
## 4.0.0-beta.18
|
|
377
|
+
|
|
378
|
+
### Patch Changes
|
|
379
|
+
|
|
380
|
+
- Updated dependencies [e9dbbdd]
|
|
381
|
+
- effect-app@4.0.0-beta.18
|
|
382
|
+
|
|
383
|
+
## 4.0.0-beta.17
|
|
384
|
+
|
|
385
|
+
### Patch Changes
|
|
386
|
+
|
|
387
|
+
- Updated dependencies [c8a6a3f]
|
|
388
|
+
- effect-app@4.0.0-beta.17
|
|
389
|
+
|
|
390
|
+
## 4.0.0-beta.16
|
|
391
|
+
|
|
392
|
+
### Patch Changes
|
|
393
|
+
|
|
394
|
+
- Updated dependencies [56db2c4]
|
|
395
|
+
- effect-app@4.0.0-beta.16
|
|
396
|
+
|
|
397
|
+
## 4.0.0-beta.15
|
|
398
|
+
|
|
399
|
+
### Patch Changes
|
|
400
|
+
|
|
401
|
+
- Updated dependencies [20186b6]
|
|
402
|
+
- effect-app@4.0.0-beta.15
|
|
403
|
+
|
|
404
|
+
## 4.0.0-beta.14
|
|
405
|
+
|
|
406
|
+
### Patch Changes
|
|
407
|
+
|
|
408
|
+
- effect-app@4.0.0-beta.14
|
|
409
|
+
|
|
410
|
+
## 4.0.0-beta.13
|
|
411
|
+
|
|
412
|
+
### Patch Changes
|
|
413
|
+
|
|
414
|
+
- 1c3c541: Update Effect dependencies to 4.0.0-beta.31 across workspace packages.
|
|
415
|
+
- de2359d: Update Effect dependencies to 4.0.0-beta.28 across workspace packages.
|
|
416
|
+
- 0d72f34: Update Effect dependencies to 4.0.0-beta.29 across workspace packages.
|
|
417
|
+
- Updated dependencies [16de88c]
|
|
418
|
+
- Updated dependencies [1c3c541]
|
|
419
|
+
- Updated dependencies [de2359d]
|
|
420
|
+
- Updated dependencies [0d72f34]
|
|
421
|
+
- effect-app@4.0.0-beta.13
|
|
422
|
+
|
|
423
|
+
## 4.0.0-beta.12
|
|
424
|
+
|
|
425
|
+
### Patch Changes
|
|
426
|
+
|
|
427
|
+
- 622d54a: Configure Changesets fixed versioning for public packages.
|
|
428
|
+
- Updated dependencies [622d54a]
|
|
429
|
+
- effect-app@4.0.0-beta.12
|
|
430
|
+
|
|
431
|
+
## 4.0.0-beta.10
|
|
432
|
+
|
|
433
|
+
### Patch Changes
|
|
434
|
+
|
|
435
|
+
- Updated dependencies [01c70d0]
|
|
436
|
+
- effect-app@4.0.0-beta.10
|
|
437
|
+
|
|
438
|
+
## 4.0.0-beta.9
|
|
439
|
+
|
|
440
|
+
### Patch Changes
|
|
441
|
+
|
|
442
|
+
- Updated dependencies [5727372]
|
|
443
|
+
- effect-app@4.0.0-beta.9
|
|
444
|
+
|
|
445
|
+
## 4.0.0-beta.8
|
|
446
|
+
|
|
447
|
+
### Patch Changes
|
|
448
|
+
|
|
449
|
+
- Updated dependencies [1f336bc]
|
|
450
|
+
- effect-app@4.0.0-beta.8
|
|
451
|
+
|
|
3
452
|
## 4.0.0-beta.7
|
|
4
453
|
|
|
5
454
|
### Patch Changes
|
|
@@ -67,6 +516,12 @@
|
|
|
67
516
|
- Updated dependencies [880df28]
|
|
68
517
|
- effect-app@4.0.0-beta.0
|
|
69
518
|
|
|
519
|
+
## 2.94.1
|
|
520
|
+
|
|
521
|
+
### Patch Changes
|
|
522
|
+
|
|
523
|
+
- 0a667ad: fix: tanstack query throwing error via watcher
|
|
524
|
+
|
|
70
525
|
## 2.94.0
|
|
71
526
|
|
|
72
527
|
### Minor Changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type MissingDependencies } from "@effect-app/vue";
|
|
2
|
+
import { Context, Effect, type Exit, type Fiber, Layer, Option } from "effect-app";
|
|
2
3
|
import { type AsyncResult } from "effect/unstable/reactivity/AsyncResult";
|
|
3
|
-
import { Effect, type Exit, type Fiber, Layer, Option, ServiceMap } from "effect-app";
|
|
4
4
|
import { type FormatXMLElementFn, type PrimitiveType } from "intl-messageformat";
|
|
5
5
|
import { type ComputedRef } from "vue";
|
|
6
6
|
import { Confirm } from "./confirm.js";
|
|
@@ -52,7 +52,7 @@ export declare const DefaultIntl: {
|
|
|
52
52
|
"handle.not_found": string;
|
|
53
53
|
};
|
|
54
54
|
};
|
|
55
|
-
declare const CommandContext_base:
|
|
55
|
+
declare const CommandContext_base: Context.ServiceClass<CommandContext, "CommandContext", {
|
|
56
56
|
id: string;
|
|
57
57
|
i18nKey: string;
|
|
58
58
|
action: string;
|
|
@@ -71,11 +71,11 @@ export type EmitWithCallback<A, Event extends string> = (event: Event, value: A,
|
|
|
71
71
|
export declare const wrapEmit: <A, Event extends string>(emit: EmitWithCallback<A, NoInfer<Event>>, event: Event) => (value: A) => Promise<void>;
|
|
72
72
|
export declare namespace Commander {
|
|
73
73
|
type CommanderBase<RT, Id extends string, I18nKey extends string, State extends IntlRecord | undefined> = Gen<RT, Id, I18nKey, State> & NonGen<RT, Id, I18nKey, State> & CommandContextLocal<Id, I18nKey> & {
|
|
74
|
-
state:
|
|
74
|
+
state: Context.Service<`Commander.Command.${Id}.state`, State>;
|
|
75
75
|
};
|
|
76
76
|
type CommanderFn<RT, Id extends string, I18nKey extends string, State extends IntlRecord | undefined> = CommanderBase<RT, Id, I18nKey, State>;
|
|
77
77
|
type CommanderWrap<RT, Id extends string, I18nCustomKey extends string, State extends IntlRecord | undefined, I, A, E, R> = CommandContextLocal<Id, I18nCustomKey> & GenWrap<RT, Id, I18nCustomKey, I, A, E, R, State> & NonGenWrap<RT, Id, I18nCustomKey, I, A, E, R, State> & {
|
|
78
|
-
state:
|
|
78
|
+
state: Context.Service<`Commander.Command.${Id}.state`, State>;
|
|
79
79
|
};
|
|
80
80
|
interface CommandContextLocal<Id extends string, I18nKey extends string> {
|
|
81
81
|
id: Id;
|
|
@@ -204,9 +204,9 @@ type ErrorRenderer<E, Args extends readonly any[]> = (e: E, action: string, ...a
|
|
|
204
204
|
export declare const CommanderStatic: {
|
|
205
205
|
accessArgs: <In, Out, Arg2, Arg = void>(cb: (a: NoInfer<Arg>, b: NoInfer<Arg2>) => (self: NoInfer<In>) => Out) => (self: In, arg: Arg, arg2: Arg2) => Out;
|
|
206
206
|
/** Version of @see confirmOrInterrupt that automatically includes the action name in the default messages */
|
|
207
|
-
confirmOrInterrupt: (message?: string | undefined) => Effect.Effect<void, never, I18n |
|
|
207
|
+
confirmOrInterrupt: (message?: string | undefined) => Effect.Effect<void, never, I18n | CommandContext | Confirm>;
|
|
208
208
|
/** Version of @see confirm that automatically includes the action name in the default messages */
|
|
209
|
-
confirm: (message?: string | undefined) => Effect.Effect<boolean, never, I18n |
|
|
209
|
+
confirm: (message?: string | undefined) => Effect.Effect<boolean, never, I18n | CommandContext | Confirm>;
|
|
210
210
|
updateAction: <Args extends Array<unknown>>(update: (currentActionId: string, ...args: Args) => string) => <A, E, R>(_: Effect.Effect<A, E, R>, ...input: Args) => Effect.Effect<A, E, CommandContext | R>;
|
|
211
211
|
defaultFailureMessageHandler: <E, Args extends Array<unknown>, AME, AMR>(actionMaker: string | ((o: Option.Option<E>, ...args: Args) => string) | ((o: Option.Option<E>, ...args: Args) => Effect.Effect<string, AME, AMR>), errorRenderer?: ErrorRenderer<E, Args>) => (o: Option.Option<E>, ...args: Args) => Effect.Effect<string | {
|
|
212
212
|
level: "warn";
|
|
@@ -232,7 +232,7 @@ export declare const CommanderStatic: {
|
|
|
232
232
|
errorRenderer?: ErrorRenderer<E, Args>;
|
|
233
233
|
onWaiting?: null | undefined | string | ((id: string, ...args: Args) => string | null | undefined);
|
|
234
234
|
onSuccess?: null | undefined | string | ((a: A, action: string, ...args: Args) => string | null | undefined);
|
|
235
|
-
}) => (self: Effect.Effect<A, E, R>, ...args: Args) => Effect.Effect<A, E, I18n |
|
|
235
|
+
}) => (self: Effect.Effect<A, E, R>, ...args: Args) => Effect.Effect<A, E, I18n | CommandContext | R | WithToast>;
|
|
236
236
|
/** borrowing the idea from Families in Effect Atom */
|
|
237
237
|
family: <T extends object, Arg, ArgIn = Arg>(maker: (arg: Arg) => T, keyMaker?: (arg: ArgIn) => Arg) => (arg: ArgIn) => T;
|
|
238
238
|
};
|
|
@@ -240,7 +240,7 @@ export declare class CommanderImpl<RT, RTHooks> {
|
|
|
240
240
|
private readonly rt;
|
|
241
241
|
private readonly intl;
|
|
242
242
|
private readonly hooks;
|
|
243
|
-
constructor(rt:
|
|
243
|
+
constructor(rt: Context.Context<RT>, intl: I18n, hooks: Layer.Layer<RTHooks, never, RT>);
|
|
244
244
|
readonly makeContext: <const Id extends string, const I18nKey extends string = Id>(id: Id, options?: FnOptionsInternal<I18nKey>) => {
|
|
245
245
|
id: string;
|
|
246
246
|
i18nKey: string;
|
|
@@ -301,9 +301,9 @@ export declare class CommanderImpl<RT, RTHooks> {
|
|
|
301
301
|
fn: <const Id extends string, const State extends IntlRecord = IntlRecord, const I18nKey extends string = Id>(id: Id | {
|
|
302
302
|
id: Id;
|
|
303
303
|
}, options?: FnOptions<Id, I18nKey, State>) => Commander.Gen<RT | RTHooks, Id, I18nKey, State> & Commander.NonGen<RT | RTHooks, Id, I18nKey, State> & {
|
|
304
|
-
state:
|
|
304
|
+
state: Context.Service<`Commander.Command.${Id}.state`, State>;
|
|
305
305
|
};
|
|
306
|
-
/** @
|
|
306
|
+
/** @deprecated */
|
|
307
307
|
alt2: <const Id extends string, MutArg, MutA, MutE, MutR, const I18nKey extends string = Id, State extends IntlRecord | undefined = undefined>(id: Id | {
|
|
308
308
|
id: Id;
|
|
309
309
|
mutate: (arg: MutArg) => Effect.Effect<MutA, MutE, MutR>;
|
|
@@ -312,7 +312,6 @@ export declare class CommanderImpl<RT, RTHooks> {
|
|
|
312
312
|
}), options?: FnOptions<Id, I18nKey, State>) => Commander.CommandContextLocal<Id, I18nKey> & (<A, E, R extends RT | RTHooks | CommandContext | `Commander.Command.${Id}.state`, Arg = void>(handler: (ctx: Effect.fn.Traced & Effect.fn.Untraced & Commander.CommandContextLocal<Id, I18nKey> & {
|
|
313
313
|
mutate: (arg: Arg) => Effect.Effect<MutA, MutE, MutR>;
|
|
314
314
|
}) => (arg: Arg, ctx: Commander.CommandContextLocal2<Id, I18nKey, State>) => Effect.Effect<A, E, R>) => Commander.CommandOut<Arg, A, E, R, Id, I18nKey, State>);
|
|
315
|
-
/** @experimental */
|
|
316
315
|
alt: <const Id extends string, const I18nKey extends string = Id, State extends IntlRecord | undefined = undefined>(id: Id, customI18nKey?: I18nKey) => Commander.CommandContextLocal<Id, I18nKey> & (<A, E, R extends RT | CommandContext | `Commander.Command.${Id}.state`, Arg = void>(handler: (arg: Arg, ctx: Commander.CommandContextLocal2<Id, I18nKey, State>) => Effect.Effect<A, E, R>) => Commander.CommandOut<Arg, A, E, R, Id, I18nKey, State>);
|
|
317
316
|
/**
|
|
318
317
|
* Define a Command for handling user actions with built-in error reporting and state management.
|
|
@@ -348,8 +347,8 @@ export declare class CommanderImpl<RT, RTHooks> {
|
|
|
348
347
|
id: Id;
|
|
349
348
|
}), options?: FnOptions<Id, I18nKey, State>) => Commander.CommanderWrap<RT | RTHooks, Id, I18nKey, State, Arg, A, E, R>;
|
|
350
349
|
}
|
|
351
|
-
declare const Commander_base:
|
|
352
|
-
readonly make: Effect.Effect<(<RT, RTHooks>(rt:
|
|
350
|
+
declare const Commander_base: Context.ServiceClass<Commander, "Commander", <RT, RTHooks>(rt: Context.Context<RT>, rtHooks: Layer.Layer<RTHooks, never, RT>) => CommanderImpl<RT, RTHooks>> & {
|
|
351
|
+
readonly make: Effect.Effect<(<RT, RTHooks>(rt: Context.Context<RT>, rtHooks: Layer.Layer<RTHooks, never, RT>) => CommanderImpl<RT, RTHooks>), never, I18n>;
|
|
353
352
|
};
|
|
354
353
|
export declare class Commander extends Commander_base {
|
|
355
354
|
static readonly DefaultWithoutDependencies: Layer.Layer<Commander, never, I18n>;
|