@effect-app/vue 4.0.0-beta.7 → 4.0.0-beta.71

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.
Files changed (70) hide show
  1. package/CHANGELOG.md +462 -0
  2. package/dist/{experimental/commander.d.ts → commander.d.ts} +12 -13
  3. package/dist/commander.d.ts.map +1 -0
  4. package/dist/commander.js +556 -0
  5. package/dist/{experimental/confirm.d.ts → confirm.d.ts} +2 -2
  6. package/dist/confirm.d.ts.map +1 -0
  7. package/dist/confirm.js +28 -0
  8. package/dist/form.d.ts +9 -0
  9. package/dist/form.d.ts.map +1 -1
  10. package/dist/form.js +38 -9
  11. package/dist/intl.d.ts +15 -0
  12. package/dist/intl.d.ts.map +1 -0
  13. package/dist/intl.js +9 -0
  14. package/dist/makeClient.d.ts +12 -235
  15. package/dist/makeClient.d.ts.map +1 -1
  16. package/dist/makeClient.js +12 -335
  17. package/dist/{experimental/makeUseCommand.d.ts → makeUseCommand.d.ts} +1 -1
  18. package/dist/makeUseCommand.d.ts.map +1 -0
  19. package/dist/makeUseCommand.js +13 -0
  20. package/dist/mutate.d.ts +1 -1
  21. package/dist/mutate.d.ts.map +1 -1
  22. package/dist/mutate.js +2 -2
  23. package/dist/query.d.ts +10 -14
  24. package/dist/query.d.ts.map +1 -1
  25. package/dist/query.js +23 -23
  26. package/dist/runtime.d.ts +3 -0
  27. package/dist/runtime.d.ts.map +1 -1
  28. package/dist/runtime.js +15 -3
  29. package/dist/{experimental/toast.d.ts → toast.d.ts} +9 -10
  30. package/dist/toast.d.ts.map +1 -0
  31. package/dist/toast.js +32 -0
  32. package/dist/{experimental/withToast.d.ts → withToast.d.ts} +2 -2
  33. package/dist/withToast.d.ts.map +1 -0
  34. package/dist/withToast.js +45 -0
  35. package/package.json +43 -43
  36. package/src/{experimental/commander.ts → commander.ts} +15 -17
  37. package/src/{experimental/confirm.ts → confirm.ts} +2 -2
  38. package/src/form.ts +46 -8
  39. package/src/intl.ts +12 -0
  40. package/src/makeClient.ts +19 -916
  41. package/src/{experimental/makeUseCommand.ts → makeUseCommand.ts} +1 -1
  42. package/src/mutate.ts +1 -1
  43. package/src/query.ts +44 -45
  44. package/src/runtime.ts +25 -2
  45. package/src/{experimental/toast.ts → toast.ts} +11 -25
  46. package/src/{experimental/withToast.ts → withToast.ts} +2 -2
  47. package/test/Mutation.test.ts +1 -1
  48. package/test/dist/form.test.d.ts.map +1 -1
  49. package/test/dist/stubs.d.ts +42 -60
  50. package/test/dist/stubs.d.ts.map +1 -1
  51. package/test/dist/stubs.js +10 -11
  52. package/test/form-validation-errors.test.ts +23 -19
  53. package/test/form.test.ts +20 -2
  54. package/test/makeClient.test.ts +12 -21
  55. package/test/stubs.ts +9 -10
  56. package/tsconfig.json +0 -1
  57. package/dist/experimental/commander.d.ts.map +0 -1
  58. package/dist/experimental/commander.js +0 -558
  59. package/dist/experimental/confirm.d.ts.map +0 -1
  60. package/dist/experimental/confirm.js +0 -28
  61. package/dist/experimental/intl.d.ts +0 -16
  62. package/dist/experimental/intl.d.ts.map +0 -1
  63. package/dist/experimental/intl.js +0 -5
  64. package/dist/experimental/makeUseCommand.d.ts.map +0 -1
  65. package/dist/experimental/makeUseCommand.js +0 -13
  66. package/dist/experimental/toast.d.ts.map +0 -1
  67. package/dist/experimental/toast.js +0 -41
  68. package/dist/experimental/withToast.d.ts.map +0 -1
  69. package/dist/experimental/withToast.js +0 -45
  70. package/src/experimental/intl.ts +0 -9
