Skip to content

v2.0.0-beta.11

Compare
Choose a tag to compare
@github-actions github-actions released this 11 Oct 09:50
· 270 commits to main since this release
58bb38f

🐞 Patches

blitz

  • 9db6c88: Fix blitz --help CLI command not being found
  • d98e4ba: Add blitz routes CLI command back to the toolkit
  • 9fe0cc5: Fix auth-related React hydration errors by not redirecting until after component mount.
  • af58e2b: Add a global Blitz version check when generating a new Blitz project to ensure users use the latest Blitz.
  • 2ade726: Add blitz export CLI command to the toolkit
  • 0edeaa3: Allow for custom page extensions for the wildcard blitz route. For example [...blitz].api.ts. For more information vist https://nextjs.org/docs/api-reference/next.config.js/custom-page-extensions
  • 430f6ec: Only generate the Prisma client if it's not found in node_modules when running a blitz cli command.
  • 15d22af: Add the blitz console CLI command back to the toolkit
  • aa34661: Fix invalidateQuery generating the wrong param when no param argument is passed
  • 8e0c9d7: Migrate over recipe functionality from the legacy framework & expose recipe builder helper functions that find and modify next.config.js, blitz-server & blitz-client.
  • e2c1889: Add client testing utilities and a sample test to a new blitz app template

@blitzjs/auth

  • 9fe0cc5: Fix auth-related React hydration errors by not redirecting until after component mount.

@blitzjs/next

  • 1742eb4: Fix prefetching infinite Blitz queries.
  • 9fe0cc5: Fix auth-related React hydration errors by not redirecting until after the component mount
  • e2c1889: Add client testing utilities and a sample test to a new blitz app template
  • 25f4526: Treat API Route handler as a middleware. It allows the outer middlewares to wrap queries and mutations

@blitzjs/rpc

@blitzjs/codemod

  • b3b4c21: Unwrap invokeWithMiddleware so the query or mutation is called directly when running the codemod
  • eb970f7: Fix detecting blitz.config.(ts|js) config file when running the codemod.

@blitzjs/generator

  • 0473020: Update prisma-ast dependency to prevent Blitz generator from failing when Prisma keywords are used as model names
  • 824a9b5: Fix no-floating-promises lint errors after generating pages with Blitz generator by adding await to router.push calls in the templates
  • d6717b9: Load schema.prisma path from package.json instead of assuming it's db/schema.prisma
  • bf4aaf1: Move useCurrentUser hook from core/hooks to users/hooks folder
  • b43c1a8: Remove the random user (noop@blitzjs.com) & use the user's default git account when committing a newly generated blitz project.
  • 83281a8: Fix eslint config in new JavaScript app templates
  • bd09db7: Remove views property from Session.PublicData in types.ts file
  • e2c1889: Add client testing utilities and a sample test to a new blitz app template