@effect-app/vue 0.140.3 → 0.142.0

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 CHANGED
@@ -1,5 +1,37 @@
1
1
  # @effect-app/vue
2
2
 
3
+ ## 0.142.0
4
+
5
+ ### Minor Changes
6
+
7
+ - c070e0d: update effect
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [c070e0d]
12
+ - Updated dependencies [dd0cf42]
13
+ - @effect-app/fluent-extensions@0.139.0
14
+ - effect-app@0.173.0
15
+ - @effect-app/schema@0.197.0
16
+ - @effect-app/core@0.146.0
17
+ - @effect-app/vue@0.142.0
18
+
19
+ ## 0.141.0
20
+
21
+ ### Minor Changes
22
+
23
+ - 57fcfef: update packages
24
+
25
+ ### Patch Changes
26
+
27
+ - Updated dependencies [739e742]
28
+ - Updated dependencies [57fcfef]
29
+ - effect-app@0.172.0
30
+ - @effect-app/fluent-extensions@0.138.0
31
+ - @effect-app/schema@0.196.0
32
+ - @effect-app/core@0.145.0
33
+ - @effect-app/vue@0.141.0
34
+
3
35
  ## 0.140.3
4
36
 
5
37
  ### Patch Changes
package/dist/mutate.d.ts CHANGED
@@ -30,14 +30,14 @@ export declare const useSafeMutation: {
30
30
  name: string;
31
31
  }): readonly [
32
32
  Readonly<Ref<MutationResult<E, A>>>,
33
- (i: I, abortSignal?: AbortSignal) => Promise<Either.Either<E, A>>
33
+ (i: I, abortSignal?: AbortSignal) => Promise<Either.Either<A, E>>
34
34
  ];
35
35
  <E, A>(self: {
36
36
  handler: Effect<A, E, ApiConfig | HttpClient.Client.Default>;
37
37
  name: string;
38
38
  }): readonly [
39
39
  Readonly<Ref<MutationResult<E, A>>>,
40
- (abortSignal?: AbortSignal) => Promise<Either.Either<E, A>>
40
+ (abortSignal?: AbortSignal) => Promise<Either.Either<A, E>>
41
41
  ];
42
42
  };
43
43
  //# sourceMappingURL=mutate.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@effect-app/vue",
3
- "version": "0.140.3",
3
+ "version": "0.142.0",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "homepage": "https://github.com/effect-ts-app/libs/tree/main/packages/vue",
@@ -8,29 +8,29 @@
8
8
  "@formatjs/intl": "^2.10.0",
9
9
  "@tanstack/vue-query": "^5.22.2",
10
10
  "query-string": "^8.2.0",
11
- "@effect-app/core": "0.144.3",
12
- "@effect-app/fluent-extensions": "0.137.1",
13
- "@effect-app/vue": "0.140.3",
14
- "@effect-app/schema": "0.195.3",
15
- "effect-app": "0.171.4"
11
+ "@effect-app/core": "0.146.0",
12
+ "@effect-app/fluent-extensions": "0.139.0",
13
+ "@effect-app/vue": "0.142.0",
14
+ "@effect-app/schema": "0.197.0",
15
+ "effect-app": "0.173.0"
16
16
  },
17
17
  "peerDependencies": {
18
- "@effect/platform": "^0.45.5",
19
- "@effect/platform-browser": "^0.30.5",
20
- "@effect/schema": "^0.62.8",
21
- "effect": "^2.3.7",
18
+ "@effect/platform": "^0.46.1",
19
+ "@effect/platform-browser": "^0.30.8",
20
+ "@effect/schema": "^0.63.0",
21
+ "effect": "^2.4.0",
22
22
  "vue": "^3.4.19"
23
23
  },
24
24
  "devDependencies": {
25
25
  "@babel/cli": "^7.23.9",
26
26
  "@rollup/pluginutils": "^5.1.0",
27
- "@types/node": "~20.11.19",
27
+ "@types/node": "~20.11.20",
28
28
  "json5": "^2.2.3",
29
29
  "ts-node": "^10.9.2",
30
30
  "typescript": "npm:@effect-app/typescript@5.4.0-tsplus.20240124",
31
- "vite": "^5.1.3",
32
- "vitest": "^1.3.0",
33
- "@effect-app/compiler": "0.65.0"
31
+ "vite": "^5.1.4",
32
+ "vitest": "^1.3.1",
33
+ "@effect-app/compiler": "0.67.0"
34
34
  },
35
35
  "typesVersions": {
36
36
  "*": {
package/src/mutate.ts CHANGED
@@ -68,13 +68,13 @@ export const useSafeMutation: {
68
68
  (
69
69
  i: I,
70
70
  abortSignal?: AbortSignal
71
- ) => Promise<Either.Either<E, A>>
71
+ ) => Promise<Either.Either<A, E>>
72
72
  ]
73
73
  <E, A>(self: { handler: Effect<A, E, ApiConfig | HttpClient.Client.Default>; name: string }): readonly [
74
74
  Readonly<Ref<MutationResult<E, A>>>,
75
75
  (
76
76
  abortSignal?: AbortSignal
77
- ) => Promise<Either.Either<E, A>>
77
+ ) => Promise<Either.Either<A, E>>
78
78
  ]
79
79
  } = <I, E, A>(
80
80
  self: {
@@ -87,7 +87,7 @@ export const useSafeMutation: {
87
87
  const queryClient = useQueryClient()
88
88
  const state: Ref<MutationResult<E, A>> = ref<MutationResult<E, A>>({ _tag: "Initial" }) as any
89
89
 
90
- function handleExit(exit: Exit.Exit<A, E>): Effect<Either.Either<E, A>, never, never> {
90
+ function handleExit(exit: Exit.Exit<A, E>): Effect<Either.Either<A, E>, never, never> {
91
91
  return Effect.sync(() => {
92
92
  if (Exit.isSuccess(exit)) {
93
93
  state.value = { _tag: "Success", data: exit.value }
package/tsconfig.json CHANGED
@@ -54,16 +54,6 @@
54
54
  }
55
55
  }
56
56
  ],
57
- "transformers": [
58
- {
59
- "name": "@effect/language-service/transformer",
60
- "trace": {
61
- "exclude": [
62
- "**/*.ts"
63
- ]
64
- }
65
- }
66
- ],
67
57
  "types": [
68
58
  "vitest/globals"
69
59
  ],