@toa.io/boot 1.0.0-alpha.326 → 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 +12 -0
- package/package.json +7 -7
- package/src/bindings/produce.js +7 -1
- package/src/call.js +2 -1
- package/src/manifest.test.js +6 -2
- package/src/operation.js +4 -1
- package/src/workload.js +3 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,18 @@
|
|
|
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
|
+
|
|
6
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)
|
|
7
19
|
|
|
8
20
|
### Bug Fixes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@toa.io/boot",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
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.
|
|
25
|
-
"@toa.io/core": "1.0.0-alpha.
|
|
26
|
-
"@toa.io/definitions": "1.0.0-alpha.
|
|
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.
|
|
28
|
+
"@toa.io/norm": "1.0.0-alpha.327",
|
|
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.
|
|
32
|
+
"openspan": "1.0.0-alpha.327"
|
|
33
33
|
},
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "cd6d6d77f19fbae5d7ff85d18005ca8deb9c77f3"
|
|
35
35
|
}
|
package/src/bindings/produce.js
CHANGED
|
@@ -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(
|
|
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
package/src/manifest.test.js
CHANGED
|
@@ -10,7 +10,10 @@ const NORMALIZED = 'manifest.toa.json'
|
|
|
10
10
|
|
|
11
11
|
let normalised = 0
|
|
12
12
|
|
|
13
|
-
const digest = {
|
|
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:
|
|
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(
|
|
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', {
|
|
239
|
+
console.error('Shutdown after a failed resume failed', {
|
|
240
|
+
message: failure?.message
|
|
241
|
+
})
|
|
240
242
|
})
|
|
241
243
|
|
|
242
244
|
process.exit(1)
|