@firtoz/drizzle-indexeddb 5.0.3 → 5.0.5
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/CHANGELOG.md +25 -0
- package/dist/collections/drizzle-indexeddb-collection.d.ts +2 -2
- package/dist/context/DrizzleIndexedDBProvider.d.ts +1 -2
- package/dist/context/useDrizzleIndexedDB.d.ts +0 -1
- package/dist/idb-operations.d.ts +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/standalone-collection.d.ts +2 -2
- package/package.json +12 -12
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
# @firtoz/drizzle-indexeddb
|
|
2
2
|
|
|
3
|
+
## 5.0.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`36f1d36`](https://github.com/firtoz/fullstack-toolkit/commit/36f1d369e58fe66c3b1ebc33d069cb393a1b25f5) Thanks [@firtoz](https://github.com/firtoz)! - Align peer dependency minimums with the workspace catalog: `@tanstack/db` >=0.6.14, `@tanstack/react-db` >=0.1.92, `react` >=19.2.7, and `valibot` >=1.4.2.
|
|
8
|
+
|
|
9
|
+
- Updated dependencies [[`36f1d36`](https://github.com/firtoz/fullstack-toolkit/commit/36f1d369e58fe66c3b1ebc33d069cb393a1b25f5)]:
|
|
10
|
+
- @firtoz/db-helpers@2.2.4
|
|
11
|
+
- @firtoz/drizzle-utils@1.3.4
|
|
12
|
+
- @firtoz/idb-collections@0.3.4
|
|
13
|
+
|
|
14
|
+
## 5.0.4
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- [`43cbf3d`](https://github.com/firtoz/fullstack-toolkit/commit/43cbf3d2210a476ab7ea83f9a51b53118cf4dbed) Thanks [@firtoz](https://github.com/firtoz)! - Align with catalog dependency updates (Hono 4.12, `@hono/zod-validator` 0.8, TanStack DB 0.6.7, React 19.2.6, Valibot 1.4.1).
|
|
19
|
+
|
|
20
|
+
- **hono-fetcher:** Strip Zod validator 400 JSON bodies from inferred route response types so `json()` matches handler payloads again.
|
|
21
|
+
- **Peer ranges:** Widen minimum `@tanstack/db`, `@tanstack/react-db`, `react`, and `valibot` versions to match the workspace catalog.
|
|
22
|
+
|
|
23
|
+
- Updated dependencies [[`43cbf3d`](https://github.com/firtoz/fullstack-toolkit/commit/43cbf3d2210a476ab7ea83f9a51b53118cf4dbed)]:
|
|
24
|
+
- @firtoz/db-helpers@2.2.3
|
|
25
|
+
- @firtoz/drizzle-utils@1.3.3
|
|
26
|
+
- @firtoz/idb-collections@0.3.3
|
|
27
|
+
|
|
3
28
|
## 5.0.3
|
|
4
29
|
|
|
5
30
|
### Patch Changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Collection, InferSchemaOutput, InferSchemaInput, SyncMode, CollectionConfig } from '@tanstack/db';
|
|
2
2
|
import { Table } from 'drizzle-orm';
|
|
3
|
-
import {
|
|
3
|
+
import { TableWithRequiredFields, SelectSchema, IdOf, InsertToSelectSchema } from '@firtoz/drizzle-utils';
|
|
4
4
|
import { CollectionUtils } from '@firtoz/db-helpers';
|
|
5
5
|
import { IDBDatabaseLike } from '../idb-types.js';
|
|
6
6
|
import '@firtoz/idb-collections';
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
1
|
import * as react from 'react';
|
|
3
2
|
import { PropsWithChildren } from 'react';
|
|
4
3
|
import { Collection, InferSchemaOutput, InferSchemaInput, SyncMode } from '@tanstack/db';
|
|
@@ -29,7 +28,7 @@ type DrizzleIndexedDBProviderProps<TSchema extends Record<string, unknown>> = Pr
|
|
|
29
28
|
*/
|
|
30
29
|
dbCreator?: IDBCreator;
|
|
31
30
|
}>;
|
|
32
|
-
declare function DrizzleIndexedDBProvider<TSchema extends Record<string, unknown>>({ children, dbName, schema, migrations, migrateFunction, debug, syncMode, dbCreator, }: DrizzleIndexedDBProviderProps<TSchema>):
|
|
31
|
+
declare function DrizzleIndexedDBProvider<TSchema extends Record<string, unknown>>({ children, dbName, schema, migrations, migrateFunction, debug, syncMode, dbCreator, }: DrizzleIndexedDBProviderProps<TSchema>): react.JSX.Element;
|
|
33
32
|
declare function useIndexedDBCollection<TSchema extends Record<string, unknown>, TTableName extends keyof TSchema & string>(context: DrizzleIndexedDBContextValue<TSchema>, tableName: TTableName): InferCollectionFromTable<GetTableFromSchema<TSchema, TTableName>>;
|
|
34
33
|
|
|
35
34
|
export { DrizzleIndexedDBContext, type DrizzleIndexedDBContextValue, DrizzleIndexedDBProvider, type IndexedDbCollection, useIndexedDBCollection };
|
package/dist/idb-operations.d.ts
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { InferSchemaOutput, InferSchemaInput, Transaction, WritableDeep, Collection, SyncMode } from '@tanstack/db';
|
|
2
2
|
import { Table } from 'drizzle-orm';
|
|
3
3
|
import { CollectionUtils } from '@firtoz/db-helpers';
|
|
4
4
|
import { SelectSchema, IdOf, InsertSchema, InsertToSelectSchema } from '@firtoz/drizzle-utils';
|
|
5
5
|
import { Migration } from './function-migrator.js';
|
|
6
|
-
import {
|
|
6
|
+
import { IDBDatabaseLike, IDBCreator } from './idb-types.js';
|
|
7
7
|
import '@firtoz/idb-collections';
|
|
8
8
|
|
|
9
9
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@firtoz/drizzle-indexeddb",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.5",
|
|
4
4
|
"description": "IndexedDB migrations powered by Drizzle ORM",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -73,25 +73,25 @@
|
|
|
73
73
|
"access": "public"
|
|
74
74
|
},
|
|
75
75
|
"peerDependencies": {
|
|
76
|
-
"@firtoz/drizzle-utils": ">=1.3.
|
|
77
|
-
"@tanstack/db": ">=0.6.
|
|
76
|
+
"@firtoz/drizzle-utils": ">=1.3.4",
|
|
77
|
+
"@tanstack/db": ">=0.6.14",
|
|
78
78
|
"drizzle-orm": ">=0.45.2",
|
|
79
79
|
"drizzle-valibot": ">=0.4.0",
|
|
80
|
-
"react": ">=19.2.
|
|
81
|
-
"valibot": ">=1.
|
|
80
|
+
"react": ">=19.2.7",
|
|
81
|
+
"valibot": ">=1.4.2"
|
|
82
82
|
},
|
|
83
83
|
"devDependencies": {
|
|
84
|
-
"@firtoz/drizzle-utils": "^1.3.
|
|
85
|
-
"@tanstack/db": "^0.6.
|
|
86
|
-
"@types/react": "^19.2.
|
|
84
|
+
"@firtoz/drizzle-utils": "^1.3.4",
|
|
85
|
+
"@tanstack/db": "^0.6.14",
|
|
86
|
+
"@types/react": "^19.2.17",
|
|
87
87
|
"drizzle-orm": "^0.45.2",
|
|
88
88
|
"drizzle-valibot": "^0.4.2",
|
|
89
|
-
"react": "^19.2.
|
|
90
|
-
"valibot": "^1.
|
|
89
|
+
"react": "^19.2.7",
|
|
90
|
+
"valibot": "^1.4.2"
|
|
91
91
|
},
|
|
92
92
|
"dependencies": {
|
|
93
|
-
"@firtoz/db-helpers": "^2.2.
|
|
94
|
-
"@firtoz/idb-collections": "^0.3.
|
|
93
|
+
"@firtoz/db-helpers": "^2.2.4",
|
|
94
|
+
"@firtoz/idb-collections": "^0.3.4",
|
|
95
95
|
"@firtoz/maybe-error": "^1.6.2",
|
|
96
96
|
"citty": "^0.2.2"
|
|
97
97
|
}
|