@dxos/effect-atom-solid 0.8.4-main.c85a9c8dae → 0.8.4-main.e00bdcdb52
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/lib/browser/index.mjs +3 -1
- package/dist/lib/browser/index.mjs.map +3 -3
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/node-esm/index.mjs +3 -1
- package/dist/lib/node-esm/index.mjs.map +3 -3
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/types/src/hooks/useAtom.d.ts.map +1 -1
- package/dist/types/src/hooks/useAtomSet.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +4 -7
- package/src/hooks/useAtom.test.tsx +0 -1
- package/src/hooks/useAtom.ts +0 -1
- package/src/hooks/useAtomInitialValues.test.tsx +0 -1
- package/src/hooks/useAtomRefresh.test.tsx +0 -1
- package/src/hooks/useAtomResource.test.tsx +0 -1
- package/src/hooks/useAtomSet.test.tsx +0 -1
- package/src/hooks/useAtomSet.ts +3 -1
- package/src/hooks/useAtomSubscribe.test.tsx +0 -1
- package/src/hooks/useAtomSuspense.test.tsx +0 -1
- package/src/hooks/useAtomValue.test.tsx +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/effect-atom-solid",
|
|
3
|
-
"version": "0.8.4-main.
|
|
3
|
+
"version": "0.8.4-main.e00bdcdb52",
|
|
4
4
|
"description": "Solid.js bindings for Effect Atom",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -21,9 +21,6 @@
|
|
|
21
21
|
}
|
|
22
22
|
},
|
|
23
23
|
"types": "dist/types/src/index.d.ts",
|
|
24
|
-
"typesVersions": {
|
|
25
|
-
"*": {}
|
|
26
|
-
},
|
|
27
24
|
"files": [
|
|
28
25
|
"dist",
|
|
29
26
|
"src"
|
|
@@ -31,13 +28,13 @@
|
|
|
31
28
|
"devDependencies": {
|
|
32
29
|
"@effect-atom/atom": "^0.5.1",
|
|
33
30
|
"@solidjs/testing-library": "^0.8.10",
|
|
34
|
-
"effect": "3.
|
|
31
|
+
"effect": "3.20.0",
|
|
35
32
|
"solid-js": "^1.9.11",
|
|
36
|
-
"vite-plugin-solid": "^2.11.
|
|
33
|
+
"vite-plugin-solid": "^2.11.12"
|
|
37
34
|
},
|
|
38
35
|
"peerDependencies": {
|
|
39
36
|
"@effect-atom/atom": "^0.5.1",
|
|
40
|
-
"effect": "3.
|
|
37
|
+
"effect": "3.20.0",
|
|
41
38
|
"solid-js": "^1.9.11"
|
|
42
39
|
},
|
|
43
40
|
"publishConfig": {
|
package/src/hooks/useAtom.ts
CHANGED
|
@@ -7,7 +7,6 @@ import { render } from '@solidjs/testing-library';
|
|
|
7
7
|
import { beforeEach, describe, expect, test } from 'vitest';
|
|
8
8
|
|
|
9
9
|
import { defaultRegistry } from '../registry';
|
|
10
|
-
|
|
11
10
|
import { useAtomInitialValues } from './useAtomInitialValues';
|
|
12
11
|
import { useAtomValue } from './useAtomValue';
|
|
13
12
|
|
|
@@ -7,7 +7,6 @@ import { fireEvent, render, waitFor } from '@solidjs/testing-library';
|
|
|
7
7
|
import { beforeEach, describe, expect, test } from 'vitest';
|
|
8
8
|
|
|
9
9
|
import { defaultRegistry } from '../registry';
|
|
10
|
-
|
|
11
10
|
import { useAtomRefresh } from './useAtomRefresh';
|
|
12
11
|
import { useAtomValue } from './useAtomValue';
|
|
13
12
|
|
|
@@ -7,7 +7,6 @@ import { fireEvent, render, waitFor } from '@solidjs/testing-library';
|
|
|
7
7
|
import { beforeEach, describe, expect, test } from 'vitest';
|
|
8
8
|
|
|
9
9
|
import { defaultRegistry } from '../registry';
|
|
10
|
-
|
|
11
10
|
import { useAtomSet } from './useAtomSet';
|
|
12
11
|
import { useAtomValue } from './useAtomValue';
|
|
13
12
|
|
package/src/hooks/useAtomSet.ts
CHANGED
|
@@ -13,7 +13,9 @@ import { onCleanup } from 'solid-js';
|
|
|
13
13
|
import { useRegistry } from '../registry';
|
|
14
14
|
|
|
15
15
|
const flattenExit = <A, E>(exit: Exit.Exit<A, E>): A => {
|
|
16
|
-
if (Exit.isSuccess(exit))
|
|
16
|
+
if (Exit.isSuccess(exit)) {
|
|
17
|
+
return exit.value;
|
|
18
|
+
}
|
|
17
19
|
throw Cause.squash(exit.cause);
|
|
18
20
|
};
|
|
19
21
|
|
|
@@ -7,7 +7,6 @@ import { fireEvent, render, waitFor } from '@solidjs/testing-library';
|
|
|
7
7
|
import { beforeEach, describe, expect, test } from 'vitest';
|
|
8
8
|
|
|
9
9
|
import { defaultRegistry } from '../registry';
|
|
10
|
-
|
|
11
10
|
import { useAtomSet } from './useAtomSet';
|
|
12
11
|
import { useAtomSubscribe } from './useAtomSubscribe';
|
|
13
12
|
|
|
@@ -7,7 +7,6 @@ import { fireEvent, render, waitFor } from '@solidjs/testing-library';
|
|
|
7
7
|
import { beforeEach, describe, expect, test } from 'vitest';
|
|
8
8
|
|
|
9
9
|
import { defaultRegistry } from '../registry';
|
|
10
|
-
|
|
11
10
|
import { useAtomValue } from './useAtomValue';
|
|
12
11
|
|
|
13
12
|
describe('useAtomValue', () => {
|