@effect-app/vue 0.141.0 → 0.142.1

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,29 @@
1
1
  # @effect-app/vue
2
2
 
3
+ ## 0.142.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [ac8e9aa]
8
+ - effect-app@0.173.1
9
+ - @effect-app/vue@0.142.1
10
+
11
+ ## 0.142.0
12
+
13
+ ### Minor Changes
14
+
15
+ - c070e0d: update effect
16
+
17
+ ### Patch Changes
18
+
19
+ - Updated dependencies [c070e0d]
20
+ - Updated dependencies [dd0cf42]
21
+ - @effect-app/fluent-extensions@0.139.0
22
+ - effect-app@0.173.0
23
+ - @effect-app/schema@0.197.0
24
+ - @effect-app/core@0.146.0
25
+ - @effect-app/vue@0.142.0
26
+
3
27
  ## 0.141.0
4
28
 
5
29
  ### Minor 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.141.0",
3
+ "version": "0.142.1",
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/vue": "0.141.0",
12
- "@effect-app/fluent-extensions": "0.138.0",
13
- "@effect-app/core": "0.145.0",
14
- "@effect-app/schema": "0.196.0",
15
- "effect-app": "0.172.0"
11
+ "@effect-app/core": "0.146.0",
12
+ "@effect-app/fluent-extensions": "0.139.0",
13
+ "effect-app": "0.173.1",
14
+ "@effect-app/vue": "0.142.1",
15
+ "@effect-app/schema": "0.197.0"
16
16
  },
17
17
  "peerDependencies": {
18
- "@effect/platform": "^0.45.6",
19
- "@effect/platform-browser": "^0.30.6",
20
- "@effect/schema": "^0.62.9",
21
- "effect": "^2.3.8",
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",
31
+ "vite": "^5.1.4",
32
32
  "vitest": "^1.3.1",
33
- "@effect-app/compiler": "0.66.0"
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
  ],