Skip to content

Commit 0c42d67

Browse files
committed
refactor: move out Commander and friends from experimental
1 parent 4d7040a commit 0c42d67

13 files changed

Lines changed: 42 additions & 37 deletions

File tree

.changeset/metal-mammals-smell.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@effect-app/vue-components": patch
3+
"@effect-app/vue": patch
4+
---
5+
6+
move out Commander and friends from experimental

packages/vue-components/stories/Commands/helpers.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { LegacyMutation, makeClient, makeIntl } from "@effect-app/vue"
2-
import { Commander, DefaultIntl } from "@effect-app/vue/experimental/commander"
3-
import { Confirm } from "@effect-app/vue/experimental/confirm"
4-
import { I18n } from "@effect-app/vue/experimental/intl"
5-
import * as Toast_ from "@effect-app/vue/experimental/toast"
6-
import { WithToast } from "@effect-app/vue/experimental/withToast"
2+
import { Commander, DefaultIntl } from "@effect-app/vue/commander"
3+
import { Confirm } from "@effect-app/vue/confirm"
4+
import { I18n } from "@effect-app/vue/intl"
5+
import * as Toast_ from "@effect-app/vue/toast"
6+
import { WithToast } from "@effect-app/vue/withToast"
77
import { Effect, Layer, ManagedRuntime, Option } from "effect"
88
import { ApiClientFactory } from "effect-app/client"
99
import * as FetchHttpClient from "effect/unstable/http/FetchHttpClient"

packages/vue/package.json

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -48,29 +48,29 @@
4848
"types": "./dist/errorReporter.d.ts",
4949
"default": "./dist/errorReporter.js"
5050
},
51-
"./experimental/commander": {
52-
"types": "./dist/experimental/commander.d.ts",
53-
"default": "./dist/experimental/commander.js"
51+
"./commander": {
52+
"types": "./dist/commander.d.ts",
53+
"default": "./dist/commander.js"
5454
},
55-
"./experimental/confirm": {
56-
"types": "./dist/experimental/confirm.d.ts",
57-
"default": "./dist/experimental/confirm.js"
55+
"./confirm": {
56+
"types": "./dist/confirm.d.ts",
57+
"default": "./dist/confirm.js"
5858
},
59-
"./experimental/intl": {
60-
"types": "./dist/experimental/intl.d.ts",
61-
"default": "./dist/experimental/intl.js"
59+
"./intl": {
60+
"types": "./dist/intl.d.ts",
61+
"default": "./dist/intl.js"
6262
},
63-
"./experimental/makeUseCommand": {
64-
"types": "./dist/experimental/makeUseCommand.d.ts",
65-
"default": "./dist/experimental/makeUseCommand.js"
63+
"./makeUseCommand": {
64+
"types": "./dist/makeUseCommand.d.ts",
65+
"default": "./dist/makeUseCommand.js"
6666
},
67-
"./experimental/toast": {
68-
"types": "./dist/experimental/toast.d.ts",
69-
"default": "./dist/experimental/toast.js"
67+
"./toast": {
68+
"types": "./dist/toast.d.ts",
69+
"default": "./dist/toast.js"
7070
},
71-
"./experimental/withToast": {
72-
"types": "./dist/experimental/withToast.d.ts",
73-
"default": "./dist/experimental/withToast.js"
71+
"./withToast": {
72+
"types": "./dist/withToast.d.ts",
73+
"default": "./dist/withToast.js"
7474
},
7575
"./form": {
7676
"types": "./dist/form.d.ts",

packages/vue/src/experimental/commander.ts renamed to packages/vue/src/commander.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1685,7 +1685,7 @@ export class CommanderImpl<RT, RTHooks> {
16851685
}
16861686
)
16871687

1688-
/** @experimental @deprecated */
1688+
/** @deprecated */
16891689
alt2: <
16901690
const Id extends string,
16911691
MutArg,
@@ -1737,7 +1737,6 @@ export class CommanderImpl<RT, RTHooks> {
17371737
)), baseInfo) as any
17381738
}
17391739

1740-
/** @experimental */
17411740
alt = this.makeCommand as unknown as <
17421741
const Id extends string,
17431742
const I18nKey extends string = Id,
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { ServiceMap } from "effect-app"
22
import { proxify } from "effect-app/ServiceMap"
3-
import { type MakeIntlReturn } from "../makeIntl.js"
3+
import { type MakeIntlReturn } from "./makeIntl.js"
44

55
export class I18n extends proxify(ServiceMap.Opaque<I18n, ReturnType<MakeIntlReturn<string>["useIntl"]>>()("I18n"))<
66
I18n,

packages/vue/src/makeClient.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,16 @@ import { dropUndefinedT, extendM } from "effect-app/utils"
1111
import { type Fiber } from "effect/Fiber"
1212
import * as AsyncResult from "effect/unstable/reactivity/AsyncResult"
1313
import { computed, type ComputedRef, onBeforeUnmount, type Ref, ref, watch, type WatchSource } from "vue"
14+
import { type Commander, CommanderStatic } from "./commander.js"
1415
import { reportMessage } from "./errorReporter.js"
15-
import { type Commander, CommanderStatic } from "./experimental/commander.js"
16-
import { I18n } from "./experimental/intl.js"
17-
import { type CommanderResolved, makeUseCommand } from "./experimental/makeUseCommand.js"
18-
import { Toast } from "./experimental/toast.js"
1916
import { buildFieldInfoFromFieldsRoot } from "./form.js"
17+
import { I18n } from "./intl.js"
2018
import { reportRuntimeError } from "./lib.js"
19+
import { type CommanderResolved, makeUseCommand } from "./makeUseCommand.js"
2120
import { asResult, makeMutation, type MutationOptions, type MutationOptionsBase, mutationResultToVue, type Res, useMakeMutation } from "./mutate.js"
2221
import { type CustomUndefinedInitialQueryOptions, makeQuery } from "./query.js"
2322
import { makeRunPromise } from "./runtime.js"
23+
import { Toast } from "./toast.js"
2424

2525
const mapHandler = <A, E, R, I = void, A2 = A, E2 = E, R2 = R>(
2626
handler: Effect.Effect<A, E, R> | ((i: I) => Effect.Effect<A, E, R>),
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)