@octanejs/redux 0.1.0 → 0.1.2
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/README.md +21 -0
- package/package.json +2 -2
package/README.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# @octanejs/redux
|
|
2
|
+
|
|
3
|
+
[React Redux](https://react-redux.js.org) for the [octane](https://github.com/octanejs/octane) UI framework.
|
|
4
|
+
|
|
5
|
+
The react-redux 9.3.0 hooks + `Provider` surface (`useSelector`, `useDispatch`,
|
|
6
|
+
`useStore`, and the custom-context factory variants) reimplemented on octane's
|
|
7
|
+
`useSyncExternalStore` — works with any Redux 5 / Redux Toolkit store by
|
|
8
|
+
changing the import. Export parity with react-redux is pinned by test.
|
|
9
|
+
|
|
10
|
+
```tsx
|
|
11
|
+
import { Provider, useSelector, useDispatch } from '@octanejs/redux';
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
`connect()` (the legacy HOC surface) intentionally throws — the hooks API is
|
|
15
|
+
the supported surface.
|
|
16
|
+
|
|
17
|
+
## Status
|
|
18
|
+
|
|
19
|
+
Current scope, known divergences, and verification status are tracked in the
|
|
20
|
+
generated [bindings status table](../../docs/bindings-status.md), sourced from
|
|
21
|
+
this package's [`status.json`](./status.json).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@octanejs/redux",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "React Redux for the octane renderer — the Provider/hooks binding layer reimplemented on octane's useSyncExternalStore; works with any Redux store (Redux Toolkit included) by changing the import.",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
".": "./src/index.ts"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"octane": "0.1.
|
|
30
|
+
"octane": "0.1.5"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
33
|
"redux": "^5.0.0"
|