@tearleads/client-sdk 0.1.51 → 0.1.52

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tearleads/client-sdk",
3
- "version": "0.1.51",
3
+ "version": "0.1.52",
4
4
  "description": "React-free Tearleads client runtime: local SQLite persistence, keys, sync, encrypted blobs, and domain workflows.",
5
5
  "license": "UNLICENSED",
6
6
  "repository": {
@@ -17,8 +17,8 @@
17
17
  "default": "./index.js"
18
18
  },
19
19
  "./sqlite": {
20
- "types": "./sqlite.d.ts",
21
- "default": "./sqlite.js"
20
+ "types": "./sqlite/index.d.ts",
21
+ "default": "./sqlite/index.js"
22
22
  },
23
23
  "./sqlite/worker.js": "./sqlite/worker.js",
24
24
  "./sqlite/sqlite3.wasm": "./sqlite/sqlite3.wasm",
@@ -1,5 +1,5 @@
1
- import type { DatabaseWorkerClient, WorkerLike } from "./internal/sqlite-worker/client.js";
2
- import { type CreateModuleDatabaseRuntimeOptions, type DatabaseRuntime, type ModuleWorkerConstructor, type ModuleWorkerLike } from "./internal/sqlite-worker/runtime.js";
1
+ import type { DatabaseWorkerClient, WorkerLike } from "../internal/sqlite-worker/client.js";
2
+ import { type CreateModuleDatabaseRuntimeOptions, type DatabaseRuntime, type ModuleWorkerConstructor, type ModuleWorkerLike } from "../internal/sqlite-worker/runtime.js";
3
3
  export type SQLiteWorkerClient = DatabaseWorkerClient;
4
4
  export type CreateSQLiteRuntimeOptions = CreateModuleDatabaseRuntimeOptions;
5
5
  export type SQLiteRuntime = DatabaseRuntime;
@@ -8,11 +8,11 @@ export type SQLiteModuleWorkerLike = ModuleWorkerLike;
8
8
  export interface SQLiteRuntimeWorker extends WorkerLike {
9
9
  terminate(): void;
10
10
  }
11
- export { createModuleDatabaseRuntime as createSQLiteRuntime } from "./internal/sqlite-worker/runtime.js";
11
+ export { createModuleDatabaseRuntime as createSQLiteRuntime } from "../internal/sqlite-worker/runtime.js";
12
12
  export declare function createSQLiteRuntimeFromWorker(worker: SQLiteRuntimeWorker): SQLiteRuntime;