package/CHANGELOG.md CHANGED
@@ -1,5 +1,461 @@
1
1
  # @effect-app/vue
2
2
 
3
+ ## 4.0.0-beta.71
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [beae3a0]
8
+ - effect-app@4.0.0-beta.71
9
+
10
+ ## 4.0.0-beta.70
11
+
12
+ ### Patch Changes
13
+
14
+ - effect-app@4.0.0-beta.70
15
+
16
+ ## 4.0.0-beta.69
17
+
18
+ ### Patch Changes
19
+
20
+ - dc465e3: update to latest effect beta
21
+ - Updated dependencies [dc465e3]
22
+ - effect-app@4.0.0-beta.69
23
+
24
+ ## 4.0.0-beta.68
25
+
26
+ ### Patch Changes
27
+
28
+ - Updated dependencies [e6f2341]
29
+ - effect-app@4.0.0-beta.68
30
+
31
+ ## 4.0.0-beta.67
32
+
33
+ ### Patch Changes
34
+
35
+ - effect-app@4.0.0-beta.67
36
+
37
+ ## 4.0.0-beta.66
38
+
39
+ ### Patch Changes
40
+
41
+ - Updated dependencies [edc52e4]
42
+ - effect-app@4.0.0-beta.66
43
+
44
+ ## 4.0.0-beta.65
45
+
46
+ ### Minor Changes
47
+
48
+ - 1f103b2: Replace `proxify` with explicit service accessor helpers: `accessFn`, `accessEffectFn`, `accessCn`, `accessEffectCn`.
49
+
50
+ ### Patch Changes
51
+
52
+ - Updated dependencies [31739d7]
53
+ - Updated dependencies [1f103b2]
54
+ - effect-app@4.0.0-beta.65
55
+
56
+ ## 4.0.0-beta.64
57
+
58
+ ### Patch Changes
59
+
60
+ - Updated dependencies [c1a6fdc]
61
+ - effect-app@4.0.0-beta.64
62
+
63
+ ## 4.0.0-beta.63
64
+
65
+ ### Minor Changes
66
+
67
+ - b3ed68a: Remove `legacy` from `makeClient` return and clean up `LegacyMutation`, `LegacyMutationImpl`, and related types.
68
+
69
+ ### Patch Changes
70
+
71
+ - effect-app@4.0.0-beta.63
72
+
73
+ ## 4.0.0-beta.62
74
+
75
+ ### Patch Changes
76
+
77
+ - Updated dependencies [0b21a02]
78
+ - effect-app@4.0.0-beta.62
79
+
80
+ ## 4.0.0-beta.61
81
+
82
+ ### Patch Changes
83
+
84
+ - effect-app@4.0.0-beta.61
85
+
86
+ ## 4.0.0-beta.60
87
+
88
+ ### Patch Changes
89
+
90
+ - effect-app@4.0.0-beta.60
91
+
92
+ ## 4.0.0-beta.59
93
+
94
+ ### Patch Changes
95
+
96
+ - cec026d: update packages
97
+ - Updated dependencies [cec026d]
98
+ - effect-app@4.0.0-beta.59
99
+
100
+ ## 4.0.0-beta.58
101
+
102
+ ### Patch Changes
103
+
104
+ - 7fd35e4: update tanstack/query
105
+ - effect-app@4.0.0-beta.58
106
+
107
+ ## 4.0.0-beta.57
108
+
109
+ ### Patch Changes
110
+
111
+ - effect-app@4.0.0-beta.57
112
+
113
+ ## 4.0.0-beta.56
114
+
115
+ ### Patch Changes
116
+
117
+ - effect-app@4.0.0-beta.56
118
+
119
+ ## 4.0.0-beta.55
120
+
121
+ ### Patch Changes
122
+
123
+ - eceb3a3: align CauseException
124
+ - effect-app@4.0.0-beta.55
125
+
126
+ ## 4.0.0-beta.54
127
+
128
+ ### Patch Changes
129
+
130
+ - d867272: the return of `Context`
131
+ - Updated dependencies [d867272]
132
+ - effect-app@4.0.0-beta.54
133
+
134
+ ## 4.0.0-beta.53
135
+
136
+ ### Patch Changes
137
+
138
+ - Updated dependencies [ee9694e]
139
+ - effect-app@4.0.0-beta.53
140
+
141
+ ## 4.0.0-beta.52
142
+
143
+ ### Patch Changes
144
+
145
+ - Updated dependencies [6252808]
146
+ - effect-app@4.0.0-beta.52
147
+
148
+ ## 4.0.0-beta.51
149
+
150
+ ### Patch Changes
151
+
152
+ - effect-app@4.0.0-beta.51
153
+
154
+ ## 4.0.0-beta.50
155
+
156
+ ### Patch Changes
157
+
158
+ - effect-app@4.0.0-beta.50
159
+
160
+ ## 4.0.0-beta.49
161
+
162
+ ### Patch Changes
163
+
164
+ - Updated dependencies [e585c9c]
165
+ - effect-app@4.0.0-beta.49
166
+
167
+ ## 4.0.0-beta.48
168
+
169
+ ### Patch Changes
170
+
171
+ - Updated dependencies [0c88f78]
172
+ - effect-app@4.0.0-beta.48
173
+
174
+ ## 4.0.0-beta.47
175
+
176
+ ### Patch Changes
177
+
178
+ - Updated dependencies [3365758]
179
+ - effect-app@4.0.0-beta.47
180
+
181
+ ## 4.0.0-beta.46
182
+
183
+ ### Patch Changes
184
+
185
+ - 28a0b29: expose Input
186
+ - 0c42d67: move out Commander and friends from experimental
187
+ - effect-app@4.0.0-beta.46
188
+
189
+ ## 4.0.0-beta.45
190
+
191
+ ### Patch Changes
192
+
193
+ - 10b55ff: update packages
194
+ - Updated dependencies [10b55ff]
195
+ - effect-app@4.0.0-beta.45
196
+
197
+ ## 4.0.0-beta.44
198
+
199
+ ### Patch Changes
200
+
201
+ - a37aa38: Update to effect beta 43
202
+ - Updated dependencies [a37aa38]
203
+ - effect-app@4.0.0-beta.44
204
+
205
+ ## 4.0.0-beta.43
206
+
207
+ ### Patch Changes
208
+
209
+ - effect-app@4.0.0-beta.43
210
+
211
+ ## 4.0.0-beta.42
212
+
213
+ ### Patch Changes
214
+
215
+ - 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.
216
+ - effect-app@4.0.0-beta.42
217
+
218
+ ## 4.0.0-beta.41
219
+
220
+ ### Patch Changes
221
+
222
+ - 702d51c: also make runSync version available\
223
+ - effect-app@4.0.0-beta.41
224
+
225
+ ## 4.0.0-beta.40
226
+
227
+ ### Patch Changes
228
+
229
+ - 18fd1df: unify runPromise
230
+ - effect-app@4.0.0-beta.40
231
+
232
+ ## 4.0.0-beta.39
233
+
234
+ ### Patch Changes
235
+
236
+ - Updated dependencies [10e90d5]
237
+ - effect-app@4.0.0-beta.39
238
+
239
+ ## 4.0.0-beta.38
240
+
241
+ ### Patch Changes
242
+
243
+ - Updated dependencies [0b3e00e]
244
+ - effect-app@4.0.0-beta.38
245
+
246
+ ## 4.0.0-beta.37
247
+
248
+ ### Patch Changes
249
+
250
+ - 04fc985: Fixes error handling
251
+ - Updated dependencies [947fe20]
252
+ - effect-app@4.0.0-beta.37
253
+
254
+ ## 4.0.0-beta.36
255
+
256
+ ### Patch Changes
257
+
258
+ - effect-app@4.0.0-beta.36
259
+
260
+ ## 4.0.0-beta.35
261
+
262
+ ### Patch Changes
263
+
264
+ - effect-app@4.0.0-beta.35
265
+
266
+ ## 4.0.0-beta.34
267
+
268
+ ### Patch Changes
269
+
270
+ - 8c645d5: update to latest effect
271
+ - Updated dependencies [8c645d5]
272
+ - effect-app@4.0.0-beta.34
273
+
274
+ ## 4.0.0-beta.33
275
+
276
+ ### Patch Changes
277
+
278
+ - 4b95009: use Finite instead of Number
279
+ - 7328c76: add deprecation notices
280
+ - Updated dependencies [4b95009]
281
+ - effect-app@4.0.0-beta.33
282
+
283
+ ## 4.0.0-beta.32
284
+
285
+ ### Patch Changes
286
+
287
+ - Updated dependencies [01d862a]
288
+ - effect-app@4.0.0-beta.32
289
+
290
+ ## 4.0.0-beta.31
291
+
292
+ ### Patch Changes
293
+
294
+ - Updated dependencies [6b6d601]
295
+ - effect-app@4.0.0-beta.31
296
+
297
+ ## 4.0.0-beta.30
298
+
299
+ ### Patch Changes
300
+
301
+ - Updated dependencies [5ec1f45]
302
+ - effect-app@4.0.0-beta.30
303
+
304
+ ## 4.0.0-beta.29
305
+
306
+ ### Patch Changes
307
+
308
+ - Updated dependencies [a899d46]
309
+ - effect-app@4.0.0-beta.29
310
+
311
+ ## 4.0.0-beta.28
312
+
313
+ ### Patch Changes
314
+
315
+ - Updated dependencies [0099208]
316
+ - effect-app@4.0.0-beta.28
317
+
318
+ ## 4.0.0-beta.27
319
+
320
+ ### Patch Changes
321
+
322
+ - 601a1ff: update effect to 4.0.0-beta.37 and drop the Schema Class disableValidation workaround now that the patched effect schema covers it
323
+ - Updated dependencies [601a1ff]
324
+ - effect-app@4.0.0-beta.27
325
+
326
+ ## 4.0.0-beta.26
327
+
328
+ ### Patch Changes
329
+
330
+ - Updated dependencies [4da28e2]
331
+ - effect-app@4.0.0-beta.26
332
+
333
+ ## 4.0.0-beta.25
334
+
335
+ ### Patch Changes
336
+
337
+ - Updated dependencies [6282d4b]
338
+ - effect-app@4.0.0-beta.25
339
+
340
+ ## 4.0.0-beta.24
341
+
342
+ ### Patch Changes
343
+
344
+ - Updated dependencies [32f71bf]
345
+ - effect-app@4.0.0-beta.24
346
+
347
+ ## 4.0.0-beta.23
348
+
349
+ ### Patch Changes
350
+
351
+ - Updated dependencies [ea08a79]
352
+ - effect-app@4.0.0-beta.23
353
+
354
+ ## 4.0.0-beta.22
355
+
356
+ ### Patch Changes
357
+
358
+ - effect-app@4.0.0-beta.22
359
+
360
+ ## 4.0.0-beta.21
361
+
362
+ ### Patch Changes
363
+
364
+ - 75c72ee: update effect to 4.0.0-beta.36, adapt to Option<A> revert from A | undefined
365
+ - Updated dependencies [0d349e7]
366
+ - Updated dependencies [75c72ee]
367
+ - effect-app@4.0.0-beta.21
368
+
369
+ ## 4.0.0-beta.20
370
+
371
+ ### Patch Changes
372
+
373
+ - Updated dependencies [aa921db]
374
+ - effect-app@4.0.0-beta.20
375
+
376
+ ## 4.0.0-beta.19
377
+
378
+ ### Patch Changes
379
+
380
+ - Updated dependencies [ffc10a4]
381
+ - effect-app@4.0.0-beta.19
382
+
383
+ ## 4.0.0-beta.18
384
+
385
+ ### Patch Changes
386
+
387
+ - Updated dependencies [e9dbbdd]
388
+ - effect-app@4.0.0-beta.18
389
+
390
+ ## 4.0.0-beta.17
391
+
392
+ ### Patch Changes
393
+
394
+ - Updated dependencies [c8a6a3f]
395
+ - effect-app@4.0.0-beta.17
396
+
397
+ ## 4.0.0-beta.16
398
+
399
+ ### Patch Changes
400
+
401
+ - Updated dependencies [56db2c4]
402
+ - effect-app@4.0.0-beta.16
403
+
404
+ ## 4.0.0-beta.15
405
+
406
+ ### Patch Changes
407
+
408
+ - Updated dependencies [20186b6]
409
+ - effect-app@4.0.0-beta.15
410
+
411
+ ## 4.0.0-beta.14
412
+
413
+ ### Patch Changes
414
+
415
+ - effect-app@4.0.0-beta.14
416
+
417
+ ## 4.0.0-beta.13
418
+
419
+ ### Patch Changes
420
+
421
+ - 1c3c541: Update Effect dependencies to 4.0.0-beta.31 across workspace packages.
422
+ - de2359d: Update Effect dependencies to 4.0.0-beta.28 across workspace packages.
423
+ - 0d72f34: Update Effect dependencies to 4.0.0-beta.29 across workspace packages.
424
+ - Updated dependencies [16de88c]
425
+ - Updated dependencies [1c3c541]
426
+ - Updated dependencies [de2359d]
427
+ - Updated dependencies [0d72f34]
428
+ - effect-app@4.0.0-beta.13
429
+
430
+ ## 4.0.0-beta.12
431
+
432
+ ### Patch Changes
433
+
434
+ - 622d54a: Configure Changesets fixed versioning for public packages.
435
+ - Updated dependencies [622d54a]
436
+ - effect-app@4.0.0-beta.12
437
+
438
+ ## 4.0.0-beta.10
439
+
440
+ ### Patch Changes
441
+
442
+ - Updated dependencies [01c70d0]
443
+ - effect-app@4.0.0-beta.10
444
+
445
+ ## 4.0.0-beta.9
446
+
447
+ ### Patch Changes
448
+
449
+ - Updated dependencies [5727372]
450
+ - effect-app@4.0.0-beta.9
451
+
452
+ ## 4.0.0-beta.8
453
+
454
+ ### Patch Changes
455
+
456
+ - Updated dependencies [1f336bc]
457
+ - effect-app@4.0.0-beta.8
458
+
3
459
  ## 4.0.0-beta.7
