@absolutejs/absolute 0.20.0-beta.86 → 0.20.0-beta.87
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/dist/angular/components/core/streamingSlotRegistrar.js +1 -1
- package/dist/angular/components/core/streamingSlotRegistry.js +2 -2
- package/dist/build.js +350 -33
- package/dist/build.js.map +5 -5
- package/dist/cli/{compile-e9cn3xpx.js → compile-5hchbcbd.js} +2 -2
- package/dist/cli/{config-z2kf085h.js → config-vy04mqce.js} +1 -1
- package/dist/cli/{dev-3hweza3s.js → dev-6shm8qsn.js} +1 -1
- package/dist/cli/{index-9rk7v35t.js → index-39j0dhq7.js} +2 -2
- package/dist/cli/{index-x48brywr.js → index-jqdt7841.js} +1 -1
- package/dist/cli/{index-3tsmbyze.js → index-rd2hbttb.js} +45 -0
- package/dist/cli/index.js +5 -5
- package/dist/cli/{mobile-2p3z33t1.js → mobile-c94a5y9k.js} +141 -23
- package/dist/cli/{start-7t186mhg.js → start-7jg0csqy.js} +3 -3
- package/dist/index.js +350 -33
- package/dist/index.js.map +5 -5
- package/dist/mobile/index.js +396 -41
- package/dist/mobile/index.js.map +6 -6
- package/dist/mobile/remoteMacAgentEntry.js +167 -167
- package/dist/src/mobile/config.d.ts +9 -0
- package/dist/src/mobile/updatePublisher.d.ts +67 -1
- package/dist/src/mobile/updateServer.d.ts +18 -0
- package/dist/types/build.d.ts +16 -0
- package/package.json +2 -2
|
@@ -41,6 +41,15 @@ export type NormalizedAbsoluteMobileConfig = {
|
|
|
41
41
|
minimumReports: number;
|
|
42
42
|
secretEnv: string;
|
|
43
43
|
};
|
|
44
|
+
rollout?: {
|
|
45
|
+
automatic: boolean;
|
|
46
|
+
stages: {
|
|
47
|
+
maximumFailureRate: number;
|
|
48
|
+
minimumReports: number;
|
|
49
|
+
observationMs: number;
|
|
50
|
+
rollout: number;
|
|
51
|
+
}[];
|
|
52
|
+
};
|
|
44
53
|
expoCodeSigningKeys: Record<string, {
|
|
45
54
|
certificatePem: string;
|
|
46
55
|
privateKeyEnv: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { MobileUpdateHealthReport, MobileUpdatePruneOptions, MobileUpdatePruneResult, MobileUpdateRetentionOptions, MobileUpdateStorageReport } from '@absolutejs/deploy/mobile-update';
|
|
1
|
+
import type { MobileUpdateHealthReport, MobileUpdatePruneOptions, MobileUpdatePruneResult, MobileUpdateRetentionOptions, MobileUpdateRolloutReport, MobileUpdateStorageReport } from '@absolutejs/deploy/mobile-update';
|
|
2
2
|
import { readAbsoluteMobileUpdate } from './updateSigning';
|
|
3
3
|
export type AbsoluteMobileUpdatePublication = {
|
|
4
4
|
appId: string;
|
|
@@ -26,11 +26,31 @@ export type AbsoluteMobileUpdateRollback = {
|
|
|
26
26
|
stage: 'rolled-back';
|
|
27
27
|
};
|
|
28
28
|
export type AbsoluteMobileUpdatePublisher = {
|
|
29
|
+
advanceUpdateRollout?: (options: {
|
|
30
|
+
appId: string;
|
|
31
|
+
channel: string;
|
|
32
|
+
rollout?: number;
|
|
33
|
+
signal?: AbortSignal;
|
|
34
|
+
}) => Promise<MobileUpdateRolloutReport>;
|
|
35
|
+
cancelUpdateRollout?: (options: {
|
|
36
|
+
appId: string;
|
|
37
|
+
channel: string;
|
|
38
|
+
signal?: AbortSignal;
|
|
39
|
+
}) => Promise<MobileUpdateRolloutReport>;
|
|
29
40
|
inspectUpdateHealth?: (options: {
|
|
30
41
|
appId: string;
|
|
31
42
|
channel: string;
|
|
32
43
|
releaseId?: string;
|
|
33
44
|
}) => Promise<MobileUpdateHealthReport | null>;
|
|
45
|
+
inspectUpdateRollout?: (options: {
|
|
46
|
+
appId: string;
|
|
47
|
+
channel: string;
|
|
48
|
+
}) => Promise<MobileUpdateRolloutReport | null>;
|
|
49
|
+
pauseUpdateRollout?: (options: {
|
|
50
|
+
appId: string;
|
|
51
|
+
channel: string;
|
|
52
|
+
signal?: AbortSignal;
|
|
53
|
+
}) => Promise<MobileUpdateRolloutReport>;
|
|
34
54
|
inspectUpdateStorage?: (options: MobileUpdateRetentionOptions) => Promise<MobileUpdateStorageReport>;
|
|
35
55
|
pruneUpdates?: (options: MobileUpdatePruneOptions) => Promise<MobileUpdatePruneResult>;
|
|
36
56
|
publishUpdate(options: {
|
|
@@ -52,6 +72,16 @@ export type AbsoluteMobileUpdatePublisher = {
|
|
|
52
72
|
releaseId?: string;
|
|
53
73
|
signal?: AbortSignal;
|
|
54
74
|
}): Promise<AbsoluteMobileUpdateRollback>;
|
|
75
|
+
reconcileUpdateRollout?: (options: {
|
|
76
|
+
appId: string;
|
|
77
|
+
channel: string;
|
|
78
|
+
signal?: AbortSignal;
|
|
79
|
+
}) => Promise<MobileUpdateRolloutReport | null>;
|
|
80
|
+
resumeUpdateRollout?: (options: {
|
|
81
|
+
appId: string;
|
|
82
|
+
channel: string;
|
|
83
|
+
signal?: AbortSignal;
|
|
84
|
+
}) => Promise<MobileUpdateRolloutReport>;
|
|
55
85
|
};
|
|
56
86
|
export declare const inspectAbsoluteMobileUpdateHealth: (options: {
|
|
57
87
|
appId: string;
|
|
@@ -59,6 +89,42 @@ export declare const inspectAbsoluteMobileUpdateHealth: (options: {
|
|
|
59
89
|
publisher: AbsoluteMobileUpdatePublisher;
|
|
60
90
|
releaseId?: string;
|
|
61
91
|
}) => Promise<MobileUpdateHealthReport | null>;
|
|
92
|
+
export declare const inspectAbsoluteMobileUpdateRollout: (options: {
|
|
93
|
+
appId: string;
|
|
94
|
+
channel: string;
|
|
95
|
+
publisher: AbsoluteMobileUpdatePublisher;
|
|
96
|
+
}) => Promise<MobileUpdateRolloutReport | null>;
|
|
97
|
+
export declare const advanceAbsoluteMobileUpdateRollout: (options: {
|
|
98
|
+
appId: string;
|
|
99
|
+
channel: string;
|
|
100
|
+
publisher: AbsoluteMobileUpdatePublisher;
|
|
101
|
+
rollout?: number;
|
|
102
|
+
signal?: AbortSignal;
|
|
103
|
+
}) => Promise<MobileUpdateRolloutReport>;
|
|
104
|
+
export declare const cancelAbsoluteMobileUpdateRollout: (options: {
|
|
105
|
+
appId: string;
|
|
106
|
+
channel: string;
|
|
107
|
+
publisher: AbsoluteMobileUpdatePublisher;
|
|
108
|
+
signal?: AbortSignal;
|
|
109
|
+
}) => Promise<MobileUpdateRolloutReport>;
|
|
110
|
+
export declare const pauseAbsoluteMobileUpdateRollout: (options: {
|
|
111
|
+
appId: string;
|
|
112
|
+
channel: string;
|
|
113
|
+
publisher: AbsoluteMobileUpdatePublisher;
|
|
114
|
+
signal?: AbortSignal;
|
|
115
|
+
}) => Promise<MobileUpdateRolloutReport>;
|
|
116
|
+
export declare const reconcileAbsoluteMobileUpdateRollout: (options: {
|
|
117
|
+
appId: string;
|
|
118
|
+
channel: string;
|
|
119
|
+
publisher: AbsoluteMobileUpdatePublisher;
|
|
120
|
+
signal?: AbortSignal;
|
|
121
|
+
}) => Promise<MobileUpdateRolloutReport | null>;
|
|
122
|
+
export declare const resumeAbsoluteMobileUpdateRollout: (options: {
|
|
123
|
+
appId: string;
|
|
124
|
+
channel: string;
|
|
125
|
+
publisher: AbsoluteMobileUpdatePublisher;
|
|
126
|
+
signal?: AbortSignal;
|
|
127
|
+
}) => Promise<MobileUpdateRolloutReport>;
|
|
62
128
|
export declare const inspectAbsoluteMobileUpdateStorage: (options: {
|
|
63
129
|
appId: string;
|
|
64
130
|
minAgeMs?: number;
|
|
@@ -27,6 +27,15 @@ export declare const renderAbsoluteMobileUpdateRegistry: (options: {
|
|
|
27
27
|
minimumReports: number;
|
|
28
28
|
secretEnv: string;
|
|
29
29
|
};
|
|
30
|
+
rollout?: {
|
|
31
|
+
automatic: boolean;
|
|
32
|
+
stages: {
|
|
33
|
+
maximumFailureRate: number;
|
|
34
|
+
minimumReports: number;
|
|
35
|
+
observationMs: number;
|
|
36
|
+
rollout: number;
|
|
37
|
+
}[];
|
|
38
|
+
};
|
|
30
39
|
publicKeys: Readonly<Record<string, string>>;
|
|
31
40
|
storage: "local" | "s3";
|
|
32
41
|
}) => string;
|
|
@@ -37,6 +46,15 @@ export declare const writeAbsoluteMobileUpdateRegistry: (options: {
|
|
|
37
46
|
minimumReports: number;
|
|
38
47
|
secretEnv: string;
|
|
39
48
|
};
|
|
49
|
+
rollout?: {
|
|
50
|
+
automatic: boolean;
|
|
51
|
+
stages: {
|
|
52
|
+
maximumFailureRate: number;
|
|
53
|
+
minimumReports: number;
|
|
54
|
+
observationMs: number;
|
|
55
|
+
rollout: number;
|
|
56
|
+
}[];
|
|
57
|
+
};
|
|
40
58
|
modulePath?: string;
|
|
41
59
|
projectRoot: string;
|
|
42
60
|
publicKeys: Readonly<Record<string, string>>;
|
package/dist/types/build.d.ts
CHANGED
|
@@ -120,6 +120,22 @@ type MobileSharedConfig = {
|
|
|
120
120
|
/** Trusted-server secret environment variable. */
|
|
121
121
|
secretEnv?: string;
|
|
122
122
|
};
|
|
123
|
+
/** Health-gated staged rollout orchestration. Disabled unless configured. */
|
|
124
|
+
rollout?: false | {
|
|
125
|
+
/** Advance qualifying stages from health reports. Defaults to false. */
|
|
126
|
+
automatic?: boolean;
|
|
127
|
+
/** Defaults to recommended 5%, 25%, and 100% stages. */
|
|
128
|
+
stages?: readonly {
|
|
129
|
+
/** Failure ceiling for advancement. Defaults to 0.05. */
|
|
130
|
+
maximumFailureRate?: number;
|
|
131
|
+
/** Cumulative terminal reports required. Defaults to 20. */
|
|
132
|
+
minimumReports?: number;
|
|
133
|
+
/** Time at this stage before advancement. Defaults to 60 minutes. */
|
|
134
|
+
observationMinutes?: number;
|
|
135
|
+
/** Installation cohort fraction, greater than 0 and at most 1. */
|
|
136
|
+
rollout: number;
|
|
137
|
+
}[];
|
|
138
|
+
};
|
|
123
139
|
/** Project-relative registry module. Defaults to `mobile.update.ts`. */
|
|
124
140
|
registry?: string;
|
|
125
141
|
/** Environment variable containing the Expo RSA private key PEM. */
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"@absolutejs/auth": ">=0.75.0 <0.77.0",
|
|
11
11
|
"@absolutejs/beacon": ">=0.7.0-beta.4 <0.8.0",
|
|
12
|
-
"@absolutejs/deploy": "0.25.
|
|
12
|
+
"@absolutejs/deploy": "0.25.13",
|
|
13
13
|
"@absolutejs/devices": "0.7.0",
|
|
14
14
|
"@absolutejs/devices-capacitor": "0.8.0",
|
|
15
15
|
"@absolutejs/devices-expo": "0.0.2",
|
|
@@ -523,7 +523,7 @@
|
|
|
523
523
|
]
|
|
524
524
|
}
|
|
525
525
|
},
|
|
526
|
-
"version": "0.20.0-beta.
|
|
526
|
+
"version": "0.20.0-beta.87",
|
|
527
527
|
"workspaces": [
|
|
528
528
|
"tests/fixtures/*",
|
|
529
529
|
"tests/fixtures/_packages/*"
|