Blitz Versions Save

⚡️ The Missing Fullstack Toolkit for Next.js

v2.0.0-beta.17

1 year ago

🐞 Patches

blitz

  • 5ea068b2: Check if blitz-server & blitz-client is located in either the app or src directory and return the correct path for blitz recipes.
  • 8b4bf999: Update dependencies
  • 88caa18e: Patch next13 for suspense error

@blitzjs/auth

  • 8b4bf999: Update dependencies
  • 97469a12: Added option role to authenticate property of BlitzPage to authenticate page with respect to the role of the user. String value or Array of strings can be passed to authorize users.

@blitzjs/next

  • 8b4bf999: Update dependencies
  • 97469a12: Added option role to authenticate property of BlitzPage to authenticate page with respect to the role of the user. String value or Array of strings can be passed to authorize users.

@blitzjs/rpc

  • 8b4bf999: Update dependencies

@blitzjs/generator

  • 2a81af7b: Update generator templates to use the src directory instead of app
  • 8b4bf999: Update dependencies

v2.0.0-beta.16

1 year ago

🚀 Features/Improvements

@blitzjs/auth

  • 55a43ce1: maybe fix anon session CSRF issue + add ability to customize anon session expiry time

@blitzjs/next

  • 11b548ed: Change setupBlitzServer logger config to be optional. Will default to BlitzLogger

@blitzjs/rpc

  • 55a43ce1: maybe fix anon session CSRF issue + add ability to customize anon session expiry time
  • ceb7db27: Add an opt-in GET request support to RPC specification by exporting a config object that has the httpMethod property. from query files.

🐞 Patches

blitz

  • 1569bd53: Upgrade tslog to the latest version
  • ceb7db27: Add an opt-in GET request support to RPC specification by exporting a config object that has the httpMethod property. from query files.
  • 8e5903c0: Fix cannot find module db error in JavaScript template. Replace requiring the config using esbuild with parsing using jscodeshift to get the cliConfig values. Added logic to find the blitz-server file in src directory
  • 45459129: Include resolvers in src directory in blitz console

@blitzjs/generator

  • 1569bd53: Upgrade tslog to the latest version
  • 8e5903c0: Fix cannot find module db error in JavaScript template. Replace requiring the config using esbuild with parsing using jscodeshift to get the cliConfig values. Added logic to find the blitz-server file in src directory

v2.0.0-beta.15

1 year ago

🐞 Patches

blitz

  • 1b798d9a: Fix useSession hook by exporting enhancePrisma from the server entry point instead of server

v2.0.0-beta.14

1 year ago

🐞 Patches

blitz

  • 78fd5c48: Fix blitz install command getting stuck on the Generating file diff... step
  • 0a8b0cb3: Fix custom server's TypeScript error - add es6 target config to the esbuild config

@blitzjs/generator

  • 54761393: Remove unnecessary as number assertions from new app templates
  • 60de0574: Fix reset token being undefined when passed to the resetPassword mutation

v2.0.0-beta.13

1 year ago

🐞 Patches

blitz

  • a6e81f15: Add BlitzLogger plugin and allow customizing logging
  • 6f434989: Fix "Ambiguous class detected" errors reported by SuperJson by removing duplicated export from errors.ts file

@blitzjs/next

  • a6e81f15: Add BlitzLogger plugin and allow customizing logging

@blitzjs/rpc

  • 7b63f0f1: Allow the updater function in setQueryData to return undefined to match react-query typings

@blitzjs/generator

  • 4e26ae21: Upgrade eslint-config-next in new app templates to fix linting issues on blitz build

v2.0.0-beta.12

1 year ago

🐞 Patches

blitz

  • 3a602b61: Fix blitz install not working due to missing blitz/installer dependency
  • f39ba1ff: Allow passing custom templates to the blitz generate command. Extend the generate command with custom-templates to provide an easy starting point for users to customize the default templates: blitz generate custom-templates

@blitzjs/generator

  • f39ba1ff: Allow passing custom templates to the blitz generate command. Extend the generate command with custom-templates to provide an easy starting point for users to customize the default templates: blitz generate custom-templates

v2.0.0-beta.11

1 year ago

🐞 Patches

blitz

  • 9db6c885: Fix blitz --help CLI command not being found
  • d98e4bac: Add blitz routes CLI command back to the toolkit
  • 9fe0cc54: Fix auth-related React hydration errors by not redirecting until after component mount.
  • af58e2b2: Add a global Blitz version check when generating a new Blitz project to ensure users use the latest Blitz.
  • 2ade7268: Add blitz export CLI command to the toolkit
  • 0edeaa37: 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
  • 430f6ec7: Only generate the Prisma client if it's not found in node_modules when running a blitz cli command.
  • 15d22af2: Add the blitz console CLI command back to the toolkit
  • aa34661f: Fix invalidateQuery generating the wrong param when no param argument is passed
  • 8e0c9d76: Migrate over recipe functionality from the legacy framework & expose recipe builder helper functions that find and modify next.config.js, blitz-server & blitz-client.
  • e2c18895: Add client testing utilities and a sample test to a new blitz app template

