@zap-studio/store-react 1.0.0 → 1.0.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 +7 -0
- package/dist/use-store.d.ts +2 -3
- package/dist/use-store.d.ts.map +1 -1
- package/package.json +16 -18
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,13 @@ All notable changes to this project will be documented in this file.
|
|
|
4
4
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
6
6
|
|
|
7
|
+
|
|
8
|
+
## 1.0.1
|
|
9
|
+
<sub>2026-09-13</sub>
|
|
10
|
+
|
|
11
|
+
- [#613](https://github.com/zap-studio/monorepo/pull/613) *(patch)* Thanks [@alexandretrotel](https://github.com/alexandretrotel)!
|
|
12
|
+
Widen internal peer dependency ranges from an exact pin to a caret range, so consumers no longer resolve a duplicate copy of the peer on version skew.
|
|
13
|
+
|
|
7
14
|
## [1.0.0]
|
|
8
15
|
|
|
9
16
|
### Added
|
package/dist/use-store.d.ts
CHANGED
|
@@ -19,8 +19,7 @@ import { Readable } from "@zap-studio/store";
|
|
|
19
19
|
* const count = useStore(counter, (s) => s.count);
|
|
20
20
|
* ```
|
|
21
21
|
*/
|
|
22
|
-
declare function useStore<T>(store: Readable<T>): T;
|
|
23
|
-
declare function useStore<T, U>(store: Readable<T>, selector: (value: T) => U): U;
|
|
22
|
+
export declare function useStore<T>(store: Readable<T>): T;
|
|
23
|
+
export declare function useStore<T, U>(store: Readable<T>, selector: (value: T) => U): U;
|
|
24
24
|
//#endregion
|
|
25
|
-
export { useStore };
|
|
26
25
|
//# sourceMappingURL=use-store.d.ts.map
|
package/dist/use-store.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-store.d.ts","names":[],"sources":["../src/use-store.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"use-store.d.ts","names":[],"sources":["../src/use-store.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;wBA8BgB,SAAS,GAAG,OAAO,SAAS,KAAK;wBACjC,SAAS,GAAG,GAAG,OAAO,SAAS,IAAI,WAAW,OAAO,MAAM,IAAI"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zap-studio/store-react",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "React bindings for @zap-studio/store: a useStore hook that subscribes to a createStore/derive instance.",
|
|
6
6
|
"keywords": [
|
|
@@ -36,27 +36,25 @@
|
|
|
36
36
|
"publishConfig": {
|
|
37
37
|
"access": "public"
|
|
38
38
|
},
|
|
39
|
-
"scripts": {
|
|
40
|
-
"prepublishOnly": "pnpm -C ../.. run build"
|
|
41
|
-
},
|
|
42
39
|
"devDependencies": {
|
|
43
|
-
"@testing-library/dom": "
|
|
44
|
-
"@testing-library/react": "
|
|
45
|
-
"@types/react": "
|
|
46
|
-
"@types/react-dom": "
|
|
47
|
-
"@zap-studio/store": "
|
|
48
|
-
"@zap-studio/typescript": "
|
|
49
|
-
"react": "
|
|
50
|
-
"react-dom": "
|
|
51
|
-
"tsdown": "
|
|
52
|
-
"typescript": "
|
|
53
|
-
"vitest": "
|
|
40
|
+
"@testing-library/dom": "^10.4.1",
|
|
41
|
+
"@testing-library/react": "^16.3.3",
|
|
42
|
+
"@types/react": "^19.3.0",
|
|
43
|
+
"@types/react-dom": "^19.3.0",
|
|
44
|
+
"@zap-studio/store": "1.0.1",
|
|
45
|
+
"@zap-studio/typescript": "0.0.0",
|
|
46
|
+
"react": "^19.3.0",
|
|
47
|
+
"react-dom": "^19.3.0",
|
|
48
|
+
"tsdown": "^0.23.0",
|
|
49
|
+
"typescript": "^7.0.2",
|
|
50
|
+
"vitest": "^5.0.0"
|
|
54
51
|
},
|
|
55
52
|
"peerDependencies": {
|
|
56
|
-
"@zap-studio/store": "^1.0.
|
|
53
|
+
"@zap-studio/store": "^1.0.1",
|
|
57
54
|
"react": ">=18.0.0"
|
|
58
55
|
},
|
|
59
56
|
"engines": {
|
|
60
57
|
"node": ">=18.0.0"
|
|
61
|
-
}
|
|
62
|
-
}
|
|
58
|
+
},
|
|
59
|
+
"scripts": {}
|
|
60
|
+
}
|