@effect/atom-vue 4.0.0-beta.9 → 4.0.0-beta.90

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/dist/index.d.ts CHANGED
@@ -5,64 +5,64 @@ import type * as AtomRef from "effect/unstable/reactivity/AtomRef";
5
5
  import * as AtomRegistry from "effect/unstable/reactivity/AtomRegistry";
6
6
  import { type InjectionKey, type Ref } from "vue";
7
7
  /**
8
- * @since 1.0.0
8
+ * @since 4.0.0
9
9
  * @category modules
10
10
  */
11
11
  export * as AtomRegistry from "effect/unstable/reactivity/AtomRegistry";
12
12
  /**
13
- * @since 1.0.0
13
+ * @since 4.0.0
14
14
  * @category modules
15
15
  */
16
16
  export * as AsyncResult from "effect/unstable/reactivity/AsyncResult";
17
17
  /**
18
- * @since 1.0.0
18
+ * @since 4.0.0
19
19
  * @category modules
20
20
  */
21
21
  export * as Atom from "effect/unstable/reactivity/Atom";
22
22
  /**
23
- * @since 1.0.0
23
+ * @since 4.0.0
24
24
  * @category modules
25
25
  */
26
26
  export * as AtomRef from "effect/unstable/reactivity/AtomRef";
27
27
  /**
28
- * @since 1.0.0
28
+ * @since 4.0.0
29
29
  * @category re-exports
30
30
  */
31
31
  export * as AtomHttpApi from "effect/unstable/reactivity/AtomHttpApi";
32
32
  /**
33
- * @since 1.0.0
33
+ * @since 4.0.0
34
34
  * @category modules
35
35
  */
36
36
  export * as AtomRpc from "effect/unstable/reactivity/AtomRpc";
37
37
  /**
38
- * @since 1.0.0
38
+ * @since 4.0.0
39
39
  * @category registry
40
40
  */
41
41
  export declare const registryKey: InjectionKey<AtomRegistry.AtomRegistry>;
42
42
  /**
43
- * @since 1.0.0
43
+ * @since 4.0.0
44
44
  * @category registry
45
45
  */
46
46
  export declare const defaultRegistry: AtomRegistry.AtomRegistry;
47
47
  /**
48
- * @since 1.0.0
48
+ * @since 4.0.0
49
49
  * @category registry
50
50
  */
51
51
  export declare const injectRegistry: () => AtomRegistry.AtomRegistry;
52
52
  /**
53
- * @since 1.0.0
53
+ * @since 4.0.0
54
54
  * @category composables
55
55
  */
56
56
  export declare const useAtom: <R, W, Mode extends "value" | "promise" | "promiseExit" = never>(atom: () => Atom.Writable<R, W>, options?: {
57
57
  readonly mode?: ([R] extends [AsyncResult.AsyncResult<any, any>] ? Mode : "value") | undefined;
58
58
  }) => readonly [Readonly<Ref<R>>, write: "promise" extends Mode ? ((value: W) => Promise<AsyncResult.AsyncResult.Success<R>>) : "promiseExit" extends Mode ? ((value: W) => Promise<Exit.Exit<AsyncResult.AsyncResult.Success<R>, AsyncResult.AsyncResult.Failure<R>>>) : ((value: W | ((value: R) => W)) => void)];
59
59
  /**
60
- * @since 1.0.0
60
+ * @since 4.0.0
61
61
  * @category composables
62
62
  */
63
63
  export declare const useAtomValue: <A>(atom: () => Atom.Atom<A>) => Readonly<Ref<A>>;
64
64
  /**
65
- * @since 1.0.0
65
+ * @since 4.0.0
66
66
  * @category composables
67
67
  */
68
68
  export declare const useAtomSet: <R, W, Mode extends "value" | "promise" | "promiseExit" = never>(atom: () => Atom.Writable<R, W>, options?: {
@@ -73,7 +73,7 @@ export declare const useAtomSet: <R, W, Mode extends "value" | "promise" | "prom
73
73
  readonly signal?: AbortSignal | undefined;
74
74
  } | undefined) => Promise<Exit.Exit<AsyncResult.AsyncResult.Success<R>, AsyncResult.AsyncResult.Failure<R>>>) : ((value: W | ((value: R) => W)) => void);
75
75
  /**
76
- * @since 1.0.0
76
+ * @since 4.0.0
77
77
  * @category composables
78
78
  */
