@hot-updater/plugin-core 1.2.0-rc.6 → 1.2.0-rc.8

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/index.cjs CHANGED
@@ -14,7 +14,6 @@ const require_uuidv7 = require("./uuidv7.cjs");
14
14
  const require_releaseCatalogCompiler = require("./releaseCatalogCompiler.cjs");
15
15
  const require_releaseManagement = require("./releaseManagement.cjs");
16
16
  const require_releaseCatalogMutation = require("./releaseCatalogMutation.cjs");
17
- const require_remoteBundleSigning = require("./remoteBundleSigning.cjs");
18
17
  const require_semverSatisfies = require("./semverSatisfies.cjs");
19
18
  const require_databaseConfig = require("./types/databaseConfig.cjs");
20
19
  const require_index = require("./types/index.cjs");
@@ -59,10 +58,6 @@ exports.DatabaseSchemaError = require_adapter.DatabaseSchemaError;
59
58
  exports.DatabaseTransactionError = require_errors.DatabaseTransactionError;
60
59
  exports.HotUpdaterConfigError = require_configError.HotUpdaterConfigError;
61
60
  exports.HotUpdaterSchemaMigrationRequiredError = require_fence.HotUpdaterSchemaMigrationRequiredError;
62
- exports.REMOTE_BUNDLE_SIGNING_ALGORITHM = require_remoteBundleSigning.REMOTE_BUNDLE_SIGNING_ALGORITHM;
63
- exports.REMOTE_BUNDLE_SIGNING_PATH = require_remoteBundleSigning.REMOTE_BUNDLE_SIGNING_PATH;
64
- exports.REMOTE_BUNDLE_SIGNING_PROTOCOL_VERSION = require_remoteBundleSigning.REMOTE_BUNDLE_SIGNING_PROTOCOL_VERSION;
65
- exports.REMOTE_BUNDLE_SIGNING_TOKEN_HEADER = require_remoteBundleSigning.REMOTE_BUNDLE_SIGNING_TOKEN_HEADER;
66
61
  exports.ReleaseCatalogCompilationError = require_releaseCatalogCompiler.ReleaseCatalogCompilationError;
67
62
  exports.ReleaseCatalogMutationError = require_releaseCatalogMutation.ReleaseCatalogMutationError;
68
63
  exports.ReleaseManagementError = require_releaseManagement.ReleaseManagementError;
@@ -85,7 +80,6 @@ exports.coreSchema = require_coreDatabase.coreSchema;
85
80
  exports.coreSettings = require_coreDatabase.coreSettings;
86
81
  exports.coreTarget = require_coreDatabase.coreTarget;
87
82
  exports.countDistinct = require_distinct.countDistinct;
88
- exports.createBundleSigningHandler = require_remoteBundleSigning.createBundleSigningHandler;
89
83
  exports.createBundleStorageKey = require_bundleStorageLayout.createBundleStorageKey;
90
84
  exports.createEngine = require_createEngine.createEngine;
91
85
  exports.createEngineDatabase = require_coreDatabase.createEngineDatabase;
@@ -144,8 +138,8 @@ exports.quoteSql = require_sqlSchema.quoteSql;
144
138
  exports.referenceCompatibleReleases = require_releaseCatalogCompiler.referenceCompatibleReleases;
145
139
  exports.releaseRowToRelease = require_databaseRows.releaseRowToRelease;
146
140
  exports.releaseToRow = require_databaseRows.releaseToRow;
147
- exports.remoteSigning = require_remoteBundleSigning.remoteSigning;
148
141
  exports.replaceStorageUriKeySuffix = require_assetStorageLayout.replaceStorageUriKeySuffix;
142
+ exports.resolveLazy = require_index.resolveLazy;
149
143
  exports.resolveManifestAssetStorageFileHash = require_assetStorageLayout.resolveManifestAssetStorageFileHash;
150
144
  exports.resolveManifestAssetStorageUri = require_assetStorageLayout.resolveManifestAssetStorageUri;
151
145
  exports.rowKey = require_adapter.rowKey;