@blitzjs/auth

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

@blitzjs/next

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

@blitzjs/rpc

  • 0edeaa37: Allow for custom page extensions for the wildcard blitz route. For example [...blitz].api.ts. For more information visit https://nextjs.org/docs/api-reference/next.config.js/custom-page-extensions
  • aa34661f: Fix invalidateQuery generating the wrong param when no param argument is passed
  • 8e0c9d76: Migrate over recipe functionality from the legacy framework & expose recipe builder helper functions that find and modify next.config.js, blitz-server & blitz-client.

@blitzjs/codemod

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

@blitzjs/generator

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

v2.0.0-beta.4

1 year ago

🐞 Patches

blitz

  • c213d521: Fix issue with the route name that's generated for nested routes in @blitzjs/rpc. This was causing issues for windows users.
  • 0b94a450: Upgrade superjson to the latest version
  • 161270e3: Only run the prisma generate command when the schema file changes.

@blitzjs/auth

  • 713aead9: Allow specifying custom strategy name in Blitz's passport adapter

@blitzjs/next

  • 69fb2803: Allow setting static page properties (e.g. getInitialProps) on the App component
  • 0b94a450: Upgrade superjson to the latest version

@blitzjs/rpc

  • c213d521: Fix issue with the route name that's generated for nested routes in @blitzjs/rpc. This was causing issues for windows users.
  • 0b94a450: Upgrade superjson to the latest version
  • f6dac093: Improve RPC logging: print resolverName() insetad of /resolverName()

@blitzjs/codemod

  • d3403cf8: Show file path on error when running the upgrade legacy codemod.
  • 74a4ce8e: Add AuthenticatedSessionContext to the upgrade-legacy codemod import map
  • 43e65cfe: Remove TypeScript type annotations from next.config.js (a JavaScript file) in the upgrade-legacy codemod.
  • da914c92: Convert import statements to require when creating the next.config.js file in the codemod

@blitzjs/generator

  • 7498aef4: Fix tsconfig.json referencing blitz-env.d.ts insetad of next-env.d.ts in new app templates
  • 22344d05: New apps generated by the cli was missing the getLayout function in _app, so when you used the getLayout property on your page, it didn't render. You'll need to manually update your _app if you generated an app with blitz v2.
  • 8fa9a56f: Fix eslint and types setup in minimal app template
  • c53978d5: Fix upgrade-legacy Update imports step — import getAntiCSRFToken and AuthenticatedMiddlewareCtx from correct locations
  • a84b8de4: Remove -cookie-prefix appended to the cookiePrefix config property in the new app template. It will also fix auth and CSRF issues for users upgrading from a legacy framework.

v2.0.0-beta.3

1 year ago

🐞 Patches

blitz

  • 638f2319: Prevent Minified react error #419 in production

@blitzjs/codemod

  • 2313fa61: Fix upgrade-legacy codemod replacing identifiers with an invalid value. Previously new values were hardcoded to NextApiRequest. Now we're using correct values provided as replaceIdentifiers function argument.
  • 1bf185d6: Add a new codemod step to update the .eslintrc.js file

@blitzjs/generator

  • b72d1215: Add vscode debugging configuration to new app templates

v2.0.0-beta.2

1 year ago

🐞 Patches

blitz

  • db7233db: Bump react, react-dom, @types/react and next versions

    This fixes a console warning: Warning: Receivedtruefor a non-boolean attributeglobal. when using styled-jsx. Versions bump also fixes React Hydration error that happens on and off when using redirectAuthenticatedTo.

  • 0936cb38: Patch Next.js Suspense issue in all node environments. Previously we only patched it in the development environment, but now we make sure it gets patched in the production env (with the blitz build command) as well.

  • 3f9fe8f0: Exit the CLI process after blitz new command is finished

@blitzjs/auth

  • db7233db: Bump react, react-dom, @types/react and next versions

@blitzjs/next

  • db7233db: Bump react, react-dom, @types/react and next versions

@blitzjs/rpc

  • db7233db: Bump react, react-dom, @types/react and next versions

@blitzjs/codemod

  • db7233db: Bump react, react-dom, @types/react and next versions

  • a3b5fdd0: Change ES6 import for withBlitz during the codemod to the require syntax.

  • ebfb562b: Add Script as a default import from next.js during the codemod.

@blitzjs/generator

  • db7233db: Bump react, react-dom, @types/react and next versions

  • eb971568: Add BlitzPage types to auth pages in new app template

  • 8ada2c26: Include ResetPasswordPage in new app template