@thi.ng/fibers 1.0.25 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  # Change Log
2
2
 
3
- - **Last updated**: 2025-01-04T21:07:37Z
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.44 KB
406
+ Package sizes (brotli'd, pre-treeshake): ESM: 2.43 KB
407
407
 
408
408
  ## Dependencies
409
409
 
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 && opts.deinit(ctx);
118
+ opts?.deinit?.(ctx);
119
119
  ctx.state < STATE_ERROR && resolve(ctx.deref());
120
120
  },
121
121
  catch: (ctx, e) => {
122
- if (opts?.catch && opts.catch(ctx, e)) return true;
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.25",
3
+ "version": "1.0.26",
4
4
  "description": "Process hierarchies & operators for cooperative multitasking",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -41,12 +41,12 @@
41
41
  },
42
42
  "dependencies": {
43
43
  "@thi.ng/api": "^8.11.16",
44
- "@thi.ng/arrays": "^2.10.9",
44
+ "@thi.ng/arrays": "^2.10.10",
45
45
  "@thi.ng/buffers": "^1.0.1",
46
- "@thi.ng/checks": "^3.6.18",
46
+ "@thi.ng/checks": "^3.6.19",
47
47
  "@thi.ng/errors": "^2.5.22",
48
48
  "@thi.ng/idgen": "^2.2.56",
49
- "@thi.ng/logger": "^3.0.26",
49
+ "@thi.ng/logger": "^3.0.27",
50
50
  "@thi.ng/random": "^4.1.7",
51
51
  "@thi.ng/timestamp": "^1.1.1"
52
52
  },
@@ -117,5 +117,5 @@
117
117
  "status": "alpha",
118
118
  "year": 2023
119
119
  },
120
- "gitHead": "56c1d57a96565bbcc8c06c73779a619bba0db368\n"
120
+ "gitHead": "6542b842120bef47cc18d45a1b1db68307a7f04b\n"
121
121
  }