package/dist/index.d.cts CHANGED
@@ -18,7 +18,7 @@ import { AggregateBatching, ConfiguredDatabase, EngineDatabase, RemoteDatabase,
18
18
  import { BuiltIns, HasMultipleCallSignatures, Primitive, RequiredDeep } from "./types/utils.cjs";
19
19
  import { BundleRowUpdate, ReleaseCatalogRowUpdate, ReleaseRowUpdate } from "./types/databaseOperations.cjs";
20
20
  import { ChannelDeleteResult, ChannelInsertResult, NativeBuildDeleteResult } from "./types/models.cjs";
21
- import { ApplePlatform, BuildAdapter, BuildAdapterArgs, BuildAdapterConfig, Bundle, BundleSigningAdapter, ConfigInput, FingerprintExtraSources, IosBuildDestination, LocalSigningConfig, NativeBuildAndroidScheme, NativeBuildArgs, NativeBuildIosScheme, NativeBuildOptions, NativeFingerprint, NativeFingerprintOptions, NativeFingerprintProvider, NativeFingerprintSource, Platform, PlatformConfig, SecretsAdapter, SecretsContext, SigningConfig, StorageAdapter, StorageDeleteInput, StorageDeleteResult, StorageExistsInput, StorageExistsResult, StorageGetDownloadUrlInput, StorageGetDownloadUrlResult, StorageGetInput, StorageGetResult, StorageObject, StoragePutInput, StoragePutResult, supportedIosPlatforms } from "./types/index.cjs";
21
+ import { ApplePlatform, BuildAdapter, BuildAdapterArgs, BuildAdapterConfig, Bundle, ConfigInput, FingerprintExtraSources, IosBuildDestination, Lazy, LocalSigningConfig, NativeBuildAndroidScheme, NativeBuildArgs, NativeBuildIosScheme, NativeBuildOptions, NativeFingerprint, NativeFingerprintOptions, NativeFingerprintProvider, NativeFingerprintSource, Platform, PlatformConfig, SecretRef, SecretsAdapter, SecretsContext, SigningConfig, StorageAdapter, StorageDeleteInput, StorageDeleteResult, StorageExistsInput, StorageExistsResult, StorageGetDownloadUrlInput, StorageGetDownloadUrlResult, StorageGetInput, StorageGetResult, StorageObject, StoragePutInput, StoragePutResult, resolveLazy, supportedIosPlatforms } from "./types/index.cjs";
22
22
  import { ReleaseCatalogMutationError, ReleaseCatalogMutationPreflight, ReleaseCatalogMutationResult, ReleaseCatalogRebuildPreflight, ReleaseCatalogRebuildResult, ReleaseCatalogScope } from "./releaseCatalogMutation.cjs";
23
23
  import { PromoteReleaseResult, ReleaseManagementError, ReleasePolicyPatch } from "./releaseManagement.cjs";
24
24
  import { BundleDeployment, BundleDetail, DeployReleasePolicy, Deployment, HotUpdaterCoreApi, KeysetInput, NativeBuildRegistration, NativeBuildScope, ReleaseFilter, ReleaseTarget, StoredBundleDeployment } from "./coreApi.cjs";
@@ -29,7 +29,6 @@ import { isDatabaseJsonObject, isDatabaseMetadataObject } from "./databaseJsonVa
29
29
  import { BundleRowHydrationError, BundleRowHydrationErrorReason, bundleToPatchRows, bundleToRow, releaseRowToRelease, releaseToRow, rowToBundle, rowsToBundles } from "./databaseRows.cjs";
30
30
  import { generateMinBundleId } from "./generateMinBundleId.cjs";
31
31
  import { CreateStorageUriInput, ParsedStorageUri, createStorageUri, parseStorageUri } from "./parseStorageUri.cjs";
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";
33
32
  import { semverSatisfies } from "./semverSatisfies.cjs";
34
33
  import { createUUIDv7, createUUIDv7After, createUUIDv7WithSameTimestamp, extractTimestampFromUUIDv7, isUUIDv7 } from "./uuidv7.cjs";
35
34
  import { isDatabaseBusyError } from "./serverPlugin/busy.cjs";
@@ -52,4 +51,4 @@ import { EngineSqlOptions, generateEngineSql } from "./engine/db/engineSql.cjs";
52
51
  import { EngineSqlMigratorOptions, createEngineSqlMigrator } from "./engine/db/engineSqlMigrator.cjs";
53
52
  import { writeSchemaSettings } from "./engine/db/schemaSettings.cjs";
54
53
  import { createSettingsMigrator } from "./engine/db/settingsMigrator.cjs";
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, type NativeBuildArtifactKind, type NativeBuildDeleteResult, NativeBuildIosScheme, NativeBuildOptions, type NativeBuildRegistration, type NativeBuildRow, type NativeBuildScope, type NativeBuildSubmissionDestination, NativeFingerprint, NativeFingerprintOptions, NativeFingerprintProvider, NativeFingerprintSource, 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, SecretsAdapter, SecretsContext, 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 };
54
+ 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, 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, Lazy, LocalSigningConfig, type Lookup, type MemoryAdapterOptions, type MeteredDatabase, type MigrateOptions, type MigrationResult, type Migrator, type ModelDefinition, type ModuleSchema, NativeBuildAndroidScheme, NativeBuildArgs, type NativeBuildArtifactKind, type NativeBuildDeleteResult, NativeBuildIosScheme, NativeBuildOptions, type NativeBuildRegistration, type NativeBuildRow, type NativeBuildScope, type NativeBuildSubmissionDestination, NativeFingerprint, NativeFingerprintOptions, NativeFingerprintProvider, NativeFingerprintSource, 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, 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, RequiredDeep, type ResolvedModel, type ResolvedSchema, type RetentionDefinition, type RetryOptions, type RowOf, SETTINGS_TABLE, type SchemaGenerator, type SchemaSettings, SecretRef, SecretsAdapter, SecretsContext, 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, 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, replaceStorageUriKeySuffix, resolveLazy, resolveManifestAssetStorageFileHash, resolveManifestAssetStorageUri, rowKey, rowToBundle, rowsToBundles, semverSatisfies, sqlTableShapes, supportedIosPlatforms, targetBaseCandidateKey, toolingTargetOf, verifyAdapter, writeSchemaSettings };
package/dist/index.d.mts CHANGED
@@ -18,7 +18,7 @@ import { AggregateBatching, ConfiguredDatabase, EngineDatabase, RemoteDatabase,
18
18
  import { BuiltIns, HasMultipleCallSignatures, Primitive, RequiredDeep } from "./types/utils.mjs";
19
19
  import { BundleRowUpdate, ReleaseCatalogRowUpdate, ReleaseRowUpdate } from "./types/databaseOperations.mjs";
20
20
  import { ChannelDeleteResult, ChannelInsertResult, NativeBuildDeleteResult } from "./types/models.mjs";
21
- import { ApplePlatform, BuildAdapter, BuildAdapterArgs, BuildAdapterConfig, Bundle, BundleSigningAdapter, ConfigInput, FingerprintExtraSources, IosBuildDestination, LocalSigningConfig, NativeBuildAndroidScheme, NativeBuildArgs, NativeBuildIosScheme, NativeBuildOptions, NativeFingerprint, NativeFingerprintOptions, NativeFingerprintProvider, NativeFingerprintSource, Platform, PlatformConfig, SecretsAdapter, SecretsContext, SigningConfig, StorageAdapter, StorageDeleteInput, StorageDeleteResult, StorageExistsInput, StorageExistsResult, StorageGetDownloadUrlInput, StorageGetDownloadUrlResult, StorageGetInput, StorageGetResult, StorageObject, StoragePutInput, StoragePutResult, supportedIosPlatforms } from "./types/index.mjs";
21
+ import { ApplePlatform, BuildAdapter, BuildAdapterArgs, BuildAdapterConfig, Bundle, ConfigInput, FingerprintExtraSources, IosBuildDestination, Lazy, LocalSigningConfig, NativeBuildAndroidScheme, NativeBuildArgs, NativeBuildIosScheme, NativeBuildOptions, NativeFingerprint, NativeFingerprintOptions, NativeFingerprintProvider, NativeFingerprintSource, Platform, PlatformConfig, SecretRef, SecretsAdapter, SecretsContext, SigningConfig, StorageAdapter, StorageDeleteInput, StorageDeleteResult, StorageExistsInput, StorageExistsResult, StorageGetDownloadUrlInput, StorageGetDownloadUrlResult, StorageGetInput, StorageGetResult, StorageObject, StoragePutInput, StoragePutResult, resolveLazy, supportedIosPlatforms } from "./types/index.mjs";
22
22
  import { ReleaseCatalogMutationError, ReleaseCatalogMutationPreflight, ReleaseCatalogMutationResult, ReleaseCatalogRebuildPreflight, ReleaseCatalogRebuildResult, ReleaseCatalogScope } from "./releaseCatalogMutation.mjs";
23
23
  import { PromoteReleaseResult, ReleaseManagementError, ReleasePolicyPatch } from "./releaseManagement.mjs";
24
24
  import { BundleDeployment, BundleDetail, DeployReleasePolicy, Deployment, HotUpdaterCoreApi, KeysetInput, NativeBuildRegistration, NativeBuildScope, ReleaseFilter, ReleaseTarget, StoredBundleDeployment } from "./coreApi.mjs";
@@ -29,7 +29,6 @@ import { isDatabaseJsonObject, isDatabaseMetadataObject } from "./databaseJsonVa
29
29
  import { BundleRowHydrationError, BundleRowHydrationErrorReason, bundleToPatchRows, bundleToRow, releaseRowToRelease, releaseToRow, rowToBundle, rowsToBundles } from "./databaseRows.mjs";
30
30
  import { generateMinBundleId } from "./generateMinBundleId.mjs";
31
31
  import { CreateStorageUriInput, ParsedStorageUri, createStorageUri, parseStorageUri } from "./parseStorageUri.mjs";
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";
33
32
  import { semverSatisfies } from "./semverSatisfies.mjs";
34
33
  import { createUUIDv7, createUUIDv7After, createUUIDv7WithSameTimestamp, extractTimestampFromUUIDv7, isUUIDv7 } from "./uuidv7.mjs";
35
34
  import { isDatabaseBusyError } from "./serverPlugin/busy.mjs";
@@ -52,4 +51,4 @@ import { EngineSqlOptions, generateEngineSql } from "./engine/db/engineSql.mjs";
52
51
  import { EngineSqlMigratorOptions, createEngineSqlMigrator } from "./engine/db/engineSqlMigrator.mjs";
53
52
  import { writeSchemaSettings } from "./engine/db/schemaSettings.mjs";
54
53
  import { createSettingsMigrator } from "./engine/db/settingsMigrator.mjs";
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, type NativeBuildArtifactKind, type NativeBuildDeleteResult, NativeBuildIosScheme, NativeBuildOptions, type NativeBuildRegistration, type NativeBuildRow, type NativeBuildScope, type NativeBuildSubmissionDestination, NativeFingerprint, NativeFingerprintOptions, NativeFingerprintProvider, NativeFingerprintSource, 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, SecretsAdapter, SecretsContext, 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 };
54
+ 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, 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, Lazy, LocalSigningConfig, type Lookup, type MemoryAdapterOptions, type MeteredDatabase, type MigrateOptions, type MigrationResult, type Migrator, type ModelDefinition, type ModuleSchema, NativeBuildAndroidScheme, NativeBuildArgs, type NativeBuildArtifactKind, type NativeBuildDeleteResult, NativeBuildIosScheme, NativeBuildOptions, type NativeBuildRegistration, type NativeBuildRow, type NativeBuildScope, type NativeBuildSubmissionDestination, NativeFingerprint, NativeFingerprintOptions, NativeFingerprintProvider, NativeFingerprintSource, 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, 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, RequiredDeep, type ResolvedModel, type ResolvedSchema, type RetentionDefinition, type RetryOptions, type RowOf, SETTINGS_TABLE, type SchemaGenerator, type SchemaSettings, SecretRef, SecretsAdapter, SecretsContext, 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, 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, replaceStorageUriKeySuffix, resolveLazy, resolveManifestAssetStorageFileHash, resolveManifestAssetStorageUri, rowKey, rowToBundle, rowsToBundles, semverSatisfies, sqlTableShapes, supportedIosPlatforms, targetBaseCandidateKey, toolingTargetOf, verifyAdapter, writeSchemaSettings };
package/dist/index.mjs CHANGED
@@ -13,10 +13,9 @@ import { createUUIDv7, createUUIDv7After, createUUIDv7WithSameTimestamp, extract
13
13
  import { ReleaseCatalogCompilationError, canonicalizeAppVersion, compileReleaseCatalog, projectCompiledCatalog, projectCompiledRollbackCatalog, referenceCompatibleReleases } from "./releaseCatalogCompiler.mjs";
14
14
  import { ReleaseManagementError } from "./releaseManagement.mjs";
15
15
  import { ReleaseCatalogMutationError } from "./releaseCatalogMutation.mjs";
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
16
  import { semverSatisfies } from "./semverSatisfies.mjs";
18
17
  import { isRemoteDatabase } from "./types/databaseConfig.mjs";
19
- import { supportedIosPlatforms } from "./types/index.mjs";
18
+ import { resolveLazy, supportedIosPlatforms } from "./types/index.mjs";
20
19
  import { definePlugin } from "./serverPlugin/definePlugin.mjs";
21
20
  import { defineAggregate, defineTable } from "./serverPlugin/schema.mjs";
22
21
  import { DatabaseAmbiguousCommitError, DatabaseConflictError, DatabaseConstraintError, DatabaseCursorError, DatabaseQueryError, DatabaseTransactionError } from "./serverPlugin/errors.mjs";
@@ -39,4 +38,4 @@ import { createEngine } from "./engine/createEngine.mjs";
39
38
  import { createKvAdapter, encodeKvKey } from "./engine/database/kv/kvAdapter.mjs";
40
39
  import { WRITE_GUARD_TABLE, createSqlAdapter } from "./engine/database/sql/sqlAdapter.mjs";
41
40
  import { createEngineSqlMigrator } from "./engine/db/engineSqlMigrator.mjs";
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 };
41
+ 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, ReleaseCatalogCompilationError, ReleaseCatalogMutationError, ReleaseManagementError, SETTINGS_TABLE, WRITE_GUARD_TABLE, addDistinct, aggregateBatchingTables, assertStorageOperations, bundleToPatchRows, bundleToRow, canonicalizeAppVersion, compareUtf8, compileReleaseCatalog, coreSchema, coreSettings, coreTarget, countDistinct, 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, replaceStorageUriKeySuffix, resolveLazy, resolveManifestAssetStorageFileHash, resolveManifestAssetStorageUri, rowKey, rowToBundle, rowsToBundles, semverSatisfies, sqlTableShapes, supportedIosPlatforms, targetBaseCandidateKey, toolingTargetOf, verifyAdapter, writeSchemaSettings };
@@ -1,9 +1,12 @@
1
1
  const require_databaseConfig = require("./databaseConfig.cjs");
