@hot-updater/plugin-core 0.33.0 → 0.33.1
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/bundleUnitOfWork.cjs +158 -0
- package/dist/bundleUnitOfWork.mjs +158 -0
- package/dist/bundleUnitOfWorkStore.cjs +15 -0
- package/dist/bundleUnitOfWorkStore.mjs +15 -0
- package/dist/createBlobDatabasePlugin.cjs +80 -524
- package/dist/createBlobDatabasePlugin.d.cts +1 -4
- package/dist/createBlobDatabasePlugin.d.mts +1 -4
- package/dist/createBlobDatabasePlugin.mjs +80 -524
- package/dist/createDatabasePlugin.cjs +71 -32
- package/dist/createDatabasePlugin.mjs +71 -32
- package/dist/index.cjs +2 -1
- package/dist/index.d.cts +4 -4
- package/dist/index.d.mts +4 -4
- package/dist/index.mjs +3 -3
- package/dist/requestUpdateBundleState.cjs +15 -9
- package/dist/requestUpdateBundleState.d.cts +7 -1
- package/dist/requestUpdateBundleState.d.mts +7 -1
- package/dist/requestUpdateBundleState.mjs +15 -10
- package/dist/types/index.d.cts +1 -24
- package/dist/types/index.d.mts +1 -24
- package/package.json +8 -5
package/dist/types/index.d.mts
CHANGED
|
@@ -69,28 +69,6 @@ interface DatabaseBundleQueryOptions {
|
|
|
69
69
|
cursor?: DatabaseBundleCursor;
|
|
70
70
|
orderBy?: DatabaseBundleQueryOrder;
|
|
71
71
|
}
|
|
72
|
-
interface BundleIndexHealth {
|
|
73
|
-
status: "ok" | "missing" | "stale";
|
|
74
|
-
canonicalBundles: number;
|
|
75
|
-
indexedBundles: number;
|
|
76
|
-
missingBundles: number;
|
|
77
|
-
extraBundles: number;
|
|
78
|
-
missingBundleIds: string[];
|
|
79
|
-
extraBundleIds: string[];
|
|
80
|
-
}
|
|
81
|
-
interface BundleIndexRepairResult {
|
|
82
|
-
scannedBundles: number;
|
|
83
|
-
indexedBundles: number;
|
|
84
|
-
pagesWritten: number;
|
|
85
|
-
scopesWritten: number;
|
|
86
|
-
}
|
|
87
|
-
interface BundleIndexDiagnostics<TContext = unknown> {
|
|
88
|
-
check: (context?: HotUpdaterContext<TContext>) => Promise<BundleIndexHealth>;
|
|
89
|
-
repair?: (context?: HotUpdaterContext<TContext>) => Promise<BundleIndexRepairResult>;
|
|
90
|
-
}
|
|
91
|
-
interface DatabaseDiagnostics<TContext = unknown> {
|
|
92
|
-
bundleIndex?: BundleIndexDiagnostics<TContext>;
|
|
93
|
-
}
|
|
94
72
|
interface BuildPluginConfig {
|
|
95
73
|
outDir?: string;
|
|
96
74
|
}
|
|
@@ -102,7 +80,6 @@ interface DatabasePlugin<TContext = unknown> {
|
|
|
102
80
|
updateBundle: (targetBundleId: string, newBundle: Partial<Bundle>, context?: HotUpdaterContext<TContext>) => Promise<void>;
|
|
103
81
|
appendBundle: (insertBundle: Bundle, context?: HotUpdaterContext<TContext>) => Promise<void>;
|
|
104
82
|
commitBundle: (context?: HotUpdaterContext<TContext>) => Promise<void>;
|
|
105
|
-
diagnostics?: DatabaseDiagnostics<TContext>;
|
|
106
83
|
onUnmount?: () => Promise<void>;
|
|
107
84
|
name: string;
|
|
108
85
|
deleteBundle: (deleteBundle: Bundle, context?: HotUpdaterContext<TContext>) => Promise<void>;
|
|
@@ -527,4 +504,4 @@ interface NativeBuildOptions {
|
|
|
527
504
|
scheme?: string;
|
|
528
505
|
}
|
|
529
506
|
//#endregion
|
|
530
|
-
export { type AppVersionGetBundlesArgs$1 as AppVersionGetBundlesArgs, ApplePlatform, BasePluginArgs, BuildPlugin, BuildPluginConfig, type Bundle$1 as Bundle,
|
|
507
|
+
export { type AppVersionGetBundlesArgs$1 as AppVersionGetBundlesArgs, ApplePlatform, BasePluginArgs, BuildPlugin, BuildPluginConfig, type Bundle$1 as Bundle, ConfigInput, DatabaseBundleCursor, DatabaseBundleIdFilter, DatabaseBundleQueryOptions, DatabaseBundleQueryOrder, DatabaseBundleQueryWhere, DatabasePlugin, DatabasePluginHooks, type FingerprintGetBundlesArgs$1 as FingerprintGetBundlesArgs, type GetBundlesArgs$1 as GetBundlesArgs, HotUpdaterContext, IosBuildDestination, NativeBuildAndroidScheme, NativeBuildArgs, NativeBuildIosScheme, NativeBuildOptions, NodeStoragePlugin, NodeStorageProfile, Paginated, PaginatedResult, PaginationInfo, type Platform$1 as Platform, PlatformConfig, RequestEnvContext, RuntimeStoragePlugin, RuntimeStorageProfile, SigningConfig, StoragePlugin, StoragePluginHooks, StoragePluginProfiles, StorageResolveContext, UniversalStoragePlugin, type UpdateInfo$1 as UpdateInfo, supportedIosPlatforms };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hot-updater/plugin-core",
|
|
3
|
-
"version": "0.33.
|
|
3
|
+
"version": "0.33.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "React Native OTA solution for self-hosted",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -29,7 +29,10 @@
|
|
|
29
29
|
"self-hosted"
|
|
30
30
|
],
|
|
31
31
|
"license": "MIT",
|
|
32
|
-
"repository":
|
|
32
|
+
"repository": {
|
|
33
|
+
"type": "git",
|
|
34
|
+
"url": "https://github.com/gronxb/hot-updater"
|
|
35
|
+
},
|
|
33
36
|
"author": "gronxb <gron1gh1@gmail.com> (https://github.com/gronxb)",
|
|
34
37
|
"bugs": {
|
|
35
38
|
"url": "https://github.com/gronxb/hot-updater/issues"
|
|
@@ -42,14 +45,14 @@
|
|
|
42
45
|
"es-toolkit": "^1.32.0",
|
|
43
46
|
"mime": "^4.0.4",
|
|
44
47
|
"semver": "^7.7.2",
|
|
45
|
-
"@hot-updater/
|
|
46
|
-
"@hot-updater/
|
|
48
|
+
"@hot-updater/core": "0.33.1",
|
|
49
|
+
"@hot-updater/js": "0.33.1"
|
|
47
50
|
},
|
|
48
51
|
"devDependencies": {
|
|
49
52
|
"@types/node": "^20",
|
|
50
53
|
"@types/semver": "^7.5.8",
|
|
51
54
|
"typescript": "6.0.2",
|
|
52
|
-
"@hot-updater/test-utils": "0.33.
|
|
55
|
+
"@hot-updater/test-utils": "0.33.1"
|
|
53
56
|
},
|
|
54
57
|
"scripts": {
|
|
55
58
|
"build": "tsdown",
|