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

740 commits

Author SHA1 Message Date
github-actions[bot]
5cc606e2e8
ci: Version Packages (#12301)
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-10-26 10:28:34 +01:00
Wonsuk Choi
06d1705a58
chore(deps): update '@typescript-eslint/*' to '^8.72.0' in the catalog and examples (#12388) 2026-10-26 16:33:55 +09:00
Ciarán Curley
4a7386a470
chore(deps): upgrade vitest to v5 (#12317)
Bump vitest and @vitest/coverage-istanbul to 5.0.5 (root and
query-test-utils) and @vitest/eslint-plugin to 1.6.28.

Vitest 5's typecheck collector treats any name ending in Test as a test function, so notifyManagerTest in query-core/src/__tests__/notifyManager.test-d.tsx was renamed to localNotifyManager.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-24 19:26:03 +01:00
Wonsuk Choi
bb41f83caa
chore(oxlint.config): add 'eslint-plugin-testing-library' with its DOM rules and query present elements with 'getBy' (#12269)
* chore(oxlint.config): add 'eslint-plugin-testing-library' with its DOM rules and query present elements with 'getBy'

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-10-22 11:37:21 +09:00
Wonsuk Choi
670fc2817f
chore(oxlint.config): add 'eslint-plugin-jest-dom' with its recommended rules and assert DOM presence with 'toBeInTheDocument' (#12268) 2026-10-22 10:56:42 +09:00
Wonsuk Choi
3c540d3758
chore(examples/vue/persister/package.json): remove the unused '@tanstack/query-core' and '@tanstack/query-sync-storage-persister' dependencies (#12146) 2026-10-20 03:36:48 +09:00
github-actions[bot]
a8ecc8d42f
ci: Version Packages (#12128)
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-10-19 18:54:46 +02:00
github-actions[bot]
12199722dc
ci: Version Packages (#12062)
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-10-17 19:51:17 +02:00
Wonsuk Choi
f38e6271b4
chore(*): update '@tanstack/typedoc-config' to v0.3.5 (#12035)
* chore(scripts/generate-docs): read type alias bodies whose type parameters have defaults

* chore(*): update '@tanstack/typedoc-config' to v0.3.5
2026-10-17 11:14:03 +09:00
Wonsuk Choi
eb94a5b445
chore(examples/react/react-native): add a flat config and run 'test:eslint' (#12039)
* chore(examples/react/react-native): add a flat config and run 'test:eslint'

* refactor(examples/react/react-native): fix lint errors
2026-10-17 01:08:08 +09:00
github-actions[bot]
ee47993724
ci: Version Packages (#11998)
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-10-15 09:50:17 +02:00
Wonsuk Choi
a21e17b5e2
chore(examples/svelte/playground): add a flat config and run 'test:eslint' (#12029)
* chore(examples/svelte/playground): add a flat config and run 'test:eslint'

* refactor(examples/svelte/playground): fix lint errors
2026-10-15 15:22:16 +09:00
Wonsuk Choi
8b48d0253b
chore(examples/vue): add 'test:types' to type-check the examples in CI (#12022) 2026-10-15 10:14:24 +09:00
Wonsuk Choi
98451e1b3c
chore(examples/react): add 'test:types' to type-check the examples in CI (#12020)
* chore(examples/react): add 'test:types' to type-check the examples in CI

* chore(examples/react): run 'next typegen' before 'tsc' in the remaining Next.js examples
2026-10-15 10:01:28 +09:00
Wonsuk Choi
d5b265a547
chore(examples/react/playground): replace the legacy '.eslintrc' with a flat config and run 'test:eslint' (#12011)
* chore(examples/react/playground): replace the legacy '.eslintrc' with a flat config and run 'test:eslint'

* refactor(examples/react/playground): fix lint errors
2026-10-14 11:07:53 +09:00
Wonsuk Choi
41c178b285
chore(examples/vue): add a flat config and run 'test:eslint' (#12003)
* chore(examples/vue): add a flat config and run 'test:eslint'

* refactor(examples/vue): fix lint errors
2026-10-14 09:45:36 +09:00
Wonsuk Choi
0fbbc62136
chore(examples/svelte): add a flat config and run 'test:eslint' (#12002)
* chore(examples/svelte): add a flat config and run 'test:eslint'

* refactor(examples/svelte): fix lint errors

* chore(examples/svelte): run 'svelte-kit sync' before 'eslint' in 'test:eslint'
2026-10-13 11:59:48 +09:00
Wonsuk Choi
1836f7924c
chore(examples/react): replace the legacy '.eslintrc' with a flat config and run 'test:eslint' (#11995)
* chore(examples/react): replace the legacy '.eslintrc' with a flat config and run 'test:eslint'

* refactor(examples/react): fix lint warnings
2026-10-13 09:54:26 +09:00
Wonsuk Choi
668847f1a3
chore(deps): update '@typescript-eslint/parser' and '@typescript-eslint/rule-tester' catalog to '^8.71.1' (#11996) 2026-10-13 09:44:24 +09:00
Wonsuk Choi
70c652b8e4
chore(examples/react/eslint-legacy): add 'plugin:@typescript-eslint/recommended' and declare the packages used by '.eslintrc' (#11994) 2026-10-13 00:50:38 +09:00
Wonsuk Choi
d2f0536386
chore(deps): update '@types/node' to '^24.19.2' to match Node 24 in '.nvmrc' (#11978) 2026-10-12 21:13:34 +09:00
github-actions[bot]
b699b52d60
ci: Version Packages (#11849)
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-10-11 21:32:27 +02:00
Wonsuk Choi
98fd5936f0
chore(examples/react): add '@types/node' to the Next.js examples that relied on the root copy (#11977) 2026-10-12 03:40:40 +09:00
Jovi De Croock
a94c7caeec
feat(preact-query*): support Preact v11 (#11711)
* feat(preact-query*): support Preact v11

* fix(preact-query*): pass an initial value to 'useRef' and flush deferred unmount effect cleanups in tests for Preact v11

* chore(preact-query*): develop and test against Preact 11

Bump the preact catalog and the preact example to ^11.0.1, and
preact-render-to-string to ^6.8.0 (Preact 11 peers on >=6.7.0).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Kevin Van Cott <kevinvandy656@gmail.com>
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-11 18:17:07 +01:00
Wonsuk Choi
fb65258385
chore(examples/react): add '@types/react' to the examples that relied on the root one (#11960) 2026-10-11 10:45:38 +09:00
Wonsuk Choi
30a3b73767
chore(examples/solid): replace the legacy '.eslintrc.cjs' with a flat config and run 'test:eslint' (#11959)
* chore(examples/solid): replace the legacy '.eslintrc.cjs' with a flat config and run 'test:eslint'

* refactor(examples/solid): fix 'no-shadow' and 'solid/reactivity' warnings
2026-10-11 02:18:06 +09:00
Wonsuk Choi
d3fcbe5d67
chore(examples/lit): add a flat ESLint config and run 'test:eslint' (#11954)
* chore(examples/lit): add a flat ESLint config and run 'test:eslint'

* fix(examples/lit/ssr): include 'apiBaseUrl' in the 'queryKey'
2026-10-11 02:00:11 +09:00
Wonsuk Choi
effc358729
chore(examples/preact/simple): use 'eslint-config-preact' through a flat config and run 'test:eslint' (#11953) 2026-10-11 01:55:45 +09:00
Wonsuk Choi
bbc8e95edf
chore(examples/angular): replace the legacy '.eslintrc.cjs' with a flat config and run 'test:eslint' (#11952)
* chore(examples/angular): replace the legacy '.eslintrc.cjs' with a flat config and run 'test:eslint'

* refactor(examples/angular/{auto-refetching,optimistic-updates}): wrap the 'POST' case in a block
2026-10-11 01:32:52 +09:00
Wonsuk Choi
69d9f7c217
chore(examples/solid/simple): replace the legacy '.eslintrc.cjs' with a flat config and run 'test:eslint' (#11949)
* chore(examples/solid/simple): replace the legacy '.eslintrc.cjs' with a flat config and run 'test:eslint'

* chore(examples/solid/simple): build the dependencies before 'test:eslint'

* chore(examples/solid/simple): remove the 'test:eslint' nx override now set in 'nx.json'

* chore(examples/solid/simple): enable 'allowJs' so typed linting covers 'eslint.config.js'
2026-10-11 00:29:24 +09:00
Dominik Dorfmeister 🔮
e22e7c4a27
chore: test TypeScript 7.1 preview and drop 5.6 (#11947)
* chore: test TypeScript 7.1 preview and drop 5.6

* chore: use a mature TypeScript 7.1 preview
2026-10-10 16:26:58 +02:00
Wonsuk Choi
bef879eb56
chore(examples/react): run 'test:eslint' in 'algolia', 'basic-graphql-request' and 'shadow-dom' (#11948)
* chore(examples/react): run 'test:eslint' in 'algolia', 'basic-graphql-request' and 'shadow-dom'

* refactor(examples/react/algolia): derive 'hits' with 'select' instead of spreading the query result
2026-10-10 23:03:54 +09:00
Ciarán Curley
833062c2fc
chore: replace prettier with oxfmt (#11939)
Replace prettier with oxfmt

The options and ignores have been ported to the `.oxfmtrc.json` file (oxfmt `printWidth` default is 100 characters, so preserving 80 for now). While the configuration with Prettier is the same, oxfmt seems to modify some things slightly differently, apparently due to the use of a pre-3.9 Prettier layout for union types that break onto their own line so we still end up with about 30 files changed. 

Files with actual changes are:

- `.prettierignore`.`prettier.config.js`: Deleted. Replaced with `.oxfmtrc.json`
- `package.json`: `format` script changed to `oxfmt`. Added `oxfmt` and `svelte` as `devDependencies`; removed `prettier` and `prettier-plugin-svelte`.
- `pnpm-lock.yaml`: Lockfile update for the dependency changes above.
- `scripts/generate-labeler-config.ts`: Formats with oxfmt's `format()` API instead of Prettier's. It reads `.oxfmtrc.json` itself, because the API doesn't find config files on its own, and throws if formatting reports errors. Its output is identical to what Prettier produced.


Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-09 16:47:26 +01: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
aab352876a
chore(solid-query*): add 'eslint-plugin-solid' (#11929)
* chore(solid-query*): add 'eslint-plugin-solid'

* chore(solid-query*): explain why 'solid/reactivity' is off and keep it on in 'solid-query-persist-client'
2026-10-08 18:59:06 +09:00
Wonsuk Choi
1d2cf91305
chore(*): update '@tanstack/typedoc-config' to v0.3.4 (#11817)
* chore(*): update '@tanstack/typedoc-config' to v0.3.4 and load its custom settings plugin by package export

* docs(framework/*/reference): regenerate reference docs with '@tanstack/typedoc-config' v0.3.4

* docs(framework/*/reference): regenerate reference docs

* docs(framework/*/reference): regenerate reference docs
2026-10-05 12:41:28 +09:00
Wonsuk Choi
da60e24c85
chore(eslint.config): apply 'eslint-plugin-jsdoc' recommended rules to non-test source files (#11825)
* chore(eslint.config): apply 'eslint-plugin-jsdoc' recommended rules to non-test source files

* chore(eslint.config): name the 'jsdoc' config object 'tanstack/jsdoc'
2026-10-04 01:14:38 +09:00
Wonsuk Choi
6b42538b18
chore(package.json): update '@cspell/eslint-plugin' to v10.3.6 (#11824) 2026-10-04 00:54:31 +09:00
Wonsuk Choi
040881da82
chore(angular-query-persist-client): update 'eslint-plugin-jsdoc' to v65.0.1 (#11823) 2026-10-04 00:42:55 +09:00
Wonsuk Choi
79d1f22006
chore(eslint-plugin-query): move '@typescript-eslint/rule-tester' to the pnpm catalog (#11822) 2026-10-04 00:27:54 +09:00
Wonsuk Choi
7726974885
chore(*): update 'typescript-eslint' packages to v8.71.0 and '@eslint-react/eslint-plugin' to v5.23.3 (#11821) 2026-10-04 00:16:47 +09:00
Wonsuk Choi
808501b150
chore(package.json): update '@tanstack/eslint-config' to v0.4.0 (#11820) 2026-10-03 23:54:39 +09:00
Wonsuk Choi
c9f91d1dbe
test(lit-query): add server-side rendering tests with '@lit-labs/ssr' (#11813) 2026-10-03 13:09:37 +09:00
github-actions[bot]
29859ae60c
ci: Version Packages (#11806)
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-10-02 12:02:10 +02:00
Wonsuk Choi
381e25494d
chore(*): replace 'typescript-eslint' with '@typescript-eslint/parser' in preact packages and remove redundant eslint options (#11791)
* chore(*): replace 'typescript-eslint' with '@typescript-eslint/parser' in preact packages and remove redundant eslint options

* style(*): add a blank line after '@ts-check' and remove the blank line between imports in preact eslint configs
2026-10-01 10:48:42 +09:00
Wonsuk Choi
4c8d15fa07
chore(pnpm-workspace): move 'typescript-eslint' to the shared catalog entries and align its range with '@typescript-eslint/parser' (#11790) 2026-10-01 10:21:12 +09:00
Wonsuk Choi
b90d8cee92
chore(*): manage 'eslint' and '@typescript-eslint/parser' with pnpm 'catalog' (#11785) 2026-10-01 08:18:54 +09:00
Wonsuk Choi
5d14b15480
chore(*): manage 'vue' eslint plugin with pnpm 'catalog' (#11784) 2026-10-01 04:51:44 +09:00
Wonsuk Choi
de6b50c43a
chore(*): manage 'svelte' eslint plugin with pnpm 'catalog' (#11783) 2026-10-01 04:42:20 +09:00
Wonsuk Choi
53eac4765b
chore(*): manage 'preact' eslint config with pnpm 'catalog' (#11782) 2026-10-01 04:24:22 +09:00