npm blitz 0.16.0
v0.16.0

latest releases: 2.0.8, 2.0.7, 0.0.0-turbopack-20240403083540...
3 years ago

🔥 Breaking Changes

  • Upgrade React Query to v2: #720
    • Dependent queries are now accomplished with the enabled flag instead of a function that 'throws':
      --useQuery(getProjects, () => ({where: {id: projectId}})
      ++useQuery(getProjects, {where: {id: projectId}}, { enabled: !!projectId })
    • There are some other breaking changes for less commonly used features. You can see the full list of breaking changes here: react-query v2 release notes

🚀 Minor Changes

  • Add support for Optimistic UI Updates by adding refetch option to useQuery mutate(): #715

🐞 Patches

  • Fix blitz db reset for Prisma >= 2.0.0-beta.8: #716
  • Fix middleware error handling when using next(error): #719
  • Fix Router export from blitz: #722
  • Fix experimental flags in blitz.config.js not being used: #721

Internal Meta Changes

Credits

Huge thanks to @shaunchurch, @toshi1127, @SigurdMW, and @ganeshmani for helping!

Don't miss a new blitz release

NewReleases is sending notifications on new releases.