@toa.io/boot 1.0.0-alpha.326 → 1.0.0-alpha.328

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,26 @@
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.328](https://github.com/toa-io/toa/compare/v1.0.0-alpha.327...v1.0.0-alpha.328) (2026-10-10)
7
+
8
+ **Note:** Version bump only for package @toa.io/boot
9
+
10
+
11
+
12
+
13
+
14
+ # [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)
15
+
16
+ * feat(core)!: refuse a call to an operation declaring once made by a retried transition ([71db669](https://github.com/toa-io/toa/commit/71db6697d06f9854910ec6785733f4e896cbe756))
17
+
18
+ ### BREAKING CHANGES
19
+
20
+ * a transition declared `concurrency: retry` that calls an
21
+ operation declaring `once` raises an Unrepeatable exception (604) on that
22
+ call. Declare it `concurrency: none`, make the call from a receiver of the
23
+ event the change publishes, or call both from an effect.
24
+
25
+
6
26
  # [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)
7
27
 
8
28
  ### Bug Fixes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@toa.io/boot",
3
- "version": "1.0.0-alpha.326",
3
+ "version": "1.0.0-alpha.328",
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.326",
25
- "@toa.io/core": "1.0.0-alpha.326",
26
- "@toa.io/definitions": "1.0.0-alpha.326",
24
+ "@toa.io/atomicity": "1.0.0-alpha.328",
25
+ "@toa.io/core": "1.0.0-alpha.328",
26
+ "@toa.io/definitions": "1.0.0-alpha.328",
27
27
  "@toa.io/generic": "1.0.0-alpha.311",
28
- "@toa.io/norm": "1.0.0-alpha.326",
28
+ "@toa.io/norm": "1.0.0-alpha.328",
29
29
  "@toa.io/schemas": "1.0.0-alpha.326",
30
30
  "clone-deep": "4.0.1",
31
31
  "dotenv": "18.0.5",
32
- "openspan": "1.0.0-alpha.323"
32
+ "openspan": "1.0.0-alpha.327"
33
33
  },
34
- "gitHead": "60f11bdc805d0c39bcb06064b2218b11114a35ad"
34
+ "gitHead": "c4fcb94548759b069014187ef4fa238179d2eca3"
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
  }
@@ -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)