@toa.io/boot 1.0.0-alpha.325 → 1.0.0-alpha.327

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,25 @@
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.327](https://github.com/toa-io/toa/compare/v1.0.0-alpha.326...v1.0.0-alpha.327) (2026-10-10)
7
+
8
+ * feat(core)!: refuse a call to an operation declaring once made by a retried transition ([71db669](https://github.com/toa-io/toa/commit/71db6697d06f9854910ec6785733f4e896cbe756))
9
+
10
+ ### BREAKING CHANGES
11
+
12
+ * a transition declared `concurrency: retry` that calls an
13
+ operation declaring `once` raises an Unrepeatable exception (604) on that
14
+ call. Declare it `concurrency: none`, make the call from a receiver of the
15
+ event the change publishes, or call both from an effect.
16
+
17
+
18
+ # [1.0.0-alpha.326](https://github.com/toa-io/toa/compare/v1.0.0-alpha.325...v1.0.0-alpha.326) (2026-10-06)
19
+
20
+ ### Bug Fixes
21
+
22
+ * **boot:** close a tenant before its component stops serving ([c327a12](https://github.com/toa-io/toa/commit/c327a1291032c3d2a66488d1d5b75770f0211a40))
23
+
24
+
6
25
  # [1.0.0-alpha.325](https://github.com/toa-io/toa/compare/v1.0.0-alpha.324...v1.0.0-alpha.325) (2026-10-02)
7
26
 
8
27
  **Note:** Version bump only for package @toa.io/boot
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@toa.io/boot",
3
- "version": "1.0.0-alpha.325",
3
+ "version": "1.0.0-alpha.327",
4
4
  "type": "module",
5
5
  "description": "Toa Boot",
6
6
  "author": "temich <tema.gurtovoy@gmail.com>",
@@ -21,15 +21,15 @@
21
21
  "test": "echo \"Error: run tests from root\" && exit 1"
22
22
  },
23
23
  "dependencies": {
24
- "@toa.io/atomicity": "1.0.0-alpha.323",
25
- "@toa.io/core": "1.0.0-alpha.323",
26
- "@toa.io/definitions": "1.0.0-alpha.325",
24
+ "@toa.io/atomicity": "1.0.0-alpha.327",
25
+ "@toa.io/core": "1.0.0-alpha.327",
26
+ "@toa.io/definitions": "1.0.0-alpha.327",
27
27
  "@toa.io/generic": "1.0.0-alpha.311",
28
- "@toa.io/norm": "1.0.0-alpha.325",
29
- "@toa.io/schemas": "1.0.0-alpha.311",
28
+ "@toa.io/norm": "1.0.0-alpha.327",
29
+ "@toa.io/schemas": "1.0.0-alpha.326",
30
30
  "clone-deep": "4.0.1",
31
- "dotenv": "18.0.3",
32
- "openspan": "1.0.0-alpha.323"
31
+ "dotenv": "18.0.5",
32
+ "openspan": "1.0.0-alpha.327"
33
33
  },
34
- "gitHead": "95bc03e65c65f02d536da6ed027cf4f78f5cec74"
34
+ "gitHead": "cd6d6d77f19fbae5d7ff85d18005ca8deb9c77f3"
35
35
  }
@@ -12,7 +12,13 @@ export const produce = async (component, operations) => {
12
12
  const made = await factory(binding)
13
13
  const carried = stateful.filter((endpoint) => endpoints.includes(endpoint))
14
14
  const carries = streams.filter((endpoint) => endpoints.includes(endpoint))
15
- const producer = made.producer(component.locator, endpoints, component, carried, carries)
15
+ const producer = made.producer(
16
+ component.locator,
17
+ endpoints,
18
+ component,
19
+ carried,
20
+ carries
21
+ )
16
22
  const { properties } = (await definition(binding)).module
17
23
 
18
24
  if (properties.local === true) local.push(producer)
package/src/call.js CHANGED
@@ -29,6 +29,7 @@ export const call = async (locator, endpoint, definition, entity, source) => {
29
29
  source,
30
30
  stateful,
31
31
  readable,
32
- definition.stream
32
+ definition.stream,
33
+ definition.once === true || typeof definition.once === 'number'
33
34
  )
34
35
  }
@@ -80,6 +80,15 @@ export async function composition(paths, options) {
80
80
  for (const receiver of receivers[i])
81
81
  for (const producer of serving) receiver.depends(producer)
82
82
 
83
+ /*
84
+ * A tenant calls its own component as well — a pulse calls an operation, the dispatcher of
85
+ * delayed calls writes the rows it has made the calls of — and what it has in hand when it
86
+ * closes it finishes through these. A sibling, it would be left waiting for a reply from
87
+ * something torn down beside it, which is a shutdown that never ends.
88
+ */
89
+ for (const tenant of tenants[i])
90
+ for (const producer of serving) tenant.depends(producer)
91
+
83
92
  /*
84
93
  * The broker producers serve the stateful endpoints under the process's name, and the
85
94
  * name is held once they are open — before then a call to it is refused. `ready` is where
@@ -10,7 +10,10 @@ const NORMALIZED = 'manifest.toa.json'
10
10
 
11
11
  let normalised = 0
12
12
 
13
- const digest = { labels: ['identity-basic'], manifests: [{ name: 'basic', namespace: 'identity' }] }
13
+ const digest = {
14
+ labels: ['identity-basic'],
15
+ manifests: [{ name: 'basic', namespace: 'identity' }]
16
+ }
14
17
 
15
18
  mock.module('@toa.io/norm', {
16
19
  namedExports: {
@@ -20,7 +23,8 @@ mock.module('@toa.io/norm', {
20
23
  return mockComponent()
21
24
  },
22
25
  definition: async (reference) => ({
23
- module: reference === '@toa.io/extensions.exposition' ? { components: () => digest } : {}
26
+ module:
27
+ reference === '@toa.io/extensions.exposition' ? { components: () => digest } : {}
24
28
  }),
25
29
  revive: (declared, path) => ({ ...declared, path }),
26
30
  NORMALIZED
package/src/operation.js CHANGED
@@ -21,7 +21,10 @@ export async function operation(
21
21
  const cascade = await boot.cascade(manifest, endpoint, definition, context, preflight)
22
22
  const reply = boot.contract.reply(definition.output, definition.errors)
23
23
  const input = definition.input
24
- const request = boot.contract.request({ input, stream: definition.stream }, manifest.entity)
24
+ const request = boot.contract.request(
25
+ { input, stream: definition.stream },
26
+ manifest.entity
27
+ )
25
28
  const contracts = { reply, request }
26
29
 
27
30
  const query =
package/src/workload.js CHANGED
@@ -236,7 +236,9 @@ export class Workload extends Connector {
236
236
  console.error('Resume failed', { message: error?.message })
237
237
 
238
238
  await this.disconnect().catch((failure) => {
239
- console.error('Shutdown after a failed resume failed', { message: failure?.message })
239
+ console.error('Shutdown after a failed resume failed', {
240
+ message: failure?.message
241
+ })
240
242
  })
241
243
 
242
244
  process.exit(1)