@hot-updater/plugin-core 1.2.0-rc.42 → 1.2.0-rc.43
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/coreApi.d.cts
CHANGED
|
@@ -254,13 +254,28 @@ interface HotUpdaterCoreApi {
|
|
|
254
254
|
* builds of that key. With `scope.sandbox`, sandbox builds on any channel;
|
|
255
255
|
* without it, never one. A sandbox build's built-in bundle is no patch
|
|
256
256
|
* base, so with `builtInOlderThan` a sandbox scope answers null without a
|
|
257
|
-
* read.
|
|
257
|
+
* read. With `artifactKind`, only a build of that kind, with any other
|
|
258
|
+
* option. Alone, it reads the scope's builds of that kind, so a newer
|
|
259
|
+
* `.app` doesn't hide the scope's `.ipa`: one read, and when that finds
|
|
260
|
+
* none, a second of the scope's newest, kept only when it is of the kind.
|
|
261
|
+
* A key-value store holds no index copy of this for a row written before
|
|
262
|
+
* it, so such a row is found only while it is its scope's newest.
|
|
258
263
|
*/
|
|
259
264
|
findNativeBuild(scope: NativeBuildScope, options?: {
|
|
260
265
|
readonly buildKey?: string;
|
|
261
266
|
readonly storeBuild?: true;
|
|
262
267
|
readonly builtInOlderThan?: string;
|
|
268
|
+
readonly artifactKind?: NativeBuildArtifactKind;
|
|
263
269
|
}): Promise<NativeBuildRow | null>;
|
|
270
|
+
/**
|
|
271
|
+
* The newest build of the other install target of an iOS sandbox build's
|
|
272
|
+
* native code: its Simulator `.app` for a direct-install `.ipa`, or the
|
|
273
|
+
* reverse, of the same app ID, URL scheme and fingerprint or app version,
|
|
274
|
+
* on any channel. Null, with no read, for any other build, and for a store
|
|
275
|
+
* or store-marked build on either side. One read. The Console's build page
|
|
276
|
+
* offers it beside its install.
|
|
277
|
+
*/
|
|
278
|
+
findNativeBuildSibling(build: NativeBuildRow): Promise<NativeBuildRow | null>;
|
|
264
279
|
/**
|
|
265
280
|
* One page of native builds, by ID: oldest or newest first. With
|
|
266
281
|
* `channelId`, only the builds that embed that channel, also one read.
|
package/dist/coreApi.d.mts
CHANGED
|
@@ -254,13 +254,28 @@ interface HotUpdaterCoreApi {
|
|
|
254
254
|
* builds of that key. With `scope.sandbox`, sandbox builds on any channel;
|
|
255
255
|
* without it, never one. A sandbox build's built-in bundle is no patch
|
|
256
256
|
* base, so with `builtInOlderThan` a sandbox scope answers null without a
|
|
257
|
-
* read.
|
|
257
|
+
* read. With `artifactKind`, only a build of that kind, with any other
|
|
258
|
+
* option. Alone, it reads the scope's builds of that kind, so a newer
|
|
259
|
+
* `.app` doesn't hide the scope's `.ipa`: one read, and when that finds
|
|
260
|
+
* none, a second of the scope's newest, kept only when it is of the kind.
|
|
261
|
+
* A key-value store holds no index copy of this for a row written before
|
|
262
|
+
* it, so such a row is found only while it is its scope's newest.
|
|
258
263
|
*/
|
|
259
264
|
findNativeBuild(scope: NativeBuildScope, options?: {
|
|
260
265
|
readonly buildKey?: string;
|
|
261
266
|
readonly storeBuild?: true;
|
|
262
267
|
readonly builtInOlderThan?: string;
|
|
268
|
+
readonly artifactKind?: NativeBuildArtifactKind;
|
|
263
269
|
}): Promise<NativeBuildRow | null>;
|
|
270
|
+
/**
|
|
271
|
+
* The newest build of the other install target of an iOS sandbox build's
|
|
272
|
+
* native code: its Simulator `.app` for a direct-install `.ipa`, or the
|
|
273
|
+
* reverse, of the same app ID, URL scheme and fingerprint or app version,
|
|
274
|
+
* on any channel. Null, with no read, for any other build, and for a store
|
|
275
|
+
* or store-marked build on either side. One read. The Console's build page
|
|
276
|
+
* offers it beside its install.
|
|
277
|
+
*/
|
|
278
|
+
findNativeBuildSibling(build: NativeBuildRow): Promise<NativeBuildRow | null>;
|
|
264
279
|
/**
|
|
265
280
|
* One page of native builds, by ID: oldest or newest first. With
|
|
266
281
|
* `channelId`, only the builds that embed that channel, also one read.
|
|
@@ -417,6 +417,10 @@ declare const coreSchema: {
|
|
|
417
417
|
readonly eq: readonly ["scope_key", "build_key"];
|
|
418
418
|
readonly sort: readonly ["id"];
|
|
419
419
|
};
|
|
420
|
+
readonly byScopeKind: {
|
|
421
|
+
readonly eq: readonly ["scope_key", "artifact_kind"];
|
|
422
|
+
readonly sort: readonly ["id"];
|
|
423
|
+
};
|
|
420
424
|
readonly byStoreBuild: {
|
|
421
425
|
readonly eq: readonly ["store_build_scope_key"];
|
|
422
426
|
readonly sort: readonly [];
|
|
@@ -417,6 +417,10 @@ declare const coreSchema: {
|
|
|
417
417
|
readonly eq: readonly ["scope_key", "build_key"];
|
|
418
418
|
readonly sort: readonly ["id"];
|
|
419
419
|
};
|
|
420
|
+
readonly byScopeKind: {
|
|
421
|
+
readonly eq: readonly ["scope_key", "artifact_kind"];
|
|
422
|
+
readonly sort: readonly ["id"];
|
|
423
|
+
};
|
|
420
424
|
readonly byStoreBuild: {
|
|
421
425
|
readonly eq: readonly ["store_build_scope_key"];
|
|
422
426
|
readonly sort: readonly [];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hot-updater/plugin-core",
|
|
3
|
-
"version": "1.2.0-rc.
|
|
3
|
+
"version": "1.2.0-rc.43",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "React Native OTA solution for self-hosted",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"es-toolkit": "^1.32.0",
|
|
46
46
|
"mime": "^4.0.4",
|
|
47
47
|
"verkit": "0.4.0",
|
|
48
|
-
"@hot-updater/protocol": "1.2.0-rc.
|
|
48
|
+
"@hot-updater/protocol": "1.2.0-rc.43"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@electric-sql/pglite": "0.4.1",
|