@toa.io/operations 1.0.0-alpha.311 → 1.0.0-alpha.312

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,14 @@
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.312](https://github.com/toa-io/toa/compare/v1.0.0-alpha.311...v1.0.0-alpha.312) (2026-09-18)
7
+
8
+ ### Features
9
+
10
+ * **operations:** point a component's service at the port a streamed call is served on ([dbad630](https://github.com/toa-io/toa/commit/dbad630f765d5c1d50b3eda65768352905149c0c))
11
+ * **operations:** refuse to render a chart for a context with no version ([d6cd083](https://github.com/toa-io/toa/commit/d6cd083bfe8d7da9f3d451c2c25d821eb41ce958))
12
+
13
+
6
14
  # [1.0.0-alpha.311](https://github.com/toa-io/toa/compare/v1.0.0-alpha.310...v1.0.0-alpha.311) (2026-09-17)
7
15
 
8
16
  **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.311",
3
+ "version": "1.0.0-alpha.312",
4
4
  "type": "module",
5
5
  "description": "Toa Deployment",
6
6
  "homepage": "https://toa.io",
@@ -30,9 +30,9 @@
30
30
  "dependencies": {
31
31
  "@toa.io/generic": "1.0.0-alpha.311",
32
32
  "@toa.io/kubernetes": "1.0.0-alpha.301",
33
- "@toa.io/norm": "1.0.0-alpha.311",
33
+ "@toa.io/norm": "1.0.0-alpha.312",
34
34
  "oxc-parser": "0.149.0",
35
35
  "paseto": "4.0.1"
36
36
  },
37
- "gitHead": "4f45061964e275296a27ff8ff39f757ce27d4008"
37
+ "gitHead": "3cdff9b9779eeb6ae83913fefc0b502a10a0236a"
38
38
  }
package/readme.md CHANGED
@@ -3,8 +3,8 @@
3
3
  ## Installing
4
4
 
5
5
  `toa deploy`, `toa build`, `toa push`, `toa env`, `toa export` and `toa conceal` need this package
6
- beside the CLI; the runtime does not carry it, and a container that runs a composition cannot
7
- deploy one. An application that deploys lists it with the runtime:
6
+ beside the CLI. The runtime does not depend on it, so an application that deploys lists it with the
7
+ runtime:
8
8
 
9
9
  ```shell
10
10
  $ npm i -D @toa.io/runtime @toa.io/operations
@@ -8,9 +8,10 @@ spec:
8
8
  selector:
9
9
  toa/component-{{ . }}: "1"
10
10
  ports:
11
+ # what a streamed call is dialled at; see documentation/ports.md
11
12
  - name: http-binding
12
13
  protocol: TCP
13
- port: 3000
14
- targetPort: 3000
14
+ port: 8005
15
+ targetPort: 8005
15
16
  ---
16
17
  {{- end }}
@@ -24,6 +24,17 @@ export class Deployment {
24
24
  }
25
25
 
26
26
  async export(target) {
27
+ // a context is read for a local run as well — `toa env` builds one of these and asks it
28
+ // for variables — and such a context needs no chart and states no version. So this is
29
+ // asked for where a chart is written, and not where a context is read. Without it Helm
30
+ // answers `chart.metadata.version is required`, naming nothing, by which point a deploy
31
+ // has built and pushed every image.
32
+ if (this.#chart.version === undefined)
33
+ throw new Error(
34
+ `Context '${this.#chart.name}' declares no version, which is what its chart is ` +
35
+ 'versioned by. Declare it in context.toa.yaml.'
36
+ )
37
+
27
38
  const chart = dump(this.#chart)
28
39
  const values = dump(this.#values)
29
40