@nkzw/fate-indexeddb 2.1.0 → 2.2.0

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.
Files changed (2) hide show
  1. package/README.md +13 -1
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -3197,7 +3197,19 @@ export const fate = createDrizzleFate<AppContext, typeof procedure>({
3197
3197
  });
3198
3198
  ```
3199
3199
 
3200
- The Drizzle adapter loads the selected fields and relations for you. Nested pagination runs up to 10 child queries at a time; set `nestedPaginationConcurrency` to adjust that limit for your database pool.
3200
+ The Drizzle adapter loads the selected fields and relations for you. By default,
3201
+ nested pagination queries each parent separately. On databases that support
3202
+ window functions, set `nestedPaginationBatching: true` to group parents into
3203
+ window queries, including cursor-based and many-to-many pages. Each query
3204
+ returns at most the requested page size plus one row per parent. Large parent
3205
+ sets are split into bounded batches.
3206
+
3207
+ Independent sibling relations load concurrently. Nested hydration shares a limit
3208
+ of 10 active database queries across sibling and recursive relations in each
3209
+ source fetch; set `nestedPaginationConcurrency` to match your database pool. Query slots are released
3210
+ before recursively hydrating children.
3211
+
3212
+ Both paths preserve the same ordering, cursors, and page metadata.
3201
3213
 
3202
3214
  Count filters can use equality objects or Drizzle predicates such as `(columns) => eq(columns.status, 'GOING')`.
3203
3215
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nkzw/fate-indexeddb",
3
- "version": "2.1.0",
3
+ "version": "2.2.0",
4
4
  "description": "Optional IndexedDB persistence adapter for fate.",
5
5
  "license": "MIT",
6
6
  "files": [
@@ -19,7 +19,7 @@
19
19
  "idb": "^8.0.4"
20
20
  },
21
21
  "devDependencies": {
22
- "@nkzw/fate": "2.1.0",
22
+ "@nkzw/fate": "2.2.0",
23
23
  "fake-indexeddb": "^6.2.8",
24
24
  "vite": "npm:@voidzero-dev/vite-plus-core@1.6.0",
25
25
  "vite-plus": "1.6.0"