2
2
  //#region src/types/index.ts
3
+ /** The value of a `Lazy`, calling its function. */
4
+ const resolveLazy = async (value) => typeof value === "function" ? await value() : value;
3
5
  /**
4
6
  * Supported Apple platforms for building and deployment
5
7
  */
6
8
  const supportedIosPlatforms = { ios: "ios" };
7
9
  //#endregion
8
10
  exports.isRemoteDatabase = require_databaseConfig.isRemoteDatabase;
11
+ exports.resolveLazy = resolveLazy;
9
12
  exports.supportedIosPlatforms = supportedIosPlatforms;
@@ -7,6 +7,33 @@ import { ChannelDeleteResult, ChannelInsertResult, NativeBuildDeleteResult } fro
7
7
  import "./public.cjs";
8
8
  import { Bundle as Bundle$1, Platform, Platform as Platform$1 } from "@hot-updater/protocol";
9
9
  //#region src/types/index.d.ts
10
+ /**
11
+ * A value, or a function that returns it, called on first use: an
12
+ * adapter shared by servers and the CLI takes its credentials so, as a
13
+ * string from a server's own environment or as `secret("<name>")` from
14
+ * `hot-updater.config.ts`, which loads without reading a secret.
15
+ */
16
+ type Lazy<T> = T | (() => T | Promise<T>);
17
+ /** The value of a `Lazy`, calling its function. */
18
+ declare const resolveLazy: <T>(value: Lazy<T>) => Promise<T>;
19
+ /**
20
+ * The brand of a `SecretRef`, `Symbol.for("@hot-updater/secret-ref")` at
21
+ * runtime: `hot-updater`'s `secret()` sets it, and the CLI recognizes a
22
+ * reference by it, so a plain string or function is none.
23
+ */
24
+ declare const secretRefBrand: unique symbol;
25
+ /**
26
+ * `secret("<name>")` in `hot-updater.config.ts`: the secret the config's
27
+ * `secrets` adapter holds as `name`. Called, it reads the value, the
28
+ * environment first, so it is a `Lazy<string>` any adapter credential
29
+ * takes; the build credentials, such as `signing.keystore`, take only a
30
+ * reference, which the CLI resolves by `name` for its kind.
31
+ */
32
+ type SecretRef = (() => Promise<string>) & {
33
+ readonly [secretRefBrand]: true;
34
+ /** The secret's name in the config's `secrets` adapter. */
35
+ readonly name: string;
36
+ };
10
37
  interface BuildAdapterArgs {
11
38
  cwd: string;
12
39
  }
