Skip to content

beta release - #5771

Merged
TkDodo merged 363 commits into
betafrom
alpha
Jul 24, 2023
Merged

beta release#5771
TkDodo merged 363 commits into
betafrom
alpha

Conversation

@TkDodo

Copy link
Copy Markdown
Collaborator

No description provided.

tannerlinsleyand others added 30 commits April 1, 2023 06:50
# Conflicts:
#	package.json
#	pnpm-lock.yaml
* refactor: unify hydration options
* docs: update hydration docs
* migration guide
* refactor: use shouldDehydrate... syntax
* Update docs/react/guides/migrating-to-v5.md
Co-authored-by: Fredrik Höglund <fredrik.hoglund@gmail.com>
* Apply suggestions from code review
* chore: fix tests
* chore: fix tests
* Update docs/react/reference/hydration.md
---------
Co-authored-by: Fredrik Höglund <fredrik.hoglund@gmail.com>
# Conflicts:
#	.github/workflows/pr.yml
#	package.json
)
* refactor(react-query-devtools): move QueryStatusCount header to subdirectory
* refactor(react-query-devtools): move QueryRow to subdirectory
* refactor(react-query-devtools): move ActiveQuery to subdirectory
* refactor(react-query-devtools): move Cache Panel to subdirectory
* lint
* refactor: add display names
* fix: typo
* fix(solid-query): do not call unsubscribe on the server
* fix(solid-query): prefer val from queryResource if
it is available there
* chore: add hydration debugger to solid ssr example
* bump minimum solid-js version
* chore: pnpm i
* chore: fix rollup babel typings
Result of this change upstream that types the “targets” property -> https://github.com/DefinitelyTyped/DefinitelyTyped/pull/63927/files#diff-a4da813bfdc10bbb7d4d9ee9b811309e7e2a16c0484b9a334752db84be4b0f31
Signed-off-by: marbemac <marbemac@gmail.com>
* replace void 0
Signed-off-by: marbemac <marbemac@gmail.com>
* chore: remove uncessary onMount
Signed-off-by: marbemac <marbemac@gmail.com>
* chore: skip this onComputed on first render
Signed-off-by: marbemac <marbemac@gmail.com>
* fix: copy state properties over for ssr hydration
Signed-off-by: marbemac <marbemac@gmail.com>
---------
Signed-off-by: marbemac <marbemac@gmail.com>
# Conflicts:
#	packages/eslint-plugin-query/package.json
#	packages/react-query-devtools/package.json
#	packages/react-query-devtools/src/devtools.tsx
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
* fix: do not mutate input
params passed to function from consumers should be treated as readonly and thus shouldn't be modified
* test: remove unexpected `exact` props from find methods
---------
Co-authored-by: Damian Osipiuk <osipiukd+git@gmail.com>
I think the rocket emoji is causing a visual bug too but since I edited this through GitHub's UI, I couldn't confirm.
#5227)
* fix(query-core): correct placeholderData prevData
* fix(query-core): preserves correct prevQueryResult
This commit preserves the correct previous result between rerenders.
* test(react-query): Test with placeholder & select
* fix(query-core): Add lastDefinedQueryData property
* fix(query-core): Remove console.log
* fix(query-core): Add react-query test
* feat(solid-query): Add `reconcile` option
* feat(solid-query): Add `reconcile` callback test
# Conflicts:
#	packages/eslint-plugin-query/package.json
#	packages/query-async-storage-persister/package.json
#	packages/query-broadcast-client-experimental/package.json
#	packages/query-core/package.json
#	packages/query-core/src/queriesObserver.ts
#	packages/query-persist-client-core/package.json
#	packages/query-sync-storage-persister/package.json
#	packages/react-query-devtools/package.json
#	packages/react-query-persist-client/package.json
#	packages/react-query/package.json
#	packages/react-query/src/__tests__/QueryResetErrorBoundary.test.tsx
#	packages/react-query/src/useQueries.ts
#	packages/solid-query/package.json
#	packages/svelte-query/package.json
#	packages/vue-query/package.json
* feat: remove callbacks from QueryObserver
types are passing now
* test: remove some more callback related tests
* docs: migration guide for removed callbacks
* chore: fix broken lock file
* chore: remove unused variables
those were only needed on main for keepPreviousData, which doesn't exist anymore
* feat: rename throwErrors to throwOnError
to be aligned with the options we already have on imperative methods, like `invalidateQueries`
* docs: fix outdated code reference
* chore: rename type
* fix: let the refetchInterval function also return undefined
and fall back to false if it does
TkDodoand others added 24 commits July 18, 2023 14:31
* fix(onlineManager): always initialize with `online: true`
instead of relying on navigator.onLine, because that indicator is broken AF in chrome
https://bugs.chromium.org/p/chromium/issues/list?q=navigator.online
* docs: document subscribe methods
* docs
* test: fix types in tests
setting to undefined is now illegal, so we have to reset to `true`, which is the default now
* fix(tests): switch from mocking navigator.onLine to mocking onlineManager.isOnline
* fix: offline toggle in devtools
it should now be enough to set online to true / false, without firing the event, because we always set & respect that value. we don't override the event handler, so real online / offline events might interfere here
* chore: fix tests
with the implementation of onlineManager, where we default to `true`, we need an explicit `'offline'` event to get it to false; otherwise, switching back to true doesn't change the state, so subscribers are not informed
* chore: prettier write
* chore: fix eslint
* chore: delete an old, flaky test that doesn't test much
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
Co-authored-by: Aryan Deora <adeora@iu.edu>
* fix potential typo
* Update docs/react/guides/queries.md
---------
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
* Add react-cra5 test
* Add react-cra4 test
* Add react-vite test
* Add svelte-vite test
* Add solid-vite test
* Run prettier
* Rename script to test:bundle
* Add vue-vite test
* Run prettier
…Boundary` object properties and TypeScript property signatures (#5765)
* feat: useSuspenseQuery
* feat: infiniteQueryOptions
* fix: add exports
* feat: useSuspenseInfiniteQuery
* feat: initialData overloads for useInfiniteQuery
* fix: types
* chore: stabilize test
we sometimes get failureCount: 2, but it doesn't matter here (timing issue)
* fix: types for useSuspenseQuery (#5755)
* docs: suspense
* docs: api reference
* docs: useSuspenseQuery in examples
* fix: types for useSuspenseInfiniteQuery (#5766)
---------
Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
# Conflicts:
#	packages/query-async-storage-persister/package.json
#	packages/query-broadcast-client-experimental/package.json
#	packages/query-core/package.json
#	packages/query-core/src/queryObserver.ts
#	packages/query-persist-client-core/package.json
#	packages/query-sync-storage-persister/package.json
#	packages/react-query-devtools/package.json
#	packages/react-query-persist-client/package.json
#	packages/react-query/package.json
#	packages/react-query/src/__tests__/useQuery.test.tsx
#	packages/solid-query/package.json
#	packages/svelte-query/package.json
#	packages/vue-query/package.json
@vercel

vercelBot commented Jul 24, 2023

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
NameStatusPreviewUpdated (UTC)
query⬜️ Ignored (Inspect)Jul 24, 2023 9:54am

@nx-cloud

nx-cloudBot commented Jul 24, 2023

Copy link
Copy Markdown

☁️ Nx Cloud Report

CI is running/has finished running commands for commit 154e0ea. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this branch


✅ Successfully ran 1 target

Sent with 💌 from NxCloud.

@codesandbox-ci

Copy link
Copy Markdown

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 154e0ea:

SandboxSource
@tanstack/query-example-react-basic-typescriptConfiguration

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

17 participants

@TkDodo@tannerlinsley@gpichot@Juneezee@arthurdenner@vinilzen@lachlancollins@OrJDev@g3r4n@tigawanna@JLarky@balazsmatepetro@juvirez@MattJustMatt@skokenes@incepter@DaleSeo