13
- export { purgeOpfsSqliteDatabase } from "./internal/sqlite-worker/purgeOpfsDatabase.js";
14
- export type { DatabasePersistenceMode } from "./internal/sqlite-worker/types.js";
15
- export { clientSQLiteSchema } from "./data/sqlite/schema.js";
16
- export { type ClientSQLiteDatabase as SQLiteDatabase, type ClientSQLitePersistenceRuntime as SQLitePersistenceRuntime, type ClientSQLiteTransactionScope as SQLiteTransaction, getClientSQLitePersistenceRuntime as getSQLitePersistenceRuntime, } from "./data/sqlite/sqlitePersistenceRuntime.js";
17
- export { createExecSql, defineSqlTableSchema, type ExecSql, type ExecSqlClientLike, ensureSqlTables, resetConnectionSchemaMemo, runSerializedSqlMutation, type SqlArrayRow, type SqlBind, type SqlRow, type SqlRowMode, type SqlRowValue, type SqlTableSchema, unavailableExecSql, } from "./data/sqlite/sqlSchema.js";
18
- export { EPHEMERAL_STORAGE_POLICY, isPersistentStorageSupported, PERSISTENT_STORAGE_POLICY, type RequestPersistentStorageResult, requestPersistentStorage, resolveStoragePersistencePolicy, type StoragePersistencePolicy, } from "./data/sqlite/storagePersistence.js";
13
+ export { purgeOpfsSqliteDatabase } from "../internal/sqlite-worker/purgeOpfsDatabase.js";
14
+ export type { DatabasePersistenceMode } from "../internal/sqlite-worker/types.js";
15
+ export { clientSQLiteSchema } from "../data/sqlite/schema.js";
16
+ export { type ClientSQLiteDatabase as SQLiteDatabase, type ClientSQLitePersistenceRuntime as SQLitePersistenceRuntime, type ClientSQLiteTransactionScope as SQLiteTransaction, getClientSQLitePersistenceRuntime as getSQLitePersistenceRuntime, } from "../data/sqlite/sqlitePersistenceRuntime.js";
17
+ export { createExecSql, defineSqlTableSchema, type ExecSql, type ExecSqlClientLike, ensureSqlTables, resetConnectionSchemaMemo, runSerializedSqlMutation, type SqlArrayRow, type SqlBind, type SqlRow, type SqlRowMode, type SqlRowValue, type SqlTableSchema, unavailableExecSql, } from "../data/sqlite/sqlSchema.js";
18
+ export { EPHEMERAL_STORAGE_POLICY, isPersistentStorageSupported, PERSISTENT_STORAGE_POLICY, type RequestPersistentStorageResult, requestPersistentStorage, resolveStoragePersistencePolicy, type StoragePersistencePolicy, } from "../data/sqlite/storagePersistence.js";
@@ -0,0 +1,11 @@
1
+ import { createDatabaseRuntime, } from "../internal/sqlite-worker/runtime.js";
2
+ export { createModuleDatabaseRuntime as createSQLiteRuntime } from "../internal/sqlite-worker/runtime.js";
3
+ export function createSQLiteRuntimeFromWorker(worker) {
4
+ return createDatabaseRuntime(worker);
5
+ }
6
+ export { purgeOpfsSqliteDatabase } from "../internal/sqlite-worker/purgeOpfsDatabase.js";
7
+ export { clientSQLiteSchema } from "../data/sqlite/schema.js";
8
+ export { getClientSQLitePersistenceRuntime as getSQLitePersistenceRuntime, } from "../data/sqlite/sqlitePersistenceRuntime.js";
9
+ export { createExecSql, defineSqlTableSchema, ensureSqlTables, resetConnectionSchemaMemo, runSerializedSqlMutation, unavailableExecSql, } from "../data/sqlite/sqlSchema.js";
10
+ export { EPHEMERAL_STORAGE_POLICY, isPersistentStorageSupported, PERSISTENT_STORAGE_POLICY, requestPersistentStorage, resolveStoragePersistencePolicy, } from "../data/sqlite/storagePersistence.js";
11
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAIA,OAAO,EAEL,qBAAqB,GAItB,MAAM,kCAAkC,CAAC;AAW1C,OAAO,EAAE,2BAA2B,IAAI,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AAEtG,MAAM,UAAU,6BAA6B,CAC3C,MAA2B;IAE3B,OAAO,qBAAqB,CAAC,MAAM,CAAC,CAAC;AACvC,CAAC;AAED,OAAO,EAAE,uBAAuB,EAAE,MAAM,8CAA8C,CAAC;AAEvF,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAIL,iCAAiC,IAAI,2BAA2B,GACjE,MAAM,yCAAyC,CAAC;AACjD,OAAO,EACL,aAAa,EACb,oBAAoB,EAGpB,eAAe,EACf,yBAAyB,EACzB,wBAAwB,EAOxB,kBAAkB,GACnB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,wBAAwB,EACxB,4BAA4B,EAC5B,yBAAyB,EAEzB,wBAAwB,EACxB,+BAA+B,GAEhC,MAAM,mCAAmC,CAAC","sourcesContent":["import type {\n DatabaseWorkerClient,\n WorkerLike,\n} from \"@tearleads/sqlite-worker/client\";\nimport {\n type CreateModuleDatabaseRuntimeOptions,\n createDatabaseRuntime,\n type DatabaseRuntime,\n type ModuleWorkerConstructor,\n type ModuleWorkerLike,\n} from \"@tearleads/sqlite-worker/runtime\";\n\nexport type SQLiteWorkerClient = DatabaseWorkerClient;\nexport type CreateSQLiteRuntimeOptions = CreateModuleDatabaseRuntimeOptions;\nexport type SQLiteRuntime = DatabaseRuntime;\nexport type SQLiteModuleWorkerConstructor = ModuleWorkerConstructor;\nexport type SQLiteModuleWorkerLike = ModuleWorkerLike;\nexport interface SQLiteRuntimeWorker extends WorkerLike {\n terminate(): void;\n}\n\nexport { createModuleDatabaseRuntime as createSQLiteRuntime } from \"@tearleads/sqlite-worker/runtime\";\n\nexport function createSQLiteRuntimeFromWorker(\n worker: SQLiteRuntimeWorker,\n): SQLiteRuntime {\n return createDatabaseRuntime(worker);\n}\n\nexport { purgeOpfsSqliteDatabase } from \"@tearleads/sqlite-worker/purge-opfs-database\";\nexport type { DatabasePersistenceMode } from \"@tearleads/sqlite-worker/types\";\nexport { clientSQLiteSchema } from \"../data/sqlite/schema\";\nexport {\n type ClientSQLiteDatabase as SQLiteDatabase,\n type ClientSQLitePersistenceRuntime as SQLitePersistenceRuntime,\n type ClientSQLiteTransactionScope as SQLiteTransaction,\n getClientSQLitePersistenceRuntime as getSQLitePersistenceRuntime,\n} from \"../data/sqlite/sqlitePersistenceRuntime\";\nexport {\n createExecSql,\n defineSqlTableSchema,\n type ExecSql,\n type ExecSqlClientLike,\n ensureSqlTables,\n resetConnectionSchemaMemo,\n runSerializedSqlMutation,\n type SqlArrayRow,\n type SqlBind,\n type SqlRow,\n type SqlRowMode,\n type SqlRowValue,\n type SqlTableSchema,\n unavailableExecSql,\n} from \"../data/sqlite/sqlSchema\";\nexport {\n EPHEMERAL_STORAGE_POLICY,\n isPersistentStorageSupported,\n PERSISTENT_STORAGE_POLICY,\n type RequestPersistentStorageResult,\n requestPersistentStorage,\n resolveStoragePersistencePolicy,\n type StoragePersistencePolicy,\n} from \"../data/sqlite/storagePersistence\";\n"]}
package/sqlite.js DELETED
@@ -1,11 +0,0 @@
1
- import { createDatabaseRuntime, } from "./internal/sqlite-worker/runtime.js";
2
- export { createModuleDatabaseRuntime as createSQLiteRuntime } from "./internal/sqlite-worker/runtime.js";
3
- export function createSQLiteRuntimeFromWorker(worker) {
4
- return createDatabaseRuntime(worker);
5
- }
6
- export { purgeOpfsSqliteDatabase } from "./internal/sqlite-worker/purgeOpfsDatabase.js";
7
- export { clientSQLiteSchema } from "./data/sqlite/schema.js";
8
- export { getClientSQLitePersistenceRuntime as getSQLitePersistenceRuntime, } from "./data/sqlite/sqlitePersistenceRuntime.js";
9
- export { createExecSql, defineSqlTableSchema, ensureSqlTables, resetConnectionSchemaMemo, runSerializedSqlMutation, unavailableExecSql, } from "./data/sqlite/sqlSchema.js";
10
- export { EPHEMERAL_STORAGE_POLICY, isPersistentStorageSupported, PERSISTENT_STORAGE_POLICY, requestPersistentStorage, resolveStoragePersistencePolicy, } from "./data/sqlite/storagePersistence.js";
11
- //# sourceMappingURL=sqlite.js.map
package/sqlite.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"sqlite.js","sourceRoot":"","sources":["sqlite.ts"],"names":[],"mappings":"AAIA,OAAO,EAEL,qBAAqB,GAItB,MAAM,kCAAkC,CAAC;AAW1C,OAAO,EAAE,2BAA2B,IAAI,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AAEtG,MAAM,UAAU,6BAA6B,CAC3C,MAA2B;IAE3B,OAAO,qBAAqB,CAAC,MAAM,CAAC,CAAC;AACvC,CAAC;AAED,OAAO,EAAE,uBAAuB,EAAE,MAAM,8CAA8C,CAAC;AAEvF,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAIL,iCAAiC,IAAI,2BAA2B,GACjE,MAAM,wCAAwC,CAAC;AAChD,OAAO,EACL,aAAa,EACb,oBAAoB,EAGpB,eAAe,EACf,yBAAyB,EACzB,wBAAwB,EAOxB,kBAAkB,GACnB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,wBAAwB,EACxB,4BAA4B,EAC5B,yBAAyB,EAEzB,wBAAwB,EACxB,+BAA+B,GAEhC,MAAM,kCAAkC,CAAC","sourcesContent":["import type {\n DatabaseWorkerClient,\n WorkerLike,\n} from \"@tearleads/sqlite-worker/client\";\nimport {\n type CreateModuleDatabaseRuntimeOptions,\n createDatabaseRuntime,\n type DatabaseRuntime,\n type ModuleWorkerConstructor,\n type ModuleWorkerLike,\n} from \"@tearleads/sqlite-worker/runtime\";\n\nexport type SQLiteWorkerClient = DatabaseWorkerClient;\nexport type CreateSQLiteRuntimeOptions = CreateModuleDatabaseRuntimeOptions;\nexport type SQLiteRuntime = DatabaseRuntime;\nexport type SQLiteModuleWorkerConstructor = ModuleWorkerConstructor;\nexport type SQLiteModuleWorkerLike = ModuleWorkerLike;\nexport interface SQLiteRuntimeWorker extends WorkerLike {\n terminate(): void;\n}\n\nexport { createModuleDatabaseRuntime as createSQLiteRuntime } from \"@tearleads/sqlite-worker/runtime\";\n\nexport function createSQLiteRuntimeFromWorker(\n worker: SQLiteRuntimeWorker,\n): SQLiteRuntime {\n return createDatabaseRuntime(worker);\n}\n\nexport { purgeOpfsSqliteDatabase } from \"@tearleads/sqlite-worker/purge-opfs-database\";\nexport type { DatabasePersistenceMode } from \"@tearleads/sqlite-worker/types\";\nexport { clientSQLiteSchema } from \"./data/sqlite/schema\";\nexport {\n type ClientSQLiteDatabase as SQLiteDatabase,\n type ClientSQLitePersistenceRuntime as SQLitePersistenceRuntime,\n type ClientSQLiteTransactionScope as SQLiteTransaction,\n getClientSQLitePersistenceRuntime as getSQLitePersistenceRuntime,\n} from \"./data/sqlite/sqlitePersistenceRuntime\";\nexport {\n createExecSql,\n defineSqlTableSchema,\n type ExecSql,\n type ExecSqlClientLike,\n ensureSqlTables,\n resetConnectionSchemaMemo,\n runSerializedSqlMutation,\n type SqlArrayRow,\n type SqlBind,\n type SqlRow,\n type SqlRowMode,\n type SqlRowValue,\n type SqlTableSchema,\n unavailableExecSql,\n} from \"./data/sqlite/sqlSchema\";\nexport {\n EPHEMERAL_STORAGE_POLICY,\n isPersistentStorageSupported,\n PERSISTENT_STORAGE_POLICY,\n type RequestPersistentStorageResult,\n requestPersistentStorage,\n resolveStoragePersistencePolicy,\n type StoragePersistencePolicy,\n} from \"./data/sqlite/storagePersistence\";\n"]}