github blitz-js/blitz v0.39.0

latest releases: v2.1.3, blitz@2.1.3, @blitzjs/rpc@2.1.3...
3 years ago

💥 Breaking Changes

  • Add ability to access req and res objects in the Passport adapter: #2576
    Breaking change only if using the callback version:
    -export default passportAuth((ctx) => ({
    +export default passportAuth(({ctx, req, res}) => ({

🚀 New Features

  • Add support for BLITZ_PUBLIC_ environment variables (NEXT_PUBLIC_ will continue to work): #2611
  • Add support for Page.redirectAuthenticatedTo to be a function with access to session: #2634

🐞 Patches

  • Fix duplicate image types: #2597
    • Requires adding /// <reference types="next/image-types/global" /> to global.d.ts
  • Fix bug when no dependencies are defined in app package.json: #2607
  • Fix a bug when just 1 level deep inside yarn workspace: #2599
  • Fix case where blitz new prints an error but continues creating app: #2637
  • Fix occasional ENOENT error during blitz recipe install: #2638
  • Throw error if two pages have the same name (important for Routes to be accurate): #2606
  • Fix dehydrateState does not apply server side props: #2617
  • Fix indentation of json on blitz generate edit pages: #2652

⚡️ Changes to the New App Template

  • Fix image warning in index page: #2593
  • Update favicon for new apps to be orange version of the blitz logo: #2602

Internal Meta Changes

Credits

Huge thanks to @doncicuto, @Roesh, @s-r-x, @sam3d, @zenhob, @kenkuan, @meehawk, @ravindranrahul, @clgeoio, and @bravo-kernel for helping!

Don't miss a new blitz release

NewReleases is sending notifications on new releases.