@ersbeth/picoflow 2.0.1 → 2.0.3
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 +10 -0
- package/SKILL.md +106 -0
- package/dist/types/api/base/flowSubscribable.d.ts +3 -3
- package/dist/types/api/base/flowSubscribable.d.ts.map +1 -1
- package/package.json +5 -1
- package/.gitlab-ci.yml +0 -24
- package/.vscode/settings.json +0 -5
- package/CHANGELOG.md +0 -94
- package/biome.json +0 -47
- package/docs/.vitepress/config.mts +0 -145
- package/docs/api/functions/array.md +0 -35
- package/docs/api/functions/constant.md +0 -33
- package/docs/api/functions/constantAsync.md +0 -69
- package/docs/api/functions/derivation.md +0 -34
- package/docs/api/functions/derivationAsync.md +0 -34
- package/docs/api/functions/from.md +0 -129
- package/docs/api/functions/isDisposable.md +0 -27
- package/docs/api/functions/map.md +0 -36
- package/docs/api/functions/signal.md +0 -21
- package/docs/api/functions/state.md +0 -67
- package/docs/api/functions/stateAsync.md +0 -69
- package/docs/api/functions/subscribe.md +0 -40
- package/docs/api/functions/writableDerivation.md +0 -33
- package/docs/api/functions/writableDerivationAsync.md +0 -34
- package/docs/api/index.md +0 -61
- package/docs/api/interfaces/FlowArray.md +0 -439
- package/docs/api/interfaces/FlowConstant.md +0 -220
- package/docs/api/interfaces/FlowConstantAsync.md +0 -221
- package/docs/api/interfaces/FlowDerivation.md +0 -241
- package/docs/api/interfaces/FlowDerivationAsync.md +0 -242
- package/docs/api/interfaces/FlowDisposable.md +0 -59
- package/docs/api/interfaces/FlowEffect.md +0 -64
- package/docs/api/interfaces/FlowMap.md +0 -374
- package/docs/api/interfaces/FlowObservable.md +0 -155
- package/docs/api/interfaces/FlowSignal.md +0 -156
- package/docs/api/interfaces/FlowState.md +0 -269
- package/docs/api/interfaces/FlowStateAsync.md +0 -268
- package/docs/api/interfaces/FlowSubscribable.md +0 -55
- package/docs/api/interfaces/FlowTracker.md +0 -61
- package/docs/api/interfaces/FlowValue.md +0 -222
- package/docs/api/interfaces/FlowWritableDerivation.md +0 -292
- package/docs/api/interfaces/FlowWritableDerivationAsync.md +0 -293
- package/docs/api/type-aliases/DerivationFunction.md +0 -28
- package/docs/api/type-aliases/DerivationFunctionAsync.md +0 -28
- package/docs/api/type-aliases/FlowArrayAction.md +0 -60
- package/docs/api/type-aliases/FlowDataTracker.md +0 -33
- package/docs/api/type-aliases/FlowMapAction.md +0 -48
- package/docs/api/type-aliases/FlowOnDataListener.md +0 -33
- package/docs/api/type-aliases/FlowOnErrorListener.md +0 -27
- package/docs/api/type-aliases/FlowOnPendingListener.md +0 -21
- package/docs/api/type-aliases/FlowReadonly.md +0 -22
- package/docs/api/type-aliases/InitFunction.md +0 -21
- package/docs/api/type-aliases/InitFunctionAsync.md +0 -21
- package/docs/api/type-aliases/NotPromise.md +0 -21
- package/docs/api/type-aliases/UpdateFunction.md +0 -27
- package/docs/api/type-aliases/UpdateFunctionAsync.md +0 -27
- package/docs/api/typedoc-sidebar.json +0 -65
- package/docs/examples/examples.md +0 -2311
- package/docs/examples/patterns.md +0 -649
- package/docs/guide/advanced/architecture.md +0 -1234
- package/docs/guide/advanced/disposal.md +0 -426
- package/docs/guide/advanced/migration-v1.md +0 -464
- package/docs/guide/advanced/migration-v2.md +0 -204
- package/docs/guide/advanced/solidjs.md +0 -135
- package/docs/guide/introduction/concepts.md +0 -57
- package/docs/guide/introduction/conventions.md +0 -30
- package/docs/guide/introduction/getting-started.md +0 -139
- package/docs/guide/introduction/lifecycle.md +0 -368
- package/docs/guide/primitives/array.md +0 -286
- package/docs/guide/primitives/constant.md +0 -207
- package/docs/guide/primitives/derivations.md +0 -281
- package/docs/guide/primitives/effects.md +0 -372
- package/docs/guide/primitives/map.md +0 -265
- package/docs/guide/primitives/overview.md +0 -92
- package/docs/guide/primitives/signal.md +0 -222
- package/docs/guide/primitives/state.md +0 -272
- package/docs/index.md +0 -47
- package/docs/public/logo.svg +0 -1
- package/src/api/base/flowDisposable.ts +0 -44
- package/src/api/base/flowObservable.ts +0 -28
- package/src/api/base/flowSubscribable.ts +0 -87
- package/src/api/base/flowTracker.ts +0 -7
- package/src/api/base/index.ts +0 -4
- package/src/api/index.ts +0 -2
- package/src/api/nodes/async/flowConstantAsync.ts +0 -36
- package/src/api/nodes/async/flowDerivationAsync.ts +0 -42
- package/src/api/nodes/async/flowStateAsync.ts +0 -47
- package/src/api/nodes/async/flowWritableDerivationAsync.ts +0 -33
- package/src/api/nodes/async/index.ts +0 -4
- package/src/api/nodes/collections/flowArray.ts +0 -155
- package/src/api/nodes/collections/flowMap.ts +0 -115
- package/src/api/nodes/collections/index.ts +0 -2
- package/src/api/nodes/flowEffect.ts +0 -42
- package/src/api/nodes/flowSignal.ts +0 -28
- package/src/api/nodes/flowValue.ts +0 -37
- package/src/api/nodes/index.ts +0 -7
- package/src/api/nodes/sync/flowConstant.ts +0 -33
- package/src/api/nodes/sync/flowDerivation.ts +0 -41
- package/src/api/nodes/sync/flowState.ts +0 -45
- package/src/api/nodes/sync/flowWritableDerivation.ts +0 -31
- package/src/api/nodes/sync/index.ts +0 -4
- package/src/api/nodes/utils.ts +0 -24
- package/src/base/disposable.ts +0 -18
- package/src/base/executionStack.ts +0 -42
- package/src/base/index.ts +0 -5
- package/src/base/node.ts +0 -98
- package/src/base/observable.ts +0 -92
- package/src/base/observer.ts +0 -51
- package/src/converters/index.ts +0 -1
- package/src/converters/solid.ts +0 -109
- package/src/index.ts +0 -2
- package/src/nodes/arrayNode.ts +0 -180
- package/src/nodes/effectNode.ts +0 -58
- package/src/nodes/index.ts +0 -7
- package/src/nodes/mapNode.ts +0 -125
- package/src/nodes/signalNode.ts +0 -19
- package/src/nodes/valueAsyncNode.ts +0 -85
- package/src/nodes/valueNode.ts +0 -148
- package/src/nodes/valueSyncNode.ts +0 -125
- package/src/schedulers/asyncResolver.ts +0 -78
- package/src/schedulers/asyncScheduler.ts +0 -66
- package/src/schedulers/index.ts +0 -4
- package/src/schedulers/pendingError.ts +0 -13
- package/src/schedulers/scheduler.ts +0 -9
- package/src/schedulers/syncResolver.ts +0 -69
- package/src/schedulers/syncScheduler.ts +0 -55
- package/test/base/pendingError.test.ts +0 -67
- package/test/converters/solid.derivation.browser.test.tsx +0 -69
- package/test/converters/solid.node.test.ts +0 -654
- package/test/converters/solid.state.browser.test.tsx +0 -1592
- package/test/reactivity/flowSignal.test.ts +0 -226
- package/test/reactivity/nodes/async/asyncScheduler/asyncResolver.test.ts +0 -593
- package/test/reactivity/nodes/async/asyncScheduler/asyncScheduler.test.ts +0 -317
- package/test/reactivity/nodes/async/flowConstantAsync.test.ts +0 -652
- package/test/reactivity/nodes/async/flowDerivation.test.ts +0 -898
- package/test/reactivity/nodes/async/flowDerivationAsync.test.ts +0 -1716
- package/test/reactivity/nodes/async/flowStateAsync.test.ts +0 -708
- package/test/reactivity/nodes/async/flowWritableDerivationAsync.test.ts +0 -614
- package/test/reactivity/nodes/collections/flowArray.asyncStates.test.ts +0 -1289
- package/test/reactivity/nodes/collections/flowArray.scalars.test.ts +0 -961
- package/test/reactivity/nodes/collections/flowArray.states.test.ts +0 -1035
- package/test/reactivity/nodes/collections/flowMap.asyncStates.test.ts +0 -960
- package/test/reactivity/nodes/collections/flowMap.scalars.test.ts +0 -775
- package/test/reactivity/nodes/collections/flowMap.states.test.ts +0 -958
- package/test/reactivity/nodes/sync/flowConstant.test.ts +0 -377
- package/test/reactivity/nodes/sync/flowDerivation.test.ts +0 -896
- package/test/reactivity/nodes/sync/flowState.test.ts +0 -341
- package/test/reactivity/nodes/sync/flowWritableDerivation.test.ts +0 -603
- package/test/vitest.d.ts +0 -10
- package/tsconfig.json +0 -37
- package/typedoc.json +0 -37
- package/vite.config.ts +0 -31
- package/vitest.browser.config.ts +0 -21
- package/vitest.config.ts +0 -17
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
[@ersbeth/picoflow](/api/index.md) / UpdateFunction
|
|
2
|
-
|
|
3
|
-
# Type Alias: UpdateFunction()\<T\>
|
|
4
|
-
|
|
5
|
-
```ts
|
|
6
|
-
type UpdateFunction<T> = (previous) => NotPromise<T>;
|
|
7
|
-
```
|
|
8
|
-
|
|
9
|
-
Defined in: [api/nodes/sync/flowState.ts:7](https://gitlab.com/ersbeth-web/picoflow/-/blob/4e864254f0eac72524c3be40b9e41d799a16e020/src/api/nodes/sync/flowState.ts#L7)
|
|
10
|
-
|
|
11
|
-
Function that updates a value based on the previous value.
|
|
12
|
-
|
|
13
|
-
## Type Parameters
|
|
14
|
-
|
|
15
|
-
| Type Parameter |
|
|
16
|
-
| ------ |
|
|
17
|
-
| `T` |
|
|
18
|
-
|
|
19
|
-
## Parameters
|
|
20
|
-
|
|
21
|
-
| Parameter | Type |
|
|
22
|
-
| ------ | ------ |
|
|
23
|
-
| `previous` | [`NotPromise`](/api/type-aliases/NotPromise.md)\<`T`\> \| `undefined` |
|
|
24
|
-
|
|
25
|
-
## Returns
|
|
26
|
-
|
|
27
|
-
[`NotPromise`](/api/type-aliases/NotPromise.md)\<`T`\>
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
[@ersbeth/picoflow](/api/index.md) / UpdateFunctionAsync
|
|
2
|
-
|
|
3
|
-
# Type Alias: UpdateFunctionAsync()\<T\>
|
|
4
|
-
|
|
5
|
-
```ts
|
|
6
|
-
type UpdateFunctionAsync<T> = (previous) => Promise<T>;
|
|
7
|
-
```
|
|
8
|
-
|
|
9
|
-
Defined in: [api/nodes/async/flowStateAsync.ts:7](https://gitlab.com/ersbeth-web/picoflow/-/blob/4e864254f0eac72524c3be40b9e41d799a16e020/src/api/nodes/async/flowStateAsync.ts#L7)
|
|
10
|
-
|
|
11
|
-
Function that updates a value asynchronously based on the previous value.
|
|
12
|
-
|
|
13
|
-
## Type Parameters
|
|
14
|
-
|
|
15
|
-
| Type Parameter |
|
|
16
|
-
| ------ |
|
|
17
|
-
| `T` |
|
|
18
|
-
|
|
19
|
-
## Parameters
|
|
20
|
-
|
|
21
|
-
| Parameter | Type |
|
|
22
|
-
| ------ | ------ |
|
|
23
|
-
| `previous` | [`NotPromise`](/api/type-aliases/NotPromise.md)\<`T`\> \| `undefined` |
|
|
24
|
-
|
|
25
|
-
## Returns
|
|
26
|
-
|
|
27
|
-
`Promise`\<`T`\>
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
[
|
|
2
|
-
{
|
|
3
|
-
"text": "Interfaces",
|
|
4
|
-
"collapsed": true,
|
|
5
|
-
"items": [
|
|
6
|
-
{ "text": "FlowArray", "link": "/api/interfaces/FlowArray.md" },
|
|
7
|
-
{ "text": "FlowConstant", "link": "/api/interfaces/FlowConstant.md" },
|
|
8
|
-
{ "text": "FlowConstantAsync", "link": "/api/interfaces/FlowConstantAsync.md" },
|
|
9
|
-
{ "text": "FlowDerivation", "link": "/api/interfaces/FlowDerivation.md" },
|
|
10
|
-
{ "text": "FlowDerivationAsync", "link": "/api/interfaces/FlowDerivationAsync.md" },
|
|
11
|
-
{ "text": "FlowDisposable", "link": "/api/interfaces/FlowDisposable.md" },
|
|
12
|
-
{ "text": "FlowEffect", "link": "/api/interfaces/FlowEffect.md" },
|
|
13
|
-
{ "text": "FlowMap", "link": "/api/interfaces/FlowMap.md" },
|
|
14
|
-
{ "text": "FlowObservable", "link": "/api/interfaces/FlowObservable.md" },
|
|
15
|
-
{ "text": "FlowSignal", "link": "/api/interfaces/FlowSignal.md" },
|
|
16
|
-
{ "text": "FlowState", "link": "/api/interfaces/FlowState.md" },
|
|
17
|
-
{ "text": "FlowStateAsync", "link": "/api/interfaces/FlowStateAsync.md" },
|
|
18
|
-
{ "text": "FlowSubscribable", "link": "/api/interfaces/FlowSubscribable.md" },
|
|
19
|
-
{ "text": "FlowTracker", "link": "/api/interfaces/FlowTracker.md" },
|
|
20
|
-
{ "text": "FlowValue", "link": "/api/interfaces/FlowValue.md" },
|
|
21
|
-
{ "text": "FlowWritableDerivation", "link": "/api/interfaces/FlowWritableDerivation.md" },
|
|
22
|
-
{ "text": "FlowWritableDerivationAsync", "link": "/api/interfaces/FlowWritableDerivationAsync.md" }
|
|
23
|
-
]
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
"text": "Type Aliases",
|
|
27
|
-
"collapsed": true,
|
|
28
|
-
"items": [
|
|
29
|
-
{ "text": "DerivationFunction", "link": "/api/type-aliases/DerivationFunction.md" },
|
|
30
|
-
{ "text": "DerivationFunctionAsync", "link": "/api/type-aliases/DerivationFunctionAsync.md" },
|
|
31
|
-
{ "text": "FlowArrayAction", "link": "/api/type-aliases/FlowArrayAction.md" },
|
|
32
|
-
{ "text": "FlowDataTracker", "link": "/api/type-aliases/FlowDataTracker.md" },
|
|
33
|
-
{ "text": "FlowMapAction", "link": "/api/type-aliases/FlowMapAction.md" },
|
|
34
|
-
{ "text": "FlowOnDataListener", "link": "/api/type-aliases/FlowOnDataListener.md" },
|
|
35
|
-
{ "text": "FlowOnErrorListener", "link": "/api/type-aliases/FlowOnErrorListener.md" },
|
|
36
|
-
{ "text": "FlowOnPendingListener", "link": "/api/type-aliases/FlowOnPendingListener.md" },
|
|
37
|
-
{ "text": "FlowReadonly", "link": "/api/type-aliases/FlowReadonly.md" },
|
|
38
|
-
{ "text": "InitFunction", "link": "/api/type-aliases/InitFunction.md" },
|
|
39
|
-
{ "text": "InitFunctionAsync", "link": "/api/type-aliases/InitFunctionAsync.md" },
|
|
40
|
-
{ "text": "NotPromise", "link": "/api/type-aliases/NotPromise.md" },
|
|
41
|
-
{ "text": "UpdateFunction", "link": "/api/type-aliases/UpdateFunction.md" },
|
|
42
|
-
{ "text": "UpdateFunctionAsync", "link": "/api/type-aliases/UpdateFunctionAsync.md" }
|
|
43
|
-
]
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
"text": "Functions",
|
|
47
|
-
"collapsed": true,
|
|
48
|
-
"items": [
|
|
49
|
-
{ "text": "array", "link": "/api/functions/array.md" },
|
|
50
|
-
{ "text": "constant", "link": "/api/functions/constant.md" },
|
|
51
|
-
{ "text": "constantAsync", "link": "/api/functions/constantAsync.md" },
|
|
52
|
-
{ "text": "derivation", "link": "/api/functions/derivation.md" },
|
|
53
|
-
{ "text": "derivationAsync", "link": "/api/functions/derivationAsync.md" },
|
|
54
|
-
{ "text": "from", "link": "/api/functions/from.md" },
|
|
55
|
-
{ "text": "isDisposable", "link": "/api/functions/isDisposable.md" },
|
|
56
|
-
{ "text": "map", "link": "/api/functions/map.md" },
|
|
57
|
-
{ "text": "signal", "link": "/api/functions/signal.md" },
|
|
58
|
-
{ "text": "state", "link": "/api/functions/state.md" },
|
|
59
|
-
{ "text": "stateAsync", "link": "/api/functions/stateAsync.md" },
|
|
60
|
-
{ "text": "subscribe", "link": "/api/functions/subscribe.md" },
|
|
61
|
-
{ "text": "writableDerivation", "link": "/api/functions/writableDerivation.md" },
|
|
62
|
-
{ "text": "writableDerivationAsync", "link": "/api/functions/writableDerivationAsync.md" }
|
|
63
|
-
]
|
|
64
|
-
}
|
|
65
|
-
]
|