locality-idb 1.5.7 → 1.5.10
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/README.md +7 -7
- package/dist/index.d.cts +2 -2
- package/dist/index.d.mts +2 -2
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -1257,6 +1257,13 @@ await db.export({
|
|
|
1257
1257
|
});
|
|
1258
1258
|
```
|
|
1259
1259
|
|
|
1260
|
+
> **Note:**
|
|
1261
|
+
>
|
|
1262
|
+
> - Automatically triggers a file download in the browser.
|
|
1263
|
+
> - Exported data includes all records from specified tables.
|
|
1264
|
+
> - Use for backup, debugging, or data migration.
|
|
1265
|
+
> - File download works in browser environments only.
|
|
1266
|
+
|
|
1260
1267
|
**Exported JSON Structure:**
|
|
1261
1268
|
|
|
1262
1269
|
```typescript
|
|
@@ -1333,13 +1340,6 @@ Drops an object store by name and bumps the database version internally.
|
|
|
1333
1340
|
await db.dropTable('users');
|
|
1334
1341
|
```
|
|
1335
1342
|
|
|
1336
|
-
> **Note:**
|
|
1337
|
-
>
|
|
1338
|
-
> - Automatically triggers a file download in the browser.
|
|
1339
|
-
> - Exported data includes all records from specified tables.
|
|
1340
|
-
> - Use for backup, debugging, or data migration.
|
|
1341
|
-
> - File download works in browser environments only.
|
|
1342
|
-
|
|
1343
1343
|
---
|
|
1344
1344
|
|
|
1345
1345
|
#### Static Methods
|
package/dist/index.d.cts
CHANGED
|
@@ -588,8 +588,8 @@ type InferUpdateType<T extends Table> = Prettify<Partial<Omit<$InferRow<T['colum
|
|
|
588
588
|
/** Creates a type for select operations. */
|
|
589
589
|
type InferSelectType<S extends Table> = Prettify<S extends infer T ? T extends Table<infer C> ? $InferRow<C> : never : never>;
|
|
590
590
|
type PrimaryKeyType<S extends Table> = InferSelectType<S>[$InferPrimaryKey<S['columns']>];
|
|
591
|
-
type IndexKeyType<S extends Table> = InferSelectType<S>[$
|
|
592
|
-
type UniqueKeyType<S extends Table> = InferSelectType<S>[$
|
|
591
|
+
type IndexKeyType<S extends Table> = InferSelectType<S>[$InferIndex<S['columns']>];
|
|
592
|
+
type UniqueKeyType<S extends Table> = InferSelectType<S>[$InferUnique<S['columns']>];
|
|
593
593
|
/** Column type strings used in {@link Column} definitions */
|
|
594
594
|
type TypeName = LooseLiteral<'int' | 'float' | 'number' | 'numeric' | 'bigint' | 'text' | 'string' | `char${number}` | `varchar${number}` | 'uuid' | 'timestamp' | 'email' | 'url' | 'bool' | 'boolean' | 'date' | 'object' | 'array' | 'list' | 'tuple' | 'set' | 'map' | 'custom'>;
|
|
595
595
|
/** Email string type in basic format */
|
package/dist/index.d.mts
CHANGED
|
@@ -588,8 +588,8 @@ type InferUpdateType<T extends Table> = Prettify<Partial<Omit<$InferRow<T['colum
|
|
|
588
588
|
/** Creates a type for select operations. */
|
|
589
589
|
type InferSelectType<S extends Table> = Prettify<S extends infer T ? T extends Table<infer C> ? $InferRow<C> : never : never>;
|
|
590
590
|
type PrimaryKeyType<S extends Table> = InferSelectType<S>[$InferPrimaryKey<S['columns']>];
|
|
591
|
-
type IndexKeyType<S extends Table> = InferSelectType<S>[$
|
|
592
|
-
type UniqueKeyType<S extends Table> = InferSelectType<S>[$
|
|
591
|
+
type IndexKeyType<S extends Table> = InferSelectType<S>[$InferIndex<S['columns']>];
|
|
592
|
+
type UniqueKeyType<S extends Table> = InferSelectType<S>[$InferUnique<S['columns']>];
|
|
593
593
|
/** Column type strings used in {@link Column} definitions */
|
|
594
594
|
type TypeName = LooseLiteral<'int' | 'float' | 'number' | 'numeric' | 'bigint' | 'text' | 'string' | `char${number}` | `varchar${number}` | 'uuid' | 'timestamp' | 'email' | 'url' | 'bool' | 'boolean' | 'date' | 'object' | 'array' | 'list' | 'tuple' | 'set' | 'map' | 'custom'>;
|
|
595
595
|
/** Email string type in basic format */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "locality-idb",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.10",
|
|
4
4
|
"description": "SQL-like query builder for IndexedDB with Drizzle-style API",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -67,11 +67,11 @@
|
|
|
67
67
|
"database"
|
|
68
68
|
],
|
|
69
69
|
"devDependencies": {
|
|
70
|
-
"@eslint/js": "^
|
|
71
|
-
"@types/node": "^25.
|
|
72
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
73
|
-
"@typescript-eslint/parser": "^8.
|
|
74
|
-
"eslint": "^
|
|
70
|
+
"@eslint/js": "^10.0.1",
|
|
71
|
+
"@types/node": "^25.3.0",
|
|
72
|
+
"@typescript-eslint/eslint-plugin": "^8.56.0",
|
|
73
|
+
"@typescript-eslint/parser": "^8.56.0",
|
|
74
|
+
"eslint": "^10.0.1",
|
|
75
75
|
"eslint-config-prettier": "^10.1.8",
|
|
76
76
|
"eslint-plugin-prettier": "^5.5.5",
|
|
77
77
|
"globals": "^17.3.0",
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"prettier": "^3.8.1",
|
|
81
81
|
"tsdown": "^0.20.3",
|
|
82
82
|
"typescript": "^5.9.3",
|
|
83
|
-
"typescript-eslint": "^8.
|
|
83
|
+
"typescript-eslint": "^8.56.0"
|
|
84
84
|
},
|
|
85
85
|
"main": "./dist/index.cjs",
|
|
86
86
|
"module": "./dist/index.mjs",
|