4
460
 
5
461
  ### Patch Changes
@@ -67,6 +523,12 @@
67
523
  - Updated dependencies [880df28]
68
524
  - effect-app@4.0.0-beta.0
69
525
 
526
+ ## 2.94.1
527
+
528
+ ### Patch Changes
529
+
530
+ - 0a667ad: fix: tanstack query throwing error via watcher
531
+
70
532
  ## 2.94.0
71
533
 
72
534
  ### 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: ServiceMap.ServiceClass<CommandContext, "CommandContext", {
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: ServiceMap.Service<`Commander.Command.${Id}.state`, 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: ServiceMap.Service<`Commander.Command.${Id}.state`, 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 | Confirm | CommandContext>;
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 | Confirm | CommandContext>;
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 | WithToast | CommandContext | R>;
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: ServiceMap.ServiceMap<RT>, intl: I18n, hooks: Layer.Layer<RTHooks, never, 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: ServiceMap.Service<`Commander.Command.${Id}.state`, State>;
304
+ state: Context.Service<`Commander.Command.${Id}.state`, State>;
305
305
  };
306
- /** @experimental @deprecated */
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: ServiceMap.ServiceClass<Commander, "Commander", <RT, RTHooks>(rt: ServiceMap.ServiceMap<RT>, rtHooks: Layer.Layer<RTHooks, never, RT>) => CommanderImpl<RT, RTHooks>> & {
352
- readonly make: Effect.Effect<(<RT, RTHooks>(rt: ServiceMap.ServiceMap<RT>, rtHooks: Layer.Layer<RTHooks, never, RT>) => CommanderImpl<RT, RTHooks>), never, I18n>;
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>;