@toa.io/boot 1.0.0-alpha.291 → 1.0.0-alpha.292

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,15 @@
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.292](https://github.com/toa-io/toa/compare/v1.0.0-alpha.291...v1.0.0-alpha.292) (2026-09-07)
7
+
8
+ ### Features
9
+
10
+ * **definitions:** the version of Toa is the definitions package's ([3d0272e](https://github.com/toa-io/toa/commit/3d0272ea0ab862f4b6c2e58a2f003f92d0f8a87f))
11
+ * **definitions:** what a package declares is read from one package ([7052341](https://github.com/toa-io/toa/commit/70523411b5d9e2b204c999aa02365173f3bb518d))
12
+ * **norm:** a package's definition is read by one resolver ([bffd41c](https://github.com/toa-io/toa/commit/bffd41c8d18c42786b0bf321623088b9dabc4724))
13
+
14
+
6
15
  # [1.0.0-alpha.291](https://github.com/toa-io/toa/compare/v1.0.0-alpha.290...v1.0.0-alpha.291) (2026-09-07)
7
16
 
8
17
  **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.291",
3
+ "version": "1.0.0-alpha.292",
4
4
  "type": "module",
5
5
  "description": "Toa Boot",
6
6
  "author": "temich <tema.gurtovoy@gmail.com>",
@@ -21,14 +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.291",
25
- "@toa.io/core": "1.0.0-alpha.291",
26
- "@toa.io/generic": "1.0.0-alpha.291",
27
- "@toa.io/norm": "1.0.0-alpha.291",
28
- "@toa.io/schemas": "1.0.0-alpha.291",
24
+ "@toa.io/atomicity": "1.0.0-alpha.292",
25
+ "@toa.io/core": "1.0.0-alpha.292",
26
+ "@toa.io/definitions": "1.0.0-alpha.292",
27
+ "@toa.io/generic": "1.0.0-alpha.292",
28
+ "@toa.io/norm": "1.0.0-alpha.292",
29
+ "@toa.io/schemas": "1.0.0-alpha.292",
29
30
  "clone-deep": "4.0.1",
30
31
  "dotenv": "17.4.2",
31
32
  "openspan": "1.0.0-alpha.286"
32
33
  },
33
- "gitHead": "bcd8d8d07bd3e64fc826af8719472404662cc37f"
34
+ "gitHead": "0f6aa3ad9dbec86bb632a7975ea61d1dde1d8fc5"
34
35
  }
@@ -1,3 +1,4 @@
1
+ import { definition } from '@toa.io/norm'
1
2
  import { LOOP } from './constants.js'
2
3
  import { factory } from './factory.js'
3
4
 
@@ -8,7 +9,7 @@ export const produce = async (component, operations) => {
8
9
  for (const [binding, endpoints] of group(operations)) {
9
10
  const made = await factory(binding)
10
11
  const producer = made.producer(component.locator, endpoints, component)
11
- const { properties } = await import(binding)
12
+ const { properties } = (await definition(binding)).module
12
13
 
13
14
  if (properties.local === true) local.push(producer)
14
15
  else other.push(producer)
@@ -1,6 +1,6 @@
1
1
  import { console } from 'openspan'
2
2
  import { Composition } from '@toa.io/core'
3
- import { version } from '@toa.io/runtime'
3
+ import { version } from '@toa.io/definitions'
4
4
  import { environment } from '@toa.io/generic'
5
5
 
6
6
  import * as boot from './index.js'
package/src/manifest.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import clone from 'clone-deep'
2
2
  import { basename } from 'node:path'
3
3
  import { merge } from '@toa.io/generic'
4
- import { component as load } from '@toa.io/norm'
4
+ import { component as load, definition } from '@toa.io/norm'
5
5
  import { Locator } from '@toa.io/core'
6
6
 
7
7
  import { span } from './span.js'
@@ -24,7 +24,7 @@ export const manifest = async (path, options = {}) => {
24
24
  let asyncBinding
25
25
 
26
26
  for (const binding of options.bindings) {
27
- const { properties } = await import(binding)
27
+ const { properties } = (await definition(binding)).module
28
28
 
29
29
  if (properties?.async === true) {
30
30
  asyncBinding = binding
@@ -3,7 +3,12 @@ import assert from 'node:assert/strict'
3
3
 
4
4
  import { generate } from 'randomstring'
5
5
 
6
- mock.module('@toa.io/norm', { namedExports: { component: () => mockComponent() } })
6
+ mock.module('@toa.io/norm', {
7
+ namedExports: {
8
+ component: () => mockComponent(),
9
+ definition: async () => ({ module: {} })
10
+ }
11
+ })
7
12
 
8
13
  const { manifest } = await import('./manifest.js')
9
14