Lachlan Collins
a5bfc30f00
ci: Add autofix.yml ( #7755 )
...
* ci: Add autofix.yml
* Intentionally break formatting :(
* [autofix.ci] apply automated fixes
* Update commit message
* Oops, very long line
* ci: apply automated fixes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2024-07-18 08:59:10 +02:00
wing
0c671eecb7
fix(query-core): allow function value of notifyOnChangeProps query option to return undefined ( #7441 )
...
* fix(query-core): allow function value of `notifyOnChangeProps` query option to return `undefined`
`undefined` is a valid return value for the function value of `notifyOnChangeProps`. See linked issue for more details.
Fixes #7426 .
* docs(react-query): update signature of `useQuery`'s `notifyOnChangeProps` option
---------
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2024-07-18 08:52:20 +02:00
Lachlan Collins
d02e610ff3
docs(typedoc): Add frontmatter ( #7753 )
...
* docs(typedoc): Add frontmatter
* Update knip.json
2024-07-18 15:42:53 +10:00
Lachlan Collins
13817e9537
docs(svelte-query): Auto-generate reference docs ( #7751 )
...
* docs(svelte-query): Auto-generate reference docs
* Fix knip, update exclude
2024-07-18 12:40:19 +10:00
Robin Marillia
81ca333248
docs(query-core): add matchQuery and matchMutation utils ( #7643 )
...
* docs(query-core): add matchQuery and matchMutation mentions in filters documentation
* docs(query-core): clarifies filters type
* Format
---------
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
Co-authored-by: Lachlan Collins <1667261+lachlancollins@users.noreply.github.com>
2024-07-18 11:03:34 +10:00
Tanner Linsley
d8ab55207e
release: v5.51.7
v5.51.7
2024-07-17 23:55:21 +00:00
Eliya Cohen
4c503c5703
fix(eslint-plugin): handle ternary expressions in queryFn ( #7747 )
2024-07-18 09:51:44 +10:00
Tanner Linsley
f034d27805
release: v5.51.6
v5.51.6
2024-07-17 19:40:57 +00:00
Aryan Deora
ffb11b3547
fix(solid-query): Fix race condition issues with createQuery ( #7748 )
...
* fix(solid-query): Fix race condition issues with `createQuery`
2024-07-17 15:32:27 -04:00
Tanner Linsley
c101251139
release: v5.51.5
v5.51.5
2024-07-17 14:35:45 +00:00
Yannick Croissant
a87c2fe4a7
fix(query-core): widen QueriesObserver queries type ( #7446 ) ( #7492 )
...
* fix(query-core): widen QueriesObserver queries type (#7446 )
Widen the `QueriesObserver` queries type so we can assign `UseQueryOptions` to `QueryObserverOptions`.
The result from the `queryOptions` helper can now be passed to `QueriesObserver`.
* chore: prettier
* fix(types): QueryKey needs to default to `any`, too
---------
Co-authored-by: Yannick CROISSANT <yannick.croissant@canal-plus.com>
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2024-07-17 16:31:11 +02:00
Dhruv
91cfc10032
docs(solid-query): add optional chaining to prevent suspense bug ( #7709 )
...
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2024-07-17 16:04:07 +02:00
Lachlan Collins
01212de25c
test(svelte-query): Refactor test logic ( #7744 )
...
* test(svelte-query): Simplify test logic
* Improve createQueries tests
2024-07-17 23:08:19 +10:00
Tanner Linsley
5c50ca730e
release: v5.51.4
v5.51.4
2024-07-17 11:11:07 +00:00
Dominik Dorfmeister
7edf587418
fix(core): do not invoke getNextPageParam or getPreviousPageParam if there is we have empty pages in the cache ( #7743 )
2024-07-17 13:09:00 +02:00
Ryan Miller
a1ce3c4ad7
docs: Update Streaming with Server Components docs to reflect correct usage ( #7725 )
...
* chore: update Streaming with Server Components docs to reflect correct usage
* chore: update Streaming with Server Components to show moving the getQueryClient function
* chore: fix prettier styling
---------
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2024-07-17 11:53:10 +02:00
MinhoPark
95d814afda
chore(utils): Ensure consistent declaration style of utility functions and standardize parameters for the sleep method ( #7554 )
...
* refactor: Changed parameter names to match those in other sleep utility functions.
* refactor: Most utility functions are defined as regular functions, updated this one to match.
* fix: formatting
2024-07-17 11:49:46 +02:00
Tanner Linsley
eb21d1e7b6
release: v5.51.3
v5.51.3
2024-07-16 20:33:10 +00:00
Andy Li
a3f5a0aafe
fix(vue-query): export InitialQueryOptions types ( #7720 )
2024-07-16 22:29:46 +02:00
김석진(poki)
23b9a196c4
chore: update knip schema to v5 ( #7740 )
2024-07-16 22:13:11 +10:00
Lachlan Collins
38e5c4b85b
test(svelte-query): Check query states ( #7741 )
...
* chore(svelte-query-persist-client): Use store subscribe shortcut
* Use statesStore logic in svelte-query
* Use toHaveLength
* Stricter types
2024-07-16 14:15:27 +10:00
Lachlan Collins
28af03fd72
chore(deps): Update dev and example dependencies ( #7742 )
...
* chore(deps): Update dev and example dependencies
* Undo changes to esbuild
* Fix @types/eslint version
2024-07-16 14:11:38 +10:00
Jonghyeon Ko
d10a4567ca
chore(*): vitest v2 ( #7735 )
...
* chore(*): vitest v2
* chore: update
* chore: update
* chore: update
* chore: update
---------
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2024-07-15 17:28:04 +02:00
Dominik Dorfmeister
46359542f0
chore: prettier
2024-07-15 17:20:41 +02:00
Kier Borromeo
369d826066
docs: access latest data for useMutationState ( #7738 )
2024-07-15 16:15:02 +02:00
Alessia Bellisario
79e5202997
docs: Update comparison.md ( #7703 )
2024-07-11 14:20:14 +02:00
Tanner Linsley
435584395c
release: v5.51.2
v5.51.2
2024-07-11 10:02:59 +00:00
Lachlan Collins
45a21d4146
ci: simplify publish script ( #7719 )
2024-07-11 20:00:06 +10:00
Brendan Allan
1846abe1ee
fix(solid-query): export InitialDataOptions types ( #7707 )
...
Co-authored-by: Lachlan Collins <1667261+lachlancollins@users.noreply.github.com>
2024-07-11 19:50:37 +10:00
Chamath Palihawadana
8ecf0f7822
docs(query-client): broken hydration link ( #7718 )
2024-07-11 11:34:19 +02:00
Lachlan Collins
5c9efe80b3
ci(pnpm): Add .pnpmfile.cjs to remove indirect dependencies ( #7667 )
...
* ci(pnpm): Add .pnpmfile.cjs to remove unused dependencies
* Fix build
2024-07-11 15:26:25 +10:00
Tanner Linsley
9726af3fb5
release: v5.51.1
v5.51.1
2024-07-11 04:56:56 +00:00
Lachlan Collins
c6d68d8076
ci: enable npm provenance ( #7716 )
...
* ci: enable npm provenance
* Update @tanstack/config
2024-07-11 14:53:49 +10:00
Lachlan Collins
b58da75a69
docs(examples): Modernise Next.js examples ( #7706 )
...
* docs(examples): Update react/auto-refetching
* Update infinite-query-with-max-pages, load-more-infinite-scroll
* Upgrade react/nextjs
* More projects
* Update playground
* Update prefetching
* Cleanup deps
* Disable typescript during next build
* Fix eslint plugin
* Final changes
2024-07-10 14:48:50 +10:00
twiddler
8d0ba7ea3a
docs(eslint-plugin-query): Fix rules links ( #7705 )
2024-07-10 11:59:38 +10:00
Lachlan Collins
7fc94729d4
docs(examples): Modernise React examples ( #7704 )
...
* docs(examples): Update react/basic-typescript
* Replace basic with basic-typescript
* Fix lockfile
* Update react/basic-graphql-request
* Improve react/suspense
* More tweaks to react/suspense
* Update react/simple
* Update react/offline
* Convert default-query-function
* Remove axios and ky usage
* Replace axios with fetch
* Undo lint-stagesd
* Sync solid/basic and solid/basic-graphql-request
2024-07-10 11:52:01 +10:00
Lachlan Collins
362f8e6a37
ci: Improve Nx inputs ( #7702 )
2024-07-10 07:39:44 +10:00
John Dunn
14d9c49fba
docs: add Query Rewind to vue community projects ( #7688 )
2024-07-08 10:06:33 +02:00
Tanner Linsley
7e3c9e9ccb
release: v5.51.0
v5.51.0
2024-07-08 08:05:42 +00:00
Suneet Tipirneni
41009c964c
feat(vue-query): add support for getters in query keys ( #7608 )
...
* feat(vue-query): add support for getters in query keys
* add support for nested queries
* fix type test
* don't export helper function
* fix useQueries types
* fix lint issue
2024-07-08 10:02:28 +02:00
Tanner Linsley
c1945ff938
release: v5.50.3
v5.50.3
2024-07-08 02:21:42 +00:00
87xie
c107fc54a9
docs(react-query): correct links in the prefetching.md file ( #7671 )
...
Co-authored-by: Lachlan Collins <1667261+lachlancollins@users.noreply.github.com>
2024-07-08 12:17:57 +10:00
Aponia
2df92a67cc
refactor(svelte-query): specify StoreOrVal in function signature ( #7453 )
...
Co-authored-by: Lachlan Collins <1667261+lachlancollins@users.noreply.github.com>
2024-07-08 12:17:45 +10:00
Lachlan Collins
d2a92d97ae
docs(examples): Fix duplicate example name ( #7684 )
2024-07-07 09:42:41 +10:00
Tanner Linsley
706bce3164
release: v5.50.2
v5.50.2
2024-07-06 22:59:33 +00:00
Lachlan Collins
9e5bc7be31
fix(solid): Correct deps/devDeps/peerDeps ( #7682 )
2024-07-07 08:56:43 +10:00
Lachlan Collins
ea4d8f29da
ci: Use pkg-pr-new templates ( #7676 )
...
* WIP: Try pkg-pr-new templates
* Remove approved
* Try one dir
* Update preview.yml
* Update preview.yml
* Update preview.yml
* Test moving to dep
* Merge with pr.yml
* Update example names
* Use pnpm pack
* All examples
* Undo angular basic change
* Remove .codesandbox/ci.json
2024-07-07 08:01:17 +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
Tanner Linsley
e79275178c
release: v5.50.1
v5.50.1
2024-07-05 03:00:51 +00:00
Lachlan Collins
f2741d153b
fix: Update package.json fields ( #7674 )
2024-07-05 12:59:13 +10:00