From f1efc60dc76e7d6550cb3a634d1a3a79be9fd80f Mon Sep 17 00:00:00 2001 From: Tom Aylott Date: Fri, 12 Sep 2025 13:27:13 -0400 Subject: [PATCH 1/2] feat(ts): explicit named re-exports; correct isIOSEmbedded with deprecated alias --- src/functions.ts | 7 ++++++- src/index.ts | 13 ++++++++++++- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/src/functions.ts b/src/functions.ts index 86176d5f..75d22b49 100644 --- a/src/functions.ts +++ b/src/functions.ts @@ -449,10 +449,15 @@ export const isLibsql = (): boolean => { return OPSQLite.isLibsql(); }; -export const isIOSEmbeeded = (): boolean => { +export const isIOSEmbedded = (): boolean => { if (Platform.OS !== 'ios') { return false; } return OPSQLite.isIOSEmbedded(); }; + +/** + * @deprecated Use `isIOSEmbedded` instead. This alias will be removed in a future release. + */ +export const isIOSEmbeeded = isIOSEmbedded; diff --git a/src/index.ts b/src/index.ts index 5667d231..7f557e14 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,6 +1,17 @@ import { NativeModules } from 'react-native'; -export * from './functions'; +export { + OPSQLite, + open, + openRemote, + openSync, + moveAssetsDatabase, + getDylibPath, + isSQLCipher, + isLibsql, + isIOSEmbedded, + isIOSEmbeeded, +} from './functions'; export { Storage } from './Storage'; export * from './types'; From adb8369e6b143751e3d4265fdeaa03cbb22070d0 Mon Sep 17 00:00:00 2001 From: Tom Aylott Date: Fri, 12 Sep 2025 13:46:04 -0400 Subject: [PATCH 2/2] fix: correct export of types in index.ts --- src/index.ts | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 7f557e14..3243dcce 100644 --- a/src/index.ts +++ b/src/index.ts @@ -13,7 +13,22 @@ export { isIOSEmbeeded, } from './functions'; export { Storage } from './Storage'; -export * from './types'; +export type { + Scalar, + QueryResult, + ColumnMetadata, + SQLBatchTuple, + UpdateHookOperation, + BatchQueryResult, + FileLoadResult, + Transaction, + _PendingTransaction, + PreparedStatement, + _InternalDB, + DB, + DBParams, + OPSQLiteProxy, +} from './types'; export const { IOS_DOCUMENT_PATH,