@capawesome/cli 3.2.2 → 3.3.0
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
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [commit-and-tag-version](https://github.com/absolute-version/commit-and-tag-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
## [3.3.0](https://github.com/capawesome-team/cli/compare/v3.2.2...v3.3.0) (2025-10-03)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* **apps:bundles:create:** add `--android-eq` and `--ios-eq` options ([#87](https://github.com/capawesome-team/cli/issues/87)) ([ca6c9f1](https://github.com/capawesome-team/cli/commit/ca6c9f11e37ef1dc4d636e660bc0f4227b469710))
|
|
11
|
+
|
|
5
12
|
## [3.2.2](https://github.com/capawesome-team/cli/compare/v3.2.1...v3.2.2) (2025-09-29)
|
|
6
13
|
|
|
7
14
|
|
|
@@ -28,6 +28,10 @@ export default defineCommand({
|
|
|
28
28
|
.string()
|
|
29
29
|
.optional()
|
|
30
30
|
.describe('The minimum Android version code (`versionCode`) that the bundle supports.'),
|
|
31
|
+
androidEq: z.coerce
|
|
32
|
+
.string()
|
|
33
|
+
.optional()
|
|
34
|
+
.describe('The exact Android version code (`versionCode`) that the bundle does not support.'),
|
|
31
35
|
appId: z
|
|
32
36
|
.string({
|
|
33
37
|
message: 'App ID must be a UUID.',
|
|
@@ -69,6 +73,10 @@ export default defineCommand({
|
|
|
69
73
|
.string()
|
|
70
74
|
.optional()
|
|
71
75
|
.describe('The minimum iOS bundle version (`CFBundleVersion`) that the bundle supports.'),
|
|
76
|
+
iosEq: z
|
|
77
|
+
.string()
|
|
78
|
+
.optional()
|
|
79
|
+
.describe('The exact iOS bundle version (`CFBundleVersion`) that the bundle does not support.'),
|
|
72
80
|
path: z
|
|
73
81
|
.string()
|
|
74
82
|
.optional()
|
|
@@ -89,7 +97,7 @@ export default defineCommand({
|
|
|
89
97
|
url: z.string().optional().describe('The url to the self-hosted bundle file.'),
|
|
90
98
|
})),
|
|
91
99
|
action: async (options, args) => {
|
|
92
|
-
let { androidMax, androidMin, appId, artifactType, channel, commitMessage, commitRef, commitSha, customProperty, expiresInDays, iosMax, iosMin, path, privateKey, rollout, url, } = options;
|
|
100
|
+
let { androidEq, androidMax, androidMin, appId, artifactType, channel, commitMessage, commitRef, commitSha, customProperty, expiresInDays, iosEq, iosMax, iosMin, path, privateKey, rollout, url, } = options;
|
|
93
101
|
// Check if the user is logged in
|
|
94
102
|
if (!authorizationService.hasAuthorizationToken()) {
|
|
95
103
|
consola.error('You must be logged in to run this command.');
|
|
@@ -259,6 +267,8 @@ export default defineCommand({
|
|
|
259
267
|
artifactType,
|
|
260
268
|
channelName: channel,
|
|
261
269
|
checksum,
|
|
270
|
+
eqAndroidAppVersionCode: androidEq,
|
|
271
|
+
eqIosAppVersionCode: iosEq,
|
|
262
272
|
gitCommitMessage: commitMessage,
|
|
263
273
|
gitCommitRef: commitRef,
|
|
264
274
|
gitCommitSha: commitSha,
|
|
@@ -18,6 +18,10 @@ export default defineCommand({
|
|
|
18
18
|
.string()
|
|
19
19
|
.optional()
|
|
20
20
|
.describe('The minimum Android version code (`versionCode`) that the bundle supports.'),
|
|
21
|
+
androidEq: z
|
|
22
|
+
.string()
|
|
23
|
+
.optional()
|
|
24
|
+
.describe('The exact Android version code (`versionCode`) that the bundle should not support.'),
|
|
21
25
|
appId: z.string().optional().describe('ID of the app.'),
|
|
22
26
|
bundleId: z.string().optional().describe('ID of the bundle.'),
|
|
23
27
|
rollout: z.coerce
|
|
@@ -36,9 +40,13 @@ export default defineCommand({
|
|
|
36
40
|
.string()
|
|
37
41
|
.optional()
|
|
38
42
|
.describe('The minimum iOS bundle version (`CFBundleVersion`) that the bundle supports.'),
|
|
43
|
+
iosEq: z
|
|
44
|
+
.string()
|
|
45
|
+
.optional()
|
|
46
|
+
.describe('The exact iOS bundle version (`CFBundleVersion`) that the bundle should not support.'),
|
|
39
47
|
})),
|
|
40
48
|
action: async (options, args) => {
|
|
41
|
-
let { androidMax, androidMin, appId, bundleId, rollout, iosMax, iosMin } = options;
|
|
49
|
+
let { androidMax, androidMin, androidEq, appId, bundleId, rollout, iosMax, iosMin, iosEq } = options;
|
|
42
50
|
if (!authorizationService.hasAuthorizationToken()) {
|
|
43
51
|
consola.error('You must be logged in to run this command.');
|
|
44
52
|
process.exit(1);
|
|
@@ -93,6 +101,8 @@ export default defineCommand({
|
|
|
93
101
|
maxIosAppVersionCode: iosMax,
|
|
94
102
|
minAndroidAppVersionCode: androidMin,
|
|
95
103
|
minIosAppVersionCode: iosMin,
|
|
104
|
+
eqAndroidAppVersionCode: androidEq,
|
|
105
|
+
eqIosAppVersionCode: iosEq,
|
|
96
106
|
rolloutPercentage: rollout,
|
|
97
107
|
});
|
|
98
108
|
consola.success('Bundle updated successfully.');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capawesome/cli",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.3.0",
|
|
4
4
|
"description": "The Capawesome Cloud Command Line Interface (CLI) to manage Live Updates and more.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
"sentry:releases:set-commits": "sentry-cli releases set-commits capawesome-team-cli@$npm_package_version --auto --org genz-it-solutions-gmbh --project capawesome-team-cli",
|
|
17
17
|
"sentry:releases:finalize": "sentry-cli releases finalize capawesome-team-cli@$npm_package_version --org genz-it-solutions-gmbh --project capawesome-team-cli",
|
|
18
18
|
"release": "commit-and-tag-version",
|
|
19
|
+
"prepublishOnly": "npm run build && npm run sentry:releases:new && npm run sentry:releases:set-commits",
|
|
19
20
|
"postpublish": "npm run sentry:releases:finalize"
|
|
20
21
|
},
|
|
21
22
|
"engines": {
|