79
79
  export declare const useAtomRef: <A>(atomRef: () => AtomRef.ReadonlyRef<A>) => Readonly<Ref<A>>;
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @since 1.0.0
2
+ * @since 4.0.0
3
3
  */
4
4
  import * as Cause from "effect/Cause";
5
5
  import * as Effect from "effect/Effect";
@@ -7,47 +7,47 @@ import * as Exit from "effect/Exit";
7
7
  import * as AtomRegistry from "effect/unstable/reactivity/AtomRegistry";
8
8
  import { computed, inject, shallowRef, watchEffect } from "vue";
9
9
  /**
10
- * @since 1.0.0
10
+ * @since 4.0.0
11
11
  * @category modules
12
12
  */
13
13
  export * as AtomRegistry from "effect/unstable/reactivity/AtomRegistry";
14
14
  /**
15
- * @since 1.0.0
15
+ * @since 4.0.0
16
16
  * @category modules
17
17
  */
18
18
  export * as AsyncResult from "effect/unstable/reactivity/AsyncResult";
19
19
  /**
20
- * @since 1.0.0
20
+ * @since 4.0.0
21
21
  * @category modules
22
22
  */
23
23
  export * as Atom from "effect/unstable/reactivity/Atom";
24
24
  /**
25
- * @since 1.0.0
25
+ * @since 4.0.0
26
26
  * @category modules
27
27
  */
28
28
  export * as AtomRef from "effect/unstable/reactivity/AtomRef";
29
29
  /**
30
- * @since 1.0.0
30
+ * @since 4.0.0
31
31
  * @category re-exports
32
32
  */
33
33
  export * as AtomHttpApi from "effect/unstable/reactivity/AtomHttpApi";
34
34
  /**
35
- * @since 1.0.0
35
+ * @since 4.0.0
36
36
  * @category modules
37
37
  */
38
38
  export * as AtomRpc from "effect/unstable/reactivity/AtomRpc";
39
39
  /**
40
- * @since 1.0.0
40
+ * @since 4.0.0
41
41
  * @category registry
42
42
  */
43
43
  export const registryKey = /*#__PURE__*/Symbol.for("@effect/atom-vue/registryKey");
44
44
  /**
45
- * @since 1.0.0
45
+ * @since 4.0.0
46
46
  * @category registry
47
47
  */
48
48
  export const defaultRegistry = /*#__PURE__*/AtomRegistry.make();
49
49
  /**
50
- * @since 1.0.0
50
+ * @since 4.0.0
51
51
  * @category registry
52
52
  */
