@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.
@@ -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, BundleIndexDiagnostics, BundleIndexHealth, BundleIndexRepairResult, ConfigInput, DatabaseBundleCursor, DatabaseBundleIdFilter, DatabaseBundleQueryOptions, DatabaseBundleQueryOrder, DatabaseBundleQueryWhere, DatabaseDiagnostics, 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 };
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.0",
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": "https://github.com/gronxb/hot-updater",
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/js": "0.33.0",
46
- "@hot-updater/core": "0.33.0"
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.0"
55
+ "@hot-updater/test-utils": "0.33.1"
53
56
  },
54
57
  "scripts": {
55
58
  "build": "tsdown",