@toa.io/norm 1.0.0-alpha.321 → 1.0.0-alpha.322
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,13 @@
|
|
|
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.322](https://github.com/toa-io/toa/compare/v1.0.0-alpha.321...v1.0.0-alpha.322) (2026-09-29)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* **continuity:** give back what a continued effect was answered on an earlier attempt ([507145b](https://github.com/toa-io/toa/commit/507145beb635dad3d948b74630e34858537bf8ef))
|
|
11
|
+
|
|
12
|
+
|
|
6
13
|
# [1.0.0-alpha.321](https://github.com/toa-io/toa/compare/v1.0.0-alpha.320...v1.0.0-alpha.321) (2026-09-28)
|
|
7
14
|
|
|
8
15
|
### Features
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@toa.io/norm",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.322",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Toa declarations normalization and validation",
|
|
6
6
|
"author": "temich <tema.gurtovoy@gmail.com>",
|
|
@@ -21,12 +21,12 @@
|
|
|
21
21
|
"test": "echo \"Error: run tests from root\" && exit 1"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@toa.io/core": "1.0.0-alpha.
|
|
25
|
-
"@toa.io/definitions": "1.0.0-alpha.
|
|
24
|
+
"@toa.io/core": "1.0.0-alpha.322",
|
|
25
|
+
"@toa.io/definitions": "1.0.0-alpha.322",
|
|
26
26
|
"@toa.io/generic": "1.0.0-alpha.311",
|
|
27
|
-
"@toa.io/prototype": "1.0.0-alpha.
|
|
27
|
+
"@toa.io/prototype": "1.0.0-alpha.322",
|
|
28
28
|
"@toa.io/schemas": "1.0.0-alpha.311",
|
|
29
29
|
"fast-glob": "3.3.3"
|
|
30
30
|
},
|
|
31
|
-
"gitHead": "
|
|
31
|
+
"gitHead": "ef65352a8bd7bc0ef400fcc8cde0e19a3bb92199"
|
|
32
32
|
}
|
|
@@ -13,6 +13,7 @@ const SHORTCUTS = {
|
|
|
13
13
|
stash: '@toa.io/extensions.stash',
|
|
14
14
|
storages: '@toa.io/extensions.storages',
|
|
15
15
|
cadence: '@toa.io/extensions.cadence',
|
|
16
|
+
continuity: '@toa.io/extensions.continuity',
|
|
16
17
|
introspection: '@toa.io/extensions.introspection',
|
|
17
18
|
telemetry: '@toa.io/extensions.telemetry'
|
|
18
19
|
}
|
|
@@ -25,9 +25,11 @@ export const validate = async (manifest) => {
|
|
|
25
25
|
const entity = (manifest) => {
|
|
26
26
|
const { properties, required, blank } = manifest.entity
|
|
27
27
|
|
|
28
|
-
// what an algorithm writes beside the record for the event of its commit
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
// what an algorithm writes beside the record: for the event of its commit, and to have
|
|
29
|
+
// nothing of it committed; neither is ever stored
|
|
30
|
+
for (const name of ['TRAILERS', 'DISCARD'])
|
|
31
|
+
if (properties[name] !== undefined)
|
|
32
|
+
throw new Error(`System property '${name}' cannot be declared`)
|
|
31
33
|
|
|
32
34
|
for (const name of required ?? [])
|
|
33
35
|
if (properties[name] === undefined)
|
package/src/shortcuts.js
CHANGED
|
@@ -49,6 +49,7 @@ export const SHORTCUTS = {
|
|
|
49
49
|
storages: '@toa.io/extensions.storages',
|
|
50
50
|
telemetry: '@toa.io/extensions.telemetry',
|
|
51
51
|
cadence: '@toa.io/extensions.cadence',
|
|
52
|
+
continuity: '@toa.io/extensions.continuity',
|
|
52
53
|
convergence: '@toa.io/extensions.convergence',
|
|
53
54
|
introspection: '@toa.io/extensions.introspection'
|
|
54
55
|
}
|
|
@@ -122,6 +122,13 @@ describe('entity', () => {
|
|
|
122
122
|
/System property 'TRAILERS' cannot be declared/.test(error.message)
|
|
123
123
|
)
|
|
124
124
|
})
|
|
125
|
+
|
|
126
|
+
it('should not declare DISCARD', async () => {
|
|
127
|
+
manifest.entity.properties.DISCARD = { type: 'boolean' }
|
|
128
|
+
await assert.rejects(validate(manifest), (error) =>
|
|
129
|
+
/System property 'DISCARD' cannot be declared/.test(error.message)
|
|
130
|
+
)
|
|
131
|
+
})
|
|
125
132
|
})
|
|
126
133
|
|
|
127
134
|
describe('required', () => {
|
|
@@ -160,6 +167,13 @@ describe('entity', () => {
|
|
|
160
167
|
/must NOT be valid/.test(error.message)
|
|
161
168
|
)
|
|
162
169
|
})
|
|
170
|
+
|
|
171
|
+
it('should not name DISCARD', async () => {
|
|
172
|
+
manifest.entity.blank = { DISCARD: true }
|
|
173
|
+
await assert.rejects(validate(manifest), (error) =>
|
|
174
|
+
/must NOT be valid/.test(error.message)
|
|
175
|
+
)
|
|
176
|
+
})
|
|
163
177
|
})
|
|
164
178
|
})
|
|
165
179
|
|