@thi.ng/fibers 1.0.24 → 1.0.26
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/CHANGELOG.md +7 -1
- package/README.md +2 -2
- package/ops.js +2 -2
- package/package.json +11 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
-
- **Last updated**:
|
|
3
|
+
- **Last updated**: 2025-01-14T12:23:33Z
|
|
4
4
|
- **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
|
|
5
5
|
|
|
6
6
|
All notable changes to this project will be documented in this file.
|
|
@@ -9,6 +9,12 @@ See [Conventional Commits](https://conventionalcommits.org/) for commit guidelin
|
|
|
9
9
|
**Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
|
|
10
10
|
and/or version bumps of transitive dependencies.
|
|
11
11
|
|
|
12
|
+
### [1.0.26](https://github.com/thi-ng/umbrella/tree/@thi.ng/fibers@1.0.26) (2025-01-14)
|
|
13
|
+
|
|
14
|
+
#### ♻️ Refactoring
|
|
15
|
+
|
|
16
|
+
- use optional chaining & nullish coalescing ([c5a0a13](https://github.com/thi-ng/umbrella/commit/c5a0a13))
|
|
17
|
+
|
|
12
18
|
### [1.0.24](https://github.com/thi-ng/umbrella/tree/@thi.ng/fibers@1.0.24) (2024-12-27)
|
|
13
19
|
|
|
14
20
|
#### ♻️ Refactoring
|
package/README.md
CHANGED
|
@@ -403,7 +403,7 @@ For Node.js REPL:
|
|
|
403
403
|
const fib = await import("@thi.ng/fibers");
|
|
404
404
|
```
|
|
405
405
|
|
|
406
|
-
Package sizes (brotli'd, pre-treeshake): ESM: 2.
|
|
406
|
+
Package sizes (brotli'd, pre-treeshake): ESM: 2.43 KB
|
|
407
407
|
|
|
408
408
|
## Dependencies
|
|
409
409
|
|
|
@@ -459,4 +459,4 @@ If this project contributes to an academic publication, please cite it as:
|
|
|
459
459
|
|
|
460
460
|
## License
|
|
461
461
|
|
|
462
|
-
© 2023 -
|
|
462
|
+
© 2023 - 2025 Karsten Schmidt // Apache License 2.0
|
package/ops.js
CHANGED
|
@@ -115,11 +115,11 @@ const asPromise = (task, opts) => new Promise((resolve, reject) => {
|
|
|
115
115
|
fiber(task, {
|
|
116
116
|
...opts,
|
|
117
117
|
deinit: (ctx) => {
|
|
118
|
-
opts?.deinit
|
|
118
|
+
opts?.deinit?.(ctx);
|
|
119
119
|
ctx.state < STATE_ERROR && resolve(ctx.deref());
|
|
120
120
|
},
|
|
121
121
|
catch: (ctx, e) => {
|
|
122
|
-
if (opts?.catch
|
|
122
|
+
if (opts?.catch?.(ctx, e)) return true;
|
|
123
123
|
reject(e);
|
|
124
124
|
return false;
|
|
125
125
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/fibers",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.26",
|
|
4
4
|
"description": "Process hierarchies & operators for cooperative multitasking",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -40,15 +40,15 @@
|
|
|
40
40
|
"tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@thi.ng/api": "^8.11.
|
|
44
|
-
"@thi.ng/arrays": "^2.10.
|
|
45
|
-
"@thi.ng/buffers": "^0.
|
|
46
|
-
"@thi.ng/checks": "^3.6.
|
|
47
|
-
"@thi.ng/errors": "^2.5.
|
|
48
|
-
"@thi.ng/idgen": "^2.2.
|
|
49
|
-
"@thi.ng/logger": "^3.0.
|
|
50
|
-
"@thi.ng/random": "^4.1.
|
|
51
|
-
"@thi.ng/timestamp": "^1.1.
|
|
43
|
+
"@thi.ng/api": "^8.11.16",
|
|
44
|
+
"@thi.ng/arrays": "^2.10.10",
|
|
45
|
+
"@thi.ng/buffers": "^1.0.1",
|
|
46
|
+
"@thi.ng/checks": "^3.6.19",
|
|
47
|
+
"@thi.ng/errors": "^2.5.22",
|
|
48
|
+
"@thi.ng/idgen": "^2.2.56",
|
|
49
|
+
"@thi.ng/logger": "^3.0.27",
|
|
50
|
+
"@thi.ng/random": "^4.1.7",
|
|
51
|
+
"@thi.ng/timestamp": "^1.1.1"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@microsoft/api-extractor": "^7.48.1",
|
|
@@ -117,5 +117,5 @@
|
|
|
117
117
|
"status": "alpha",
|
|
118
118
|
"year": 2023
|
|
119
119
|
},
|
|
120
|
-
"gitHead": "
|
|
120
|
+
"gitHead": "6542b842120bef47cc18d45a1b1db68307a7f04b\n"
|
|
121
121
|
}
|