Repository navigation
fix: restore type assertions a merge commit's lint fix removed - #2125
Conversation
The pre-commit `eslint --fix` on #2112's merge-from-main commit ran without a built `@tanstack/db`, so it lost the types that trailbase and query-db read from `dist` and removed non-null assertions, casts and two eslint-disable comments as unnecessary. CI builds first, where they are needed: the trailbase build and the query-db lint fail on main. Restore the four files to their versions before #2112. Co-authored-by: Isaac <no-reply@databricks.com>
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
More templates
@tanstack/angular-db
@tanstack/browser-db-sqlite-persistence
@tanstack/capacitor-db-sqlite-persistence
@tanstack/cloudflare-durable-objects-db-sqlite-persistence
@tanstack/db
@tanstack/db-ivm
@tanstack/db-sqlite-persistence-core
@tanstack/electric-db-collection
@tanstack/electron-db-sqlite-persistence
@tanstack/expo-db-sqlite-persistence
@tanstack/node-db-sqlite-persistence
@tanstack/offline-transactions
@tanstack/powersync-db-collection
@tanstack/query-db-collection
@tanstack/react-db
@tanstack/react-native-db-sqlite-persistence
@tanstack/react-router-with-db
@tanstack/rxdb-db-collection
@tanstack/solid-db
@tanstack/svelte-db
@tanstack/tauri-db-sqlite-persistence
@tanstack/trailbase-db-collection
@tanstack/vue-db
commit: |
|
Size Change: 0 B Total Size: 215 kB ℹ️ View Unchanged
|
🎯 Changes
mainfails CI after #2112. This PR fixes it.trailbase-db-collectionbuild fails:src/trailbase.ts:267and:290,TRecord | undefinedis not assignable toTRecord.query-db-collectionlint fails.Cause
I merged
maininto the #2112 branch before #2112 merged. The pre-commit hook raneslint --fixon the merge commit, but that worktree had no built@tanstack/db. TrailBase and query-db read types fromdb/dist. Without these types, eslint removed non-null assertions, two casts and twoeslint-disablecomments as unnecessary. CI builds the packages first, and there these changes are necessary. I merged #2112 before CI ran on that merge commit.Fix
This PR restores the four files to their versions before #2112:
packages/trailbase-db-collection/src/trailbase.tspackages/query-db-collection/src/query.tspackages/query-db-collection/tests/query.test.tspackages/electric-db-collection/tests/electric-recovery-oracle.test.tsWith
@tanstack/dbbuilt,trailbase-db-collectiontype-checks, and eslint reports no errors in these files.✅ Checklist
pnpm test.🚀 Release Impact
This pull request and its description were written by Isaac.
Summary by CodeRabbit