@@ -144,15 +171,15 @@ interface NativeBuildAndroidScheme {
144
171
  applicationId?: string;
145
172
  /**
146
173
  * Signs a release variant with a keystore the CLI resolves: `keystore` is
147
- * `secret:<name>`, the `android-keystore` the config's `secrets` adapter
174
+ * `secret("<name>")`, the `android-keystore` the config's `secrets` adapter
148
175
  * holds as `<name>`, which the `HOT_UPDATER_ANDROID_KEYSTORE_*`
149
176
  * environment variables override. Debug variants keep the debug keystore
150
177
  * and resolve nothing. Without it, the variant's own `signingConfig` signs.
151
178
  *
152
- * @example { keystore: "secret:release-keystore" }
179
+ * @example { keystore: secret("release-keystore") }
153
180
  */
154
181
  signing?: {
155
- keystore: `secret:${string}`;
182
+ keystore: SecretRef;
156
183
  };
157
184
  }
158
185
  type IosBuildDestination = {
@@ -241,16 +268,16 @@ interface NativeBuildIosScheme {
241
268
  simulator?: boolean;
242
269
  /**
243
270
  * Signs a device build with automatic signing, authenticated by an App
244
- * Store Connect API key the CLI resolves: `ascApiKey` is `secret:<name>`,
271
+ * Store Connect API key the CLI resolves: `ascApiKey` is `secret("<name>")`,
245
272
  * the `asc-api-key` the config's `secrets` adapter holds as `<name>`,
246
273
  * which the `HOT_UPDATER_ASC_KEY*` environment variables override.
247
274
  * Simulator builds resolve nothing. Without it, the project's signing
248
275
  * settings and Xcode's accounts sign.
249
276
  *
250
- * @example { ascApiKey: "secret:asc-api-key" }
277
+ * @example { ascApiKey: secret("asc-api-key") }
251
278
  */
252
279
  signing?: {
253
- ascApiKey: `secret:${string}`;
280
+ ascApiKey: SecretRef;
254
281
  };
255
282
  }
256
283
  interface PlatformConfig {
@@ -362,28 +389,6 @@ interface StorageAdapter {
362
389
  /** Deletes only the exact base-path-relative keys supplied by the caller. */
363
390
  readonly deleteObjects?: (keys: readonly string[]) => Promise<void>;
364
391
  }
365
- interface BundleSigningAdapter {
366
- readonly name: string;
367
- /** Returns the RSA public key used by this provider in SPKI PEM format. */
368
- readonly getPublicKey: (input?: {
369
- readonly cwd?: string;
370
- }) => Promise<{
371
- readonly publicKey: string;
372
- }>;
373
- /**
374
- * Signs `message` with RSA PKCS#1 v1.5 SHA-256.
375
- *
376
- * Hot Updater passes the 32 raw bytes decoded from a SHA-256 file hash.
377
- * Remote signing services must treat this value as the raw message, not as
378
- * an already-computed digest.
379
- */
380
- readonly sign: (input: {
381
- readonly message: Uint8Array;
382
- readonly cwd?: string;
383
- }) => Promise<{
384
- readonly signature: Uint8Array;
385
- }>;
386
- }
387
392
  /**
388
393
  * What a secrets adapter is given with each call. It carries no secret: an
389
394
  * adapter reads its own credentials, such as a token or a CLI sign-in.
@@ -393,11 +398,12 @@ interface SecretsContext {
393
398
  readonly cwd: string;
394
399
  }
395
400
  /**
396
- * Where the CLI reads secrets by name: the build credentials `secret:<name>`
397
- * references, and the deploy credentials `secretEnv([...])` names. Values
401
+ * Where the CLI reads the secrets `secret("<name>")` names in a config: build
402
+ * credentials, such as a keystore, and adapter credentials. Values
398
403
  * are strings: binary is base64, and a credential with several fields is one
399
404
  * JSON value per name. `localSecrets()`, an export of `hot-updater`, keeps them
400
- * in files on this machine; a store of your own implements this.
405
+ * in files on this machine, and `infisical()`, another, in an Infisical
406
+ * project; a store of your own implements this.
401
407
  */
402
408
  interface SecretsAdapter {
403
409
  readonly name: string;
@@ -428,22 +434,27 @@ type LocalSigningConfig = {
428
434
  } | {
429
435
  readonly enabled: true;
430
436
  /**
431
- * `secret:<name>`, the RSA private key in PEM format that the config's
432
- * `secrets` adapter holds as `<name>`. The CLI reads it once per run,
433
- * when it first signs or derives the public key, and keeps it in
434
- * memory only.
437
+ * `secret("<name>")`, the RSA private key in PEM format that the
438
+ * config's `secrets` adapter holds as `<name>`. The CLI reads it once
439
+ * per run, when it first signs or derives the public key, and keeps it
440
+ * in memory only.
435
441
  *
436
- * @example { enabled: true, privateKey: "secret:bundle-signing-key" }
442
+ * @example { enabled: true, privateKey: secret("bundle-signing-key") }
437
443
  */
438
- readonly privateKey: `secret:${string}`;
444
+ readonly privateKey: SecretRef;
439
445
  readonly privateKeyPath?: never;
440
446
  } | {
441
447
  readonly enabled: false;
442
448
  readonly privateKeyPath?: string;
443
- readonly privateKey?: `secret:${string}`;
449
+ readonly privateKey?: SecretRef;
444
450
  };
445
- /** Local config or signing adapter. Signing is disabled when omitted. */
446
- type SigningConfig = BundleSigningAdapter | LocalSigningConfig;
451
+ /**
452
+ * Bundle signing with an RSA private key in PEM. `secret("<name>")` is the
453
+ * shorthand of `{ enabled: true, privateKey: secret("<name>") }`. Without
454
+ * `signing`, bundles are unsigned and deploy warns; `enabled: false` turns
455
+ * signing off without the warning.
456
+ */
457
+ type SigningConfig = SecretRef | LocalSigningConfig;
447
458
  /**
448
459
  * Extra fingerprint sources.
449
460
  *
@@ -547,25 +558,23 @@ type ConfigInput = {
547
558
  platform?: PlatformConfig;
548
559
  nativeBuild?: NativeBuildArgs;
549
560
  /**
550
- * Code signing configuration for bundle verification.
551
- * Enables RSA-SHA256 cryptographic signatures for bundle integrity.
552
- *
553
- * @optional Feature is opt-in.
561
+ * Signs each bundle with RSA-SHA256, which the app verifies with the
562
+ * public key it embeds. `secret("bundle-signing-key")` reads the RSA
563
+ * private key in PEM from the config's `secrets` adapter; the object
564
+ * forms take it from a secret (`privateKey`) or a file
565
+ * (`privateKeyPath`). Without `signing`, bundles are unsigned and deploy
566
+ * warns; `{ enabled: false }` turns signing off without the warning.
554
567
  *
555
568
  * @example
556
569
  * ```ts
557
- * signing: {
558
- * enabled: true,
559
- * privateKey: "secret:bundle-signing-key",
560
- * }
570
+ * signing: secret("bundle-signing-key"),
561
571
  * ```
562
572
  */
563
573
  signing?: SigningConfig;
564
574
  /**
565
- * Where the CLI reads the secrets the config names, `secret:<name>` build
566
- * credentials and `secretEnv([...])` deploy credentials, and stores the
567
- * keys it issues. It is the only store: nothing is kept on this machine
568
- * under it.
575
+ * Where the CLI reads the secrets the config names with `secret("<name>")`,
576
+ * after the environment, and stores the keys it issues. It is the only
577
+ * store: nothing is kept on this machine under it.
569
578
  *
570
579
  * @default localSecrets()
571
580
  */
@@ -592,4 +601,4 @@ interface NativeBuildOptions {
592
601
  scheme?: string;
593
602
  }
594
603
  //#endregion
595
- export { type AggregateBatching, ApplePlatform, BuildAdapter, BuildAdapterArgs, BuildAdapterConfig, BuiltIns, type Bundle$1 as Bundle, type BundlePatchRow, type BundleRow, type BundleRowUpdate, BundleSigningAdapter, type ChannelDeleteResult, type ChannelInsertResult, type ChannelRow, ConfigInput, type ConfiguredDatabase, type DatabaseBundleMetadata, type DatabaseJsonObject, type DatabaseJsonValue, type EngineDatabase, FingerprintExtraSources, HasMultipleCallSignatures, IosBuildDestination, LocalSigningConfig, NativeBuildAndroidScheme, NativeBuildArgs, type NativeBuildArtifactKind, type NativeBuildDeleteResult, NativeBuildIosScheme, NativeBuildOptions, type NativeBuildRow, type NativeBuildSubmissionDestination, NativeFingerprint, NativeFingerprintOptions, NativeFingerprintProvider, NativeFingerprintSource, type Platform$1 as Platform, PlatformConfig, Primitive, type ReleaseCatalogRow, type ReleaseCatalogRowUpdate, type ReleaseRow, type ReleaseRowUpdate, type RemoteDatabase, RequiredDeep, SecretsAdapter, SecretsContext, SigningConfig, StorageAdapter, StorageDeleteInput, StorageDeleteResult, StorageExistsInput, StorageExistsResult, StorageGetDownloadUrlInput, StorageGetDownloadUrlResult, StorageGetInput, StorageGetResult, StorageObject, StoragePutInput, StoragePutResult, isRemoteDatabase, supportedIosPlatforms };
604
+ export { type AggregateBatching, ApplePlatform, BuildAdapter, BuildAdapterArgs, BuildAdapterConfig, BuiltIns, type Bundle$1 as Bundle, type BundlePatchRow, type BundleRow, type BundleRowUpdate, type ChannelDeleteResult, type ChannelInsertResult, type ChannelRow, ConfigInput, type ConfiguredDatabase, type DatabaseBundleMetadata, type DatabaseJsonObject, type DatabaseJsonValue, type EngineDatabase, FingerprintExtraSources, HasMultipleCallSignatures, IosBuildDestination, Lazy, LocalSigningConfig, NativeBuildAndroidScheme, NativeBuildArgs, type NativeBuildArtifactKind, type NativeBuildDeleteResult, NativeBuildIosScheme, NativeBuildOptions, type NativeBuildRow, type NativeBuildSubmissionDestination, NativeFingerprint, NativeFingerprintOptions, NativeFingerprintProvider, NativeFingerprintSource, type Platform$1 as Platform, PlatformConfig, Primitive, type ReleaseCatalogRow, type ReleaseCatalogRowUpdate, type ReleaseRow, type ReleaseRowUpdate, type RemoteDatabase, RequiredDeep, SecretRef, SecretsAdapter, SecretsContext, SigningConfig, StorageAdapter, StorageDeleteInput, StorageDeleteResult, StorageExistsInput, StorageExistsResult, StorageGetDownloadUrlInput, StorageGetDownloadUrlResult, StorageGetInput, StorageGetResult, StorageObject, StoragePutInput, StoragePutResult, isRemoteDatabase, resolveLazy, supportedIosPlatforms };
@@ -7,6 +7,33 @@ import { ChannelDeleteResult, ChannelInsertResult, NativeBuildDeleteResult } fro
7
7
  import "./public.mjs";
8
8
  import { Bundle as Bundle$1, Platform, Platform as Platform$1 } from "@hot-updater/protocol";
9
9
  //#region src/types/index.d.ts
10
+ /**
11
+ * A value, or a function that returns it, called on first use: an
12
+ * adapter shared by servers and the CLI takes its credentials so, as a
13
+ * string from a server's own environment or as `secret("<name>")` from
14
+ * `hot-updater.config.ts`, which loads without reading a secret.
15
+ */
16
+ type Lazy<T> = T | (() => T | Promise<T>);
17
+ /** The value of a `Lazy`, calling its function. */
18
+ declare const resolveLazy: <T>(value: Lazy<T>) => Promise<T>;
19
+ /**
20
+ * The brand of a `SecretRef`, `Symbol.for("@hot-updater/secret-ref")` at
21
+ * runtime: `hot-updater`'s `secret()` sets it, and the CLI recognizes a
22
+ * reference by it, so a plain string or function is none.
23
+ */
24
+ declare const secretRefBrand: unique symbol;
25
+ /**
26
+ * `secret("<name>")` in `hot-updater.config.ts`: the secret the config's
27
+ * `secrets` adapter holds as `name`. Called, it reads the value, the
28
+ * environment first, so it is a `Lazy<string>` any adapter credential
29
+ * takes; the build credentials, such as `signing.keystore`, take only a
30
+ * reference, which the CLI resolves by `name` for its kind.
31
+ */
32
+ type SecretRef = (() => Promise<string>) & {
33
+ readonly [secretRefBrand]: true;
34
+ /** The secret's name in the config's `secrets` adapter. */
35
+ readonly name: string;
36
+ };
10
37
  interface BuildAdapterArgs {
11
38
  cwd: string;
12
39
  }
@@ -144,15 +171,15 @@ interface NativeBuildAndroidScheme {
144
171
  applicationId?: string;
145
172
  /**
146
173
  * Signs a release variant with a keystore the CLI resolves: `keystore` is
147
- * `secret:<name>`, the `android-keystore` the config's `secrets` adapter
174
+ * `secret("<name>")`, the `android-keystore` the config's `secrets` adapter
148
175
  * holds as `<name>`, which the `HOT_UPDATER_ANDROID_KEYSTORE_*`
149
176
  * environment variables override. Debug variants keep the debug keystore
150
177
  * and resolve nothing. Without it, the variant's own `signingConfig` signs.
151
178
  *
152
- * @example { keystore: "secret:release-keystore" }
179
+ * @example { keystore: secret("release-keystore") }
153
180
  */
154
181
  signing?: {
155
- keystore: `secret:${string}`;
182
+ keystore: SecretRef;
156
183
  };
157
184
  }
158
185
  type IosBuildDestination = {
@@ -241,16 +268,16 @@ interface NativeBuildIosScheme {
241
268
  simulator?: boolean;
242
269
  /**
243
270
  * Signs a device build with automatic signing, authenticated by an App
244
- * Store Connect API key the CLI resolves: `ascApiKey` is `secret:<name>`,
271
+ * Store Connect API key the CLI resolves: `ascApiKey` is `secret("<name>")`,
245
272
  * the `asc-api-key` the config's `secrets` adapter holds as `<name>`,
246
273
  * which the `HOT_UPDATER_ASC_KEY*` environment variables override.
247
274
  * Simulator builds resolve nothing. Without it, the project's signing
248
275
  * settings and Xcode's accounts sign.
249
276
  *
250
- * @example { ascApiKey: "secret:asc-api-key" }
277
+ * @example { ascApiKey: secret("asc-api-key") }
251
278
  */
252
279
  signing?: {
253
- ascApiKey: `secret:${string}`;
280
+ ascApiKey: SecretRef;
254
281
  };
255
282
  }
256
283
  interface PlatformConfig {
@@ -362,28 +389,6 @@ interface StorageAdapter {
362
389
  /** Deletes only the exact base-path-relative keys supplied by the caller. */
363
390
  readonly deleteObjects?: (keys: readonly string[]) => Promise<void>;
364
391
  }
365
- interface BundleSigningAdapter {
366
- readonly name: string;
367
- /** Returns the RSA public key used by this provider in SPKI PEM format. */
368
- readonly getPublicKey: (input?: {
369
- readonly cwd?: string;
370
- }) => Promise<{
371
- readonly publicKey: string;
372
- }>;
373
- /**
374
- * Signs `message` with RSA PKCS#1 v1.5 SHA-256.
375
- *
376
- * Hot Updater passes the 32 raw bytes decoded from a SHA-256 file hash.
377
- * Remote signing services must treat this value as the raw message, not as
378
- * an already-computed digest.
379
- */
380
- readonly sign: (input: {
381
- readonly message: Uint8Array;
382
- readonly cwd?: string;
383
- }) => Promise<{
384
- readonly signature: Uint8Array;
385
- }>;
386
- }
387
392
  /**
388
393
  * What a secrets adapter is given with each call. It carries no secret: an
389
394
  * adapter reads its own credentials, such as a token or a CLI sign-in.
@@ -393,11 +398,12 @@ interface SecretsContext {
393
398
  readonly cwd: string;
394
399
  }
395
400
  /**
396
- * Where the CLI reads secrets by name: the build credentials `secret:<name>`
397
- * references, and the deploy credentials `secretEnv([...])` names. Values
401
+ * Where the CLI reads the secrets `secret("<name>")` names in a config: build
402
+ * credentials, such as a keystore, and adapter credentials. Values
398
403
  * are strings: binary is base64, and a credential with several fields is one
399
404
  * JSON value per name. `localSecrets()`, an export of `hot-updater`, keeps them
400
- * in files on this machine; a store of your own implements this.
405
+ * in files on this machine, and `infisical()`, another, in an Infisical
406
+ * project; a store of your own implements this.
401
407
  */
402
408
  interface SecretsAdapter {
403
409
  readonly name: string;
@@ -428,22 +434,27 @@ type LocalSigningConfig = {
428
434
  } | {
429
435
  readonly enabled: true;
430
436
  /**
431
- * `secret:<name>`, the RSA private key in PEM format that the config's
432
- * `secrets` adapter holds as `<name>`. The CLI reads it once per run,
433
- * when it first signs or derives the public key, and keeps it in
434
- * memory only.
437
+ * `secret("<name>")`, the RSA private key in PEM format that the
438
+ * config's `secrets` adapter holds as `<name>`. The CLI reads it once
439
+ * per run, when it first signs or derives the public key, and keeps it
440
+ * in memory only.
435
441
  *
436
- * @example { enabled: true, privateKey: "secret:bundle-signing-key" }
442
+ * @example { enabled: true, privateKey: secret("bundle-signing-key") }
437
443
  */
438
- readonly privateKey: `secret:${string}`;
444
+ readonly privateKey: SecretRef;
439
445
  readonly privateKeyPath?: never;
440
446
  } | {
441
447
  readonly enabled: false;
442
448
  readonly privateKeyPath?: string;
443
- readonly privateKey?: `secret:${string}`;
449
+ readonly privateKey?: SecretRef;
444
450
  };
445
- /** Local config or signing adapter. Signing is disabled when omitted. */
446
- type SigningConfig = BundleSigningAdapter | LocalSigningConfig;
451
+ /**
452
+ * Bundle signing with an RSA private key in PEM. `secret("<name>")` is the
453
+ * shorthand of `{ enabled: true, privateKey: secret("<name>") }`. Without
454
+ * `signing`, bundles are unsigned and deploy warns; `enabled: false` turns
455
+ * signing off without the warning.
456
+ */
457
+ type SigningConfig = SecretRef | LocalSigningConfig;
447
458
  /**
448
459
  * Extra fingerprint sources.
449
460
  *
@@ -547,25 +558,23 @@ type ConfigInput = {
547
558
  platform?: PlatformConfig;
548
559
  nativeBuild?: NativeBuildArgs;
549
560
  /**
550
- * Code signing configuration for bundle verification.
551
- * Enables RSA-SHA256 cryptographic signatures for bundle integrity.
552
- *
553
- * @optional Feature is opt-in.
561
+ * Signs each bundle with RSA-SHA256, which the app verifies with the
562
+ * public key it embeds. `secret("bundle-signing-key")` reads the RSA
563
+ * private key in PEM from the config's `secrets` adapter; the object
564
+ * forms take it from a secret (`privateKey`) or a file
565
+ * (`privateKeyPath`). Without `signing`, bundles are unsigned and deploy
566
+ * warns; `{ enabled: false }` turns signing off without the warning.
554
567
  *
555
568
  * @example
556
569
  * ```ts
557
- * signing: {
558
- * enabled: true,
559
- * privateKey: "secret:bundle-signing-key",
560
- * }
570
+ * signing: secret("bundle-signing-key"),
561
571
  * ```
562
572
  */
563
573
  signing?: SigningConfig;
564
574
  /**
565
- * Where the CLI reads the secrets the config names, `secret:<name>` build
566
- * credentials and `secretEnv([...])` deploy credentials, and stores the
567
- * keys it issues. It is the only store: nothing is kept on this machine
568
- * under it.
575
+ * Where the CLI reads the secrets the config names with `secret("<name>")`,
576
+ * after the environment, and stores the keys it issues. It is the only
577
+ * store: nothing is kept on this machine under it.
569
578
  *
570
579
  * @default localSecrets()
571
580
  */
@@ -592,4 +601,4 @@ interface NativeBuildOptions {
592
601
  scheme?: string;
593
602
  }
594
603
  //#endregion
595
- export { type AggregateBatching, ApplePlatform, BuildAdapter, BuildAdapterArgs, BuildAdapterConfig, BuiltIns, type Bundle$1 as Bundle, type BundlePatchRow, type BundleRow, type BundleRowUpdate, BundleSigningAdapter, type ChannelDeleteResult, type ChannelInsertResult, type ChannelRow, ConfigInput, type ConfiguredDatabase, type DatabaseBundleMetadata, type DatabaseJsonObject, type DatabaseJsonValue, type EngineDatabase, FingerprintExtraSources, HasMultipleCallSignatures, IosBuildDestination, LocalSigningConfig, NativeBuildAndroidScheme, NativeBuildArgs, type NativeBuildArtifactKind, type NativeBuildDeleteResult, NativeBuildIosScheme, NativeBuildOptions, type NativeBuildRow, type NativeBuildSubmissionDestination, NativeFingerprint, NativeFingerprintOptions, NativeFingerprintProvider, NativeFingerprintSource, type Platform$1 as Platform, PlatformConfig, Primitive, type ReleaseCatalogRow, type ReleaseCatalogRowUpdate, type ReleaseRow, type ReleaseRowUpdate, type RemoteDatabase, RequiredDeep, SecretsAdapter, SecretsContext, SigningConfig, StorageAdapter, StorageDeleteInput, StorageDeleteResult, StorageExistsInput, StorageExistsResult, StorageGetDownloadUrlInput, StorageGetDownloadUrlResult, StorageGetInput, StorageGetResult, StorageObject, StoragePutInput, StoragePutResult, isRemoteDatabase, supportedIosPlatforms };
604
+ export { type AggregateBatching, ApplePlatform, BuildAdapter, BuildAdapterArgs, BuildAdapterConfig, BuiltIns, type Bundle$1 as Bundle, type BundlePatchRow, type BundleRow, type BundleRowUpdate, type ChannelDeleteResult, type ChannelInsertResult, type ChannelRow, ConfigInput, type ConfiguredDatabase, type DatabaseBundleMetadata, type DatabaseJsonObject, type DatabaseJsonValue, type EngineDatabase, FingerprintExtraSources, HasMultipleCallSignatures, IosBuildDestination, Lazy, LocalSigningConfig, NativeBuildAndroidScheme, NativeBuildArgs, type NativeBuildArtifactKind, type NativeBuildDeleteResult, NativeBuildIosScheme, NativeBuildOptions, type NativeBuildRow, type NativeBuildSubmissionDestination, NativeFingerprint, NativeFingerprintOptions, NativeFingerprintProvider, NativeFingerprintSource, type Platform$1 as Platform, PlatformConfig, Primitive, type ReleaseCatalogRow, type ReleaseCatalogRowUpdate, type ReleaseRow, type ReleaseRowUpdate, type RemoteDatabase, RequiredDeep, SecretRef, SecretsAdapter, SecretsContext, SigningConfig, StorageAdapter, StorageDeleteInput, StorageDeleteResult, StorageExistsInput, StorageExistsResult, StorageGetDownloadUrlInput, StorageGetDownloadUrlResult, StorageGetInput, StorageGetResult, StorageObject, StoragePutInput, StoragePutResult, isRemoteDatabase, resolveLazy, supportedIosPlatforms };
@@ -1,8 +1,10 @@
1
1
  import { isRemoteDatabase } from "./databaseConfig.mjs";
2
2
  //#region src/types/index.ts
3
+ /** The value of a `Lazy`, calling its function. */
4
+ const resolveLazy = async (value) => typeof value === "function" ? await value() : value;
3
5
  /**
4
6
  * Supported Apple platforms for building and deployment
5
7
  */
6
8
  const supportedIosPlatforms = { ios: "ios" };
7
9
  //#endregion
8
- export { isRemoteDatabase, supportedIosPlatforms };
10
+ export { isRemoteDatabase, resolveLazy, supportedIosPlatforms };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hot-updater/plugin-core",
3
- "version": "1.2.0-rc.6",
3
+ "version": "1.2.0-rc.8",
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.2.0-rc.6"
48
+ "@hot-updater/protocol": "1.2.0-rc.8"
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.2.0-rc.6"
55
+ "@hot-updater/test-utils": "1.2.0-rc.8"
56
56
  },
57
57
  "nx": {
58
58
  "implicitDependencies": [