Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump react-query-kit from 1.5.1 to 2.0.2 in /template #25

Conversation

dependabot[bot]
Copy link

@dependabot dependabot bot commented on behalf of github Oct 2, 2023

Bumps react-query-kit from 1.5.1 to 2.0.2.

Release notes

Sourced from react-query-kit's releases.

2.0.2

fix: correct the peer dependencies

2.0.1

  1. feat: export type CreateMutationOptions
  2. feat: add new typeUtil inferError

2.0.0

Changes

  1. feat: optimize middleware type
  2. feat: remove all built-in APIs

BREAKING CHANGES

All built-in APIs(such as useDefaultOptions, functional enabled and setData) are no longer support. Please use middleware instead.

Before:

const useUser = createQuery<Response, Variables>({
  // ...
  enabled: (data) => !data
})

After 2.0.0

const disabledIfHasData: Middleware<QueryHook<Response, Variables>> = useQueryNext => {
  return options => {
    const client = useQueryClient()
    const hasData = () =>
      !!client.getQueryData(useUser.getKey(options.variables))
return useQueryNext({
  ...options,
  enabled: options.enabled ?? !hasData(),
})

}
}
const useUser = createQuery<Response, Variables>({
// ...
use: [disabledIfHasData],
})

1.5.2

  1. feat: add type util inferOptions
  2. feat: middleware supports pass in custom hook
  3. other: remove createImmutableQuery
Commits
  • 56e470f 2.0.2
  • 8ae952d fix: correct the peer dependencies
  • bfea347 docs: explain why receive queryClient as second param in middleware
  • 163fe45 2.0.1
  • bab23c1 feat: export CreateMutationOptions & new typeUtil inferError
  • 4d61e36 docs: optimize middleware doc
  • 7bf6a78 docs: fix typo of createQueryClient
  • df50433 2.0.0
  • 2d3dc9e feat: optimize middleware type & remove all built-in api
  • 32af028 1.5.2
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [react-query-kit](https://github.com/liaoliao666/react-query-kit) from 1.5.1 to 2.0.2.
- [Release notes](https://github.com/liaoliao666/react-query-kit/releases)
- [Commits](HuolalaTech/react-query-kit@1.5.1...2.0.2)

---
updated-dependencies:
- dependency-name: react-query-kit
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Oct 2, 2023
@dependabot @github
Copy link
Author

dependabot bot commented on behalf of github Oct 9, 2023

Superseded by #28.

@dependabot dependabot bot closed this Oct 9, 2023
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/template/react-query-kit-2.0.2 branch October 9, 2023 21:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants