-
Notifications
You must be signed in to change notification settings - Fork 121
Upgrade pacer package #829
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade pacer package #829
Conversation
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
|
More templates
@tanstack/angular-db
@tanstack/db
@tanstack/db-ivm
@tanstack/electric-db-collection
@tanstack/offline-transactions
@tanstack/powersync-db-collection
@tanstack/query-db-collection
@tanstack/react-db
@tanstack/rxdb-db-collection
@tanstack/solid-db
@tanstack/svelte-db
@tanstack/trailbase-db-collection
@tanstack/vue-db
commit: |
|
Size Change: +4 B (0%) Total Size: 86 kB
ℹ️ View Unchanged
|
|
Size Change: 0 B Total Size: 3.34 kB ℹ️ View Unchanged
|
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
|
Don't forget to re-generate the docs and add a changeset. |
Unblock #783
The pacer package API changed significantly from v0.1.0 to v0.16.2:
This fixes the build errors in packages/db/src/strategies/queueStrategy.ts
🎯 Changes
✅ Checklist
pnpm test:pr.🚀 Release Impact