@toa.io/operations 1.0.0-alpha.330 → 1.0.0-alpha.331

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.331](https://github.com/toa-io/toa/compare/v1.0.0-alpha.330...v1.0.0-alpha.331) (2026-10-16)
7
+
8
+ ### Bug Fixes
9
+
10
+ * **operations:** a deploy waited for is rolled back where it fails ([41ce1c5](https://github.com/toa-io/toa/commit/41ce1c5f462c5dcd78e138dba7c7cc4300e8e9fb))
11
+
12
+
6
13
  # [1.0.0-alpha.330](https://github.com/toa-io/toa/compare/v1.0.0-alpha.329...v1.0.0-alpha.330) (2026-10-15)
7
14
 
8
15
  **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.330",
3
+ "version": "1.0.0-alpha.331",
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.330",
32
32
  "@toa.io/kubernetes": "1.0.0-alpha.301",
33
- "@toa.io/norm": "1.0.0-alpha.330",
33
+ "@toa.io/norm": "1.0.0-alpha.331",
34
34
  "oxc-parser": "0.153.0",
35
35
  "paseto": "4.0.1"
36
36
  },
37
- "gitHead": "8d5b161d026b24ee1974005e1f418bc2b782fd3b"
37
+ "gitHead": "e7020d160910ca4f0c2ff9040b3cbb4fca8ea41f"
38
38
  }
@@ -68,7 +68,9 @@ export class Deployment {
68
68
  const args = []
69
69
 
70
70
  if (options.namespace !== undefined) args.push('-n', options.namespace)
71
- if (options.wait === true) args.push('--wait')
71
+ // an upgrade waited for and failed — or timed out — is rolled back, rather than left pending:
72
+ // a pending release refuses every upgrade after it
73
+ if (options.wait === true) args.push('--wait', '--atomic')
72
74
  if (options.timeout !== undefined) args.push('--timeout', options.timeout)
73
75
 
74
76
  await this.#update()