vue-query icon indicating copy to clipboard operation
vue-query copied to clipboard

v2 roadmap

Open DamianOsipiuk opened this issue 2 years ago • 10 comments

react-query/core

List of tickets in react-query V4 (not finalized): https://github.com/tannerlinsley/react-query/issues?q=is%3Aissue+label%3Av4+is%3Aclosed

  • [x] https://github.com/tannerlinsley/react-query/pull/2988
  • [x] https://github.com/tannerlinsley/react-query/pull/3071
  • [x] Update docs
    • [x] https://github.com/tannerlinsley/react-query/pull/3006
    • [x] https://github.com/tannerlinsley/react-query/pull/2996
    • [x] https://github.com/tannerlinsley/react-query/pull/2937
    • [x] https://github.com/tannerlinsley/react-query/pull/2938
    • [x] https://github.com/tannerlinsley/react-query/pull/2963
    • [x] https://github.com/tannerlinsley/react-query/pull/2969
    • [x] https://github.com/tannerlinsley/react-query/pull/3223
    • [x] https://github.com/tannerlinsley/react-query/pull/3271
  • [x] https://github.com/TanStack/query/pull/3834
  • [x] https://github.com/TanStack/query/pull/3873
  • [x] https://github.com/TanStack/query/pull/3988

vue-query

  • [x] hooks should wrap primitives as refs, but return functions as-is #123
  • [x] create wrappers for QueryClient, QueryCache, MutationCache etc, so parameters could be passed as refs and would be automatically unwrapped #110
  • [x] migrate devtools as a plugin to official vue devtools #155
  • [x] nuxt 3 integration
  • [ ] ~expose persistance plugins~ (This will be handled after migration to Tanstack)

misc

  • [x] Create migration to v2 page and notify about all noticeable changes in react-query/core and vue-query
  • [ ] Consider codemods?

DamianOsipiuk avatar Feb 09 '22 16:02 DamianOsipiuk

v2.0.0-alpha.1

Thank you for this!

Where can we find types like QueryFunctionContext, UseMutationResult, etc. that can be imported in vue-query/types before?

wobsoriano avatar May 15 '22 05:05 wobsoriano

@wobsoriano So /types is no longer available in react-query v4 beta, since types are now exported next to the sources in /lib. Some types should be available from vue-query directly, like UseMutationResult -> UseMutationReturnType which extends MutationResult with refs annotations. If some type is missing we need to reexport it now from the main package. I will check if reexporting everything from core (*) would not break anything.

DamianOsipiuk avatar May 19 '22 16:05 DamianOsipiuk

@DamianOsipiuk thank you for your great work!

wobsoriano avatar May 19 '22 18:05 wobsoriano

@wobsoriano So, everything should be re-exported with v2.0.0-alpha.3 - in case some types are still missing, please open a ticket.

DamianOsipiuk avatar May 21 '22 21:05 DamianOsipiuk

@DamianOsipiuk migrated one of my pet projects to alpha and all exported types are there now. Thanks!

wobsoriano avatar May 22 '22 00:05 wobsoriano

Happy to see that first beta appeared 🎉 Do you have any predictions on release date?

AndreyYolkin avatar Jul 09 '22 14:07 AndreyYolkin

@DamianOsipiuk Could the type narrowing for initialData be included for v2? https://github.com/TanStack/query/issues/3310

Hawxy avatar Aug 23 '22 12:08 Hawxy

@DamianOsipiuk Could the type narrowing for initialData be included for v2? TanStack/query#3310

Yes, all the changes introduced in v4 of react-query will be backported.

Happy to see that first beta appeared 🎉 Do you have any predictions on release date?

Currently i'm trying to stabilize ESM support in @tanstack/query. When it will be done, i would have to go trough and backport all the changes that were done from the beta release. Probably then we could do a v2 release.

This package will be migrated as a part of https://github.com/TanStack/query. This will in turn bump the version to v4 to be in line the the core. Question to the users. Do you prefer to 🚀 Get v2 release sooner, followed up by v4 release under a different name (@tanstack/vue-query) 🎉 Wait a little bit more for v4 directly.

DamianOsipiuk avatar Aug 23 '22 12:08 DamianOsipiuk

@DamianOsipiuk I love Vue Query, excited about the progress! I'm in no rush to get the updates, so if it counts for anything I'm good with waiting to get one big V4 update.

calebwaldner avatar Aug 23 '22 14:08 calebwaldner

Almost there... https://github.com/TanStack/query/pull/4254 🚀

DamianOsipiuk avatar Oct 01 '22 16:10 DamianOsipiuk

Appreciate your effort @DamianOsipiuk !

wobsoriano avatar Oct 01 '22 16:10 wobsoriano

@tanstack/vue-query is now official. Thanks for the patience!

DamianOsipiuk avatar Oct 02 '22 20:10 DamianOsipiuk