0
Fork 0
mirror of https://github.com/TanStack/query.git synced 2026-11-16 22:50:20 +00:00
Commit graph

391 commits

Author SHA1 Message Date
Lachlan Collins
1c9693eac7
fix(codemods): update codemods build script (#11647)
* fix(codemods): update codemods build script

* Add changeset
2026-09-26 07:47:49 +10:00
Lachlan Collins
f00aad602e
chore(deps): update dev dependencies (#11640)
chore(deps): update many dev dependencies
2026-09-26 07:30:31 +10:00
Lachlan Collins
57f40eb05b
chore(deps): update non-major dependencies (#11625)
* chore(deps): update non-major dependencies

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-09-25 15:15:46 +10:00
Lachlan Collins
8a5e385f67
ci: update to pnpm v12 (#11584) 2026-09-23 07:35:46 +10:00
Lachlan Collins
6a762c790f
ci: update to changesets v3 (#11583) 2026-09-23 07:12:56 +10:00
Lachlan Collins
248343dee9
ci: update to Nx v23 (#11567) 2026-09-23 06:31:23 +10:00
Wonsuk Choi
66d4fe3b3f
ci(*): generate reference docs in autofix and fail on TypeDoc conversion errors (#11522)
* ci(.github/workflows/autofix): run 'generate-docs' to keep reference docs current

* ci: apply automated fixes

* fix(scripts/generate-docs): build referenced packages and fail on TypeDoc conversion errors

* ci: apply automated fixes

* fix(package.json): build referenced packages as part of 'generate-docs'

* ci(.github/workflows/autofix): only generate reference docs on push

* ci(.github/workflows/autofix): skip runs started from its own commit

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-09-18 01:47:49 +09:00
Dominik Dorfmeister 🔮
9567367dd9
fix: declare devtools dependencies and enforce strict workspace checks (#11501) 2026-09-15 20:03:10 +02:00
Dominik Dorfmeister 🔮
f2a5da27fb
chore: update knip (#11262)
* chore: update knip

* ref: move cli options to config options

* fix package lock somehow

* pnpm dedupe
2026-08-23 19:24:11 +02:00
Dominik Dorfmeister 🔮
267154cf6b
chore: tsup -> tsdown (#11222)
* chore: tsup -> tsdown

* revert size-limit and fix the build instead

* fix angular and devtools build

* fix nextJs builds

* more solid related things

* fix: import order
2026-08-18 15:19:43 +02:00
Dominik Dorfmeister 🔮
279bb5508b
chore: update to ts 7 and move cut-off to 5.6 (#11212)
* update to ts 7 and move cut-off to 5.7

* changeset

* fix: use typescript v6 with tsup

* ci: apply automated fixes

* ref: update sveltejs/package

* ref: make ts6 the default typescript

* fix: lit build

* effing tsup

* move ignoreDeprecations to solid tsup config

* move ignoreDeprecations to relevant tsup configs

* better lit fix

* restore vue queryClient

* Revert "restore vue queryClient"

This reverts commit 4f95fc918a.

* fix things

* ignore devDep ordering

* vue needs to use ts6

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-08-17 22:50:18 +02:00
Flo
4eb0ed9322
chore: update pnpm to 11.9.0 (#10978)
* chore: update pnpm to 11.9.0

* chore: document trust policy exclusions

* chore: raise minimum release age

---------

Co-authored-by: Dominik Dorfmeister 🔮 <office@dorfmeister.cc>
2026-06-24 13:46:09 +02:00
Flo
3daac67da5
chore: migrate changesets changelog generator (#10809)
* chore: migrate changesets changelog generator

* chore: sort changelog dependency
2026-05-27 07:34:01 +02:00
Flo
c066ab8ab5
chore: enforce pnpm 11 (#10749)
Co-authored-by: Dominik Dorfmeister 🔮 <office@dorfmeister.cc>
2026-05-22 18:31:11 +02:00
Harry Whorlow
87013d5188
chore(pnpm): update pnpm to v11 (#10699)
Co-authored-by: Lachlan Collins <1667261+lachlancollins@users.noreply.github.com>
2026-05-22 17:56:10 +02:00
Byungsker
23a4029c9a
feat(eslint-plugin-query): add ESLint v10 to peer dependencies (#10182)
* feat(eslint-plugin-query): add ESLint v10 to peer dependencies

* fix: bump @typescript-eslint/utils to ^8.56.0 for ESLint v10 peer support

* chore: fix lockfile

* add typescript v6 support

* Apply suggestions from code review

Co-authored-by: Dominik Dorfmeister 🔮 <office@dorfmeister.cc>

---------

Co-authored-by: TkDodo <office@dorfmeister.cc>
2026-04-09 10:31:00 +02:00
TkDodo
b1188fee93 ref: knip v6 2026-03-23 08:54:47 +01:00
Dominik Dorfmeister 🔮
67cf8b60d9
ref: ts cutoff (#10253)
* ref: update typescript versions

* check for tsgo

* drop 5.2 and 5.3

* docs

* ref: fix tsup config

* ref: use built-in NoInfer

* ci: apply automated fixes

* fix tsup config

* Revert "ref: use built-in NoInfer"

This reverts commit 45d428ce71.

# Conflicts:
#	packages/preact-query/src/useQuery.ts

* ref: remove tsgo for now

* fix builds

* fix: update svelte-check

* fix: svelte-check still needs ts 5.9

* fix: knip + ts rewrite

* ci: apply automated fixes

* fix: make ts 5.9 the tscurrent version

* fix custom conditions

* fix: coderabbit comments

* fix: lockfile

* revert docs

* fix: override eslint to 8.56.1

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-03-09 08:12:35 +01:00
vedanta
8f0d834382
feat: Preact Adapter (#9935)
* initial setup -- duplicated + package.json edited

* simple preact updations

* missed a React.ReactNode

* testing grunt work (preact library + other small issues + ErrorBoundary custom implementation)

* missed a few

* Adds ErrorBoundary (from react-error-boundary, but scaled down for preact) -- fixes a lot of tests, which expect react-related functionality

* useSuspenseQueries left -- removed the useQuery.promise tests

* forgot the console logs

* useSuspenseQueries 2 resolved; tests done

* ci: apply automated fixes

* fix: example

* fix: configs should be symlinks

* fix: sync versions for npm-run-all2

* ref: re-sync runall2

* ref: go back to 5.0.0

* ref: remove changelog

* react-query -> preact-query

* remove use client directive + added the useSyncExternalStore (decoupled from compat)

* remove the react remnants

* generate docs

* typescript eslint

* docs

* vite config fix

* docs now reference react docs (most of them atleast)

* code-rabbit issues addressed

* <div/> lol

* fix: docs

* ci: apply automated fixes

* fix: lockfile

* fix: duplicated versions

* lockfile (I cooked or am I cooked)

* ci: apply automated fixes

* Making small edits to fix versioning, warnings, and lock

* unhandled error compat

* Fixing CI

* Fixed the CI errors

* ci: apply automated fixes

* Prettier format

* Update changeset for Preact Adapter feature

---------

Co-authored-by: TkDodo <office@dorfmeister.cc>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-02-10 12:02:20 +01:00
Alexander Karan
9ff3de7981
Upgrade to Vitest v4 (#9862)
* Init upgrade

* Fixed query core

* Fixed persist tests

* Fixed coverage

* Fixed React

* Fixed Solid Query Devtools and Sold Query

* Svelte query fix

* Fixed Vue

* Angular done

* Fixed React

* Merge files

* Knip fix

* Fixed order

* Angular Eslint

* Query Core Eslint

* Fixed Vue Eslint issue

* Removed fallback

* chore: update lockfile

* ci: apply automated fixes

* fix: esbuild resolving

* fix: no idea

* chore: bump vitest

* Pipeline Fix

- Fallback UI is not reset between tests -> moved to create a function for each
- ruleTests needs to be top level

* ci: apply automated fixes

* ref: bump vitejs/plugin-react

* chore: stop testing against ancient ts 5.0

* Revert "chore: stop testing against ancient ts 5.0"

This reverts commit c72b7e7e7b.

* Revert "ref: bump vitejs/plugin-react"

This reverts commit b9622bc117.

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-01-18 17:01:56 +01:00
Dominik Dorfmeister
e722679e16
ref: move size-limit config to its own file (#9998)
* ref: move size-limit config to its own file

to avoid cache busting everything when the limits change

* ref: update size-limit
2025-12-28 10:25:52 +01:00
razhayat
4a0a78afbc
fix: streamed query consume aware signal (#9963)
* chore: move consume aware signal logic to utils

* fix: add consume aware signal to streamedQuery

* test: add a test for not a signal that is not consumed by streamFn

* chore: add changeset

* fix: made queryFn of streamedQuery not consume signal directly (so that only streamFn can consume it)

* fix: made onCancelled get called only once

* fix: memoized getSignal and made sure it is called only once

* fix: no-unnecessary-condition

* chore: size-limit

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2025-12-28 10:06:55 +01:00
Dominik Dorfmeister
afc64091cd
feat: size-limit (#9993)
* feat: size-limit

* fix: script

* fix: add test:size to nx

* fix: skip install and build

* really

* fix: size-limit options

* ok we need build step

* fix: test-size runs as part of its own action
2025-12-27 17:33:07 +01:00
Lachlan Collins
f15b7fcc01
ci: prepare for trusted publishing (#9952)
* ci: prepare for trusted publishing

* Format

* Remove NPM_TOKEN
2025-12-07 01:47:55 +11:00
Dominik Dorfmeister
72d8ac5c59
fix: update react and nextJs (#9944)
* fix: update react and nextJs

and add a nextJs16 integration test

* ci: apply automated fixes

* oops

* Update patch versions for React and TanStack packages

Updated the patch versions for various React and TanStack packages.

* fix: streamline dependencies

* bundle size

* fix lock file

* fix: update react in example

* skip test for now

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-12-04 10:10:29 +01:00
Lachlan Collins
7f4939c624
ci: sync config between projects (#9931)
* ci: update typedoc

* Remove old check
2025-11-29 19:55:40 +11:00
Lachlan Collins
b7b452e407
ci: remove @tanstack/publish-config (#9930)
* ci: remove @tanstack/publish-config

* Update imports
2025-11-29 16:22:35 +11:00
Lachlan Collins
73eb629169
ci(changesets): enable experimental peerDependents option (#9928)
* ci(changesets): enable experimental peerDependents option

* Fix typescript-eslint versions
2025-11-28 09:03:49 +11:00
Dominik Dorfmeister
f4a0cd596b
chore: update eslint-plugin-react-hooks (#9737)
* chore: update eslint-plugin-react-hooks

* chore: override warning rules to error

* chore: config everywhere

* chore: lint violations
2025-10-08 15:09:08 +02:00
Lachlan Collins
a242f98b82
Revert "chore(deps): update all non-major dependencies" (#9715)
Revert "chore(deps): update all non-major dependencies (#9712)"

This reverts commit 571bc184fd.
2025-09-30 15:29:40 +10:00
renovate[bot]
571bc184fd
chore(deps): update all non-major dependencies (#9712)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-29 04:32:59 +00:00
Lachlan Collins
5e8fd61126
chore: update @eslint-react/eslint-plugin (#9702)
chore: update eslint-plugin-react
2025-09-28 08:25:02 +10:00
Lachlan Collins
2a15f36576
ci: introduce changesets (#9502)
* ci: introduce changesets

* Avoid using changesets/action

* Remove PR permission

* Update PR template

* Update link
2025-09-26 17:32:23 +10:00
Lachlan Collins
cbf0896b7a
ci: update checkout action (#9673) 2025-09-22 11:06:18 +09:00
Lachlan Collins
fb48985f63
ci: update workspace config (#9671)
* chore: update workspace config

* Update more deps

* Fix issues
2025-09-21 23:26:52 +10:00
Arnoud
e75a5f9d55
feat(angular-query): move devtools to conditional sub-paths (#9270)
* feat(angular-query-devtools): move devtools to conditional sub-paths, improves tree shaking and dependency injection

* Fix compatibility with moduleResolution node

* ci: apply automated fixes

* fix preview release for angular-query

* Fix angular-query preview release

* Revert some changes made obsolete by better Vite based alternative

* Update export paths

* Fix production exports and publishconfig

* knip config

* remove postpack

* Generate API reference docs

* type declarations in correct directory

* Update documentation

* knip config

* Optional core devtools dependency

* ci: apply automated fixes

* regenerate api reference docs

* ci: apply automated fixes

* ci: apply automated fixes (attempt 2/3)

* regenerate api reference docs

* formatting

* apply coderabbit suggestions

* Improve unit tests

* docs

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-09-16 00:07:53 +02:00
Lachlan Collins
a3f49cf17f
ci: replace fast-glob with tinyglobby (#9501)
* ci: replace fast-glob with tinyglobby

* Add back cipublish
2025-07-26 18:16:10 +10:00
Lachlan Collins
a2ff8333ff
ci: enable prettier experimental CLI (#9465) 2025-07-19 11:56:57 +10:00
Lachlan Collins
9133c101c8
chore: manually update dependencies (#9464)
* chore: update packages

* Fix typescript-eslint type mismatch

* Pin vitest

* Update prettier
2025-07-19 11:23:28 +10:00
Arnoud
f7cf1b5210
chore: update @tanstack/config (#9302) 2025-06-25 12:45:48 +02:00
Jonghyeon Ko
b766d07963
chore: update documentation generation and publishing scripts (#9296)
- Changed documentation generation script from JavaScript to TypeScript.
- Added new TypeScript script for publishing packages with configuration for different branches.
2025-06-21 13:48:19 +02:00
Jonghyeon Ko
786beac4b1
chore: update Node version and modify script commands (#9286)
- Updated Node version in .nvmrc from 22.12.0 to 24.2.0.
- Changed the "verify-links" script in package.json to use "node" instead of "pnpm tsx".
- Removed tsx dependency from package.json and pnpm-lock.yaml.
2025-06-18 19:52:28 +02:00
Jonghyeon Ko
cdab6e2b2b
ci: add link verification step to PR workflow (#9267) 2025-06-19 01:28:16 +09:00
Dominik Dorfmeister
34eedd601c
chore: update to eslint-plugin-react-hooks v6 (#9071)
* chore: update to eslint-plugin-react-hooks v6

and remove the separate compiler linter plugin, as those rules are now integrated

* chore: disable compiler-linter in tests

* chore: bypass lint violations

* chore: Disable '@eslint-react/no-context-provider'

to be react 18 compatible
2025-05-29 11:09:26 +02:00
TkDodo
719db3540e chore(✂️): remove ts-node to make knip happy 2025-05-24 09:03:15 +02:00
Tanner Linsley
afc6302dbf docs: fix links
commit 113eb6ba963534fe80b3e96193d767bf769c8bff
Author: Tanner Linsley <tannerlinsley@gmail.com>
Date:   Fri May 23 23:16:11 2025 -0600

    docs: fix: only transform generated reference

commit d1d084ed9026e31ba746e1bb87d5c19183a7d148
Author: Tanner Linsley <tannerlinsley@gmail.com>
Date:   Fri May 23 23:12:07 2025 -0600

    docs: fix broken links

commit 0df59ea7d8afb16be86ae917fc46900b6e999351
Author: Tanner Linsley <tannerlinsley@gmail.com>
Date:   Fri May 23 15:54:19 2025 -0600

    fix: rewrite type doc links to be directory-relative

commit 81e4c71f1c9250005f164b7e585837ee0ad14e23
Author: Tanner Linsley <tannerlinsley@gmail.com>
Date:   Fri May 23 15:14:51 2025 -0600

    fix: initial fix for ./ => ../
2025-05-24 00:47:55 -06:00
Arnoud
8b4e0bd0b3
chore(angular-query): update to angular 20 RC (#9153)
* chore(angular-query): update to angular 20

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-05-15 14:45:43 +02:00
Jonghyeon Ko
d0552afb0b
test(query-test-utils): init (internal package) (#9095)
* test(query-test-utils): init

* refactor(tests): replace createQueryClient with new QueryClient instantiation across test files

* refactor(tests): remove unused imports in utils test file

* refactor(tests): replace fetcher functions with sleep-based implementations in query tests

* refactor(tests): replace simpleFetcher with sleep-based implementations in query tests

* fix(query-core): update test:build script to remove pnpm prefix

* refactor(tests): extract query function into a variable for clarity in useQuery tests

* chore(tsconfig): remove temporary Vitest TypeScript configuration file

* chore: add @tanstack/query-test-utils as a devDependency in multiple packages

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2025-05-07 15:34:10 +02:00
Tyler
9f93f12de1
chore: move from paths to customCondition (#9042) 2025-04-23 09:54:51 +02:00
Lachlan Collins
713ba3a35d
chore(deps): update packages (#9003)
* chore(deps): update packages

* ci: apply automated fixes

* Remove @types/eslint

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-04-12 11:58:55 +10:00