Initial Commit

This commit is contained in:
2026-05-27 23:47:53 +01:00
parent fbc70f96e6
commit 9b28db724f
18103 changed files with 1600554 additions and 0 deletions

View File

@@ -0,0 +1,72 @@
// Side-effect import: ensures `defineCodes` registers the LOCAL_STORAGE.*
// registry even when subpath consumers never reach this file.
import "./error-codes.js";
export {
base64ToBytes,
bytesToBase64,
decodeEnvelope,
type Envelope,
encodeEnvelope,
} from "./envelope/envelope.js";
export {
LOCAL_STORAGE_CODES,
LocalStorageError,
type LocalStorageErrorCode,
type LocalStorageErrorOptions,
} from "./error-codes.js";
export {
createInMemoryLocalStorage,
InMemoryStorage,
type InMemoryStorageOptions,
QuotaExceededDomException,
SecurityErrorDomException,
} from "./in-memory-storage/in-memory-storage.js";
export { sanitizeKey } from "./key-sanitizer/key-sanitizer.js";
export {
assertNotAborted,
isQuotaExceeded,
mapLocalStorageError,
} from "./local-storage/local-storage.errors.js";
export {
createLocalStorageStorage,
LocalStorageStorage,
} from "./local-storage/local-storage.js";
export {
buildWireKey,
collectOwnedKeys,
isOwnedWireKey,
paginateKeys,
stripNamespace,
} from "./local-storage/local-storage.ops.js";
export { assertNonNegInt } from "./local-storage/local-storage.partial.js";
export {
buildMetadata,
type DecodedEntry,
peekMetadata,
type ResolvedConfig,
readEnvelope,
requireEntry,
resolveOptions,
} from "./local-storage/local-storage.slot.js";
export {
defaultLocalStorage,
isLocalStorageAvailable,
} from "./local-storage-adapter/local-storage-adapter.js";
export {
getInstruments,
type RecordOpInput,
recordOp,
resetInstruments,
type StorageBrowserLocalStorageInstruments,
type StorageBrowserLocalStorageOp,
type StorageBrowserLocalStorageOpOutcome,
setStorageBrowserLocalStorageMeterProvider,
} from "./otel/otel.js";
export { registerLocalStorageProvider } from "./registry/registry.js";
export type {
LocalStorageAdapter,
LocalStorageStorageOptions,
StorageLike,
} from "./types/index.js";
export { LocalStorageStorageOptionsSchema } from "./types/index.js";