github blitz-js/blitz v0.30.0-canary.8

latest releases: v2.0.8, blitz@2.0.8, @blitzjs/rpc@2.0.8...
pre-release3 years ago

🚀 New Features

  • Add page.authenticate, page.redirectAuthenticatedTo, and page.suppressFirstRenderFlicker: #1901
  • Add useAuthorize and useRedirectAuthenticated hooks: #1900
  • Remove requirement of publicData.roles: #1788
  • Important CLI Change: Change blitz generate default value syntax from default[value] to default=value: #1906

🐞 Patches

  • Fix useQuery hooks return type when enabled or suspense could be false: #1893
  • Fix type of publicData in client & server utilities to be Partial<PublicData> because public data is empty by default: #1788
  • Upgrade superjson: 1.6.0 → 1.6.2: #1904

⚡️ Changes to the New App Template

  • Update all pages to use the new page options like page.authenticate: #1901
  • Switch from using publicData.roles to publicData.role: #1788
  • Fix react-hook-form reset password page: #1902

Internal Meta Changes

Credits

Huge thanks to @Kosai106 and @LBrian for helping!

Don't miss a new blitz release

NewReleases is sending notifications on new releases.