@hot-updater/plugin-core 1.0.0-rc.15 → 1.0.0-rc.17
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 +131 -0
- package/dist/coreApi.d.mts +131 -0
- package/dist/database/adapter.cjs +46 -0
- package/dist/database/adapter.d.cts +183 -0
- package/dist/database/adapter.d.mts +183 -0
- package/dist/database/adapter.mjs +38 -0
- package/dist/{insightsDistinctSummary.mjs → database/distinct.cjs} +25 -11
- package/dist/database/distinct.d.cts +16 -0
- package/dist/database/distinct.d.mts +16 -0
- package/dist/{insightsDistinctSummary.cjs → database/distinct.mjs} +21 -15
- package/dist/database/memoryAdapter.cjs +115 -0
- package/dist/database/memoryAdapter.d.cts +16 -0
- package/dist/database/memoryAdapter.d.mts +16 -0
- package/dist/database/memoryAdapter.mjs +115 -0
- package/dist/database/values.cjs +110 -0
- package/dist/database/values.d.cts +30 -0
- package/dist/database/values.d.mts +30 -0
- package/dist/database/values.mjs +100 -0
- package/dist/database/verifyAdapter.cjs +136 -0
- package/dist/database/verifyAdapter.d.cts +29 -0
- package/dist/database/verifyAdapter.d.mts +29 -0
- package/dist/database/verifyAdapter.mjs +135 -0
- package/dist/databaseErrors.cjs +30 -0
- package/dist/databaseErrors.d.cts +21 -0
- package/dist/databaseErrors.d.mts +21 -0
- package/dist/databaseErrors.mjs +28 -0
- package/dist/databaseJsonValue.cjs +0 -2
- package/dist/databaseJsonValue.d.cts +3 -3
- package/dist/databaseJsonValue.d.mts +3 -3
- package/dist/databaseJsonValue.mjs +1 -2
- package/dist/databaseMetadata.cjs +2 -2
- package/dist/databaseMetadata.mjs +1 -1
- package/dist/index.cjs +9 -39
- package/dist/index.d.cts +13 -19
- package/dist/index.d.mts +13 -19
- package/dist/index.mjs +7 -14
- package/dist/internal.cjs +37 -20
- package/dist/internal.d.cts +11 -12
- package/dist/internal.d.mts +11 -12
- package/dist/internal.mjs +8 -6
- package/dist/releaseCatalogCompiler.cjs +1 -1
- package/dist/releaseCatalogCompiler.mjs +2 -2
- package/dist/releaseCatalogMutation.cjs +0 -292
- package/dist/releaseCatalogMutation.d.cts +4 -45
- package/dist/releaseCatalogMutation.d.mts +4 -45
- package/dist/releaseCatalogMutation.mjs +1 -288
- package/dist/releaseManagement.cjs +0 -221
- package/dist/releaseManagement.d.cts +4 -28
- package/dist/releaseManagement.d.mts +4 -28
- package/dist/releaseManagement.mjs +1 -216
- package/dist/types/databaseConfig.cjs +5 -0
- package/dist/types/databaseConfig.d.cts +61 -0
- package/dist/types/databaseConfig.d.mts +61 -0
- package/dist/types/databaseConfig.mjs +5 -0
- package/dist/types/databaseOperations.d.cts +5 -174
- package/dist/types/databaseOperations.d.mts +5 -174
- package/dist/types/databaseRows.d.cts +1 -53
- package/dist/types/databaseRows.d.mts +1 -53
- package/dist/types/index.cjs +2 -0
- package/dist/types/index.d.cts +8 -74
- package/dist/types/index.d.mts +8 -74
- package/dist/types/index.mjs +2 -1
- package/dist/types/internal.d.cts +4 -8
- package/dist/types/internal.d.mts +4 -8
- package/dist/types/models.d.cts +14 -0
- package/dist/types/models.d.mts +14 -0
- package/dist/types/public.d.cts +4 -3
- package/dist/types/public.d.mts +4 -3
- package/package.json +1 -1
- package/dist/calculatePagination.cjs +0 -25
- package/dist/calculatePagination.d.cts +0 -12
- package/dist/calculatePagination.d.mts +0 -12
- package/dist/calculatePagination.mjs +0 -25
- package/dist/createDatabasePlugin.cjs +0 -875
- package/dist/createDatabasePlugin.d.cts +0 -28
- package/dist/createDatabasePlugin.d.mts +0 -28
- package/dist/createDatabasePlugin.mjs +0 -871
- package/dist/databaseClient.cjs +0 -117
- package/dist/databaseClient.d.cts +0 -32
- package/dist/databaseClient.d.mts +0 -32
- package/dist/databaseClient.mjs +0 -114
- package/dist/databaseClientReads.cjs +0 -115
- package/dist/databaseClientReads.mjs +0 -113
- package/dist/databaseClientUpdates.cjs +0 -37
- package/dist/databaseClientUpdates.d.cts +0 -11
- package/dist/databaseClientUpdates.d.mts +0 -11
- package/dist/databaseClientUpdates.mjs +0 -35
- package/dist/databasePluginCrud.cjs +0 -87
- package/dist/databasePluginCrud.d.cts +0 -4
- package/dist/databasePluginCrud.d.mts +0 -4
- package/dist/databasePluginCrud.mjs +0 -86
- package/dist/databasePluginCrudValidation.d.cts +0 -6
- package/dist/databasePluginCrudValidation.d.mts +0 -6
- package/dist/databasePluginCrudValidationErrors.cjs +0 -11
- package/dist/databasePluginCrudValidationErrors.d.cts +0 -9
- package/dist/databasePluginCrudValidationErrors.d.mts +0 -9
- package/dist/databasePluginCrudValidationErrors.mjs +0 -11
- package/dist/databasePluginCrudValidationFields.cjs +0 -284
- package/dist/databasePluginCrudValidationFields.d.cts +0 -1
- package/dist/databasePluginCrudValidationFields.d.mts +0 -1
- package/dist/databasePluginCrudValidationFields.mjs +0 -272
- package/dist/databasePluginCrudValidationMutations.cjs +0 -88
- package/dist/databasePluginCrudValidationMutations.d.cts +0 -1
- package/dist/databasePluginCrudValidationMutations.d.mts +0 -1
- package/dist/databasePluginCrudValidationMutations.mjs +0 -82
- package/dist/databasePluginCrudValidationQueries.cjs +0 -103
- package/dist/databasePluginCrudValidationQueries.d.cts +0 -2
- package/dist/databasePluginCrudValidationQueries.d.mts +0 -2
- package/dist/databasePluginCrudValidationQueries.mjs +0 -97
- package/dist/databasePluginCrudValidationRows.cjs +0 -55
- package/dist/databasePluginCrudValidationRows.d.cts +0 -1
- package/dist/databasePluginCrudValidationRows.d.mts +0 -1
- package/dist/databasePluginCrudValidationRows.mjs +0 -53
- package/dist/databasePluginTransaction.cjs +0 -7
- package/dist/databasePluginTransaction.mjs +0 -7
- package/dist/insightsContract.cjs +0 -192
- package/dist/insightsContract.d.cts +0 -9
- package/dist/insightsContract.d.mts +0 -9
- package/dist/insightsContract.mjs +0 -189
- package/dist/insightsDistinctSummary.d.cts +0 -12
- package/dist/insightsDistinctSummary.d.mts +0 -12
- package/dist/insightsLatestQueries.cjs +0 -53
- package/dist/insightsLatestQueries.d.cts +0 -13
- package/dist/insightsLatestQueries.d.mts +0 -13
- package/dist/insightsLatestQueries.mjs +0 -52
- package/dist/insightsOverview.cjs +0 -139
- package/dist/insightsOverview.d.cts +0 -40
- package/dist/insightsOverview.d.mts +0 -40
- package/dist/insightsOverview.mjs +0 -135
- package/dist/paginateBundles.cjs +0 -53
- package/dist/paginateBundles.d.cts +0 -13
- package/dist/paginateBundles.d.mts +0 -13
- package/dist/paginateBundles.mjs +0 -53
- package/dist/queryBundles.cjs +0 -34
- package/dist/queryBundles.d.cts +0 -9
- package/dist/queryBundles.d.mts +0 -9
- package/dist/queryBundles.mjs +0 -32
- package/dist/requestBundleCache.cjs +0 -22
- package/dist/requestBundleCache.d.cts +0 -8
- package/dist/requestBundleCache.d.mts +0 -8
- package/dist/requestBundleCache.mjs +0 -22
- package/dist/types/database.d.cts +0 -5
- package/dist/types/database.d.mts +0 -5
- package/dist/types/databaseFields.cjs +0 -85
- package/dist/types/databaseFields.d.cts +0 -12
- package/dist/types/databaseFields.d.mts +0 -12
- package/dist/types/databaseFields.mjs +0 -85
- package/dist/types/databasePlugin.d.cts +0 -388
- package/dist/types/databasePlugin.d.mts +0 -388
- package/dist/types/databaseQuery.d.cts +0 -46
- package/dist/types/databaseQuery.d.mts +0 -46
package/dist/index.cjs
CHANGED
|
@@ -1,42 +1,33 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_calculatePagination = require("./calculatePagination.cjs");
|
|
3
2
|
const require_contentAddressedAssets = require("./contentAddressedAssets.cjs");
|
|
4
3
|
const require_createStorageKeyBuilder = require("./createStorageKeyBuilder.cjs");
|
|
5
4
|
const require_parseStorageUri = require("./parseStorageUri.cjs");
|
|
6
5
|
const require_assetStorageLayout = require("./assetStorageLayout.cjs");
|
|
7
6
|
const require_bundleStorageLayout = require("./bundleStorageLayout.cjs");
|
|
8
7
|
const require_contentType = require("./contentType.cjs");
|
|
9
|
-
const
|
|
10
|
-
const require_databaseJsonValue = require("./databaseJsonValue.cjs");
|
|
11
|
-
const require_uuidv7 = require("./uuidv7.cjs");
|
|
12
|
-
const require_insightsContract = require("./insightsContract.cjs");
|
|
13
|
-
const require_createDatabasePlugin = require("./createDatabasePlugin.cjs");
|
|
8
|
+
const require_databaseErrors = require("./databaseErrors.cjs");
|
|
14
9
|
const require_createStoragePlugin = require("./createStoragePlugin.cjs");
|
|
10
|
+
const require_databaseJsonValue = require("./databaseJsonValue.cjs");
|
|
15
11
|
const require_databaseRows = require("./databaseRows.cjs");
|
|
16
|
-
const require_databaseClientUpdates = require("./databaseClientUpdates.cjs");
|
|
17
|
-
const require_databaseClient = require("./databaseClient.cjs");
|
|
18
12
|
const require_semverSatisfies = require("./semverSatisfies.cjs");
|
|
19
13
|
const require_filterCompatibleAppVersions = require("./filterCompatibleAppVersions.cjs");
|
|
20
14
|
const require_generateMinBundleId = require("./generateMinBundleId.cjs");
|
|
21
|
-
const
|
|
22
|
-
const require_paginateBundles = require("./paginateBundles.cjs");
|
|
23
|
-
const require_requestBundleCache = require("./requestBundleCache.cjs");
|
|
15
|
+
const require_uuidv7 = require("./uuidv7.cjs");
|
|
24
16
|
const require_releaseCatalogCompiler = require("./releaseCatalogCompiler.cjs");
|
|
25
|
-
const require_releaseCatalogMutation = require("./releaseCatalogMutation.cjs");
|
|
26
17
|
const require_releaseManagement = require("./releaseManagement.cjs");
|
|
18
|
+
const require_releaseCatalogMutation = require("./releaseCatalogMutation.cjs");
|
|
27
19
|
const require_remoteBundleSigning = require("./remoteBundleSigning.cjs");
|
|
28
20
|
const require_storageDownloadPath = require("./storageDownloadPath.cjs");
|
|
21
|
+
const require_databaseConfig = require("./types/databaseConfig.cjs");
|
|
29
22
|
const require_index = require("./types/index.cjs");
|
|
30
23
|
let _hot_updater_core = require("@hot-updater/core");
|
|
31
24
|
exports.BUNDLE_STORAGE_PREFIX = require_bundleStorageLayout.BUNDLE_STORAGE_PREFIX;
|
|
32
25
|
exports.BundleRowHydrationError = require_databaseRows.BundleRowHydrationError;
|
|
33
26
|
exports.BundleRowHydrationErrorReason = require_databaseRows.BundleRowHydrationErrorReason;
|
|
34
27
|
exports.CONTENT_ADDRESSED_ASSET_PREFIX = require_contentAddressedAssets.CONTENT_ADDRESSED_ASSET_PREFIX;
|
|
35
|
-
exports.
|
|
36
|
-
exports.
|
|
37
|
-
exports.
|
|
38
|
-
exports.DatabasePatchUpdateUnsupportedError = require_databaseClientUpdates.DatabasePatchUpdateUnsupportedError;
|
|
39
|
-
exports.DatabasePluginInputError = require_databasePluginCrudValidationErrors.DatabasePluginInputError;
|
|
28
|
+
exports.DatabaseBundleNotFoundError = require_databaseErrors.DatabaseBundleNotFoundError;
|
|
29
|
+
exports.DatabasePluginInputError = require_databaseErrors.DatabasePluginInputError;
|
|
30
|
+
exports.DatabaseRowReferencedError = require_databaseErrors.DatabaseRowReferencedError;
|
|
40
31
|
exports.REMOTE_BUNDLE_SIGNING_ALGORITHM = require_remoteBundleSigning.REMOTE_BUNDLE_SIGNING_ALGORITHM;
|
|
41
32
|
exports.REMOTE_BUNDLE_SIGNING_PATH = require_remoteBundleSigning.REMOTE_BUNDLE_SIGNING_PATH;
|
|
42
33
|
exports.REMOTE_BUNDLE_SIGNING_PROTOCOL_VERSION = require_remoteBundleSigning.REMOTE_BUNDLE_SIGNING_PROTOCOL_VERSION;
|
|
@@ -45,21 +36,12 @@ exports.ReleaseCatalogCompilationError = require_releaseCatalogCompiler.ReleaseC
|
|
|
45
36
|
exports.ReleaseCatalogMutationError = require_releaseCatalogMutation.ReleaseCatalogMutationError;
|
|
46
37
|
exports.ReleaseManagementError = require_releaseManagement.ReleaseManagementError;
|
|
47
38
|
exports.assertStorageOperations = require_createStoragePlugin.assertStorageOperations;
|
|
48
|
-
exports.bundleIdMatchesFilter = require_queryBundles.bundleIdMatchesFilter;
|
|
49
|
-
exports.bundleMatchesQueryWhere = require_queryBundles.bundleMatchesQueryWhere;
|
|
50
39
|
exports.bundleToPatchRows = require_databaseRows.bundleToPatchRows;
|
|
51
40
|
exports.bundleToRow = require_databaseRows.bundleToRow;
|
|
52
|
-
exports.calculatePagination = require_calculatePagination.calculatePagination;
|
|
53
41
|
exports.canonicalizeAppVersion = require_releaseCatalogCompiler.canonicalizeAppVersion;
|
|
54
|
-
exports.commitReleaseCatalogMutation = require_releaseCatalogMutation.commitReleaseCatalogMutation;
|
|
55
|
-
exports.commitReleaseCatalogMutations = require_releaseCatalogMutation.commitReleaseCatalogMutations;
|
|
56
|
-
exports.compareInsightsText = require_insightsContract.compareInsightsText;
|
|
57
42
|
exports.compileReleaseCatalog = require_releaseCatalogCompiler.compileReleaseCatalog;
|
|
58
43
|
exports.createBundleSigningHandler = require_remoteBundleSigning.createBundleSigningHandler;
|
|
59
44
|
exports.createBundleStorageKey = require_bundleStorageLayout.createBundleStorageKey;
|
|
60
|
-
exports.createDatabaseClient = require_databaseClient.createDatabaseClient;
|
|
61
|
-
exports.createDatabasePlugin = require_createDatabasePlugin.createDatabasePlugin;
|
|
62
|
-
exports.createRequestBundleResolver = require_requestBundleCache.createRequestBundleResolver;
|
|
63
45
|
exports.createStorageDownloadPath = require_storageDownloadPath.createStorageDownloadPath;
|
|
64
46
|
exports.createStorageDownloadUrl = require_storageDownloadPath.createStorageDownloadUrl;
|
|
65
47
|
exports.createStorageKeyBuilder = require_createStorageKeyBuilder.createStorageKeyBuilder;
|
|
@@ -70,7 +52,6 @@ exports.createStorageUriWithRelativePath = require_assetStorageLayout.createStor
|
|
|
70
52
|
exports.createUUIDv7 = require_uuidv7.createUUIDv7;
|
|
71
53
|
exports.createUUIDv7After = require_uuidv7.createUUIDv7After;
|
|
72
54
|
exports.createUUIDv7WithSameTimestamp = require_uuidv7.createUUIDv7WithSameTimestamp;
|
|
73
|
-
exports.deleteRelease = require_releaseManagement.deleteRelease;
|
|
74
55
|
exports.extractTimestampFromUUIDv7 = require_uuidv7.extractTimestampFromUUIDv7;
|
|
75
56
|
exports.filterCompatibleAppVersions = require_filterCompatibleAppVersions.filterCompatibleAppVersions;
|
|
76
57
|
exports.generateMinBundleId = require_generateMinBundleId.generateMinBundleId;
|
|
@@ -81,25 +62,18 @@ exports.getManifestAssetDownloadPath = require_assetStorageLayout.getManifestAss
|
|
|
81
62
|
exports.getManifestAssetStoragePath = require_assetStorageLayout.getManifestAssetStoragePath;
|
|
82
63
|
exports.isBrotliManifestAssetPath = require_assetStorageLayout.isBrotliManifestAssetPath;
|
|
83
64
|
exports.isContentAddressedAssetFileHash = require_contentAddressedAssets.isContentAddressedAssetFileHash;
|
|
84
|
-
exports.isDatabaseBundleEventMetadata = require_databaseJsonValue.isDatabaseBundleEventMetadata;
|
|
85
65
|
exports.isDatabaseMetadataObject = require_databaseJsonValue.isDatabaseMetadataObject;
|
|
86
|
-
exports.
|
|
66
|
+
exports.isRemoteDatabase = require_databaseConfig.isRemoteDatabase;
|
|
87
67
|
Object.defineProperty(exports, "isUUIDv7", {
|
|
88
68
|
enumerable: true,
|
|
89
69
|
get: function() {
|
|
90
70
|
return _hot_updater_core.isUUIDv7;
|
|
91
71
|
}
|
|
92
72
|
});
|
|
93
|
-
exports.paginateBundles = require_paginateBundles.paginateBundles;
|
|
94
73
|
exports.parseStorageDownloadPath = require_storageDownloadPath.parseStorageDownloadPath;
|
|
95
74
|
exports.parseStorageUri = require_parseStorageUri.parseStorageUri;
|
|
96
|
-
exports.preflightReleaseCatalogMutation = require_releaseCatalogMutation.preflightReleaseCatalogMutation;
|
|
97
|
-
exports.preflightReleaseCatalogRebuild = require_releaseCatalogMutation.preflightReleaseCatalogRebuild;
|
|
98
|
-
exports.preflightReleasePolicy = require_releaseManagement.preflightReleasePolicy;
|
|
99
75
|
exports.projectCompiledCatalog = require_releaseCatalogCompiler.projectCompiledCatalog;
|
|
100
76
|
exports.projectCompiledRollbackCatalog = require_releaseCatalogCompiler.projectCompiledRollbackCatalog;
|
|
101
|
-
exports.promoteRelease = require_releaseManagement.promoteRelease;
|
|
102
|
-
exports.rebuildReleaseCatalog = require_releaseCatalogMutation.rebuildReleaseCatalog;
|
|
103
77
|
exports.referenceCompatibleReleases = require_releaseCatalogCompiler.referenceCompatibleReleases;
|
|
104
78
|
exports.releaseRowToRelease = require_databaseRows.releaseRowToRelease;
|
|
105
79
|
exports.releaseToRow = require_databaseRows.releaseToRow;
|
|
@@ -107,11 +81,7 @@ exports.remoteSigning = require_remoteBundleSigning.remoteSigning;
|
|
|
107
81
|
exports.replaceStorageUriKeySuffix = require_assetStorageLayout.replaceStorageUriKeySuffix;
|
|
108
82
|
exports.resolveManifestAssetStorageFileHash = require_assetStorageLayout.resolveManifestAssetStorageFileHash;
|
|
109
83
|
exports.resolveManifestAssetStorageUri = require_assetStorageLayout.resolveManifestAssetStorageUri;
|
|
110
|
-
exports.rollbackRelease = require_releaseManagement.rollbackRelease;
|
|
111
|
-
exports.rollbackReleases = require_releaseManagement.rollbackReleases;
|
|
112
84
|
exports.rowToBundle = require_databaseRows.rowToBundle;
|
|
113
85
|
exports.rowsToBundles = require_databaseRows.rowsToBundles;
|
|
114
86
|
exports.semverSatisfies = require_semverSatisfies.semverSatisfies;
|
|
115
|
-
exports.sortBundles = require_queryBundles.sortBundles;
|
|
116
87
|
exports.supportedIosPlatforms = require_index.supportedIosPlatforms;
|
|
117
|
-
exports.updateReleasePolicy = require_releaseManagement.updateReleasePolicy;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,33 +1,27 @@
|
|
|
1
|
-
import { ApiKeyRow, BundleEventRow, BundleEventRowBase, BundlePatchRow, BundleRow, ChannelRow, DatabaseBundleEventMetadata, DatabaseBundleMetadata, DatabaseJsonObject, DatabaseJsonValue, ReleaseCatalogRow, ReleaseRow } from "./types/databaseRows.cjs";
|
|
2
|
-
import { ApiKeyModel, BundleModel, BundleModelQuery, BundlePatchModel, BundleRepository, BundleRepositoryChange, BundleRepositoryCommit, ChannelDeleteInput, ChannelDeleteResult, ChannelInsertInput, ChannelInsertResult, ChannelModel, DatabaseChange, DatabaseCommit, DatabaseCommitExpectation, DatabaseCommitResult, DatabaseModels, DatabasePlugin, InsightsBundleEventFilter, InsightsCountEventsInput, InsightsCountLatestEventsInput, InsightsCoverage, InsightsEventCursor, InsightsEventFilter, InsightsFindLatestEventsInput, InsightsGetAppUsageInput, InsightsGetAppUsageResult, InsightsGetReleaseActivityInput, InsightsGetReleaseActivityResult, InsightsListEventsInput, InsightsModel, InsightsRecordEventInput, InsightsScope, InsightsTimeRange, ReleaseActivityMetrics, ReleaseCatalogModel, ReleaseModel, ReleaseReference } from "./types/databasePlugin.cjs";
|
|
3
|
-
import { BundleRowUpdate, ReleaseCatalogRowUpdate, ReleaseRowUpdate } from "./types/databaseOperations.cjs";
|
|
4
|
-
import { BuiltIns, HasMultipleCallSignatures, Primitive, RequiredDeep } from "./types/utils.cjs";
|
|
5
|
-
import { ApplePlatform, BasePluginArgs, BuildPlugin, BuildPluginConfig, Bundle, BundleSigningPlugin, ConfigInput, DatabaseBundleCursor, DatabaseBundleIdFilter, DatabaseBundleQueryOptions, DatabaseBundleQueryOrder, DatabaseBundleQueryWhere, FingerprintExtraSources, IosBuildDestination, LocalSigningConfig, NativeBuildAndroidScheme, NativeBuildArgs, NativeBuildIosScheme, NativeBuildOptions, Paginated, PaginatedResult, PaginationInfo, Platform, PlatformConfig, SigningConfig, StorageDeleteInput, StorageDeleteResult, StorageExistsInput, StorageExistsResult, StorageGetDownloadUrlInput, StorageGetDownloadUrlResult, StorageGetInput, StorageGetResult, StorageObject, StoragePlugin, StoragePutInput, StoragePutResult, supportedIosPlatforms } from "./types/index.cjs";
|
|
6
|
-
import { PaginationOptions, calculatePagination } from "./calculatePagination.cjs";
|
|
7
1
|
import { BUNDLE_STORAGE_PREFIX, createBundleStorageKey, createStorageRootUriWithPath, getBundleArchiveStorageUri } from "./bundleStorageLayout.cjs";
|
|
8
2
|
import { createStorageUriWithRelativePath, getManifestAssetDownloadPath, getManifestAssetStoragePath, isBrotliManifestAssetPath, replaceStorageUriKeySuffix, resolveManifestAssetStorageFileHash, resolveManifestAssetStorageUri } from "./assetStorageLayout.cjs";
|
|
9
3
|
import { CONTENT_ADDRESSED_ASSET_PREFIX, getContentAddressedAssetStoragePath, isContentAddressedAssetFileHash } from "./contentAddressedAssets.cjs";
|
|
10
4
|
import { getContentType } from "./contentType.cjs";
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
5
|
+
import { CatalogVersionBound, CompiledCatalogSegment, CompiledReleaseCatalog, ReleaseCatalogCompilation, ReleaseCatalogCompilationError, ReleaseCatalogCompilerDiagnostics, canonicalizeAppVersion, compileReleaseCatalog, projectCompiledCatalog, projectCompiledRollbackCatalog, referenceCompatibleReleases } from "./releaseCatalogCompiler.cjs";
|
|
6
|
+
import { AggregateBatching, ConfiguredDatabase, EngineDatabase, RemoteDatabase, isRemoteDatabase } from "./types/databaseConfig.cjs";
|
|
7
|
+
import { BuiltIns, HasMultipleCallSignatures, Primitive, RequiredDeep } from "./types/utils.cjs";
|
|
8
|
+
import { BundlePatchRow, BundleRow, ChannelRow, DatabaseBundleMetadata, DatabaseJsonObject, DatabaseJsonValue, ReleaseCatalogRow, ReleaseRow } from "./types/databaseRows.cjs";
|
|
9
|
+
import { BundleRowUpdate, ReleaseCatalogRowUpdate, ReleaseRowUpdate } from "./types/databaseOperations.cjs";
|
|
10
|
+
import { ChannelDeleteResult, ChannelInsertResult } from "./types/models.cjs";
|
|
11
|
+
import { ApplePlatform, BasePluginArgs, BuildPlugin, BuildPluginConfig, Bundle, BundleSigningPlugin, ConfigInput, FingerprintExtraSources, IosBuildDestination, LocalSigningConfig, NativeBuildAndroidScheme, NativeBuildArgs, NativeBuildIosScheme, NativeBuildOptions, Platform, PlatformConfig, SigningConfig, StorageDeleteInput, StorageDeleteResult, StorageExistsInput, StorageExistsResult, StorageGetDownloadUrlInput, StorageGetDownloadUrlResult, StorageGetInput, StorageGetResult, StorageObject, StoragePlugin, StoragePutInput, StoragePutResult, supportedIosPlatforms } from "./types/index.cjs";
|
|
12
|
+
import { ReleaseCatalogMutationError, ReleaseCatalogMutationPreflight, ReleaseCatalogMutationResult, ReleaseCatalogRebuildPreflight, ReleaseCatalogRebuildResult, ReleaseCatalogScope } from "./releaseCatalogMutation.cjs";
|
|
13
|
+
import { PromoteReleaseResult, ReleaseManagementError, ReleasePolicyPatch } from "./releaseManagement.cjs";
|
|
14
|
+
import { BundleDeployment, BundleDetail, DeployReleasePolicy, Deployment, HotUpdaterCoreApi, KeysetInput, ReleaseFilter, ReleaseTarget, StoredBundleDeployment } from "./coreApi.cjs";
|
|
15
|
+
import { DatabaseBundleNotFoundError, DatabasePluginInputError, DatabasePluginInputErrorCode, DatabaseRowReferencedError } from "./databaseErrors.cjs";
|
|
13
16
|
import { createStorageKeyBuilder } from "./createStorageKeyBuilder.cjs";
|
|
14
17
|
import { CreateStoragePluginOptions, StorageOperation, StoragePluginWith, assertStorageOperations, createStoragePlugin } from "./createStoragePlugin.cjs";
|
|
15
|
-
import {
|
|
16
|
-
import { DatabaseBundleNotFoundError, DatabaseClient, DatabaseMutationClient, DatabasePatchInsertUnsupportedError, createDatabaseClient } from "./databaseClient.cjs";
|
|
17
|
-
import { isDatabaseBundleEventMetadata, isDatabaseMetadataObject } from "./databaseJsonValue.cjs";
|
|
18
|
+
import { isDatabaseMetadataObject } from "./databaseJsonValue.cjs";
|
|
18
19
|
import { BundleRowHydrationError, BundleRowHydrationErrorReason, bundleToPatchRows, bundleToRow, releaseRowToRelease, releaseToRow, rowToBundle, rowsToBundles } from "./databaseRows.cjs";
|
|
19
20
|
import { filterCompatibleAppVersions } from "./filterCompatibleAppVersions.cjs";
|
|
20
21
|
import { generateMinBundleId } from "./generateMinBundleId.cjs";
|
|
21
|
-
import { compareInsightsText, isInsightsMovementEvent } from "./insightsContract.cjs";
|
|
22
22
|
import { CreateStorageUriInput, ParsedStorageUri, createStorageUri, parseStorageUri } from "./parseStorageUri.cjs";
|
|
23
|
-
import { paginateBundles } from "./paginateBundles.cjs";
|
|
24
|
-
import { bundleIdMatchesFilter, bundleMatchesQueryWhere, sortBundles } from "./queryBundles.cjs";
|
|
25
|
-
import { createRequestBundleResolver } from "./requestBundleCache.cjs";
|
|
26
|
-
import { CatalogVersionBound, CompiledCatalogSegment, CompiledReleaseCatalog, ReleaseCatalogCompilation, ReleaseCatalogCompilationError, ReleaseCatalogCompilerDiagnostics, canonicalizeAppVersion, compileReleaseCatalog, projectCompiledCatalog, projectCompiledRollbackCatalog, referenceCompatibleReleases } from "./releaseCatalogCompiler.cjs";
|
|
27
|
-
import { ReleaseCatalogMutation, ReleaseCatalogMutationError, ReleaseCatalogMutationInput, ReleaseCatalogMutationPreflight, ReleaseCatalogMutationResult, ReleaseCatalogRebuildPreflight, ReleaseCatalogRebuildResult, ReleaseCatalogScope, commitReleaseCatalogMutation, commitReleaseCatalogMutations, preflightReleaseCatalogMutation, preflightReleaseCatalogRebuild, rebuildReleaseCatalog } from "./releaseCatalogMutation.cjs";
|
|
28
|
-
import { PromoteReleaseInput, PromoteReleaseResult, ReleaseManagementError, ReleaseMutationTarget, ReleasePolicyPatch, RollbackReleaseInput, deleteRelease, preflightReleasePolicy, promoteRelease, rollbackRelease, rollbackReleases, updateReleasePolicy } from "./releaseManagement.cjs";
|
|
29
23
|
import { BundleSigningHandlerOptions, REMOTE_BUNDLE_SIGNING_ALGORITHM, REMOTE_BUNDLE_SIGNING_PATH, REMOTE_BUNDLE_SIGNING_PROTOCOL_VERSION, REMOTE_BUNDLE_SIGNING_TOKEN_HEADER, RemoteSigningOptions, createBundleSigningHandler, remoteSigning } from "./remoteBundleSigning.cjs";
|
|
30
24
|
import { semverSatisfies } from "./semverSatisfies.cjs";
|
|
31
25
|
import { createStorageDownloadPath, createStorageDownloadUrl, parseStorageDownloadPath } from "./storageDownloadPath.cjs";
|
|
32
26
|
import { createUUIDv7, createUUIDv7After, createUUIDv7WithSameTimestamp, extractTimestampFromUUIDv7, isUUIDv7 } from "./uuidv7.cjs";
|
|
33
|
-
export { type
|
|
27
|
+
export { type AggregateBatching, ApplePlatform, BUNDLE_STORAGE_PREFIX, BasePluginArgs, BuildPlugin, BuildPluginConfig, BuiltIns, type Bundle, type BundleDeployment, type BundleDetail, type BundlePatchRow, type BundleRow, BundleRowHydrationError, BundleRowHydrationErrorReason, type BundleRowUpdate, BundleSigningHandlerOptions, BundleSigningPlugin, CONTENT_ADDRESSED_ASSET_PREFIX, CatalogVersionBound, type ChannelDeleteResult, type ChannelInsertResult, type ChannelRow, CompiledCatalogSegment, CompiledReleaseCatalog, ConfigInput, type ConfiguredDatabase, CreateStoragePluginOptions, CreateStorageUriInput, type DatabaseBundleMetadata, DatabaseBundleNotFoundError, type DatabaseJsonObject, type DatabaseJsonValue, DatabasePluginInputError, type DatabasePluginInputErrorCode, DatabaseRowReferencedError, type DeployReleasePolicy, type Deployment, type EngineDatabase, FingerprintExtraSources, HasMultipleCallSignatures, type HotUpdaterCoreApi, IosBuildDestination, type KeysetInput, LocalSigningConfig, NativeBuildAndroidScheme, NativeBuildArgs, NativeBuildIosScheme, NativeBuildOptions, ParsedStorageUri, type Platform, PlatformConfig, Primitive, PromoteReleaseResult, REMOTE_BUNDLE_SIGNING_ALGORITHM, REMOTE_BUNDLE_SIGNING_PATH, REMOTE_BUNDLE_SIGNING_PROTOCOL_VERSION, REMOTE_BUNDLE_SIGNING_TOKEN_HEADER, ReleaseCatalogCompilation, ReleaseCatalogCompilationError, ReleaseCatalogCompilerDiagnostics, ReleaseCatalogMutationError, ReleaseCatalogMutationPreflight, ReleaseCatalogMutationResult, ReleaseCatalogRebuildPreflight, ReleaseCatalogRebuildResult, type ReleaseCatalogRow, type ReleaseCatalogRowUpdate, ReleaseCatalogScope, type ReleaseFilter, ReleaseManagementError, ReleasePolicyPatch, type ReleaseRow, type ReleaseRowUpdate, type ReleaseTarget, type RemoteDatabase, RemoteSigningOptions, RequiredDeep, SigningConfig, StorageDeleteInput, StorageDeleteResult, StorageExistsInput, StorageExistsResult, StorageGetDownloadUrlInput, StorageGetDownloadUrlResult, StorageGetInput, StorageGetResult, StorageObject, StorageOperation, StoragePlugin, StoragePluginWith, StoragePutInput, StoragePutResult, type StoredBundleDeployment, assertStorageOperations, bundleToPatchRows, bundleToRow, canonicalizeAppVersion, compileReleaseCatalog, createBundleSigningHandler, createBundleStorageKey, createStorageDownloadPath, createStorageDownloadUrl, createStorageKeyBuilder, createStoragePlugin, createStorageRootUriWithPath, createStorageUri, createStorageUriWithRelativePath, createUUIDv7, createUUIDv7After, createUUIDv7WithSameTimestamp, extractTimestampFromUUIDv7, filterCompatibleAppVersions, generateMinBundleId, getBundleArchiveStorageUri, getContentAddressedAssetStoragePath, getContentType, getManifestAssetDownloadPath, getManifestAssetStoragePath, isBrotliManifestAssetPath, isContentAddressedAssetFileHash, isDatabaseMetadataObject, isRemoteDatabase, isUUIDv7, parseStorageDownloadPath, parseStorageUri, projectCompiledCatalog, projectCompiledRollbackCatalog, referenceCompatibleReleases, releaseRowToRelease, releaseToRow, remoteSigning, replaceStorageUriKeySuffix, resolveManifestAssetStorageFileHash, resolveManifestAssetStorageUri, rowToBundle, rowsToBundles, semverSatisfies, supportedIosPlatforms };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,33 +1,27 @@
|
|
|
1
|
-
import { ApiKeyRow, BundleEventRow, BundleEventRowBase, BundlePatchRow, BundleRow, ChannelRow, DatabaseBundleEventMetadata, DatabaseBundleMetadata, DatabaseJsonObject, DatabaseJsonValue, ReleaseCatalogRow, ReleaseRow } from "./types/databaseRows.mjs";
|
|
2
|
-
import { ApiKeyModel, BundleModel, BundleModelQuery, BundlePatchModel, BundleRepository, BundleRepositoryChange, BundleRepositoryCommit, ChannelDeleteInput, ChannelDeleteResult, ChannelInsertInput, ChannelInsertResult, ChannelModel, DatabaseChange, DatabaseCommit, DatabaseCommitExpectation, DatabaseCommitResult, DatabaseModels, DatabasePlugin, InsightsBundleEventFilter, InsightsCountEventsInput, InsightsCountLatestEventsInput, InsightsCoverage, InsightsEventCursor, InsightsEventFilter, InsightsFindLatestEventsInput, InsightsGetAppUsageInput, InsightsGetAppUsageResult, InsightsGetReleaseActivityInput, InsightsGetReleaseActivityResult, InsightsListEventsInput, InsightsModel, InsightsRecordEventInput, InsightsScope, InsightsTimeRange, ReleaseActivityMetrics, ReleaseCatalogModel, ReleaseModel, ReleaseReference } from "./types/databasePlugin.mjs";
|
|
3
|
-
import { BundleRowUpdate, ReleaseCatalogRowUpdate, ReleaseRowUpdate } from "./types/databaseOperations.mjs";
|
|
4
|
-
import { BuiltIns, HasMultipleCallSignatures, Primitive, RequiredDeep } from "./types/utils.mjs";
|
|
5
|
-
import { ApplePlatform, BasePluginArgs, BuildPlugin, BuildPluginConfig, Bundle, BundleSigningPlugin, ConfigInput, DatabaseBundleCursor, DatabaseBundleIdFilter, DatabaseBundleQueryOptions, DatabaseBundleQueryOrder, DatabaseBundleQueryWhere, FingerprintExtraSources, IosBuildDestination, LocalSigningConfig, NativeBuildAndroidScheme, NativeBuildArgs, NativeBuildIosScheme, NativeBuildOptions, Paginated, PaginatedResult, PaginationInfo, Platform, PlatformConfig, SigningConfig, StorageDeleteInput, StorageDeleteResult, StorageExistsInput, StorageExistsResult, StorageGetDownloadUrlInput, StorageGetDownloadUrlResult, StorageGetInput, StorageGetResult, StorageObject, StoragePlugin, StoragePutInput, StoragePutResult, supportedIosPlatforms } from "./types/index.mjs";
|
|
6
|
-
import { PaginationOptions, calculatePagination } from "./calculatePagination.mjs";
|
|
7
1
|
import { BUNDLE_STORAGE_PREFIX, createBundleStorageKey, createStorageRootUriWithPath, getBundleArchiveStorageUri } from "./bundleStorageLayout.mjs";
|
|
8
2
|
import { createStorageUriWithRelativePath, getManifestAssetDownloadPath, getManifestAssetStoragePath, isBrotliManifestAssetPath, replaceStorageUriKeySuffix, resolveManifestAssetStorageFileHash, resolveManifestAssetStorageUri } from "./assetStorageLayout.mjs";
|
|
9
3
|
import { CONTENT_ADDRESSED_ASSET_PREFIX, getContentAddressedAssetStoragePath, isContentAddressedAssetFileHash } from "./contentAddressedAssets.mjs";
|
|
10
4
|
import { getContentType } from "./contentType.mjs";
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
5
|
+
import { CatalogVersionBound, CompiledCatalogSegment, CompiledReleaseCatalog, ReleaseCatalogCompilation, ReleaseCatalogCompilationError, ReleaseCatalogCompilerDiagnostics, canonicalizeAppVersion, compileReleaseCatalog, projectCompiledCatalog, projectCompiledRollbackCatalog, referenceCompatibleReleases } from "./releaseCatalogCompiler.mjs";
|
|
6
|
+
import { AggregateBatching, ConfiguredDatabase, EngineDatabase, RemoteDatabase, isRemoteDatabase } from "./types/databaseConfig.mjs";
|
|
7
|
+
import { BuiltIns, HasMultipleCallSignatures, Primitive, RequiredDeep } from "./types/utils.mjs";
|
|
8
|
+
import { BundlePatchRow, BundleRow, ChannelRow, DatabaseBundleMetadata, DatabaseJsonObject, DatabaseJsonValue, ReleaseCatalogRow, ReleaseRow } from "./types/databaseRows.mjs";
|
|
9
|
+
import { BundleRowUpdate, ReleaseCatalogRowUpdate, ReleaseRowUpdate } from "./types/databaseOperations.mjs";
|
|
10
|
+
import { ChannelDeleteResult, ChannelInsertResult } from "./types/models.mjs";
|
|
11
|
+
import { ApplePlatform, BasePluginArgs, BuildPlugin, BuildPluginConfig, Bundle, BundleSigningPlugin, ConfigInput, FingerprintExtraSources, IosBuildDestination, LocalSigningConfig, NativeBuildAndroidScheme, NativeBuildArgs, NativeBuildIosScheme, NativeBuildOptions, Platform, PlatformConfig, SigningConfig, StorageDeleteInput, StorageDeleteResult, StorageExistsInput, StorageExistsResult, StorageGetDownloadUrlInput, StorageGetDownloadUrlResult, StorageGetInput, StorageGetResult, StorageObject, StoragePlugin, StoragePutInput, StoragePutResult, supportedIosPlatforms } from "./types/index.mjs";
|
|
12
|
+
import { ReleaseCatalogMutationError, ReleaseCatalogMutationPreflight, ReleaseCatalogMutationResult, ReleaseCatalogRebuildPreflight, ReleaseCatalogRebuildResult, ReleaseCatalogScope } from "./releaseCatalogMutation.mjs";
|
|
13
|
+
import { PromoteReleaseResult, ReleaseManagementError, ReleasePolicyPatch } from "./releaseManagement.mjs";
|
|
14
|
+
import { BundleDeployment, BundleDetail, DeployReleasePolicy, Deployment, HotUpdaterCoreApi, KeysetInput, ReleaseFilter, ReleaseTarget, StoredBundleDeployment } from "./coreApi.mjs";
|
|
15
|
+
import { DatabaseBundleNotFoundError, DatabasePluginInputError, DatabasePluginInputErrorCode, DatabaseRowReferencedError } from "./databaseErrors.mjs";
|
|
13
16
|
import { createStorageKeyBuilder } from "./createStorageKeyBuilder.mjs";
|
|
14
17
|
import { CreateStoragePluginOptions, StorageOperation, StoragePluginWith, assertStorageOperations, createStoragePlugin } from "./createStoragePlugin.mjs";
|
|
15
|
-
import {
|
|
16
|
-
import { DatabaseBundleNotFoundError, DatabaseClient, DatabaseMutationClient, DatabasePatchInsertUnsupportedError, createDatabaseClient } from "./databaseClient.mjs";
|
|
17
|
-
import { isDatabaseBundleEventMetadata, isDatabaseMetadataObject } from "./databaseJsonValue.mjs";
|
|
18
|
+
import { isDatabaseMetadataObject } from "./databaseJsonValue.mjs";
|
|
18
19
|
import { BundleRowHydrationError, BundleRowHydrationErrorReason, bundleToPatchRows, bundleToRow, releaseRowToRelease, releaseToRow, rowToBundle, rowsToBundles } from "./databaseRows.mjs";
|
|
19
20
|
import { filterCompatibleAppVersions } from "./filterCompatibleAppVersions.mjs";
|
|
20
21
|
import { generateMinBundleId } from "./generateMinBundleId.mjs";
|
|
21
|
-
import { compareInsightsText, isInsightsMovementEvent } from "./insightsContract.mjs";
|
|
22
22
|
import { CreateStorageUriInput, ParsedStorageUri, createStorageUri, parseStorageUri } from "./parseStorageUri.mjs";
|
|
23
|
-
import { paginateBundles } from "./paginateBundles.mjs";
|
|
24
|
-
import { bundleIdMatchesFilter, bundleMatchesQueryWhere, sortBundles } from "./queryBundles.mjs";
|
|
25
|
-
import { createRequestBundleResolver } from "./requestBundleCache.mjs";
|
|
26
|
-
import { CatalogVersionBound, CompiledCatalogSegment, CompiledReleaseCatalog, ReleaseCatalogCompilation, ReleaseCatalogCompilationError, ReleaseCatalogCompilerDiagnostics, canonicalizeAppVersion, compileReleaseCatalog, projectCompiledCatalog, projectCompiledRollbackCatalog, referenceCompatibleReleases } from "./releaseCatalogCompiler.mjs";
|
|
27
|
-
import { ReleaseCatalogMutation, ReleaseCatalogMutationError, ReleaseCatalogMutationInput, ReleaseCatalogMutationPreflight, ReleaseCatalogMutationResult, ReleaseCatalogRebuildPreflight, ReleaseCatalogRebuildResult, ReleaseCatalogScope, commitReleaseCatalogMutation, commitReleaseCatalogMutations, preflightReleaseCatalogMutation, preflightReleaseCatalogRebuild, rebuildReleaseCatalog } from "./releaseCatalogMutation.mjs";
|
|
28
|
-
import { PromoteReleaseInput, PromoteReleaseResult, ReleaseManagementError, ReleaseMutationTarget, ReleasePolicyPatch, RollbackReleaseInput, deleteRelease, preflightReleasePolicy, promoteRelease, rollbackRelease, rollbackReleases, updateReleasePolicy } from "./releaseManagement.mjs";
|
|
29
23
|
import { BundleSigningHandlerOptions, REMOTE_BUNDLE_SIGNING_ALGORITHM, REMOTE_BUNDLE_SIGNING_PATH, REMOTE_BUNDLE_SIGNING_PROTOCOL_VERSION, REMOTE_BUNDLE_SIGNING_TOKEN_HEADER, RemoteSigningOptions, createBundleSigningHandler, remoteSigning } from "./remoteBundleSigning.mjs";
|
|
30
24
|
import { semverSatisfies } from "./semverSatisfies.mjs";
|
|
31
25
|
import { createStorageDownloadPath, createStorageDownloadUrl, parseStorageDownloadPath } from "./storageDownloadPath.mjs";
|
|
32
26
|
import { createUUIDv7, createUUIDv7After, createUUIDv7WithSameTimestamp, extractTimestampFromUUIDv7, isUUIDv7 } from "./uuidv7.mjs";
|
|
33
|
-
export { type
|
|
27
|
+
export { type AggregateBatching, ApplePlatform, BUNDLE_STORAGE_PREFIX, BasePluginArgs, BuildPlugin, BuildPluginConfig, BuiltIns, type Bundle, type BundleDeployment, type BundleDetail, type BundlePatchRow, type BundleRow, BundleRowHydrationError, BundleRowHydrationErrorReason, type BundleRowUpdate, BundleSigningHandlerOptions, BundleSigningPlugin, CONTENT_ADDRESSED_ASSET_PREFIX, CatalogVersionBound, type ChannelDeleteResult, type ChannelInsertResult, type ChannelRow, CompiledCatalogSegment, CompiledReleaseCatalog, ConfigInput, type ConfiguredDatabase, CreateStoragePluginOptions, CreateStorageUriInput, type DatabaseBundleMetadata, DatabaseBundleNotFoundError, type DatabaseJsonObject, type DatabaseJsonValue, DatabasePluginInputError, type DatabasePluginInputErrorCode, DatabaseRowReferencedError, type DeployReleasePolicy, type Deployment, type EngineDatabase, FingerprintExtraSources, HasMultipleCallSignatures, type HotUpdaterCoreApi, IosBuildDestination, type KeysetInput, LocalSigningConfig, NativeBuildAndroidScheme, NativeBuildArgs, NativeBuildIosScheme, NativeBuildOptions, ParsedStorageUri, type Platform, PlatformConfig, Primitive, PromoteReleaseResult, REMOTE_BUNDLE_SIGNING_ALGORITHM, REMOTE_BUNDLE_SIGNING_PATH, REMOTE_BUNDLE_SIGNING_PROTOCOL_VERSION, REMOTE_BUNDLE_SIGNING_TOKEN_HEADER, ReleaseCatalogCompilation, ReleaseCatalogCompilationError, ReleaseCatalogCompilerDiagnostics, ReleaseCatalogMutationError, ReleaseCatalogMutationPreflight, ReleaseCatalogMutationResult, ReleaseCatalogRebuildPreflight, ReleaseCatalogRebuildResult, type ReleaseCatalogRow, type ReleaseCatalogRowUpdate, ReleaseCatalogScope, type ReleaseFilter, ReleaseManagementError, ReleasePolicyPatch, type ReleaseRow, type ReleaseRowUpdate, type ReleaseTarget, type RemoteDatabase, RemoteSigningOptions, RequiredDeep, SigningConfig, StorageDeleteInput, StorageDeleteResult, StorageExistsInput, StorageExistsResult, StorageGetDownloadUrlInput, StorageGetDownloadUrlResult, StorageGetInput, StorageGetResult, StorageObject, StorageOperation, StoragePlugin, StoragePluginWith, StoragePutInput, StoragePutResult, type StoredBundleDeployment, assertStorageOperations, bundleToPatchRows, bundleToRow, canonicalizeAppVersion, compileReleaseCatalog, createBundleSigningHandler, createBundleStorageKey, createStorageDownloadPath, createStorageDownloadUrl, createStorageKeyBuilder, createStoragePlugin, createStorageRootUriWithPath, createStorageUri, createStorageUriWithRelativePath, createUUIDv7, createUUIDv7After, createUUIDv7WithSameTimestamp, extractTimestampFromUUIDv7, filterCompatibleAppVersions, generateMinBundleId, getBundleArchiveStorageUri, getContentAddressedAssetStoragePath, getContentType, getManifestAssetDownloadPath, getManifestAssetStoragePath, isBrotliManifestAssetPath, isContentAddressedAssetFileHash, isDatabaseMetadataObject, isRemoteDatabase, isUUIDv7, parseStorageDownloadPath, parseStorageUri, projectCompiledCatalog, projectCompiledRollbackCatalog, referenceCompatibleReleases, releaseRowToRelease, releaseToRow, remoteSigning, replaceStorageUriKeySuffix, resolveManifestAssetStorageFileHash, resolveManifestAssetStorageUri, rowToBundle, rowsToBundles, semverSatisfies, supportedIosPlatforms };
|
package/dist/index.mjs
CHANGED
|
@@ -1,29 +1,22 @@
|
|
|
1
|
-
import { calculatePagination } from "./calculatePagination.mjs";
|
|
2
1
|
import { CONTENT_ADDRESSED_ASSET_PREFIX, getContentAddressedAssetStoragePath, isContentAddressedAssetFileHash } from "./contentAddressedAssets.mjs";
|
|
3
2
|
import { createStorageKeyBuilder } from "./createStorageKeyBuilder.mjs";
|
|
4
3
|
import { createStorageUri, parseStorageUri } from "./parseStorageUri.mjs";
|
|
5
4
|
import { createStorageUriWithRelativePath, getManifestAssetDownloadPath, getManifestAssetStoragePath, isBrotliManifestAssetPath, replaceStorageUriKeySuffix, resolveManifestAssetStorageFileHash, resolveManifestAssetStorageUri } from "./assetStorageLayout.mjs";
|
|
6
5
|
import { BUNDLE_STORAGE_PREFIX, createBundleStorageKey, createStorageRootUriWithPath, getBundleArchiveStorageUri } from "./bundleStorageLayout.mjs";
|
|
7
6
|
import { getContentType } from "./contentType.mjs";
|
|
8
|
-
import { DatabasePluginInputError } from "./
|
|
9
|
-
import { isDatabaseBundleEventMetadata, isDatabaseMetadataObject } from "./databaseJsonValue.mjs";
|
|
10
|
-
import { createUUIDv7, createUUIDv7After, createUUIDv7WithSameTimestamp, extractTimestampFromUUIDv7, isUUIDv7 } from "./uuidv7.mjs";
|
|
11
|
-
import { compareInsightsText, isInsightsMovementEvent } from "./insightsContract.mjs";
|
|
12
|
-
import { DatabaseAtomicCommitUnsupportedError, createDatabasePlugin } from "./createDatabasePlugin.mjs";
|
|
7
|
+
import { DatabaseBundleNotFoundError, DatabasePluginInputError, DatabaseRowReferencedError } from "./databaseErrors.mjs";
|
|
13
8
|
import { assertStorageOperations, createStoragePlugin } from "./createStoragePlugin.mjs";
|
|
9
|
+
import { isDatabaseMetadataObject } from "./databaseJsonValue.mjs";
|
|
14
10
|
import { BundleRowHydrationError, BundleRowHydrationErrorReason, bundleToPatchRows, bundleToRow, releaseRowToRelease, releaseToRow, rowToBundle, rowsToBundles } from "./databaseRows.mjs";
|
|
15
|
-
import { DatabasePatchUpdateUnsupportedError } from "./databaseClientUpdates.mjs";
|
|
16
|
-
import { DatabaseBundleNotFoundError, DatabasePatchInsertUnsupportedError, createDatabaseClient } from "./databaseClient.mjs";
|
|
17
11
|
import { semverSatisfies } from "./semverSatisfies.mjs";
|
|
18
12
|
import { filterCompatibleAppVersions } from "./filterCompatibleAppVersions.mjs";
|
|
19
13
|
import { generateMinBundleId } from "./generateMinBundleId.mjs";
|
|
20
|
-
import {
|
|
21
|
-
import { paginateBundles } from "./paginateBundles.mjs";
|
|
22
|
-
import { createRequestBundleResolver } from "./requestBundleCache.mjs";
|
|
14
|
+
import { createUUIDv7, createUUIDv7After, createUUIDv7WithSameTimestamp, extractTimestampFromUUIDv7, isUUIDv7 } from "./uuidv7.mjs";
|
|
23
15
|
import { ReleaseCatalogCompilationError, canonicalizeAppVersion, compileReleaseCatalog, projectCompiledCatalog, projectCompiledRollbackCatalog, referenceCompatibleReleases } from "./releaseCatalogCompiler.mjs";
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
16
|
+
import { ReleaseManagementError } from "./releaseManagement.mjs";
|
|
17
|
+
import { ReleaseCatalogMutationError } from "./releaseCatalogMutation.mjs";
|
|
26
18
|
import { REMOTE_BUNDLE_SIGNING_ALGORITHM, REMOTE_BUNDLE_SIGNING_PATH, REMOTE_BUNDLE_SIGNING_PROTOCOL_VERSION, REMOTE_BUNDLE_SIGNING_TOKEN_HEADER, createBundleSigningHandler, remoteSigning } from "./remoteBundleSigning.mjs";
|
|
27
19
|
import { createStorageDownloadPath, createStorageDownloadUrl, parseStorageDownloadPath } from "./storageDownloadPath.mjs";
|
|
20
|
+
import { isRemoteDatabase } from "./types/databaseConfig.mjs";
|
|
28
21
|
import { supportedIosPlatforms } from "./types/index.mjs";
|
|
29
|
-
export { BUNDLE_STORAGE_PREFIX, BundleRowHydrationError, BundleRowHydrationErrorReason, CONTENT_ADDRESSED_ASSET_PREFIX,
|
|
22
|
+
export { BUNDLE_STORAGE_PREFIX, BundleRowHydrationError, BundleRowHydrationErrorReason, CONTENT_ADDRESSED_ASSET_PREFIX, DatabaseBundleNotFoundError, DatabasePluginInputError, DatabaseRowReferencedError, REMOTE_BUNDLE_SIGNING_ALGORITHM, REMOTE_BUNDLE_SIGNING_PATH, REMOTE_BUNDLE_SIGNING_PROTOCOL_VERSION, REMOTE_BUNDLE_SIGNING_TOKEN_HEADER, ReleaseCatalogCompilationError, ReleaseCatalogMutationError, ReleaseManagementError, assertStorageOperations, bundleToPatchRows, bundleToRow, canonicalizeAppVersion, compileReleaseCatalog, createBundleSigningHandler, createBundleStorageKey, createStorageDownloadPath, createStorageDownloadUrl, createStorageKeyBuilder, createStoragePlugin, createStorageRootUriWithPath, createStorageUri, createStorageUriWithRelativePath, createUUIDv7, createUUIDv7After, createUUIDv7WithSameTimestamp, extractTimestampFromUUIDv7, filterCompatibleAppVersions, generateMinBundleId, getBundleArchiveStorageUri, getContentAddressedAssetStoragePath, getContentType, getManifestAssetDownloadPath, getManifestAssetStoragePath, isBrotliManifestAssetPath, isContentAddressedAssetFileHash, isDatabaseMetadataObject, isRemoteDatabase, isUUIDv7, parseStorageDownloadPath, parseStorageUri, projectCompiledCatalog, projectCompiledRollbackCatalog, referenceCompatibleReleases, releaseRowToRelease, releaseToRow, remoteSigning, replaceStorageUriKeySuffix, resolveManifestAssetStorageFileHash, resolveManifestAssetStorageUri, rowToBundle, rowsToBundles, semverSatisfies, supportedIosPlatforms };
|
package/dist/internal.cjs
CHANGED
|
@@ -1,21 +1,38 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
exports.
|
|
10
|
-
exports.
|
|
11
|
-
exports.
|
|
12
|
-
exports.
|
|
13
|
-
exports.
|
|
14
|
-
exports.
|
|
15
|
-
exports.
|
|
16
|
-
exports.
|
|
17
|
-
exports.
|
|
18
|
-
exports.
|
|
19
|
-
exports.
|
|
20
|
-
exports.
|
|
21
|
-
exports.
|
|
2
|
+
const require_databaseErrors = require("./databaseErrors.cjs");
|
|
3
|
+
const require_databaseJsonValue = require("./databaseJsonValue.cjs");
|
|
4
|
+
const require_adapter = require("./database/adapter.cjs");
|
|
5
|
+
const require_distinct = require("./database/distinct.cjs");
|
|
6
|
+
const require_values = require("./database/values.cjs");
|
|
7
|
+
const require_memoryAdapter = require("./database/memoryAdapter.cjs");
|
|
8
|
+
const require_verifyAdapter = require("./database/verifyAdapter.cjs");
|
|
9
|
+
exports.DATABASE_MAX_MULTI_VALUES = require_adapter.DATABASE_MAX_MULTI_VALUES;
|
|
10
|
+
exports.DATABASE_MAX_QUERY_LIMIT = require_adapter.DATABASE_MAX_QUERY_LIMIT;
|
|
11
|
+
exports.DATABASE_VERSION_COLUMN = require_adapter.DATABASE_VERSION_COLUMN;
|
|
12
|
+
exports.DatabaseAdapterContractError = require_verifyAdapter.DatabaseAdapterContractError;
|
|
13
|
+
exports.DatabaseRowReferencedError = require_databaseErrors.DatabaseRowReferencedError;
|
|
14
|
+
exports.DatabaseSchemaError = require_adapter.DatabaseSchemaError;
|
|
15
|
+
exports.DatabaseValueError = require_values.DatabaseValueError;
|
|
16
|
+
exports.addDistinct = require_distinct.addDistinct;
|
|
17
|
+
exports.canonicalJson = require_values.canonicalJson;
|
|
18
|
+
exports.compareKeyValues = require_values.compareKeyValues;
|
|
19
|
+
exports.compareTuples = require_values.compareTuples;
|
|
20
|
+
exports.compareUtf8 = require_values.compareUtf8;
|
|
21
|
+
exports.countDistinct = require_distinct.countDistinct;
|
|
22
|
+
exports.createMemoryAdapter = require_memoryAdapter.createMemoryAdapter;
|
|
23
|
+
exports.distinctRegister = require_distinct.distinctRegister;
|
|
24
|
+
exports.emptyDistinct = require_distinct.emptyDistinct;
|
|
25
|
+
exports.expiresAt = require_adapter.expiresAt;
|
|
26
|
+
exports.findPhysicalColumn = require_adapter.findPhysicalColumn;
|
|
27
|
+
exports.findPhysicalIndex = require_adapter.findPhysicalIndex;
|
|
28
|
+
exports.indexEntries = require_values.indexEntries;
|
|
29
|
+
exports.indexOrderColumns = require_adapter.indexOrderColumns;
|
|
30
|
+
exports.indexOrderTuple = require_values.indexOrderTuple;
|
|
31
|
+
exports.isDatabaseJsonObject = require_databaseJsonValue.isDatabaseJsonObject;
|
|
32
|
+
exports.isKeyValue = require_values.isKeyValue;
|
|
33
|
+
exports.matchesQuery = require_values.matchesQuery;
|
|
34
|
+
exports.mergeDistinct = require_distinct.mergeDistinct;
|
|
35
|
+
exports.normalizeStoredRow = require_values.normalizeStoredRow;
|
|
36
|
+
exports.normalizeStoredValue = require_values.normalizeStoredValue;
|
|
37
|
+
exports.rowKey = require_adapter.rowKey;
|
|
38
|
+
exports.verifyAdapter = require_verifyAdapter.verifyAdapter;
|
package/dist/internal.d.cts
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { databaseFields } from "./types/databaseFields.cjs";
|
|
1
|
+
import { DATABASE_MAX_MULTI_VALUES, DATABASE_MAX_QUERY_LIMIT, DATABASE_VERSION_COLUMN, DatabaseAdapter, DatabaseJson, DatabaseKey, DatabaseKeyValue, DatabaseSchemaError, DatabaseValue, PhysicalColumn, PhysicalColumnType, PhysicalIndex, PhysicalRetention, PhysicalTable, QueryBound, QueryRequest, StoredRow, WriteGuard, WriteOp, WriteResult, expiresAt, findPhysicalColumn, findPhysicalIndex, indexOrderColumns, rowKey } from "./database/adapter.cjs";
|
|
2
|
+
import { BundlePatchRow, BundleRow, ChannelRow, DatabaseBundleMetadata, DatabaseJsonObject, DatabaseJsonValue, ReleaseCatalogRow, ReleaseRow } from "./types/databaseRows.cjs";
|
|
3
|
+
import { BundleRowUpdate, ReleaseCatalogRowUpdate, ReleaseRowUpdate } from "./types/databaseOperations.cjs";
|
|
4
|
+
import { ChannelDeleteResult, ChannelInsertResult } from "./types/models.cjs";
|
|
5
|
+
import { DatabaseRowReferencedError } from "./databaseErrors.cjs";
|
|
6
|
+
import { isDatabaseJsonObject } from "./databaseJsonValue.cjs";
|
|
8
7
|
import "./types/internal.cjs";
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
export { type
|
|
8
|
+
import { addDistinct, countDistinct, distinctRegister, emptyDistinct, mergeDistinct } from "./database/distinct.cjs";
|
|
9
|
+
import { MemoryAdapterOptions, createMemoryAdapter } from "./database/memoryAdapter.cjs";
|
|
10
|
+
import { DatabaseValueError, NormalizeOptions, canonicalJson, compareKeyValues, compareTuples, compareUtf8, indexEntries, indexOrderTuple, isKeyValue, matchesQuery, normalizeStoredRow, normalizeStoredValue } from "./database/values.cjs";
|
|
11
|
+
import { DatabaseAdapterContractError, DatabaseReadCount, DatabaseReadMeter, VerifiedDatabaseAdapter, VerifyAdapterOptions, verifyAdapter } from "./database/verifyAdapter.cjs";
|
|
12
|
+
export { type BundlePatchRow, type BundleRow, type BundleRowUpdate, type ChannelDeleteResult, type ChannelInsertResult, type ChannelRow, DATABASE_MAX_MULTI_VALUES, DATABASE_MAX_QUERY_LIMIT, DATABASE_VERSION_COLUMN, DatabaseAdapter, DatabaseAdapterContractError, type DatabaseBundleMetadata, DatabaseJson, type DatabaseJsonObject, type DatabaseJsonValue, DatabaseKey, DatabaseKeyValue, DatabaseReadCount, DatabaseReadMeter, DatabaseRowReferencedError, DatabaseSchemaError, DatabaseValue, DatabaseValueError, MemoryAdapterOptions, NormalizeOptions, PhysicalColumn, PhysicalColumnType, PhysicalIndex, PhysicalRetention, PhysicalTable, QueryBound, QueryRequest, type ReleaseCatalogRow, type ReleaseCatalogRowUpdate, type ReleaseRow, type ReleaseRowUpdate, StoredRow, VerifiedDatabaseAdapter, VerifyAdapterOptions, WriteGuard, WriteOp, WriteResult, addDistinct, canonicalJson, compareKeyValues, compareTuples, compareUtf8, countDistinct, createMemoryAdapter, distinctRegister, emptyDistinct, expiresAt, findPhysicalColumn, findPhysicalIndex, indexEntries, indexOrderColumns, indexOrderTuple, isDatabaseJsonObject, isKeyValue, matchesQuery, mergeDistinct, normalizeStoredRow, normalizeStoredValue, rowKey, verifyAdapter };
|
package/dist/internal.d.mts
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { databaseFields } from "./types/databaseFields.mjs";
|
|
1
|
+
import { DATABASE_MAX_MULTI_VALUES, DATABASE_MAX_QUERY_LIMIT, DATABASE_VERSION_COLUMN, DatabaseAdapter, DatabaseJson, DatabaseKey, DatabaseKeyValue, DatabaseSchemaError, DatabaseValue, PhysicalColumn, PhysicalColumnType, PhysicalIndex, PhysicalRetention, PhysicalTable, QueryBound, QueryRequest, StoredRow, WriteGuard, WriteOp, WriteResult, expiresAt, findPhysicalColumn, findPhysicalIndex, indexOrderColumns, rowKey } from "./database/adapter.mjs";
|
|
2
|
+
import { BundlePatchRow, BundleRow, ChannelRow, DatabaseBundleMetadata, DatabaseJsonObject, DatabaseJsonValue, ReleaseCatalogRow, ReleaseRow } from "./types/databaseRows.mjs";
|
|
3
|
+
import { BundleRowUpdate, ReleaseCatalogRowUpdate, ReleaseRowUpdate } from "./types/databaseOperations.mjs";
|
|
4
|
+
import { ChannelDeleteResult, ChannelInsertResult } from "./types/models.mjs";
|
|
5
|
+
import { DatabaseRowReferencedError } from "./databaseErrors.mjs";
|
|
6
|
+
import { isDatabaseJsonObject } from "./databaseJsonValue.mjs";
|
|
8
7
|
import "./types/internal.mjs";
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
export { type
|
|
8
|
+
import { addDistinct, countDistinct, distinctRegister, emptyDistinct, mergeDistinct } from "./database/distinct.mjs";
|
|
9
|
+
import { MemoryAdapterOptions, createMemoryAdapter } from "./database/memoryAdapter.mjs";
|
|
10
|
+
import { DatabaseValueError, NormalizeOptions, canonicalJson, compareKeyValues, compareTuples, compareUtf8, indexEntries, indexOrderTuple, isKeyValue, matchesQuery, normalizeStoredRow, normalizeStoredValue } from "./database/values.mjs";
|
|
11
|
+
import { DatabaseAdapterContractError, DatabaseReadCount, DatabaseReadMeter, VerifiedDatabaseAdapter, VerifyAdapterOptions, verifyAdapter } from "./database/verifyAdapter.mjs";
|
|
12
|
+
export { type BundlePatchRow, type BundleRow, type BundleRowUpdate, type ChannelDeleteResult, type ChannelInsertResult, type ChannelRow, DATABASE_MAX_MULTI_VALUES, DATABASE_MAX_QUERY_LIMIT, DATABASE_VERSION_COLUMN, DatabaseAdapter, DatabaseAdapterContractError, type DatabaseBundleMetadata, DatabaseJson, type DatabaseJsonObject, type DatabaseJsonValue, DatabaseKey, DatabaseKeyValue, DatabaseReadCount, DatabaseReadMeter, DatabaseRowReferencedError, DatabaseSchemaError, DatabaseValue, DatabaseValueError, MemoryAdapterOptions, NormalizeOptions, PhysicalColumn, PhysicalColumnType, PhysicalIndex, PhysicalRetention, PhysicalTable, QueryBound, QueryRequest, type ReleaseCatalogRow, type ReleaseCatalogRowUpdate, type ReleaseRow, type ReleaseRowUpdate, StoredRow, VerifiedDatabaseAdapter, VerifyAdapterOptions, WriteGuard, WriteOp, WriteResult, addDistinct, canonicalJson, compareKeyValues, compareTuples, compareUtf8, countDistinct, createMemoryAdapter, distinctRegister, emptyDistinct, expiresAt, findPhysicalColumn, findPhysicalIndex, indexEntries, indexOrderColumns, indexOrderTuple, isDatabaseJsonObject, isKeyValue, matchesQuery, mergeDistinct, normalizeStoredRow, normalizeStoredValue, rowKey, verifyAdapter };
|
package/dist/internal.mjs
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
1
|
+
import { DatabaseRowReferencedError } from "./databaseErrors.mjs";
|
|
2
|
+
import { isDatabaseJsonObject } from "./databaseJsonValue.mjs";
|
|
3
|
+
import { DATABASE_MAX_MULTI_VALUES, DATABASE_MAX_QUERY_LIMIT, DATABASE_VERSION_COLUMN, DatabaseSchemaError, expiresAt, findPhysicalColumn, findPhysicalIndex, indexOrderColumns, rowKey } from "./database/adapter.mjs";
|
|
4
|
+
import { addDistinct, countDistinct, distinctRegister, emptyDistinct, mergeDistinct } from "./database/distinct.mjs";
|
|
5
|
+
import { DatabaseValueError, canonicalJson, compareKeyValues, compareTuples, compareUtf8, indexEntries, indexOrderTuple, isKeyValue, matchesQuery, normalizeStoredRow, normalizeStoredValue } from "./database/values.mjs";
|
|
6
|
+
import { createMemoryAdapter } from "./database/memoryAdapter.mjs";
|
|
7
|
+
import { DatabaseAdapterContractError, verifyAdapter } from "./database/verifyAdapter.mjs";
|
|
8
|
+
export { DATABASE_MAX_MULTI_VALUES, DATABASE_MAX_QUERY_LIMIT, DATABASE_VERSION_COLUMN, DatabaseAdapterContractError, DatabaseRowReferencedError, DatabaseSchemaError, DatabaseValueError, addDistinct, canonicalJson, compareKeyValues, compareTuples, compareUtf8, countDistinct, createMemoryAdapter, distinctRegister, emptyDistinct, expiresAt, findPhysicalColumn, findPhysicalIndex, indexEntries, indexOrderColumns, indexOrderTuple, isDatabaseJsonObject, isKeyValue, matchesQuery, mergeDistinct, normalizeStoredRow, normalizeStoredValue, rowKey, verifyAdapter };
|
|
@@ -283,7 +283,7 @@ function compileAppVersion(releases) {
|
|
|
283
283
|
...segment,
|
|
284
284
|
releaseIndexes: releases.filter((release) => retainedIds.has(release.id)).map((release) => descriptorIndex.get(release.id)).filter((index) => index !== void 0),
|
|
285
285
|
rollbackReleaseIndexes: releases.filter((release) => rollbackIds.has(release.id)).map((release) => descriptorIndex.get(release.id)).filter((index) => index !== void 0)
|
|
286
|
-
})).filter((segment) => segment.releaseIndexes.length > 0 || segment.rollbackReleaseIndexes.length > 0)
|
|
286
|
+
}))).filter((segment) => segment.releaseIndexes.length > 0 || segment.rollbackReleaseIndexes.length > 0);
|
|
287
287
|
return {
|
|
288
288
|
envelope: {
|
|
289
289
|
fallbackPolicy: _hot_updater_core.RELEASE_CATALOG_FALLBACK_POLICY,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { isUUIDv7 as isUUIDv7$1 } from "./uuidv7.mjs";
|
|
2
1
|
import { t as compare } from "./node_modules/.pnpm/verkit@0.4.0/node_modules/verkit/dist/comparison-DenM3wCn.mjs";
|
|
3
2
|
import { f as satisfies, m as parseRange } from "./node_modules/.pnpm/verkit@0.4.0/node_modules/verkit/dist/range-DvX-Y6iv.mjs";
|
|
4
3
|
import { m as normalizeFull, n as coerce, p as normalize } from "./node_modules/.pnpm/verkit@0.4.0/node_modules/verkit/dist/version-CQ98ZBpL.mjs";
|
|
4
|
+
import { isUUIDv7 as isUUIDv7$1 } from "./uuidv7.mjs";
|
|
5
5
|
import { MAX_COMPILED_CATALOG_BYTES, MAX_DISTINCT_TARGET_COHORTS_PER_SCOPE, MAX_TARGET_COHORTS_PER_RELEASE, NUMERIC_COHORT_SIZE, RELEASE_CATALOG_FALLBACK_POLICY, RELEASE_CATALOG_SCHEMA_VERSION, getNumericCohortValue, getRolledOutNumericCohorts, isCustomCohort, normalizeCohortValue, normalizeRolloutCohortCount } from "@hot-updater/core";
|
|
6
6
|
//#region src/releaseCatalogCompiler.ts
|
|
7
7
|
var ReleaseCatalogCompilationError = class extends Error {
|
|
@@ -284,7 +284,7 @@ function compileAppVersion(releases) {
|
|
|
284
284
|
...segment,
|
|
285
285
|
releaseIndexes: releases.filter((release) => retainedIds.has(release.id)).map((release) => descriptorIndex.get(release.id)).filter((index) => index !== void 0),
|
|
286
286
|
rollbackReleaseIndexes: releases.filter((release) => rollbackIds.has(release.id)).map((release) => descriptorIndex.get(release.id)).filter((index) => index !== void 0)
|
|
287
|
-
})).filter((segment) => segment.releaseIndexes.length > 0 || segment.rollbackReleaseIndexes.length > 0)
|
|
287
|
+
}))).filter((segment) => segment.releaseIndexes.length > 0 || segment.rollbackReleaseIndexes.length > 0);
|
|
288
288
|
return {
|
|
289
289
|
envelope: {
|
|
290
290
|
fallbackPolicy: RELEASE_CATALOG_FALLBACK_POLICY,
|