53
53
  export const injectRegistry = () => {
@@ -67,7 +67,7 @@ const useAtomValueRef = atom => {
67
67
  return [value, atomRef, registry];
68
68
  };
69
69
  /**
70
- * @since 1.0.0
70
+ * @since 4.0.0
71
71
  * @category composables
72
72
  */
73
73
  export const useAtom = (atom, options) => {
@@ -75,7 +75,7 @@ export const useAtom = (atom, options) => {
75
75
  return [value, setAtom(registry, atomRef, options)];
76
76
  };
77
77
  /**
78
- * @since 1.0.0
78
+ * @since 4.0.0
79
79
  * @category composables
80
80
  */
81
81
  export const useAtomValue = atom => useAtomValueRef(atom)[0];
@@ -98,7 +98,7 @@ function setAtom(registry, atomRef, options) {
98
98
  };
99
99
  }
100
100
  /**
101
- * @since 1.0.0
101
+ * @since 4.0.0
102
102
  * @category composables
103
103
  */
104
104
  export const useAtomSet = (atom, options) => {
@@ -110,7 +110,7 @@ export const useAtomSet = (atom, options) => {
110
110
  return setAtom(registry, atomRef, options);
111
111
  };
112
112
  /**
113
- * @since 1.0.0
113
+ * @since 4.0.0
114
114
  * @category composables
115
115
  */
116
116
  export const useAtomRef = atomRef => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@effect/atom-vue",
3
- "version": "4.0.0-beta.9",
3
+ "version": "4.0.0-beta.90",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "description": "Vue bindings for the Effect Atom modules",
@@ -43,12 +43,12 @@
43
43
  "provenance": true
44
44
  },
45
45
  "devDependencies": {
46
- "vue": "^3.5.27",
47
- "effect": "^4.0.0-beta.9"
46
+ "vue": "^3.5.34",
47
+ "effect": "^4.0.0-beta.90"
48
48
  },
49
49
  "peerDependencies": {
50
50
  "vue": "^3.5.0",
51
- "effect": "^4.0.0-beta.9"
51
+ "effect": "^4.0.0-beta.90"
52
52
  },
53
53
  "scripts": {
54
54
  "build": "tsc -b tsconfig.json && pnpm babel",
package/src/index.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @since 1.0.0
2
+ * @since 4.0.0
3
3
  */
4
4
  import * as Cause from "effect/Cause"
5
5
  import * as Effect from "effect/Effect"
@@ -11,55 +11,55 @@ import * as AtomRegistry from "effect/unstable/reactivity/AtomRegistry"
11
11
  import { computed, type ComputedRef, inject, type InjectionKey, type Ref, shallowRef, watchEffect } from "vue"
12
12
 
13
13
  /**
14
- * @since 1.0.0
14
+ * @since 4.0.0
15
15
  * @category modules
16
16
  */
17
17
  export * as AtomRegistry from "effect/unstable/reactivity/AtomRegistry"
18
18
 
19
19
  /**
20
- * @since 1.0.0
20
+ * @since 4.0.0
21
21
  * @category modules
22
22
  */
23
23
  export * as AsyncResult from "effect/unstable/reactivity/AsyncResult"
24
24
 
25
25
  /**
26
- * @since 1.0.0
26
+ * @since 4.0.0
27
27
  * @category modules
28
28
  */
29
29
  export * as Atom from "effect/unstable/reactivity/Atom"
30
30
 
31
31
  /**
32
- * @since 1.0.0
32
+ * @since 4.0.0
33
33
  * @category modules
34
34
  */
35
35
  export * as AtomRef from "effect/unstable/reactivity/AtomRef"
36
36
 
37
37
  /**
38
- * @since 1.0.0
38
+ * @since 4.0.0
39
39
  * @category re-exports
40
40
  */
41
41
  export * as AtomHttpApi from "effect/unstable/reactivity/AtomHttpApi"
42
42
 
43
43
  /**
44
- * @since 1.0.0
44
+ * @since 4.0.0
45
45
  * @category modules
46
46
  */
47
47
  export * as AtomRpc from "effect/unstable/reactivity/AtomRpc"
48
48
 
49
49
  /**
50
- * @since 1.0.0
50
+ * @since 4.0.0
51
51
  * @category registry
52
52
  */
53
53
  export const registryKey = Symbol.for("@effect/atom-vue/registryKey") as InjectionKey<AtomRegistry.AtomRegistry>
54
54
 
55
55
  /**
56
- * @since 1.0.0
56
+ * @since 4.0.0
57
57
  * @category registry
58
58
  */
59
59
  export const defaultRegistry: AtomRegistry.AtomRegistry = AtomRegistry.make()
60
60
 
61
61
  /**
62
- * @since 1.0.0
62
+ * @since 4.0.0
63
63
  * @category registry
64
64
  */
65
65
  export const injectRegistry = (): AtomRegistry.AtomRegistry => {
@@ -79,7 +79,7 @@ const useAtomValueRef = <A extends Atom.Atom<any>>(atom: () => A) => {
79
79
  }
80
80
 
81
81
  /**
82
- * @since 1.0.0
82
+ * @since 4.0.0
83
83
  * @category composables
84
84
  */
85
85
  export const useAtom = <R, W, Mode extends "value" | "promise" | "promiseExit" = never>(
@@ -102,7 +102,7 @@ export const useAtom = <R, W, Mode extends "value" | "promise" | "promiseExit" =
102
102
  }
103
103
 
104
104
  /**
105
- * @since 1.0.0
105
+ * @since 4.0.0
106
106
  * @category composables
107
107
  */
108
108
  export const useAtomValue = <A>(atom: () => Atom.Atom<A>): Readonly<Ref<A>> => useAtomValueRef(atom)[0]
@@ -156,7 +156,7 @@ function setAtom<R, W, Mode extends "value" | "promise" | "promiseExit" = never>
156
156
  }
157
157
 
158
158
  /**
159
- * @since 1.0.0
159
+ * @since 4.0.0
160
160
  * @category composables
161
161
  */
162
162
  export const useAtomSet = <
@@ -195,7 +195,7 @@ export const useAtomSet = <
195
195
  }
196
196
 
197
197
  /**
198
- * @since 1.0.0
198
+ * @since 4.0.0
199
199
  * @category composables
200
200
  */
201
201
  export const useAtomRef = <A>(atomRef: () => AtomRef.ReadonlyRef<A>): Readonly<Ref<A>> => {