@hot-updater/plugin-core 1.0.0-rc.44 → 1.0.0-rc.46
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/databaseMetadata.cjs +3 -5
- package/dist/databaseMetadata.mjs +3 -5
- package/dist/databaseRows.cjs +1 -1
- package/dist/databaseRows.mjs +2 -2
- package/dist/engine/db/engineMigrator.cjs +0 -1
- package/dist/engine/db/engineMigrator.mjs +1 -2
- package/dist/engine/db/engineSqlMigrator.cjs +0 -1
- package/dist/engine/db/engineSqlMigrator.mjs +1 -2
- package/dist/engine/db/fixedMigratorShared.cjs +0 -4
- package/dist/engine/db/fixedMigratorShared.mjs +1 -4
- package/dist/engine/db/settingsMigrator.cjs +0 -1
- package/dist/engine/db/settingsMigrator.mjs +1 -2
- package/dist/engine/db/types.d.cts +0 -1
- package/dist/engine/db/types.d.mts +0 -1
- package/dist/index.cjs +1 -3
- package/dist/index.d.cts +1 -2
- package/dist/index.d.mts +1 -2
- package/dist/index.mjs +2 -3
- package/package.json +3 -3
- package/dist/filterCompatibleAppVersions.cjs +0 -15
- package/dist/filterCompatibleAppVersions.d.cts +0 -12
- package/dist/filterCompatibleAppVersions.d.mts +0 -12
- package/dist/filterCompatibleAppVersions.mjs +0 -15
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
const require_databaseErrors = require("./databaseErrors.cjs");
|
|
2
2
|
const require_databaseJsonValue = require("./databaseJsonValue.cjs");
|
|
3
|
-
let _hot_updater_protocol = require("@hot-updater/protocol");
|
|
4
3
|
//#region src/databaseMetadata.ts
|
|
5
4
|
const bundleMetadataToRow = (metadata) => {
|
|
6
|
-
|
|
7
|
-
if (
|
|
8
|
-
|
|
9
|
-
return value;
|
|
5
|
+
if (metadata === void 0) return {};
|
|
6
|
+
if (!require_databaseJsonValue.isDatabaseMetadataObject(metadata)) throw new require_databaseErrors.DatabaseAdapterInputError("invalid-data");
|
|
7
|
+
return metadata;
|
|
10
8
|
};
|
|
11
9
|
//#endregion
|
|
12
10
|
exports.bundleMetadataToRow = bundleMetadataToRow;
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import { DatabaseAdapterInputError } from "./databaseErrors.mjs";
|
|
2
2
|
import { isDatabaseMetadataObject } from "./databaseJsonValue.mjs";
|
|
3
|
-
import { stripBundleArtifactMetadata } from "@hot-updater/protocol";
|
|
4
3
|
//#region src/databaseMetadata.ts
|
|
5
4
|
const bundleMetadataToRow = (metadata) => {
|
|
6
|
-
|
|
7
|
-
if (
|
|
8
|
-
|
|
9
|
-
return value;
|
|
5
|
+
if (metadata === void 0) return {};
|
|
6
|
+
if (!isDatabaseMetadataObject(metadata)) throw new DatabaseAdapterInputError("invalid-data");
|
|
7
|
+
return metadata;
|
|
10
8
|
};
|
|
11
9
|
//#endregion
|
|
12
10
|
export { bundleMetadataToRow };
|
package/dist/databaseRows.cjs
CHANGED
|
@@ -95,7 +95,7 @@ const rowToBundle = (row, patchRows = []) => {
|
|
|
95
95
|
id: row.id,
|
|
96
96
|
platform: row.platform,
|
|
97
97
|
gitCommitHash: row.git_commit_hash,
|
|
98
|
-
metadata:
|
|
98
|
+
metadata: row.metadata,
|
|
99
99
|
manifestStorageUri: row.manifest_storage_uri,
|
|
100
100
|
manifestFileHash: row.manifest_file_hash,
|
|
101
101
|
assetBaseStorageUri: row.asset_base_storage_uri,
|
package/dist/databaseRows.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { bundleMetadataToRow } from "./databaseMetadata.mjs";
|
|
2
|
-
import { getAssetBaseStorageUri, getBundlePatches, getManifestFileHash, getManifestStorageUri
|
|
2
|
+
import { getAssetBaseStorageUri, getBundlePatches, getManifestFileHash, getManifestStorageUri } from "@hot-updater/protocol";
|
|
3
3
|
//#region src/databaseRows.ts
|
|
4
4
|
const releaseToRow = (release, scopeKey) => ({
|
|
5
5
|
id: release.id,
|
|
@@ -95,7 +95,7 @@ const rowToBundle = (row, patchRows = []) => {
|
|
|
95
95
|
id: row.id,
|
|
96
96
|
platform: row.platform,
|
|
97
97
|
gitCommitHash: row.git_commit_hash,
|
|
98
|
-
metadata:
|
|
98
|
+
metadata: row.metadata,
|
|
99
99
|
manifestStorageUri: row.manifest_storage_uri,
|
|
100
100
|
manifestFileHash: row.manifest_file_hash,
|
|
101
101
|
assetBaseStorageUri: row.asset_base_storage_uri,
|
|
@@ -12,7 +12,6 @@ const require_settingsMigrator = require("./settingsMigrator.cjs");
|
|
|
12
12
|
const createEngineMigrator = (options) => {
|
|
13
13
|
const getVersion = async () => require_settingsMigrator.storedSchemaVersion(await options.readSettings());
|
|
14
14
|
const makeResult = async (migrate = {}) => {
|
|
15
|
-
require_fixedMigratorShared.assertSupportedMigrationMode(migrate);
|
|
16
15
|
const stored = await options.readSettings();
|
|
17
16
|
require_settingsMigrator.refusePreEngineDatabase(options.adapterName, stored);
|
|
18
17
|
if (Object.entries(options.settings).every(([key, value]) => stored.get(key) === value)) return require_fixedMigratorShared.getEmptyMigrationResult();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HOT_UPDATER_SCHEMA_VERSION } from "../core/schema.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { getEmptyMigrationResult } from "./fixedMigratorShared.mjs";
|
|
3
3
|
import { migrateSchema } from "./schemaSettings.mjs";
|
|
4
4
|
import { refusePreEngineDatabase, storedSchemaVersion } from "./settingsMigrator.mjs";
|
|
5
5
|
//#region src/engine/db/engineMigrator.ts
|
|
@@ -12,7 +12,6 @@ import { refusePreEngineDatabase, storedSchemaVersion } from "./settingsMigrator
|
|
|
12
12
|
const createEngineMigrator = (options) => {
|
|
13
13
|
const getVersion = async () => storedSchemaVersion(await options.readSettings());
|
|
14
14
|
const makeResult = async (migrate = {}) => {
|
|
15
|
-
assertSupportedMigrationMode(migrate);
|
|
16
15
|
const stored = await options.readSettings();
|
|
17
16
|
refusePreEngineDatabase(options.adapterName, stored);
|
|
18
17
|
if (Object.entries(options.settings).every(([key, value]) => stored.get(key) === value)) return getEmptyMigrationResult();
|
|
@@ -24,7 +24,6 @@ const createEngineSqlMigrator = (options) => {
|
|
|
24
24
|
const read = async () => await require_settingsMigrator.readStoredSettings(options.executor, options.tablePrefix) ?? /* @__PURE__ */ new Map();
|
|
25
25
|
const getVersion = async () => require_settingsMigrator.storedSchemaVersion(await read());
|
|
26
26
|
const makeResult = async (migrate = {}) => {
|
|
27
|
-
require_fixedMigratorShared.assertSupportedMigrationMode(migrate);
|
|
28
27
|
const stored = await read();
|
|
29
28
|
require_settingsMigrator.refusePreEngineDatabase(options.adapterName, stored);
|
|
30
29
|
if (Object.entries(options.settings).every(([key, value]) => stored.get(key) === value)) return require_fixedMigratorShared.getEmptyMigrationResult();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HOT_UPDATER_SCHEMA_VERSION } from "../core/schema.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { getEmptyMigrationResult } from "./fixedMigratorShared.mjs";
|
|
3
3
|
import { generateEngineSql } from "./engineSql.mjs";
|
|
4
4
|
import { readStoredSettings, refusePreEngineDatabase, storedSchemaVersion } from "./settingsMigrator.mjs";
|
|
5
5
|
//#region src/engine/db/engineSqlMigrator.ts
|
|
@@ -24,7 +24,6 @@ const createEngineSqlMigrator = (options) => {
|
|
|
24
24
|
const read = async () => await readStoredSettings(options.executor, options.tablePrefix) ?? /* @__PURE__ */ new Map();
|
|
25
25
|
const getVersion = async () => storedSchemaVersion(await read());
|
|
26
26
|
const makeResult = async (migrate = {}) => {
|
|
27
|
-
assertSupportedMigrationMode(migrate);
|
|
28
27
|
const stored = await read();
|
|
29
28
|
refusePreEngineDatabase(options.adapterName, stored);
|
|
30
29
|
if (Object.entries(options.settings).every(([key, value]) => stored.get(key) === value)) return getEmptyMigrationResult();
|
|
@@ -4,9 +4,5 @@ const getEmptyMigrationResult = () => ({
|
|
|
4
4
|
execute: async () => {},
|
|
5
5
|
getSQL: () => ""
|
|
6
6
|
});
|
|
7
|
-
const assertSupportedMigrationMode = (options) => {
|
|
8
|
-
if (options.mode === "from-database") throw new Error("Hot Updater migrations support only mode: 'from-schema'.");
|
|
9
|
-
};
|
|
10
7
|
//#endregion
|
|
11
|
-
exports.assertSupportedMigrationMode = assertSupportedMigrationMode;
|
|
12
8
|
exports.getEmptyMigrationResult = getEmptyMigrationResult;
|
|
@@ -4,8 +4,5 @@ const getEmptyMigrationResult = () => ({
|
|
|
4
4
|
execute: async () => {},
|
|
5
5
|
getSQL: () => ""
|
|
6
6
|
});
|
|
7
|
-
const assertSupportedMigrationMode = (options) => {
|
|
8
|
-
if (options.mode === "from-database") throw new Error("Hot Updater migrations support only mode: 'from-schema'.");
|
|
9
|
-
};
|
|
10
7
|
//#endregion
|
|
11
|
-
export {
|
|
8
|
+
export { getEmptyMigrationResult };
|
|
@@ -47,7 +47,6 @@ const createSettingsMigrator = (options) => {
|
|
|
47
47
|
const read = () => readStoredSettings(options.executor);
|
|
48
48
|
const getVersion = async () => storedSchemaVersion(await read());
|
|
49
49
|
const makeResult = async (migrate = {}) => {
|
|
50
|
-
require_fixedMigratorShared.assertSupportedMigrationMode(migrate);
|
|
51
50
|
const stored = await read();
|
|
52
51
|
if (stored === null) throw new Error(`${options.adapterName}: the Hot Updater tables are missing. Run \`hot-updater db generate\`, apply the schema with ${options.applyTables}, then migrate again.`);
|
|
53
52
|
refusePreEngineDatabase(options.adapterName, stored);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HOT_UPDATER_SCHEMA_VERSION } from "../core/schema.mjs";
|
|
2
2
|
import { ENGINE_SCHEMA_KEY, HotUpdaterSchemaMigrationRequiredError, SETTINGS_TABLE, isMissingSchemaError } from "../database/fence.mjs";
|
|
3
|
-
import {
|
|
3
|
+
import { getEmptyMigrationResult } from "./fixedMigratorShared.mjs";
|
|
4
4
|
import { quoteSql } from "../database/sql/sqlSchema.mjs";
|
|
5
5
|
import { settingsStatements } from "./engineSql.mjs";
|
|
6
6
|
//#region src/engine/db/settingsMigrator.ts
|
|
@@ -47,7 +47,6 @@ const createSettingsMigrator = (options) => {
|
|
|
47
47
|
const read = () => readStoredSettings(options.executor);
|
|
48
48
|
const getVersion = async () => storedSchemaVersion(await read());
|
|
49
49
|
const makeResult = async (migrate = {}) => {
|
|
50
|
-
assertSupportedMigrationMode(migrate);
|
|
51
50
|
const stored = await read();
|
|
52
51
|
if (stored === null) throw new Error(`${options.adapterName}: the Hot Updater tables are missing. Run \`hot-updater db generate\`, apply the schema with ${options.applyTables}, then migrate again.`);
|
|
53
52
|
refusePreEngineDatabase(options.adapterName, stored);
|
|
@@ -6,7 +6,6 @@ declare const providers: readonly ["sqlite", "mysql", "postgresql", "mongodb"];
|
|
|
6
6
|
type ORMProvider = (typeof providers)[number];
|
|
7
7
|
/** What a `Migrator`'s migrations take. */
|
|
8
8
|
interface MigrateOptions {
|
|
9
|
-
mode?: "from-schema" | "from-database";
|
|
10
9
|
updateSettings?: boolean;
|
|
11
10
|
unsafe?: boolean;
|
|
12
11
|
}
|
|
@@ -6,7 +6,6 @@ declare const providers: readonly ["sqlite", "mysql", "postgresql", "mongodb"];
|
|
|
6
6
|
type ORMProvider = (typeof providers)[number];
|
|
7
7
|
/** What a `Migrator`'s migrations take. */
|
|
8
8
|
interface MigrateOptions {
|
|
9
|
-
mode?: "from-schema" | "from-database";
|
|
10
9
|
updateSettings?: boolean;
|
|
11
10
|
unsafe?: boolean;
|
|
12
11
|
}
|
package/dist/index.cjs
CHANGED
|
@@ -9,14 +9,13 @@ const require_databaseErrors = require("./databaseErrors.cjs");
|
|
|
9
9
|
const require_createStorageAdapter = require("./createStorageAdapter.cjs");
|
|
10
10
|
const require_databaseJsonValue = require("./databaseJsonValue.cjs");
|
|
11
11
|
const require_databaseRows = require("./databaseRows.cjs");
|
|
12
|
-
const require_semverSatisfies = require("./semverSatisfies.cjs");
|
|
13
|
-
const require_filterCompatibleAppVersions = require("./filterCompatibleAppVersions.cjs");
|
|
14
12
|
const require_generateMinBundleId = require("./generateMinBundleId.cjs");
|
|
15
13
|
const require_uuidv7 = require("./uuidv7.cjs");
|
|
16
14
|
const require_releaseCatalogCompiler = require("./releaseCatalogCompiler.cjs");
|
|
17
15
|
const require_releaseManagement = require("./releaseManagement.cjs");
|
|
18
16
|
const require_releaseCatalogMutation = require("./releaseCatalogMutation.cjs");
|
|
19
17
|
const require_remoteBundleSigning = require("./remoteBundleSigning.cjs");
|
|
18
|
+
const require_semverSatisfies = require("./semverSatisfies.cjs");
|
|
20
19
|
const require_databaseConfig = require("./types/databaseConfig.cjs");
|
|
21
20
|
const require_index = require("./types/index.cjs");
|
|
22
21
|
const require_definePlugin = require("./serverPlugin/definePlugin.cjs");
|
|
@@ -110,7 +109,6 @@ exports.defineTable = require_schema.defineTable;
|
|
|
110
109
|
exports.encodeKvKey = require_kvAdapter.encodeKvKey;
|
|
111
110
|
exports.expiresAt = require_adapter.expiresAt;
|
|
112
111
|
exports.extractTimestampFromUUIDv7 = require_uuidv7.extractTimestampFromUUIDv7;
|
|
113
|
-
exports.filterCompatibleAppVersions = require_filterCompatibleAppVersions.filterCompatibleAppVersions;
|
|
114
112
|
exports.findPhysicalColumn = require_adapter.findPhysicalColumn;
|
|
115
113
|
exports.findPhysicalIndex = require_adapter.findPhysicalIndex;
|
|
116
114
|
exports.generateEngineSql = require_engineSql.generateEngineSql;
|
package/dist/index.d.cts
CHANGED
|
@@ -27,7 +27,6 @@ import { createStorageKeyBuilder } from "./createStorageKeyBuilder.cjs";
|
|
|
27
27
|
import { CreateStorageAdapterOptions, StorageAdapterWith, StorageOperation, assertStorageOperations, createStorageAdapter } from "./createStorageAdapter.cjs";
|
|
28
28
|
import { isDatabaseJsonObject, isDatabaseMetadataObject } from "./databaseJsonValue.cjs";
|
|
29
29
|
import { BundleRowHydrationError, BundleRowHydrationErrorReason, bundleToPatchRows, bundleToRow, releaseRowToRelease, releaseToRow, rowToBundle, rowsToBundles } from "./databaseRows.cjs";
|
|
30
|
-
import { filterCompatibleAppVersions } from "./filterCompatibleAppVersions.cjs";
|
|
31
30
|
import { generateMinBundleId } from "./generateMinBundleId.cjs";
|
|
32
31
|
import { CreateStorageUriInput, ParsedStorageUri, createStorageUri, parseStorageUri } from "./parseStorageUri.cjs";
|
|
33
32
|
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";
|
|
@@ -53,4 +52,4 @@ import { EngineSqlOptions, generateEngineSql } from "./engine/db/engineSql.cjs";
|
|
|
53
52
|
import { EngineSqlMigratorOptions, createEngineSqlMigrator } from "./engine/db/engineSqlMigrator.cjs";
|
|
54
53
|
import { writeSchemaSettings } from "./engine/db/schemaSettings.cjs";
|
|
55
54
|
import { createSettingsMigrator } from "./engine/db/settingsMigrator.cjs";
|
|
56
|
-
export { type AggregateBatching, type AggregateChanges, type AggregateDefinition, type AggregateIdentity, type AggregateRow, type AnyHotUpdaterPlugin, ApplePlatform, BUNDLE_STORAGE_PREFIX, type BaseCandidateQuery, type BaseCandidateTarget, BuildAdapter, BuildAdapterArgs, BuildAdapterConfig, BuiltIns, type Bundle, type BundleDeployment, type BundleDetail, type BundlePatchRow, type BundleRow, BundleRowHydrationError, BundleRowHydrationErrorReason, type BundleRowUpdate, BundleSigningAdapter, BundleSigningHandlerOptions, CONTENT_ADDRESSED_ASSET_PREFIX, CatalogVersionBound, type ChannelDeleteResult, type ChannelInsertResult, type ChannelRow, type ClientAuth, CompiledCatalogSegment, CompiledReleaseCatalog, ConfigInput, type ConfiguredDatabase, type ConstraintReason, type CoreReader, type CoreReads, type CoreSchema, type CreateRow, CreateStorageAdapterOptions, CreateStorageUriInput, DATABASE_VERSION_COLUMN, type DatabaseAdapter, DatabaseAdapterContractError, DatabaseAdapterInputError, type DatabaseAdapterInputErrorCode, DatabaseAmbiguousCommitError, type DatabaseBundleMetadata, DatabaseBundleNotFoundError, DatabaseConflictError, DatabaseConstraintError, DatabaseCursorError, type DatabaseJson, type DatabaseJsonObject, type DatabaseJsonValue, type DatabaseKey, type DatabaseKeyValue, DatabaseQueryError, type DatabaseReadCount, type DatabaseReadMeter, DatabaseRowReferencedError, DatabaseSchemaError, type DatabaseTooling, DatabaseTransactionError, type DatabaseValue, type DeployReleasePolicy, type Deployment, type DerivedDefinition, type DerivedFields, type Engine, type EngineColumns, type EngineDatabase, type EngineDatabaseOptions, type EngineOptions, type EngineReadCount, type EngineSqlMigratorOptions, type EngineSqlOptions, type FieldDefinition, type FieldReference, type FieldType, type FieldValue, type FindAggregatesModel, type FindManyModel, FingerprintExtraSources, HasMultipleCallSignatures, HotUpdaterConfigError, type HotUpdaterCoreApi, type HotUpdaterDatabase, type HotUpdaterPlugin, HotUpdaterSchemaMigrationRequiredError, type HotUpdaterTransaction, type IndexDefinition, IosBuildDestination, type KeyLookup, type KeyValueStore, type KeysetInput, type KvAdapterOptions, type KvCondition, type KvItem, type KvKey, type KvOp, type KvRange, LocalSigningConfig, type Lookup, type MemoryAdapterOptions, type MeteredDatabase, type MigrateOptions, type MigrationResult, type Migrator, type ModelDefinition, type ModuleSchema, NativeBuildAndroidScheme, NativeBuildArgs, NativeBuildIosScheme, NativeBuildOptions, type NormalizeOptions, type Page, ParsedStorageUri, type PhysicalColumn, type PhysicalColumnType, type PhysicalIndex, type PhysicalRetention, type PhysicalTable, type Platform, PlatformConfig, type PluginApis, type PluginCli, type PluginClientCredential, type PluginClientPlugin, type PluginContext, type PluginEndpoint, type PluginEndpointMethod, type PluginInstance, type PluginProvides, type PluginTables, Primitive, PromoteReleaseResult, type QueryBound, type QueryRequest, REMOTE_BUNDLE_SIGNING_ALGORITHM, REMOTE_BUNDLE_SIGNING_PATH, REMOTE_BUNDLE_SIGNING_PROTOCOL_VERSION, REMOTE_BUNDLE_SIGNING_TOKEN_HEADER, type ReadMeasurement, type ReadOptions, type ReadRow, type ReferenceAction, ReleaseCatalogCompilation, ReleaseCatalogCompilationError, ReleaseCatalogCompilerDiagnostics, ReleaseCatalogMutationError, ReleaseCatalogMutationPreflight, ReleaseCatalogMutationResult, ReleaseCatalogRebuildPreflight, ReleaseCatalogRebuildResult, type ReleaseCatalogRequest, type ReleaseCatalogRow, type ReleaseCatalogRowUpdate, ReleaseCatalogScope, type ReleaseFilter, ReleaseManagementError, ReleasePolicyPatch, type ReleaseRow, type ReleaseRowUpdate, type ReleaseTarget, type RemoteDatabase, RemoteSigningOptions, RequiredDeep, type ResolvedModel, type ResolvedSchema, type RetentionDefinition, type RetryOptions, type RowOf, SETTINGS_TABLE, type SchemaGenerator, type SchemaSettings, SigningConfig, type SqlAdapterOptions, type SqlColumnShape, type SqlConnection, type SqlDialect, type SqlExecutor, type SqlResult, type SqlStatement, type SqlTableShape, StorageAdapter, StorageAdapterWith, StorageDeleteInput, StorageDeleteResult, StorageExistsInput, StorageExistsResult, StorageGetDownloadUrlInput, StorageGetDownloadUrlResult, StorageGetInput, StorageGetResult, StorageObject, StorageOperation, StoragePutInput, StoragePutResult, type StoredBundleDeployment, type StoredRow, type TableDefinition, type TableRow, type ToolingDatabase, type ToolingTarget, type UpdateSet, type VerifiedDatabaseAdapter, type VerifyAdapterOptions, WRITE_GUARD_TABLE, type WriteGuard, type WriteOp, type WriteResult, addDistinct, aggregateBatchingTables, assertStorageOperations, bundleToPatchRows, bundleToRow, canonicalizeAppVersion, compareUtf8, compileReleaseCatalog, coreSchema, coreSettings, coreTarget, countDistinct, createBundleSigningHandler, createBundleStorageKey, createEngine, createEngineDatabase, createEngineSqlMigrator, createKvAdapter, createMemoryAdapter, createSettingsMigrator, createSqlAdapter, createStorageAdapter, createStorageKeyBuilder, createStorageRootUriWithPath, createStorageUri, createStorageUriWithRelativePath, createTableStatements, createUUIDv7, createUUIDv7After, createUUIDv7WithSameTimestamp, defineAggregate, definePlugin, defineTable, encodeKvKey, expiresAt, extractTimestampFromUUIDv7,
|
|
55
|
+
export { type AggregateBatching, type AggregateChanges, type AggregateDefinition, type AggregateIdentity, type AggregateRow, type AnyHotUpdaterPlugin, ApplePlatform, BUNDLE_STORAGE_PREFIX, type BaseCandidateQuery, type BaseCandidateTarget, BuildAdapter, BuildAdapterArgs, BuildAdapterConfig, BuiltIns, type Bundle, type BundleDeployment, type BundleDetail, type BundlePatchRow, type BundleRow, BundleRowHydrationError, BundleRowHydrationErrorReason, type BundleRowUpdate, BundleSigningAdapter, BundleSigningHandlerOptions, CONTENT_ADDRESSED_ASSET_PREFIX, CatalogVersionBound, type ChannelDeleteResult, type ChannelInsertResult, type ChannelRow, type ClientAuth, CompiledCatalogSegment, CompiledReleaseCatalog, ConfigInput, type ConfiguredDatabase, type ConstraintReason, type CoreReader, type CoreReads, type CoreSchema, type CreateRow, CreateStorageAdapterOptions, CreateStorageUriInput, DATABASE_VERSION_COLUMN, type DatabaseAdapter, DatabaseAdapterContractError, DatabaseAdapterInputError, type DatabaseAdapterInputErrorCode, DatabaseAmbiguousCommitError, type DatabaseBundleMetadata, DatabaseBundleNotFoundError, DatabaseConflictError, DatabaseConstraintError, DatabaseCursorError, type DatabaseJson, type DatabaseJsonObject, type DatabaseJsonValue, type DatabaseKey, type DatabaseKeyValue, DatabaseQueryError, type DatabaseReadCount, type DatabaseReadMeter, DatabaseRowReferencedError, DatabaseSchemaError, type DatabaseTooling, DatabaseTransactionError, type DatabaseValue, type DeployReleasePolicy, type Deployment, type DerivedDefinition, type DerivedFields, type Engine, type EngineColumns, type EngineDatabase, type EngineDatabaseOptions, type EngineOptions, type EngineReadCount, type EngineSqlMigratorOptions, type EngineSqlOptions, type FieldDefinition, type FieldReference, type FieldType, type FieldValue, type FindAggregatesModel, type FindManyModel, FingerprintExtraSources, HasMultipleCallSignatures, HotUpdaterConfigError, type HotUpdaterCoreApi, type HotUpdaterDatabase, type HotUpdaterPlugin, HotUpdaterSchemaMigrationRequiredError, type HotUpdaterTransaction, type IndexDefinition, IosBuildDestination, type KeyLookup, type KeyValueStore, type KeysetInput, type KvAdapterOptions, type KvCondition, type KvItem, type KvKey, type KvOp, type KvRange, LocalSigningConfig, type Lookup, type MemoryAdapterOptions, type MeteredDatabase, type MigrateOptions, type MigrationResult, type Migrator, type ModelDefinition, type ModuleSchema, NativeBuildAndroidScheme, NativeBuildArgs, NativeBuildIosScheme, NativeBuildOptions, type NormalizeOptions, type Page, ParsedStorageUri, type PhysicalColumn, type PhysicalColumnType, type PhysicalIndex, type PhysicalRetention, type PhysicalTable, type Platform, PlatformConfig, type PluginApis, type PluginCli, type PluginClientCredential, type PluginClientPlugin, type PluginContext, type PluginEndpoint, type PluginEndpointMethod, type PluginInstance, type PluginProvides, type PluginTables, Primitive, PromoteReleaseResult, type QueryBound, type QueryRequest, REMOTE_BUNDLE_SIGNING_ALGORITHM, REMOTE_BUNDLE_SIGNING_PATH, REMOTE_BUNDLE_SIGNING_PROTOCOL_VERSION, REMOTE_BUNDLE_SIGNING_TOKEN_HEADER, type ReadMeasurement, type ReadOptions, type ReadRow, type ReferenceAction, ReleaseCatalogCompilation, ReleaseCatalogCompilationError, ReleaseCatalogCompilerDiagnostics, ReleaseCatalogMutationError, ReleaseCatalogMutationPreflight, ReleaseCatalogMutationResult, ReleaseCatalogRebuildPreflight, ReleaseCatalogRebuildResult, type ReleaseCatalogRequest, type ReleaseCatalogRow, type ReleaseCatalogRowUpdate, ReleaseCatalogScope, type ReleaseFilter, ReleaseManagementError, ReleasePolicyPatch, type ReleaseRow, type ReleaseRowUpdate, type ReleaseTarget, type RemoteDatabase, RemoteSigningOptions, RequiredDeep, type ResolvedModel, type ResolvedSchema, type RetentionDefinition, type RetryOptions, type RowOf, SETTINGS_TABLE, type SchemaGenerator, type SchemaSettings, SigningConfig, type SqlAdapterOptions, type SqlColumnShape, type SqlConnection, type SqlDialect, type SqlExecutor, type SqlResult, type SqlStatement, type SqlTableShape, StorageAdapter, StorageAdapterWith, StorageDeleteInput, StorageDeleteResult, StorageExistsInput, StorageExistsResult, StorageGetDownloadUrlInput, StorageGetDownloadUrlResult, StorageGetInput, StorageGetResult, StorageObject, StorageOperation, StoragePutInput, StoragePutResult, type StoredBundleDeployment, type StoredRow, type TableDefinition, type TableRow, type ToolingDatabase, type ToolingTarget, type UpdateSet, type VerifiedDatabaseAdapter, type VerifyAdapterOptions, WRITE_GUARD_TABLE, type WriteGuard, type WriteOp, type WriteResult, addDistinct, aggregateBatchingTables, assertStorageOperations, bundleToPatchRows, bundleToRow, canonicalizeAppVersion, compareUtf8, compileReleaseCatalog, coreSchema, coreSettings, coreTarget, countDistinct, createBundleSigningHandler, createBundleStorageKey, createEngine, createEngineDatabase, createEngineSqlMigrator, createKvAdapter, createMemoryAdapter, createSettingsMigrator, createSqlAdapter, createStorageAdapter, createStorageKeyBuilder, createStorageRootUriWithPath, createStorageUri, createStorageUriWithRelativePath, createTableStatements, createUUIDv7, createUUIDv7After, createUUIDv7WithSameTimestamp, defineAggregate, definePlugin, defineTable, encodeKvKey, expiresAt, extractTimestampFromUUIDv7, findPhysicalColumn, findPhysicalIndex, generateEngineSql, generateMinBundleId, getBundleArchiveStorageUri, getContentAddressedAssetStoragePath, getContentType, getManifestAssetDownloadPath, getManifestAssetStoragePath, indexOrderColumns, isBrotliManifestAssetPath, isContentAddressedAssetFileHash, isDatabaseBusyError, isDatabaseJsonObject, isDatabaseMetadataObject, isMultiIndex, isRemoteDatabase, isUUIDv7, mergeDistinct, meterReads, migrateCoreSchema, normalizeStoredRow, parseBaseCandidateKey, parseStorageUri, projectCompiledCatalog, projectCompiledRollbackCatalog, quoteSql, referenceCompatibleReleases, releaseRowToRelease, releaseToRow, remoteSigning, replaceStorageUriKeySuffix, resolveManifestAssetStorageFileHash, resolveManifestAssetStorageUri, rowKey, rowToBundle, rowsToBundles, semverSatisfies, sqlTableShapes, supportedIosPlatforms, targetBaseCandidateKey, toolingTargetOf, verifyAdapter, writeSchemaSettings };
|
package/dist/index.d.mts
CHANGED
|
@@ -27,7 +27,6 @@ import { createStorageKeyBuilder } from "./createStorageKeyBuilder.mjs";
|
|
|
27
27
|
import { CreateStorageAdapterOptions, StorageAdapterWith, StorageOperation, assertStorageOperations, createStorageAdapter } from "./createStorageAdapter.mjs";
|
|
28
28
|
import { isDatabaseJsonObject, isDatabaseMetadataObject } from "./databaseJsonValue.mjs";
|
|
29
29
|
import { BundleRowHydrationError, BundleRowHydrationErrorReason, bundleToPatchRows, bundleToRow, releaseRowToRelease, releaseToRow, rowToBundle, rowsToBundles } from "./databaseRows.mjs";
|
|
30
|
-
import { filterCompatibleAppVersions } from "./filterCompatibleAppVersions.mjs";
|
|
31
30
|
import { generateMinBundleId } from "./generateMinBundleId.mjs";
|
|
32
31
|
import { CreateStorageUriInput, ParsedStorageUri, createStorageUri, parseStorageUri } from "./parseStorageUri.mjs";
|
|
33
32
|
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";
|
|
@@ -53,4 +52,4 @@ import { EngineSqlOptions, generateEngineSql } from "./engine/db/engineSql.mjs";
|
|
|
53
52
|
import { EngineSqlMigratorOptions, createEngineSqlMigrator } from "./engine/db/engineSqlMigrator.mjs";
|
|
54
53
|
import { writeSchemaSettings } from "./engine/db/schemaSettings.mjs";
|
|
55
54
|
import { createSettingsMigrator } from "./engine/db/settingsMigrator.mjs";
|
|
56
|
-
export { type AggregateBatching, type AggregateChanges, type AggregateDefinition, type AggregateIdentity, type AggregateRow, type AnyHotUpdaterPlugin, ApplePlatform, BUNDLE_STORAGE_PREFIX, type BaseCandidateQuery, type BaseCandidateTarget, BuildAdapter, BuildAdapterArgs, BuildAdapterConfig, BuiltIns, type Bundle, type BundleDeployment, type BundleDetail, type BundlePatchRow, type BundleRow, BundleRowHydrationError, BundleRowHydrationErrorReason, type BundleRowUpdate, BundleSigningAdapter, BundleSigningHandlerOptions, CONTENT_ADDRESSED_ASSET_PREFIX, CatalogVersionBound, type ChannelDeleteResult, type ChannelInsertResult, type ChannelRow, type ClientAuth, CompiledCatalogSegment, CompiledReleaseCatalog, ConfigInput, type ConfiguredDatabase, type ConstraintReason, type CoreReader, type CoreReads, type CoreSchema, type CreateRow, CreateStorageAdapterOptions, CreateStorageUriInput, DATABASE_VERSION_COLUMN, type DatabaseAdapter, DatabaseAdapterContractError, DatabaseAdapterInputError, type DatabaseAdapterInputErrorCode, DatabaseAmbiguousCommitError, type DatabaseBundleMetadata, DatabaseBundleNotFoundError, DatabaseConflictError, DatabaseConstraintError, DatabaseCursorError, type DatabaseJson, type DatabaseJsonObject, type DatabaseJsonValue, type DatabaseKey, type DatabaseKeyValue, DatabaseQueryError, type DatabaseReadCount, type DatabaseReadMeter, DatabaseRowReferencedError, DatabaseSchemaError, type DatabaseTooling, DatabaseTransactionError, type DatabaseValue, type DeployReleasePolicy, type Deployment, type DerivedDefinition, type DerivedFields, type Engine, type EngineColumns, type EngineDatabase, type EngineDatabaseOptions, type EngineOptions, type EngineReadCount, type EngineSqlMigratorOptions, type EngineSqlOptions, type FieldDefinition, type FieldReference, type FieldType, type FieldValue, type FindAggregatesModel, type FindManyModel, FingerprintExtraSources, HasMultipleCallSignatures, HotUpdaterConfigError, type HotUpdaterCoreApi, type HotUpdaterDatabase, type HotUpdaterPlugin, HotUpdaterSchemaMigrationRequiredError, type HotUpdaterTransaction, type IndexDefinition, IosBuildDestination, type KeyLookup, type KeyValueStore, type KeysetInput, type KvAdapterOptions, type KvCondition, type KvItem, type KvKey, type KvOp, type KvRange, LocalSigningConfig, type Lookup, type MemoryAdapterOptions, type MeteredDatabase, type MigrateOptions, type MigrationResult, type Migrator, type ModelDefinition, type ModuleSchema, NativeBuildAndroidScheme, NativeBuildArgs, NativeBuildIosScheme, NativeBuildOptions, type NormalizeOptions, type Page, ParsedStorageUri, type PhysicalColumn, type PhysicalColumnType, type PhysicalIndex, type PhysicalRetention, type PhysicalTable, type Platform, PlatformConfig, type PluginApis, type PluginCli, type PluginClientCredential, type PluginClientPlugin, type PluginContext, type PluginEndpoint, type PluginEndpointMethod, type PluginInstance, type PluginProvides, type PluginTables, Primitive, PromoteReleaseResult, type QueryBound, type QueryRequest, REMOTE_BUNDLE_SIGNING_ALGORITHM, REMOTE_BUNDLE_SIGNING_PATH, REMOTE_BUNDLE_SIGNING_PROTOCOL_VERSION, REMOTE_BUNDLE_SIGNING_TOKEN_HEADER, type ReadMeasurement, type ReadOptions, type ReadRow, type ReferenceAction, ReleaseCatalogCompilation, ReleaseCatalogCompilationError, ReleaseCatalogCompilerDiagnostics, ReleaseCatalogMutationError, ReleaseCatalogMutationPreflight, ReleaseCatalogMutationResult, ReleaseCatalogRebuildPreflight, ReleaseCatalogRebuildResult, type ReleaseCatalogRequest, type ReleaseCatalogRow, type ReleaseCatalogRowUpdate, ReleaseCatalogScope, type ReleaseFilter, ReleaseManagementError, ReleasePolicyPatch, type ReleaseRow, type ReleaseRowUpdate, type ReleaseTarget, type RemoteDatabase, RemoteSigningOptions, RequiredDeep, type ResolvedModel, type ResolvedSchema, type RetentionDefinition, type RetryOptions, type RowOf, SETTINGS_TABLE, type SchemaGenerator, type SchemaSettings, SigningConfig, type SqlAdapterOptions, type SqlColumnShape, type SqlConnection, type SqlDialect, type SqlExecutor, type SqlResult, type SqlStatement, type SqlTableShape, StorageAdapter, StorageAdapterWith, StorageDeleteInput, StorageDeleteResult, StorageExistsInput, StorageExistsResult, StorageGetDownloadUrlInput, StorageGetDownloadUrlResult, StorageGetInput, StorageGetResult, StorageObject, StorageOperation, StoragePutInput, StoragePutResult, type StoredBundleDeployment, type StoredRow, type TableDefinition, type TableRow, type ToolingDatabase, type ToolingTarget, type UpdateSet, type VerifiedDatabaseAdapter, type VerifyAdapterOptions, WRITE_GUARD_TABLE, type WriteGuard, type WriteOp, type WriteResult, addDistinct, aggregateBatchingTables, assertStorageOperations, bundleToPatchRows, bundleToRow, canonicalizeAppVersion, compareUtf8, compileReleaseCatalog, coreSchema, coreSettings, coreTarget, countDistinct, createBundleSigningHandler, createBundleStorageKey, createEngine, createEngineDatabase, createEngineSqlMigrator, createKvAdapter, createMemoryAdapter, createSettingsMigrator, createSqlAdapter, createStorageAdapter, createStorageKeyBuilder, createStorageRootUriWithPath, createStorageUri, createStorageUriWithRelativePath, createTableStatements, createUUIDv7, createUUIDv7After, createUUIDv7WithSameTimestamp, defineAggregate, definePlugin, defineTable, encodeKvKey, expiresAt, extractTimestampFromUUIDv7,
|
|
55
|
+
export { type AggregateBatching, type AggregateChanges, type AggregateDefinition, type AggregateIdentity, type AggregateRow, type AnyHotUpdaterPlugin, ApplePlatform, BUNDLE_STORAGE_PREFIX, type BaseCandidateQuery, type BaseCandidateTarget, BuildAdapter, BuildAdapterArgs, BuildAdapterConfig, BuiltIns, type Bundle, type BundleDeployment, type BundleDetail, type BundlePatchRow, type BundleRow, BundleRowHydrationError, BundleRowHydrationErrorReason, type BundleRowUpdate, BundleSigningAdapter, BundleSigningHandlerOptions, CONTENT_ADDRESSED_ASSET_PREFIX, CatalogVersionBound, type ChannelDeleteResult, type ChannelInsertResult, type ChannelRow, type ClientAuth, CompiledCatalogSegment, CompiledReleaseCatalog, ConfigInput, type ConfiguredDatabase, type ConstraintReason, type CoreReader, type CoreReads, type CoreSchema, type CreateRow, CreateStorageAdapterOptions, CreateStorageUriInput, DATABASE_VERSION_COLUMN, type DatabaseAdapter, DatabaseAdapterContractError, DatabaseAdapterInputError, type DatabaseAdapterInputErrorCode, DatabaseAmbiguousCommitError, type DatabaseBundleMetadata, DatabaseBundleNotFoundError, DatabaseConflictError, DatabaseConstraintError, DatabaseCursorError, type DatabaseJson, type DatabaseJsonObject, type DatabaseJsonValue, type DatabaseKey, type DatabaseKeyValue, DatabaseQueryError, type DatabaseReadCount, type DatabaseReadMeter, DatabaseRowReferencedError, DatabaseSchemaError, type DatabaseTooling, DatabaseTransactionError, type DatabaseValue, type DeployReleasePolicy, type Deployment, type DerivedDefinition, type DerivedFields, type Engine, type EngineColumns, type EngineDatabase, type EngineDatabaseOptions, type EngineOptions, type EngineReadCount, type EngineSqlMigratorOptions, type EngineSqlOptions, type FieldDefinition, type FieldReference, type FieldType, type FieldValue, type FindAggregatesModel, type FindManyModel, FingerprintExtraSources, HasMultipleCallSignatures, HotUpdaterConfigError, type HotUpdaterCoreApi, type HotUpdaterDatabase, type HotUpdaterPlugin, HotUpdaterSchemaMigrationRequiredError, type HotUpdaterTransaction, type IndexDefinition, IosBuildDestination, type KeyLookup, type KeyValueStore, type KeysetInput, type KvAdapterOptions, type KvCondition, type KvItem, type KvKey, type KvOp, type KvRange, LocalSigningConfig, type Lookup, type MemoryAdapterOptions, type MeteredDatabase, type MigrateOptions, type MigrationResult, type Migrator, type ModelDefinition, type ModuleSchema, NativeBuildAndroidScheme, NativeBuildArgs, NativeBuildIosScheme, NativeBuildOptions, type NormalizeOptions, type Page, ParsedStorageUri, type PhysicalColumn, type PhysicalColumnType, type PhysicalIndex, type PhysicalRetention, type PhysicalTable, type Platform, PlatformConfig, type PluginApis, type PluginCli, type PluginClientCredential, type PluginClientPlugin, type PluginContext, type PluginEndpoint, type PluginEndpointMethod, type PluginInstance, type PluginProvides, type PluginTables, Primitive, PromoteReleaseResult, type QueryBound, type QueryRequest, REMOTE_BUNDLE_SIGNING_ALGORITHM, REMOTE_BUNDLE_SIGNING_PATH, REMOTE_BUNDLE_SIGNING_PROTOCOL_VERSION, REMOTE_BUNDLE_SIGNING_TOKEN_HEADER, type ReadMeasurement, type ReadOptions, type ReadRow, type ReferenceAction, ReleaseCatalogCompilation, ReleaseCatalogCompilationError, ReleaseCatalogCompilerDiagnostics, ReleaseCatalogMutationError, ReleaseCatalogMutationPreflight, ReleaseCatalogMutationResult, ReleaseCatalogRebuildPreflight, ReleaseCatalogRebuildResult, type ReleaseCatalogRequest, type ReleaseCatalogRow, type ReleaseCatalogRowUpdate, ReleaseCatalogScope, type ReleaseFilter, ReleaseManagementError, ReleasePolicyPatch, type ReleaseRow, type ReleaseRowUpdate, type ReleaseTarget, type RemoteDatabase, RemoteSigningOptions, RequiredDeep, type ResolvedModel, type ResolvedSchema, type RetentionDefinition, type RetryOptions, type RowOf, SETTINGS_TABLE, type SchemaGenerator, type SchemaSettings, SigningConfig, type SqlAdapterOptions, type SqlColumnShape, type SqlConnection, type SqlDialect, type SqlExecutor, type SqlResult, type SqlStatement, type SqlTableShape, StorageAdapter, StorageAdapterWith, StorageDeleteInput, StorageDeleteResult, StorageExistsInput, StorageExistsResult, StorageGetDownloadUrlInput, StorageGetDownloadUrlResult, StorageGetInput, StorageGetResult, StorageObject, StorageOperation, StoragePutInput, StoragePutResult, type StoredBundleDeployment, type StoredRow, type TableDefinition, type TableRow, type ToolingDatabase, type ToolingTarget, type UpdateSet, type VerifiedDatabaseAdapter, type VerifyAdapterOptions, WRITE_GUARD_TABLE, type WriteGuard, type WriteOp, type WriteResult, addDistinct, aggregateBatchingTables, assertStorageOperations, bundleToPatchRows, bundleToRow, canonicalizeAppVersion, compareUtf8, compileReleaseCatalog, coreSchema, coreSettings, coreTarget, countDistinct, createBundleSigningHandler, createBundleStorageKey, createEngine, createEngineDatabase, createEngineSqlMigrator, createKvAdapter, createMemoryAdapter, createSettingsMigrator, createSqlAdapter, createStorageAdapter, createStorageKeyBuilder, createStorageRootUriWithPath, createStorageUri, createStorageUriWithRelativePath, createTableStatements, createUUIDv7, createUUIDv7After, createUUIDv7WithSameTimestamp, defineAggregate, definePlugin, defineTable, encodeKvKey, expiresAt, extractTimestampFromUUIDv7, findPhysicalColumn, findPhysicalIndex, generateEngineSql, generateMinBundleId, getBundleArchiveStorageUri, getContentAddressedAssetStoragePath, getContentType, getManifestAssetDownloadPath, getManifestAssetStoragePath, indexOrderColumns, isBrotliManifestAssetPath, isContentAddressedAssetFileHash, isDatabaseBusyError, isDatabaseJsonObject, isDatabaseMetadataObject, isMultiIndex, isRemoteDatabase, isUUIDv7, mergeDistinct, meterReads, migrateCoreSchema, normalizeStoredRow, parseBaseCandidateKey, parseStorageUri, projectCompiledCatalog, projectCompiledRollbackCatalog, quoteSql, referenceCompatibleReleases, releaseRowToRelease, releaseToRow, remoteSigning, replaceStorageUriKeySuffix, resolveManifestAssetStorageFileHash, resolveManifestAssetStorageUri, rowKey, rowToBundle, rowsToBundles, semverSatisfies, sqlTableShapes, supportedIosPlatforms, targetBaseCandidateKey, toolingTargetOf, verifyAdapter, writeSchemaSettings };
|
package/dist/index.mjs
CHANGED
|
@@ -8,14 +8,13 @@ import { DatabaseAdapterInputError, DatabaseBundleNotFoundError, DatabaseRowRefe
|
|
|
8
8
|
import { assertStorageOperations, createStorageAdapter } from "./createStorageAdapter.mjs";
|
|
9
9
|
import { isDatabaseJsonObject, isDatabaseMetadataObject } from "./databaseJsonValue.mjs";
|
|
10
10
|
import { BundleRowHydrationError, BundleRowHydrationErrorReason, bundleToPatchRows, bundleToRow, releaseRowToRelease, releaseToRow, rowToBundle, rowsToBundles } from "./databaseRows.mjs";
|
|
11
|
-
import { semverSatisfies } from "./semverSatisfies.mjs";
|
|
12
|
-
import { filterCompatibleAppVersions } from "./filterCompatibleAppVersions.mjs";
|
|
13
11
|
import { generateMinBundleId } from "./generateMinBundleId.mjs";
|
|
14
12
|
import { createUUIDv7, createUUIDv7After, createUUIDv7WithSameTimestamp, extractTimestampFromUUIDv7, isUUIDv7 } from "./uuidv7.mjs";
|
|
15
13
|
import { ReleaseCatalogCompilationError, canonicalizeAppVersion, compileReleaseCatalog, projectCompiledCatalog, projectCompiledRollbackCatalog, referenceCompatibleReleases } from "./releaseCatalogCompiler.mjs";
|
|
16
14
|
import { ReleaseManagementError } from "./releaseManagement.mjs";
|
|
17
15
|
import { ReleaseCatalogMutationError } from "./releaseCatalogMutation.mjs";
|
|
18
16
|
import { REMOTE_BUNDLE_SIGNING_ALGORITHM, REMOTE_BUNDLE_SIGNING_PATH, REMOTE_BUNDLE_SIGNING_PROTOCOL_VERSION, REMOTE_BUNDLE_SIGNING_TOKEN_HEADER, createBundleSigningHandler, remoteSigning } from "./remoteBundleSigning.mjs";
|
|
17
|
+
import { semverSatisfies } from "./semverSatisfies.mjs";
|
|
19
18
|
import { isRemoteDatabase } from "./types/databaseConfig.mjs";
|
|
20
19
|
import { supportedIosPlatforms } from "./types/index.mjs";
|
|
21
20
|
import { definePlugin } from "./serverPlugin/definePlugin.mjs";
|
|
@@ -40,4 +39,4 @@ import { createEngine } from "./engine/createEngine.mjs";
|
|
|
40
39
|
import { createKvAdapter, encodeKvKey } from "./engine/database/kv/kvAdapter.mjs";
|
|
41
40
|
import { WRITE_GUARD_TABLE, createSqlAdapter } from "./engine/database/sql/sqlAdapter.mjs";
|
|
42
41
|
import { createEngineSqlMigrator } from "./engine/db/engineSqlMigrator.mjs";
|
|
43
|
-
export { BUNDLE_STORAGE_PREFIX, BundleRowHydrationError, BundleRowHydrationErrorReason, CONTENT_ADDRESSED_ASSET_PREFIX, DATABASE_VERSION_COLUMN, DatabaseAdapterContractError, DatabaseAdapterInputError, DatabaseAmbiguousCommitError, DatabaseBundleNotFoundError, DatabaseConflictError, DatabaseConstraintError, DatabaseCursorError, DatabaseQueryError, DatabaseRowReferencedError, DatabaseSchemaError, DatabaseTransactionError, HotUpdaterConfigError, HotUpdaterSchemaMigrationRequiredError, REMOTE_BUNDLE_SIGNING_ALGORITHM, REMOTE_BUNDLE_SIGNING_PATH, REMOTE_BUNDLE_SIGNING_PROTOCOL_VERSION, REMOTE_BUNDLE_SIGNING_TOKEN_HEADER, ReleaseCatalogCompilationError, ReleaseCatalogMutationError, ReleaseManagementError, SETTINGS_TABLE, WRITE_GUARD_TABLE, addDistinct, aggregateBatchingTables, assertStorageOperations, bundleToPatchRows, bundleToRow, canonicalizeAppVersion, compareUtf8, compileReleaseCatalog, coreSchema, coreSettings, coreTarget, countDistinct, createBundleSigningHandler, createBundleStorageKey, createEngine, createEngineDatabase, createEngineSqlMigrator, createKvAdapter, createMemoryAdapter, createSettingsMigrator, createSqlAdapter, createStorageAdapter, createStorageKeyBuilder, createStorageRootUriWithPath, createStorageUri, createStorageUriWithRelativePath, createTableStatements, createUUIDv7, createUUIDv7After, createUUIDv7WithSameTimestamp, defineAggregate, definePlugin, defineTable, encodeKvKey, expiresAt, extractTimestampFromUUIDv7,
|
|
42
|
+
export { BUNDLE_STORAGE_PREFIX, BundleRowHydrationError, BundleRowHydrationErrorReason, CONTENT_ADDRESSED_ASSET_PREFIX, DATABASE_VERSION_COLUMN, DatabaseAdapterContractError, DatabaseAdapterInputError, DatabaseAmbiguousCommitError, DatabaseBundleNotFoundError, DatabaseConflictError, DatabaseConstraintError, DatabaseCursorError, DatabaseQueryError, DatabaseRowReferencedError, DatabaseSchemaError, DatabaseTransactionError, HotUpdaterConfigError, HotUpdaterSchemaMigrationRequiredError, REMOTE_BUNDLE_SIGNING_ALGORITHM, REMOTE_BUNDLE_SIGNING_PATH, REMOTE_BUNDLE_SIGNING_PROTOCOL_VERSION, REMOTE_BUNDLE_SIGNING_TOKEN_HEADER, ReleaseCatalogCompilationError, ReleaseCatalogMutationError, ReleaseManagementError, SETTINGS_TABLE, WRITE_GUARD_TABLE, addDistinct, aggregateBatchingTables, assertStorageOperations, bundleToPatchRows, bundleToRow, canonicalizeAppVersion, compareUtf8, compileReleaseCatalog, coreSchema, coreSettings, coreTarget, countDistinct, createBundleSigningHandler, createBundleStorageKey, createEngine, createEngineDatabase, createEngineSqlMigrator, createKvAdapter, createMemoryAdapter, createSettingsMigrator, createSqlAdapter, createStorageAdapter, createStorageKeyBuilder, createStorageRootUriWithPath, createStorageUri, createStorageUriWithRelativePath, createTableStatements, createUUIDv7, createUUIDv7After, createUUIDv7WithSameTimestamp, defineAggregate, definePlugin, defineTable, encodeKvKey, expiresAt, extractTimestampFromUUIDv7, findPhysicalColumn, findPhysicalIndex, generateEngineSql, generateMinBundleId, getBundleArchiveStorageUri, getContentAddressedAssetStoragePath, getContentType, getManifestAssetDownloadPath, getManifestAssetStoragePath, indexOrderColumns, isBrotliManifestAssetPath, isContentAddressedAssetFileHash, isDatabaseBusyError, isDatabaseJsonObject, isDatabaseMetadataObject, isMultiIndex, isRemoteDatabase, isUUIDv7, mergeDistinct, meterReads, migrateCoreSchema, normalizeStoredRow, parseBaseCandidateKey, parseStorageUri, projectCompiledCatalog, projectCompiledRollbackCatalog, quoteSql, referenceCompatibleReleases, releaseRowToRelease, releaseToRow, remoteSigning, replaceStorageUriKeySuffix, resolveManifestAssetStorageFileHash, resolveManifestAssetStorageUri, rowKey, rowToBundle, rowsToBundles, semverSatisfies, sqlTableShapes, supportedIosPlatforms, targetBaseCandidateKey, toolingTargetOf, verifyAdapter, writeSchemaSettings };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hot-updater/plugin-core",
|
|
3
|
-
"version": "1.0.0-rc.
|
|
3
|
+
"version": "1.0.0-rc.46",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "React Native OTA solution for self-hosted",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -45,14 +45,14 @@
|
|
|
45
45
|
"es-toolkit": "^1.32.0",
|
|
46
46
|
"mime": "^4.0.4",
|
|
47
47
|
"verkit": "0.4.0",
|
|
48
|
-
"@hot-updater/protocol": "1.0.0-rc.
|
|
48
|
+
"@hot-updater/protocol": "1.0.0-rc.46"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@electric-sql/pglite": "0.4.1",
|
|
52
52
|
"@types/node": "^20",
|
|
53
53
|
"@typescript/native": "npm:typescript@7.0.2",
|
|
54
54
|
"typescript": "npm:@typescript/typescript6@6.0.2",
|
|
55
|
-
"@hot-updater/test-utils": "1.0.0-rc.
|
|
55
|
+
"@hot-updater/test-utils": "1.0.0-rc.46"
|
|
56
56
|
},
|
|
57
57
|
"nx": {
|
|
58
58
|
"implicitDependencies": [
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
const require_semverSatisfies = require("./semverSatisfies.cjs");
|
|
2
|
-
//#region src/filterCompatibleAppVersions.ts
|
|
3
|
-
/**
|
|
4
|
-
* Filters target app versions that are compatible with the current app version.
|
|
5
|
-
* Returns only versions that are compatible with the current version according to semver rules.
|
|
6
|
-
*
|
|
7
|
-
* @param targetAppVersionList - List of target app versions to filter
|
|
8
|
-
* @param currentVersion - Current app version
|
|
9
|
-
* @returns Array of target app versions compatible with the current version
|
|
10
|
-
*/
|
|
11
|
-
const filterCompatibleAppVersions = (targetAppVersionList, currentVersion) => {
|
|
12
|
-
return targetAppVersionList.filter((version) => require_semverSatisfies.semverSatisfies(version, currentVersion)).sort((a, b) => b.localeCompare(a));
|
|
13
|
-
};
|
|
14
|
-
//#endregion
|
|
15
|
-
exports.filterCompatibleAppVersions = filterCompatibleAppVersions;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
//#region src/filterCompatibleAppVersions.d.ts
|
|
2
|
-
/**
|
|
3
|
-
* Filters target app versions that are compatible with the current app version.
|
|
4
|
-
* Returns only versions that are compatible with the current version according to semver rules.
|
|
5
|
-
*
|
|
6
|
-
* @param targetAppVersionList - List of target app versions to filter
|
|
7
|
-
* @param currentVersion - Current app version
|
|
8
|
-
* @returns Array of target app versions compatible with the current version
|
|
9
|
-
*/
|
|
10
|
-
declare const filterCompatibleAppVersions: (targetAppVersionList: string[], currentVersion: string) => string[];
|
|
11
|
-
//#endregion
|
|
12
|
-
export { filterCompatibleAppVersions };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
//#region src/filterCompatibleAppVersions.d.ts
|
|
2
|
-
/**
|
|
3
|
-
* Filters target app versions that are compatible with the current app version.
|
|
4
|
-
* Returns only versions that are compatible with the current version according to semver rules.
|
|
5
|
-
*
|
|
6
|
-
* @param targetAppVersionList - List of target app versions to filter
|
|
7
|
-
* @param currentVersion - Current app version
|
|
8
|
-
* @returns Array of target app versions compatible with the current version
|
|
9
|
-
*/
|
|
10
|
-
declare const filterCompatibleAppVersions: (targetAppVersionList: string[], currentVersion: string) => string[];
|
|
11
|
-
//#endregion
|
|
12
|
-
export { filterCompatibleAppVersions };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { semverSatisfies } from "./semverSatisfies.mjs";
|
|
2
|
-
//#region src/filterCompatibleAppVersions.ts
|
|
3
|
-
/**
|
|
4
|
-
* Filters target app versions that are compatible with the current app version.
|
|
5
|
-
* Returns only versions that are compatible with the current version according to semver rules.
|
|
6
|
-
*
|
|
7
|
-
* @param targetAppVersionList - List of target app versions to filter
|
|
8
|
-
* @param currentVersion - Current app version
|
|
9
|
-
* @returns Array of target app versions compatible with the current version
|
|
10
|
-
*/
|
|
11
|
-
const filterCompatibleAppVersions = (targetAppVersionList, currentVersion) => {
|
|
12
|
-
return targetAppVersionList.filter((version) => semverSatisfies(version, currentVersion)).sort((a, b) => b.localeCompare(a));
|
|
13
|
-
};
|
|
14
|
-
//#endregion
|
|
15
|
-
export { filterCompatibleAppVersions };
|