@toa.io/core 1.0.0-alpha.257 → 1.0.0-alpha.259

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
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [1.0.0-alpha.259](https://github.com/toa-io/toa/compare/v1.0.0-alpha.258...v1.0.0-alpha.259) (2026-08-24)
7
+
8
+
9
+ ### Features
10
+
11
+ * **runtime:** split component RC into preflight and settle ([0d648b3](https://github.com/toa-io/toa/commit/0d648b314e4aac226c254bf01a86affa04b59b34))
12
+
13
+
14
+
15
+
16
+
6
17
  # [1.0.0-alpha.257](https://github.com/toa-io/toa/compare/v1.0.0-alpha.256...v1.0.0-alpha.257) (2026-08-24)
7
18
 
8
19
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@toa.io/core",
3
- "version": "1.0.0-alpha.257",
3
+ "version": "1.0.0-alpha.259",
4
4
  "description": "Toa Core",
5
5
  "author": "temich <tema.gurtovoy@gmail.com>",
6
6
  "homepage": "https://github.com/toa-io/toa#readme",
@@ -27,5 +27,5 @@
27
27
  "openspan": "1.0.0-alpha.254",
28
28
  "uuid": "11.1.1"
29
29
  },
30
- "gitHead": "2db23a4e2ff6740a5f852208a9b896812ec6f819"
30
+ "gitHead": "3f557c2f855f078163128c317e7cb2f3629968aa"
31
31
  }
package/src/cascade.js CHANGED
@@ -6,16 +6,16 @@ class Cascade extends Connector {
6
6
  // #bridges
7
7
  #last
8
8
 
9
- constructor (bridges, rc) {
9
+ constructor (bridges, preflight) {
10
10
  super()
11
11
 
12
12
  // this.#bridges = bridges
13
13
  this.#last = bridges[bridges.length - 1]
14
14
 
15
- if (rc === undefined)
15
+ if (preflight === undefined)
16
16
  this.depends(bridges)
17
17
  else
18
- this.depends(bridges).depends(rc)
18
+ this.depends(bridges).depends(preflight)
19
19
  }
20
20
 
21
21
  async run (...args) {
package/types/bridges.ts CHANGED
@@ -29,5 +29,5 @@ export interface Factory {
29
29
 
30
30
  receiver?: (path: string, label: string) => Receiver
31
31
 
32
- rc?: (path: string, context: Context) => Promise<Connector>
32
+ rc?: (path: string, context: Context) => Promise<{ preflight?: Connector, settle?: Connector } | undefined>
33
33
  }