Commit 0592852
Upgrade pacer package (#829)
* Upgrade @tanstack/pacer to v0.16.2 and fix AsyncQueuer API usage
The pacer package API changed significantly from v0.1.0 to v0.16.2:
- AsyncQueuer constructor now takes the function as first parameter
- Items are passed to addItem() instead of functions being passed to addItem()
- Updated queueStrategy to use new API pattern
This fixes the build errors in packages/db/src/strategies/queueStrategy.ts
* Improve type safety in queueStrategy by avoiding 'any'
Replace Transaction<any> with Transaction to match the pattern used in
debounceStrategy and throttleStrategy. This maintains type safety while
allowing the queuer to handle transactions with different generic types.
- Changed AsyncQueuer<() => Transaction<any>> to AsyncQueuer<() => Transaction>
- Added type cast in addItem call: fn as () => Transaction
- Consistent with existing strategy implementations
---------
Co-authored-by: Claude <noreply@anthropic.com>1 parent 3ce0264 commit 0592852
File tree
3 files changed
+39
-22
lines changed- packages/db
- src/strategies
3 files changed
+39
-22
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
55 | 63 | | |
56 | 64 | | |
57 | 65 | | |
58 | 66 | | |
59 | 67 | | |
60 | 68 | | |
61 | 69 | | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
| 70 | + | |
| 71 | + | |
69 | 72 | | |
70 | 73 | | |
71 | 74 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments