RELEASE_ALL
* chore(pnpm): update lockfile
* chore(pnpm): add pnpm
* chore(pnpm): get rid of private:true
which was only needed for yarn workspaces; also, remove the csb workaround, because it didn't work with private:true
* chore(pnpm): switch to workspace:* dependencies
because pnpm will replace them automatically during publish
* chore(pnpm): use ^ dependencies for examples
we will always get the latest version as there is no lockfile for them
* chore(pnpm): update publish script to use pnpm
this also means we don't need to update package.json at all because we use workspace dependencies now
* chore(pnpm): devtools need react-error-boundary
* chore(pnpm): replace lerna with pnpm
* chore(pnpm): use pnpm to install in CI
* chore(pnpm): fix install in ci
* chore(pnpm): fix yml syntax
* chore(pnpm): add jest-dom to react-query
* chore(pnpm): add jest-dom to types
* chore(pnpm): explicitly add jest-dom typings
* chore(pnpm): revert jest-com changes
* chore(pnpm): ok prettier, whatever
* chore(pnpm): go to pnpm v7
* chore(pnpm): use stricter node version
* chore(pnpm): oh boy
* chore(pnpm): remove engines
because codesandbox-ci has a different version
* chore(pnpm): restore updating version in publish script
* chore(pnpm): filter pnpm scripts and installs down to ./packages
so that we exclude examples
* chore(pnpm): remove filtering from installs
as it doesn't install top-level dependencies; also, --frozen-lockfile is the default for CI environments
* refactor(tests): remove differential assertions
we only run our tests in node16 now, where AbortController and AbortSignal do exist
* refactor(tests): stabilize Blink tests
* fix return type for set/get query data funcs
* run prettier on project
* Update packages/query-core/src/queryClient.ts
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
* fix(react-query-persist-client): make use of the query-persist-client-core package
* fix(react-query-persist-client): move retryStrategies to core and use core in persisters
* fix(react-query-persist-client): fix imports in tests
* fix(react-query-persist-client): react-query-persist-client needs the core as dependency
as it re-exports the query-persist-client-core, and we don't want users to have to depend on the query-persist-client-core manually
* fix(react-query-persist-client): try to fix rollup config
* feat(query-persist-client-core): split persist-client into a separate core package
* feat(query-persist-client-core): revert depending on the new package
because it doesn't exist yet on npm
* feat(query-persist-client-core): revert unintentional changes to test files
* feat: handle useErrorBoundary option in useQueries
* chore: update .all-contributorsrc
* style: fix formatting issue
* test: stabilize a test that fails on production but passes locally
* refactor: rename query to options
* refactor: extract reusable code of error boundary handling
* style: apply prettier
* test: reject promise with Error instead of string to avoid TS error
* test: cover a case where useErrorBoundary is a function
* refactor: improve typing of getHasError
* style: apply prettier formatting
* fix: add type keyword for imports
* refactor: revert renaming `query` to `options` for more consistency
* feat(query-core): log queryKey in createRetryer
in cases where the onSuccess callback fails, this logs the affected queryKey for easier troubleshooting
* chore: use queryHash instead of queryKey
* chore(query-core): fix wording, amend tests
* feat(solid-query): Solid Query Adapter for TanStack Query
RELEASE_ALL
Add an adapter to TanStack Query to support SolidJS.
Co-authored-by: Aryan Deora <adeora@iu.edu>
Co-authored-by: Jen Kaplan <jenniferckaplan@gmail.com>
* Fixed Tests and included changes from feedback
* Prettier Format Code
Collaborators:
@oscartbeaumont
@lukesmurray
@jennyckaplan
* Readme Update
Collaborators:
@oscartbeaumont
@lukesmurray
@jennyckaplan
Co-Authored-By: Oscar Beaumont <oscar@otbeaumont.me>
Co-Authored-By: Luke Murray <34020210+lukesmurray@users.noreply.github.com>
Co-Authored-By: Jen Kaplan <25395806+jennyckaplan@users.noreply.github.com>
* Fixing tsconfig for CI test runner
Co-Authored-By: Oscar Beaumont <oscar@otbeaumont.me>
Co-Authored-By: Luke Murray <34020210+lukesmurray@users.noreply.github.com>
Co-Authored-By: Jen Kaplan <25395806+jennyckaplan@users.noreply.github.com>
* (fix: ci) CI Test fix
Co-Authored-By: Oscar Beaumont <oscar@otbeaumont.me>
Co-Authored-By: Luke Murray <34020210+lukesmurray@users.noreply.github.com>
Co-Authored-By: Jen Kaplan <25395806+jennyckaplan@users.noreply.github.com>
* (fix: tests): Remove React 17 check
Co-Authored-By: Oscar Beaumont <oscar@otbeaumont.me>
Co-Authored-By: Luke Murray <34020210+lukesmurray@users.noreply.github.com>
Co-Authored-By: Jen Kaplan <25395806+jennyckaplan@users.noreply.github.com>
* Update packages/solid-query/src/__tests__/createQuery.test.tsx
* Locking vite-plugin-solid version
Co-Authored-By: Oscar Beaumont <oscar@otbeaumont.me>
Co-Authored-By: Luke Murray <34020210+lukesmurray@users.noreply.github.com>
Co-Authored-By: Jen Kaplan <25395806+jennyckaplan@users.noreply.github.com>
Co-authored-by: Aryan Deora <adeora@iu.edu>
Co-authored-by: Jen Kaplan <jenniferckaplan@gmail.com>
Co-authored-by: Oscar Beaumont <oscar@otbeaumont.me>
Co-authored-by: Jen Kaplan <25395806+jennyckaplan@users.noreply.github.com>
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
For yarn 3 pnp, having react-query as a normal dependencies causes it to
be bundled multiple times. The query client set in
react-query-persist-client is not visible for the normal useQuery
imports from react-query. Setting react-query as a peerDependency
instead fixes this issue.
Co-authored-by: Andreas Muttscheller <andreas.muttscheller@codecentric.de>
RELEASE_ALL
* chore: get rid of TS errors in tests files
Test files in most packages were importing `tests/utils` from the root of the repo causing hundreds of typescript errors. This commit collocates these utils in each of the packages and removes 'exclude' statements from all tsconfig files as they are no longer necessary for the typechecking to pass.
* style: fix formatting
* fix: resolve broken references
* fix(devtools): not subscribing to queryCache if devtool is closed
This will stop unnecessary rerender of devtools when they are closed.
* style(devtools): fix linting issue in devtools.tsx file