@hot-updater/plugin-core 1.2.0-rc.34 → 1.2.0-rc.35
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 +10 -3
- package/dist/coreApi.d.mts +10 -3
- package/package.json +2 -2
package/dist/coreApi.d.cts
CHANGED
|
@@ -214,7 +214,8 @@ interface HotUpdaterCoreApi {
|
|
|
214
214
|
* scope whose built-in bundle is older than that bundle: one read when the
|
|
215
215
|
* newest is, and then a page of older builds per read until one is, when
|
|
216
216
|
* builds made after the bundle are in the way. With `buildKey` too, only
|
|
217
|
-
* builds of that key.
|
|
217
|
+
* builds of that key. A sandbox build's built-in bundle is no patch base, so
|
|
218
|
+
* with `builtInOlderThan` a sandbox scope answers null without a read.
|
|
218
219
|
*/
|
|
219
220
|
findNativeBuild(scope: NativeBuildScope, options?: {
|
|
220
221
|
readonly buildKey?: string;
|
|
@@ -231,7 +232,9 @@ interface HotUpdaterCoreApi {
|
|
|
231
232
|
/**
|
|
232
233
|
* Writes each new bundle with its patches, and each release, with the next
|
|
233
234
|
* catalog of each scope, in one transaction. A stored bundle's deployment
|
|
234
|
-
* publishes a new release for it and writes no bundle.
|
|
235
|
+
* publishes a new release for it and writes no bundle. Like `updateBundle`,
|
|
236
|
+
* it refuses a patch from a sandbox build's built-in bundle: one read of
|
|
237
|
+
* each new bundle's patch base.
|
|
235
238
|
*/
|
|
236
239
|
deploy(deployments: readonly Deployment[]): Promise<ReleaseCatalogMutationResult[]>;
|
|
237
240
|
updateReleasePolicy(input: ReleaseTarget & {
|
|
@@ -254,7 +257,11 @@ interface HotUpdaterCoreApi {
|
|
|
254
257
|
ensureChannel(name: string): Promise<ChannelRow>;
|
|
255
258
|
/** Deletes a channel no release uses. */
|
|
256
259
|
deleteChannel(id: string): Promise<ChannelDeleteResult>;
|
|
257
|
-
/**
|
|
260
|
+
/**
|
|
261
|
+
* Changes a bundle's fields; `patches`, when given, replaces its patches.
|
|
262
|
+
* It refuses a new patch from a sandbox build's built-in bundle, which is
|
|
263
|
+
* no patch base: one read of each new patch's base.
|
|
264
|
+
*/
|
|
258
265
|
updateBundle(id: string, update: Partial<Omit<Bundle, "id" | "patches">> & {
|
|
259
266
|
readonly patches?: Bundle["patches"];
|
|
260
267
|
}): Promise<void>;
|
package/dist/coreApi.d.mts
CHANGED
|
@@ -214,7 +214,8 @@ interface HotUpdaterCoreApi {
|
|
|
214
214
|
* scope whose built-in bundle is older than that bundle: one read when the
|
|
215
215
|
* newest is, and then a page of older builds per read until one is, when
|
|
216
216
|
* builds made after the bundle are in the way. With `buildKey` too, only
|
|
217
|
-
* builds of that key.
|
|
217
|
+
* builds of that key. A sandbox build's built-in bundle is no patch base, so
|
|
218
|
+
* with `builtInOlderThan` a sandbox scope answers null without a read.
|
|
218
219
|
*/
|
|
219
220
|
findNativeBuild(scope: NativeBuildScope, options?: {
|
|
220
221
|
readonly buildKey?: string;
|
|
@@ -231,7 +232,9 @@ interface HotUpdaterCoreApi {
|
|
|
231
232
|
/**
|
|
232
233
|
* Writes each new bundle with its patches, and each release, with the next
|
|
233
234
|
* catalog of each scope, in one transaction. A stored bundle's deployment
|
|
234
|
-
* publishes a new release for it and writes no bundle.
|
|
235
|
+
* publishes a new release for it and writes no bundle. Like `updateBundle`,
|
|
236
|
+
* it refuses a patch from a sandbox build's built-in bundle: one read of
|
|
237
|
+
* each new bundle's patch base.
|
|
235
238
|
*/
|
|
236
239
|
deploy(deployments: readonly Deployment[]): Promise<ReleaseCatalogMutationResult[]>;
|
|
237
240
|
updateReleasePolicy(input: ReleaseTarget & {
|
|
@@ -254,7 +257,11 @@ interface HotUpdaterCoreApi {
|
|
|
254
257
|
ensureChannel(name: string): Promise<ChannelRow>;
|
|
255
258
|
/** Deletes a channel no release uses. */
|
|
256
259
|
deleteChannel(id: string): Promise<ChannelDeleteResult>;
|
|
257
|
-
/**
|
|
260
|
+
/**
|
|
261
|
+
* Changes a bundle's fields; `patches`, when given, replaces its patches.
|
|
262
|
+
* It refuses a new patch from a sandbox build's built-in bundle, which is
|
|
263
|
+
* no patch base: one read of each new patch's base.
|
|
264
|
+
*/
|
|
258
265
|
updateBundle(id: string, update: Partial<Omit<Bundle, "id" | "patches">> & {
|
|
259
266
|
readonly patches?: Bundle["patches"];
|
|
260
267
|
}): Promise<void>;
|
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.35",
|
|
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.35"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@electric-sql/pglite": "0.4.1",
|