nanoeffects 0.7.0 → 0.8.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/dist/{action-creator-Bd4TBZgl.d.ts → action-creator-BrZF6hXc.d.ts} +0 -4
- package/dist/actions.d.ts +3 -3
- package/dist/actions.js +1 -1
- package/dist/{context-plugin-BVNKqkIx.d.ts → context-plugin--HkNN1ha.d.ts} +1 -1
- package/dist/dev.d.ts +9 -8
- package/dist/dev.js +1 -1
- package/dist/effects.d.ts +2 -2
- package/dist/effects.js +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/match.d.ts +50 -0
- package/dist/match.js +1 -0
- package/dist/{module-DZ5ngUrM.d.ts → module-DqKegXHt.d.ts} +43 -18
- package/dist/notrace/{action-creator-D-y_-xRS.d.ts → action-creator-DHAEgwuh.d.ts} +0 -4
- package/dist/notrace/actions.d.ts +52 -17
- package/dist/notrace/actions.js +1 -1
- package/dist/notrace/{context-plugin-DDfsaErA.d.ts → context-plugin-BapQkGwQ.d.ts} +1 -1
- package/dist/notrace/effects.d.ts +2 -2
- package/dist/notrace/effects.js +1 -1
- package/dist/notrace/index.d.ts +2 -2
- package/dist/notrace/{plugin-CDAngHwg.d.ts → plugin-Cxadz6uU.d.ts} +2 -2
- package/dist/notrace/policies.d.ts +1 -1
- package/dist/notrace/redux.d.ts +1 -1
- package/dist/observable.d.ts +1 -1
- package/dist/oop.d.ts +131 -0
- package/dist/oop.js +1 -0
- package/dist/{plugin-DQNPBcxx.d.ts → plugin-DkXCvsmB.d.ts} +2 -2
- package/dist/policies.d.ts +1 -1
- package/dist/react.d.ts +1 -1
- package/dist/redux.d.ts +1 -1
- package/dist/scope.d.ts +5 -6
- package/dist/trace.d.ts +1 -1
- package/dist/{types-BJ0fzV1p.d.ts → types-KavbvHix.d.ts} +13 -3
- package/docs/README.md +1 -0
- package/docs/actions.md +79 -35
- package/docs/guide.md +142 -18
- package/docs/hmr.md +6 -5
- package/docs/migrating-from-effector.md +49 -16
- package/docs/migrating-from-rxjs.md +17 -6
- package/docs/oop.md +286 -0
- package/docs/package.md +2 -0
- package/docs/plugins.md +227 -51
- package/docs/react.md +17 -5
- package/docs/scope.md +60 -22
- package/docs/stores.md +263 -109
- package/llms-full.txt +1152 -267
- package/llms.txt +1 -0
- package/package.json +20 -2
package/llms.txt
CHANGED
|
@@ -31,6 +31,7 @@ Rules that generated code often gets wrong:
|
|
|
31
31
|
- [Build a sign-up form in React](docs/react.md): a form with a username check, a submit that cannot fire twice, and retry
|
|
32
32
|
- [Context fields](docs/context.md): put a store or client on every task
|
|
33
33
|
- [Scopes](docs/scope.md): fields for one command, action, job, module or `emit`, and a way to replace them in a test
|
|
34
|
+
- [Use the bus from a class](docs/oop.md): `extendBus`, `@WithBus`, `@On`, `@Once`, and `dispose()` for the subscriptions of an instance
|
|
34
35
|
|
|
35
36
|
## TypeScript
|
|
36
37
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nanoeffects",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"description": "Typed event bus where every handler is a task with an AbortSignal, plus policies (latest, debounce, throttle, queue), effects (retry, timeout, poll) and tracing. About 1.3 kB gzip.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"event-bus",
|
|
@@ -78,6 +78,14 @@
|
|
|
78
78
|
"types": "./dist/scope.d.ts",
|
|
79
79
|
"import": "./dist/scope.js"
|
|
80
80
|
},
|
|
81
|
+
"./match": {
|
|
82
|
+
"types": "./dist/match.d.ts",
|
|
83
|
+
"import": "./dist/match.js"
|
|
84
|
+
},
|
|
85
|
+
"./oop": {
|
|
86
|
+
"types": "./dist/oop.d.ts",
|
|
87
|
+
"import": "./dist/oop.js"
|
|
88
|
+
},
|
|
81
89
|
"./trace": {
|
|
82
90
|
"types": "./dist/trace.d.ts",
|
|
83
91
|
"import": "./dist/trace.js"
|
|
@@ -177,7 +185,17 @@
|
|
|
177
185
|
{
|
|
178
186
|
"name": "actions (all)",
|
|
179
187
|
"path": "dist/actions.js",
|
|
180
|
-
"limit": "2.
|
|
188
|
+
"limit": "2.65 kB"
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
"name": "match (plugin)",
|
|
192
|
+
"path": "dist/match.js",
|
|
193
|
+
"limit": "0.5 kB"
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
"name": "oop (class entry)",
|
|
197
|
+
"path": "dist/oop.js",
|
|
198
|
+
"limit": "2.5 kB"
|
|
181
199
|
},
|
|
182
200
|
{
|
|
183
201
|
"name": "scope (plugin and effect)",
|