rellx 1.2.0 → 2.0.0
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 +8 -5
- package/package.json +2 -5
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Rellx
|
|
2
2
|
|
|
3
|
-
Universal state manager for JavaScript and TypeScript applications. Rellx provides a simple and powerful API for state management with support for reactivity, middleware,
|
|
3
|
+
Universal state manager for JavaScript and TypeScript applications. Rellx provides a simple and powerful API for state management with support for reactivity, middleware, and plugins.
|
|
4
4
|
|
|
5
5
|
## What is it?
|
|
6
6
|
|
|
@@ -18,7 +18,6 @@ The library offers three modes of operation:
|
|
|
18
18
|
- **Reactivity** - automatic tracking of nested object changes
|
|
19
19
|
- **Middleware** - extensibility through middleware system
|
|
20
20
|
- **Plugins** - support for custom plugins to extend functionality
|
|
21
|
-
- **DevTools** - tools for debugging and monitoring state
|
|
22
21
|
- **Small size** - lightweight library without unnecessary dependencies
|
|
23
22
|
- **Universal** - works in browser and Node.js
|
|
24
23
|
|
|
@@ -250,11 +249,15 @@ const store = new StoreCore(initialState, [myPlugin]);
|
|
|
250
249
|
|
|
251
250
|
## DevTools
|
|
252
251
|
|
|
253
|
-
Rellx
|
|
252
|
+
Rellx DevTools is available as a separate package for state debugging:
|
|
253
|
+
|
|
254
|
+
```bash
|
|
255
|
+
npm install @rellx/devtools --save-dev
|
|
256
|
+
```
|
|
254
257
|
|
|
255
258
|
```typescript
|
|
256
259
|
import { createFullStore } from 'rellx/full';
|
|
257
|
-
import { createDevToolsPlugin } from 'rellx/devtools';
|
|
260
|
+
import { createDevToolsPlugin } from '@rellx/devtools';
|
|
258
261
|
|
|
259
262
|
const store = createFullStore(initialState);
|
|
260
263
|
|
|
@@ -268,7 +271,7 @@ const devTools = createDevToolsPlugin(store, {
|
|
|
268
271
|
devTools.connect('ws://localhost:8097');
|
|
269
272
|
```
|
|
270
273
|
|
|
271
|
-
For more information about DevTools, see the [rellx
|
|
274
|
+
For more information about DevTools, see the [@rellx/devtools](../rellx-devtools/README.md) documentation.
|
|
272
275
|
|
|
273
276
|
## Framework Integration
|
|
274
277
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"type": "module",
|
|
3
3
|
"name": "rellx",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "2.0.0",
|
|
5
5
|
"description": "Universal state manager for JavaScript and TypeScript applications",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"state-management",
|
|
@@ -45,7 +45,6 @@
|
|
|
45
45
|
"@rollup/plugin-node-resolve": "^16.0.1",
|
|
46
46
|
"@rollup/plugin-typescript": "^12.1.4",
|
|
47
47
|
"@types/jest": "^30.0.0",
|
|
48
|
-
"@types/ws": "^8.18.1",
|
|
49
48
|
"jest": "^30.0.4",
|
|
50
49
|
"rimraf": "^6.0.1",
|
|
51
50
|
"rollup": "^4.45.1",
|
|
@@ -61,7 +60,5 @@
|
|
|
61
60
|
"test:coverage": "jest --coverage",
|
|
62
61
|
"version": "node scripts/version.js"
|
|
63
62
|
},
|
|
64
|
-
"dependencies": {
|
|
65
|
-
"ws": "^8.18.3"
|
|
66
|
-
}
|
|
63
|
+
"dependencies": {}
|
|
67
64
|
}
|