TanStack
OSS
query
Sign in / Sign up
Open main menu
query
GitHub
Overview
Runs
Analytics
Loading workspace stats
Loading workspace insights...
Statistics interval
7 days
30 days
Latest CI Pipeline Executions
Status
Fix filter
Filter
Fuzzy
Filter range
Sort by
Sort by
Start time
Sort ascending
Sort descending
Succeeded
10593
011141dc refactor(query-core): drop NoInfer re-export, use built-in everywhere Per @TkDodo's review: TypeScript's intrinsic NoInfer (TS ≥ 5.4) is the canonical type, and the package already requires TS ≥ 5.4. Removing the re-export sidesteps the self-shadowing issue entirely and avoids encouraging consumers to import a duplicate.
by Ousama Ben...
O
Succeeded
10593
24c74b9b test(react-query): document implicit regression guard for generic indexed-access NoInfer Per CodeRabbit nitpick: clarify that the `getLabel(props.dataType, data)` call itself is the regression guard. With the previous hand-rolled NoInfer, this call failed to type-check; with built-in NoInfer (TS 5.4+), it compiles. An explicit `expectTypeOf(data).toEqualTypeOf<...>()` / `toMatchTypeOf<...>()` cannot work here — vitest's type-relation checks reduce to `Extends<NoInfer<T>, T>` which TS leaves unresolved under a generic `TDataType extends DataType` constraint. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
by Ousama Ben...
O
Succeeded
10593
d942386c test(react-query): move 'generic indexed access TData' describe out of 'initialData' Block was nested inside `describe('initialData', ...)` but is unrelated to initialData behavior. Lift it to sibling level under `describe('useQuery', ...)` so test output groups it correctly. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
by Ousama Ben...
O
Succeeded
10593
e9172ef8 fix(query-core): use built-in NoInfer to support generic indexed-access types The local `NoInfer<T> = [T][T extends any ? 0 : never]` trick breaks down when `T` is a generic indexed-access type such as `DataTypeToEntity[DT]`, producing errors like "Type '[DataTypeToEntity[DT]]' is not assignable to type 'DataTypeToEntity'". Since the project already requires TypeScript >= 5.4, delegate the public `NoInfer<T>` alias to TypeScript's built-in `NoInfer` (introduced in 5.4). A small `noInfer.ts` helper exposes it as `IntrinsicNoInfer<T>` to avoid the local-shadow recursion problem. Vue's `setQueryData` implementation now forwards the `<TData>` generic to `super.setQueryData<TData>(...)` so its declared `NoInfer<TData> | undefined` return type stays satisfied under the stricter built-in `NoInfer`. Fixes #9937
by Ousama Ben...
O
Previous page
Previous
Next
Next page