0
Fork 0
mirror of https://github.com/TanStack/query.git synced 2026-11-18 19:33:22 +00:00
Commit graph

39 commits

Author SHA1 Message Date
Wonsuk Choi
df78a9d137
chore(*): pass the root 'settings' to the package oxlint configs, which 'extends' does not inherit (#11941) 2026-10-10 01:39:06 +09:00
Ciarán Curley
d0cfa6a4a8
chore: replace eslint with oxlint (#11938)
* chore: replace eslint with oxlint

Migrates to oxlint as the replacement linter for eslint.

Keeps the existing ruleset, runs js plugins for non-native oxlint rules and the local no-restricted-syntax plugin

Svelte packages keep a slim ESLint config for the svelte/* rules, which need the component template.
React examples that use the query eslint plugin also still use eslint for now.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* chore: use oxlint disable directives

ESLint no longer lints these files, so switch eslint-disable comments to
oxlint-disable and the @typescript-eslint/ prefix to typescript/. Remove
directives that oxlint reports as unused, and name the rule in the
cspell oxlint-enable comments, which oxlint does not match to a
rule-specific disable otherwise.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* chore: lint expectTypeOf with vitest valid-expect

Oxlint's native vitest/valid-expect only checks `expect` calls, so load
@vitest/eslint-plugin as a JS plugin for this rule to keep flagging
`expectTypeOf` calls without a matcher, and restore the directives for
the intentional ones.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-09 16:35:33 +01:00
Wonsuk Choi
5ab1aaeddf
chore(eslint.config): use 'defineConfig' from 'eslint/config' (#11819) 2026-10-03 23:17:10 +09:00
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
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
Ciarán Curley
d63afc715c
Simplifed query methods/internal tests new lint (#11347)
* chore: update type tests to use new query methods, types

* chore: disallow future calls to deprecated methods

* fix(eslint): detect computed query method calls

- Match bracket notation for deprecated query client methods
2026-09-15 20:25:08 +02:00
Raashish Aggarwal
532bb298fb
fix(tests): disable local coverage instrumentation (#10776)
Disable local coverage instrumentation

Co-authored-by: Dominik Dorfmeister 🔮 <office@dorfmeister.cc>
2026-05-26 17:29:33 +02:00
Wonsuk Choi
74fa05eb1b
chore(tsconfig.json): narrow 'include' pattern to prevent TS6053 race conditions from tsup bundled config files (#10522)
* chore(tsconfig.json): exclude tsup bundled config files to prevent TS6053 race conditions

* chore(tsconfig.json): narrow 'include' pattern to specific config extensions

* ci: apply automated fixes

* chore(tsconfig.json): replace brace expansion with explicit '*.config.ts' and '*.config.js' patterns

* chore(tsconfig.json): use single-line 'include' arrays for consistency

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-05-04 03:24:13 +09:00
라몽이
e23fa5dbaf
fix(query-codemods): fix duplicate 'a' typo in placeholder data error (#10116)
fix(query-codemods): fix duplicate 'a' typo in placeholder data error message
2026-02-11 10:59:37 +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
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
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
Wonsuk Choi
7306474eee
chore(tsconfig.json): simplify 'include' patterns by consolidating file extensions and directory paths (#9547)
Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2025-09-03 09:56:51 +02:00
MINSEONG KIM
f4a11151ba
chore: add typescript-eslint/require-await rule (#9029)
* chore: add typescript-eslint/require-await rule

* reflect feedback

* Update eslint.config.js

* test(angular-query-experimental): remove unnecessary async

* test(*): remove unnecessary async

* remove(query-codemods): remove unnecessary import

* chore(query-codemods): remove typescript-eslint/require-await off rule

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
2025-06-29 01:43:14 +09:00
Dominik Dorfmeister
1b9837f969
chore: remove baseUrl from tsConfig, as it's deprecated (#9178)
* chore: remove baseUrl from tsConfig, as it's deprecated

* ci: apply automated fixes

* test: fix import

* chore: Unused item in ignoreDependencies

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-05-23 11:21:19 +02:00
Jonghyeon Ko
66ea5f2fcc
chore: add typescript-eslint/require-await rule (#9116)
Co-authored-by: MINSEONG KIM <65233075+minseong0324@users.noreply.github.com>
2025-05-08 04:48:20 +09:00
Jonghyeon Ko
06ac87ecdc
ci(angular-query, query-core): update vitest/expect-expect rule as error (#9109) 2025-05-06 21:15:16 +09:00
Jonghyeon Ko
0943575ae7
ci(*): init ESLint configurations to include 'vitest/expect-expect' rule as error across multiple packages gradually (#9104)
* chore(*): init ESLint configurations to include 'vitest/expect-expect' rule as error across multiple packages gradually

* chore(query-core): remove unused import from ESLint configuration

* chore(angular-query-experimental): update eslint rule

* chore: integrate vitest ESLint plugin and apply recommended rules across multiple packages

* chore(react-query-devtools): add vitest ESLint plugin to configuration
2025-05-06 17:15:13 +09: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
Lachlan Collins
c4afce47ed
chore: use "moduleResolution": "Bundler" at root level (#9002)
* Change to bunlder at root

* Update Next defaults

* Remove moduleResolution from packages

* Remove from scripts

* Unify moduleResolution

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-04-12 11:03:59 +10:00
Tyler
0c229f4cf0
Revert "chore(paths): use customConditions to define internal imports… (#8973)
* Revert "chore(paths): use customConditions to define internal imports (#8935)"

This reverts commit 8e0c6b7639.

* fix export

* refactor: make test:lib depend on compile again

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2025-04-09 15:58:33 +02:00
Tyler
8e0c6b7639
chore(paths): use customConditions to define internal imports (#8935)
* fix(paths): use customConditions to define internal imports

* the rest of the changes

* publint and vitest fixes

* order matters!

thanks https://colinhacks.com/essays/live-types-typescript-monorepo

* upgrade publint to get customCondition support

added here: b34ea9433f

* remove dynamicAliases

* remove getViteAliases

* try without references?

* Revert "try without references?"

This reverts commit b18bc946e8.

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2025-04-04 21:24:15 +02:00
Dominik Dorfmeister
97f55448b8
chore: composite monorepo (#8560)
* chore: query-query, react-query and persist-core to composite setup

* fix: self contain packages by having shared configs as symlinks

* fix: add tsConfigPaths to vite config

so that tests can pick up the path aliases

* chore: set outDir, rootDir and baseUrl for all packages

* chore: make legacy tsconfig extend regular tsconfig

* fix: tsc --build

* feat: setup project references

* fix: legacy configs also need references

* fix: oops

* fix: tsup related builds

we need to turn off composite builds for tsup

* fix: set rootDir for tsup builds

so that it can include all files it needs

* fix: remove dependencies on ^build

we no longer need builds to run tests / type checks

* fix: add separate out dir for tsc

* fix: include root eslint config in globals

* refactor: create compile task to depend on

* fix: typo

* fix: dynamic alisases for vitest

* chore: try to fix knip

* fix: make compile a cacheable task

* chore: temporary disable tests against older TS versions

* fix: ts doesn't like string return types

* fix(vue-query-devtools): fix build

* fix: test types

* Revert "chore: temporary disable tests against older TS versions"

This reverts commit 10ef560eb5.

* fix: make legacy ts builds output to their own directory

* chore: remove test:types from examples as they need a build step

* chore: fix knip

* chore: remove test:types from all examples

* Revert "Revert "chore: temporary disable tests against older TS versions""

This reverts commit d6daded7da.

* fix: outputs for compile task

* chore: remove test:types from integrations

* Revert "Revert "Revert "chore: temporary disable tests against older TS versions"""

This reverts commit 79b4844785.

---------

Co-authored-by: Damian Osipiuk <osipiukd+git@gmail.com>
2025-01-27 15:58:10 +01:00
Lachlan Collins
99b5354760
chore(deps): update expo, next, astro, nx (#8337)
* chore(deps): update expo, next, astro

* Fix lockfile

* Update some misc packages
2024-11-24 12:55:20 +11:00
renovate[bot]
7f551696bd
chore(deps): update dependency jscodeshift to v17 (#7977)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-29 17:18:05 +10:00
renovate[bot]
4cdc2c8c90
chore(deps): update all non-major dependencies (#7817)
* chore(deps): update all non-major dependencies

* Fix eslint-plugin-query

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Lachlan Collins <1667261+lachlancollins@users.noreply.github.com>
2024-07-29 15:48:18 +10:00
Lachlan Collins
bd3296bfed
chore: Update @tanstack/config to v0.11.0 (#7795) 2024-07-26 10:56:33 +10:00
Lachlan Collins
2273105df9
ci: Add preview workflow (#7675)
* ci: Add preview workflow

* Mark query-codemods as private

* Ignore query-codemods for CSB

* Test templates

* Fix templates glob

* Fix private fields

* Move --compact

* One of these will work

* One more attempt

* Adjust command

* Specific template

* Remove private...

* no-template
2024-07-05 14:55:31 +10:00
Lachlan Collins
f2741d153b
fix: Update package.json fields (#7674) 2024-07-05 12:59:13 +10:00
Lachlan Collins
febbde676d
chore: Update ESLint config (#7637)
* chore: Update ESLint config

* Fix errors

* Fix knip
2024-06-28 11:17:57 +10:00
Lachlan Collins
e6a0fdd89e
chore: Migrate to ESLint flat config (#7636)
* chore: Migrate to ESLint flat config

* Migrate more packages

* angular and solid

* svelte packages

* Hopefully more fixes

* react packages

* vue packages

* Fix typescript errors

* Update Nx config
2024-06-27 23:34:37 +10:00
Lachlan Collins
15e42ba445
ci: Add tests for TS 4.7, 4.8, 4.9 (#7618)
* ci: Add tests for TS 4.7, 4.8, 4.9

* Capitalise
2024-06-25 21:18:27 +10:00
Lachlan Collins
8253a80b6f
ci: Add TS version tests (#7605)
* Simplify implementation

* Add to remaining packages
2024-06-24 06:51:03 +10:00
Lachlan Collins
78e4bc159f
chore: Update dependencies (#7449)
* Update angular packages

* Patch updates

* Update vite

* Minor updates

* Update react-native

* More updates

* Move peerDeps section

* Update vue peerDeps

* Nearly done

* Update Nx

* pnpm dedupe
2024-05-18 17:42:42 +10:00
Anton Jeppsson
2aca521a88
fix(codemods): Use .cjs extension for CommonJS files (#7333)
* bug(codemods): rename CommonJS files to .cjs

Rename CommonJS files in codemods to distinguish them from ES module
files otherwise used in this project.
Resolve an issue occuring since package.json in codemods is removed when
publishing causing module type data to be lost.

Fix issue #7154

* Fix knip errors

* Add file extension to tests

* Update migration doc

---------

Co-authored-by: Lachlan Collins <1667261+lachlancollins@users.noreply.github.com>
2024-04-25 17:06:14 +10:00
Jean-Baptiste Kaiser
798124da1c
fix(codemod): add support for useMutation (#7187)
* fix(codemod): add support for useMutation

* fix(codemod): add missing empty line to test fixture file

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2024-04-02 08:59:25 +02:00
Dominik Dorfmeister
5f35da21b2
test: setup global mock restore (#7060)
* test: setup global mock restore

* chore: revert changes for vue-query
2024-03-09 15:33:23 +01:00
Jonghyeon Ko
137233b7a8
chore(query-codemods): unify directory name as name field of package.json (#6913)
* refactor(query-codemods): unify directory name as name field of package.json

* chore: update
2024-02-17 10:56:12 +01:00