@thi.ng/csp 3.3.19 → 3.3.20
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 -20
- package/package.json +8 -8
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<!-- This file is generated - DO NOT EDIT! -->
|
|
2
|
-
<!-- Please see: https://
|
|
3
|
-
# 
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/@thi.ng/csp)
|
|
6
6
|

|
|
@@ -8,11 +8,12 @@
|
|
|
8
8
|
|
|
9
9
|
> [!NOTE]
|
|
10
10
|
> This is one of 214 standalone projects, maintained as part
|
|
11
|
-
> of the [@thi.ng/umbrella](https://
|
|
11
|
+
> of the [@thi.ng/umbrella](https://codeberg.org/thi.ng/umbrella/) ecosystem
|
|
12
12
|
> and anti-framework.
|
|
13
13
|
>
|
|
14
|
-
> 🚀 Please help me to work full-time on these projects by [sponsoring
|
|
15
|
-
>
|
|
14
|
+
> 🚀 Please help me to work full-time on these projects by [sponsoring
|
|
15
|
+
> me](https://codeberg.org/thi.ng/umbrella/src/branch/develop/CONTRIBUTING.md#donations).
|
|
16
|
+
> Thank you! ❤️
|
|
16
17
|
|
|
17
18
|
- [About](#about)
|
|
18
19
|
- [What is CSP?](#what-is-csp)
|
|
@@ -61,7 +62,7 @@ channels are blocking on both the reader and writer side.
|
|
|
61
62
|
### Buffering behaviors
|
|
62
63
|
|
|
63
64
|
The following channel buffer types/behaviors are included (from the
|
|
64
|
-
[thi.ng/buffers](https://
|
|
65
|
+
[thi.ng/buffers](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/buffers)
|
|
65
66
|
package), all accepting a max. capacity and all implementing the
|
|
66
67
|
[IReadWriteBuffer](https://docs.thi.ng/umbrella/buffers/interfaces/IReadWriteBuffer.html)
|
|
67
68
|
interface required by the channel:
|
|
@@ -79,7 +80,7 @@ interface required by the channel:
|
|
|
79
80
|
Sliding window ring buffer. Writes to the channel are **never** blocking!
|
|
80
81
|
Whilst the buffer is at full capacity, new writes will first expunge the
|
|
81
82
|
oldest buffered value (similar to [LRU
|
|
82
|
-
cache](https://
|
|
83
|
+
cache](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/cache/README.md#lru)
|
|
83
84
|
behavior). Read behavior is the same as for `fifo`.
|
|
84
85
|
- [`dropping`](https://docs.thi.ng/umbrella/buffers/functions/dropping.html):
|
|
85
86
|
Dropping value ring buffer. Writes to the channel are **never** blocking!
|
|
@@ -124,13 +125,13 @@ are the key building blocks for CSP.
|
|
|
124
125
|
|
|
125
126
|
**BETA** - possibly breaking changes forthcoming
|
|
126
127
|
|
|
127
|
-
[Search or submit any issues for this package](https://
|
|
128
|
+
[Search or submit any issues for this package](https://codeberg.org/thi.ng/umbrella/issues?q=%5Bcsp%5D)
|
|
128
129
|
|
|
129
130
|
## Related packages
|
|
130
131
|
|
|
131
|
-
- [@thi.ng/fibers](https://
|
|
132
|
-
- [@thi.ng/rstream](https://
|
|
133
|
-
- [@thi.ng/transducers-async](https://
|
|
132
|
+
- [@thi.ng/fibers](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/fibers) - Process hierarchies & operators for cooperative multitasking
|
|
133
|
+
- [@thi.ng/rstream](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/rstream) - Reactive streams & subscription primitives for constructing dataflow graphs / pipelines
|
|
134
|
+
- [@thi.ng/transducers-async](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/transducers-async) - Async versions of various highly composable transducers, reducers and iterators
|
|
134
135
|
|
|
135
136
|
## Installation
|
|
136
137
|
|
|
@@ -162,23 +163,23 @@ Package sizes (brotli'd, pre-treeshake): ESM: 1.80 KB
|
|
|
162
163
|
|
|
163
164
|
## Dependencies
|
|
164
165
|
|
|
165
|
-
- [@thi.ng/api](https://
|
|
166
|
-
- [@thi.ng/arrays](https://
|
|
167
|
-
- [@thi.ng/buffers](https://
|
|
168
|
-
- [@thi.ng/checks](https://
|
|
169
|
-
- [@thi.ng/errors](https://
|
|
166
|
+
- [@thi.ng/api](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/api)
|
|
167
|
+
- [@thi.ng/arrays](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/arrays)
|
|
168
|
+
- [@thi.ng/buffers](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/buffers)
|
|
169
|
+
- [@thi.ng/checks](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/checks)
|
|
170
|
+
- [@thi.ng/errors](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/errors)
|
|
170
171
|
|
|
171
172
|
Note: @thi.ng/api is in _most_ cases a type-only import (not used at runtime)
|
|
172
173
|
|
|
173
174
|
## Usage examples
|
|
174
175
|
|
|
175
176
|
One project in this repo's
|
|
176
|
-
[/examples](https://
|
|
177
|
+
[/examples](https://codeberg.org/thi.ng/umbrella/src/branch/develop/examples)
|
|
177
178
|
directory is using this package:
|
|
178
179
|
|
|
179
|
-
| Screenshot | Description | Live demo | Source
|
|
180
|
-
|
|
181
|
-
| <img src="https://
|
|
180
|
+
| Screenshot | Description | Live demo | Source |
|
|
181
|
+
|:---------------------------------------------------------------------------------------------------------------|:-----------------------------------------------------------------------------|:----------------------------------------------|:-----------------------------------------------------------------------------------|
|
|
182
|
+
| <img src="https://codeberg.org/thi.ng/umbrella/media/branch/develop/assets/examples/csp-bus.png" width="240"/> | CSP channel-based event handling, async transducers & reactive UI components | [Demo](https://demo.thi.ng/umbrella/csp-bus/) | [Source](https://codeberg.org/thi.ng/umbrella/src/branch/develop/examples/csp-bus) |
|
|
182
183
|
|
|
183
184
|
## API
|
|
184
185
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/csp",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.20",
|
|
4
4
|
"description": "Primitives & operators for Communicating Sequential Processes based on async/await and async iterables",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"sideEffects": false,
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
11
|
-
"url": "git+https://
|
|
11
|
+
"url": "git+https://codeberg.org/thi.ng/umbrella.git",
|
|
12
12
|
"directory": "packages/csp"
|
|
13
13
|
},
|
|
14
14
|
"homepage": "https://thi.ng/csp",
|
|
@@ -44,11 +44,11 @@
|
|
|
44
44
|
"tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@thi.ng/api": "^8.12.
|
|
48
|
-
"@thi.ng/arrays": "^2.14.
|
|
49
|
-
"@thi.ng/buffers": "^1.0.
|
|
50
|
-
"@thi.ng/checks": "^3.8.
|
|
51
|
-
"@thi.ng/errors": "^2.6.
|
|
47
|
+
"@thi.ng/api": "^8.12.18",
|
|
48
|
+
"@thi.ng/arrays": "^2.14.14",
|
|
49
|
+
"@thi.ng/buffers": "^1.0.37",
|
|
50
|
+
"@thi.ng/checks": "^3.8.8",
|
|
51
|
+
"@thi.ng/errors": "^2.6.7"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"esbuild": "^0.27.2",
|
|
@@ -110,5 +110,5 @@
|
|
|
110
110
|
"status": "beta",
|
|
111
111
|
"year": 2016
|
|
112
112
|
},
|
|
113
|
-
"gitHead": "
|
|
113
|
+
"gitHead": "8ddf86ea0a1e658ddbf19cc645b29d0c176e29c4\n"
|
|
114
114
|
}
|