@hot-updater/protocol 1.0.0-rc.29 → 1.0.0-rc.30
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/index.d.cts +1 -12
- package/dist/index.d.mts +1 -12
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -133,7 +133,7 @@ type UpdateStrategy = "fingerprint" | "appVersion";
|
|
|
133
133
|
/** How an update moves the app's selection. */
|
|
134
134
|
type ReleaseTransitionKind = "INSTALL" | "ADOPT_RELEASE" | "USE_EMBEDDED" | "USE_BUILTIN";
|
|
135
135
|
/** The launch outcome native reports once per JavaScript runtime. */
|
|
136
|
-
type AppReadyResult =
|
|
136
|
+
type AppReadyResult = {
|
|
137
137
|
/** No update was applied or recovered at this launch. */
|
|
138
138
|
readonly status: "UNCHANGED";
|
|
139
139
|
readonly channel: string;
|
|
@@ -153,15 +153,6 @@ type AppReadyResult = ({
|
|
|
153
153
|
readonly toBundleId: string;
|
|
154
154
|
readonly toReleaseId: string | null;
|
|
155
155
|
readonly updateStrategy: UpdateStrategy;
|
|
156
|
-
}) & {
|
|
157
|
-
/**
|
|
158
|
-
* Android 11+: why the app's previous main process exited, the
|
|
159
|
-
* `ApplicationExitInfo` reason without its `REASON_` prefix, such as
|
|
160
|
-
* `CRASH`, `ANR`, `LOW_MEMORY`, or `USER_REQUESTED`. Null on iOS and on
|
|
161
|
-
* older Android. It tells a crash from the system or the user closing the
|
|
162
|
-
* app.
|
|
163
|
-
*/
|
|
164
|
-
readonly previousProcessExit: string | null;
|
|
165
156
|
};
|
|
166
157
|
/** What an update check found. */
|
|
167
158
|
type UpdateCheckResult = {
|
|
@@ -233,8 +224,6 @@ interface UpdateError {
|
|
|
233
224
|
readonly originCode?: string;
|
|
234
225
|
/** Why no response arrived, for a `network` failure, when the SDK knows. */
|
|
235
226
|
readonly transport?: UpdateErrorTransport;
|
|
236
|
-
/** Android 11+: why the previous main process exited (see `AppReadyResult`). */
|
|
237
|
-
readonly previousProcessExit?: string;
|
|
238
227
|
/** The bundle the update targeted; absent for the check stage. */
|
|
239
228
|
readonly targetBundleId?: string;
|
|
240
229
|
/** The Release the update targeted, when it names one. */
|
package/dist/index.d.mts
CHANGED
|
@@ -133,7 +133,7 @@ type UpdateStrategy = "fingerprint" | "appVersion";
|
|
|
133
133
|
/** How an update moves the app's selection. */
|
|
134
134
|
type ReleaseTransitionKind = "INSTALL" | "ADOPT_RELEASE" | "USE_EMBEDDED" | "USE_BUILTIN";
|
|
135
135
|
/** The launch outcome native reports once per JavaScript runtime. */
|
|
136
|
-
type AppReadyResult =
|
|
136
|
+
type AppReadyResult = {
|
|
137
137
|
/** No update was applied or recovered at this launch. */
|
|
138
138
|
readonly status: "UNCHANGED";
|
|
139
139
|
readonly channel: string;
|
|
@@ -153,15 +153,6 @@ type AppReadyResult = ({
|
|
|
153
153
|
readonly toBundleId: string;
|
|
154
154
|
readonly toReleaseId: string | null;
|
|
155
155
|
readonly updateStrategy: UpdateStrategy;
|
|
156
|
-
}) & {
|
|
157
|
-
/**
|
|
158
|
-
* Android 11+: why the app's previous main process exited, the
|
|
159
|
-
* `ApplicationExitInfo` reason without its `REASON_` prefix, such as
|
|
160
|
-
* `CRASH`, `ANR`, `LOW_MEMORY`, or `USER_REQUESTED`. Null on iOS and on
|
|
161
|
-
* older Android. It tells a crash from the system or the user closing the
|
|
162
|
-
* app.
|
|
163
|
-
*/
|
|
164
|
-
readonly previousProcessExit: string | null;
|
|
165
156
|
};
|
|
166
157
|
/** What an update check found. */
|
|
167
158
|
type UpdateCheckResult = {
|
|
@@ -233,8 +224,6 @@ interface UpdateError {
|
|
|
233
224
|
readonly originCode?: string;
|
|
234
225
|
/** Why no response arrived, for a `network` failure, when the SDK knows. */
|
|
235
226
|
readonly transport?: UpdateErrorTransport;
|
|
236
|
-
/** Android 11+: why the previous main process exited (see `AppReadyResult`). */
|
|
237
|
-
readonly previousProcessExit?: string;
|
|
238
227
|
/** The bundle the update targeted; absent for the check stage. */
|
|
239
228
|
readonly targetBundleId?: string;
|
|
240
229
|
/** The Release the update targeted, when it names one. */
|