@toa.io/operations 1.0.0-alpha.259 → 1.0.0-alpha.261

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,17 @@
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.261](https://github.com/toa-io/toa/compare/v1.0.0-alpha.260...v1.0.0-alpha.261) (2026-08-26)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **operations:** include extension pointer variables in --mono ([f8be23d](https://github.com/toa-io/toa/commit/f8be23d2aaf7bbe1b0580101c8bf4d32c3cab99f))
12
+
13
+
14
+
15
+
16
+
6
17
  # [1.0.0-alpha.259](https://github.com/toa-io/toa/compare/v1.0.0-alpha.258...v1.0.0-alpha.259) (2026-08-24)
7
18
 
8
19
  **Note:** Version bump only for package @toa.io/operations
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@toa.io/operations",
3
- "version": "1.0.0-alpha.259",
3
+ "version": "1.0.0-alpha.261",
4
4
  "description": "Toa Deployment",
5
5
  "homepage": "https://toa.io",
6
6
  "author": {
@@ -34,5 +34,5 @@
34
34
  "execa": "5.1.1",
35
35
  "fs-extra": "11.1.1"
36
36
  },
37
- "gitHead": "3f557c2f855f078163128c317e7cb2f3629968aa"
37
+ "gitHead": "0351da80ae8f1757c950a6787521941931d400c4"
38
38
  }
@@ -1,13 +1,13 @@
1
1
  'use strict'
2
2
 
3
- function addMounts (composition, mounts) {
3
+ function addMounts (composition, mounts, keys = composition.components) {
4
4
  if (mounts === undefined)
5
5
  return
6
6
 
7
7
  const used = new Set()
8
8
 
9
9
  for (const [key, mount] of Object.entries(mounts)) {
10
- if (key !== 'global' && !composition.components?.includes(key))
10
+ if (key !== 'global' && !keys?.includes(key))
11
11
  continue
12
12
 
13
13
  for (const { name, path, claim } of mount) {
@@ -1,12 +1,12 @@
1
1
  'use strict'
2
2
 
3
- function addVariables (composition, variables) {
3
+ function addVariables (composition, variables, keys = composition.components) {
4
4
  composition.variables ??= []
5
5
 
6
6
  const used = new Set(composition.variables.map((variable) => variable.name))
7
7
 
8
8
  for (const [key, set] of Object.entries(variables)) {
9
- if (key !== 'global' && !composition.components?.includes(key))
9
+ if (key !== 'global' && !keys?.includes(key))
10
10
  continue
11
11
 
12
12
  for (const variable of set) {
@@ -51,6 +51,9 @@ const describe = (context, compositions, dependency, image) => {
51
51
  function unit (context, dependency) {
52
52
  const components = (context.components ?? []).map((component) => component.locator.label)
53
53
 
54
+ const variables = dependency.variables ?? {}
55
+ const mounts = dependency.mounts ?? {}
56
+
54
57
  const mono = {
55
58
  replicas: context.mono?.replicas,
56
59
  resources: context.mono?.resources,
@@ -58,8 +61,8 @@ function unit (context, dependency) {
58
61
  variables: []
59
62
  }
60
63
 
61
- addVariables(mono, dependency.variables ?? {})
62
- addMounts(mono, dependency.mounts)
64
+ addVariables(mono, variables, Object.keys(variables))
65
+ addMounts(mono, dependency.mounts, Object.keys(mounts))
63
66
 
64
67
  for (const service of dependency.services ?? []) {
65
68
  if (service.variables !== undefined)