* feat(queryObserver): add isInitialLoading derived flag
this flag describes isLoading && isFetching and can be used to show a loading spinner for lazy or disabled queries
* chore(ci): fix caching
apparently, v3 has a fix: https://github.com/actions/setup-node/issues/543
* chore(ci): properly fix token issue
as described here: https://stackoverflow.com/questions/52015748/npm-failed-to-replace-env-in-config-npm-token
he extra warn output made the caching fail
* chore: fix bundlewatch glob
* docs: add a section about isInitialLoading to the migration guide
- duplicate workspace peerDependencies as devDependencies due to this issue: https://github.com/pnpm/pnpm/issues/4164
- remove --non-interactive as it doesn't exist for pnpmn
- add --no-git-checks because otherwise, we cannot publish with changes in package.json
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>