Releases: blitz-js/blitz
Releases · blitz-js/blitz
v2.0.0-beta.18
v2.0.0-beta.17
🐞 Patches
blitz
- 5ea068b: Check if blitz-server & blitz-client is located in either the app or src directory and return the correct path for blitz recipes.
- 8b4bf99: Update dependencies
- 88caa18: Patch next13 for suspense error
@blitzjs/auth
- 8b4bf99: Update dependencies
- 97469a1: Added option
role
toauthenticate
property ofBlitzPage
to authenticate page with respect to the role of the user.String
value orArray
of strings can be passed to authorize users.
@blitzjs/next
- 8b4bf99: Update dependencies
- 97469a1: Added option
role
toauthenticate
property ofBlitzPage
to authenticate page with respect to the role of the user.String
value orArray
of strings can be passed to authorize users.
@blitzjs/rpc
- 8b4bf99: Update dependencies
@blitzjs/generator
v2.0.0-beta.16
🚀 Features/Improvements
@blitzjs/auth
- 55a43ce: maybe fix anon session CSRF issue + add ability to customize anon session expiry time
@blitzjs/next
- 11b548e: Change setupBlitzServer logger config to be optional. Will default to BlitzLogger
@blitzjs/rpc
- 55a43ce: maybe fix anon session CSRF issue + add ability to customize anon session expiry time
- ceb7db2: Add an opt-in GET request support to RPC specification by exporting a
config
object that has thehttpMethod
property.
fromquery
files.
🐞 Patches
blitz
- 1569bd5: Upgrade
tslog
to the latest version - ceb7db2: Add an opt-in GET request support to RPC specification by exporting a
config
object that has thehttpMethod
property.
fromquery
files. - 8e5903c: Fix
cannot find module db error
in JavaScript template. Replace requiring the config usingesbuild
with parsing usingjscodeshift
to get thecliConfig
values. Added logic to find theblitz-server
file insrc
directory - 4545912: Include resolvers in
src
directory in blitz console
@blitzjs/generator
v2.0.0-beta.15
🐞 Patches
blitz
- 1b798d9: Fix
useSession
hook by exportingenhancePrisma
from the server entry point instead of server
v2.0.0-beta.14
v2.0.0-beta.13
🐞 Patches
blitz
- a6e81f1: Add BlitzLogger plugin and allow customizing logging
- 6f43498: Fix "Ambiguous class detected" errors reported by SuperJson by removing duplicated export from errors.ts file
@blitzjs/next
- a6e81f1: Add BlitzLogger plugin and allow customizing logging
@blitzjs/rpc
- 7b63f0f: Allow the updater function in setQueryData to return undefined to match react-query typings
@blitzjs/generator
- 4e26ae2: Upgrade eslint-config-next in new app templates to fix linting issues on blitz build
v2.0.0-beta.12
🐞 Patches
blitz
- 3a602b6: Fix
blitz install
not working due to missingblitz/installer
dependency - f39ba1f: Allow passing custom templates to the
blitz generate
command. Extend thegenerate
command withcustom-templates
to provide an easy starting point for users to customize the default templates:blitz generate custom-templates
@blitzjs/generator
- f39ba1f: Allow passing custom templates to the
blitz generate
command. Extend thegenerate
command withcustom-templates
to provide an easy starting point for users to customize the default templates:blitz generate custom-templates
v2.0.0-beta.11
🐞 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
- 0edeaa3: 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
- 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.
@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 addingawait
torouter.push
calls in the templates - d6717b9: Load schema.prisma path from
package.json
instead of assuming it'sdb/schema.prisma
- bf4aaf1: Move
useCurrentUser
hook fromcore/hooks
tousers/hooks
folder - b43c1a8: Remove the random user ([email protected]) & 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 fromSession.PublicData
intypes.ts
file - e2c1889: Add client testing utilities and a sample test to a new blitz app template
v2.0.0-beta.4
🐞 Patches
blitz
- c213d52: Fix issue with the route name that's generated for nested routes in @blitzjs/rpc. This was causing issues for windows users.
- 0b94a45: Upgrade superjson to the latest version
- 161270e: Only run the prisma generate command when the schema file changes.
@blitzjs/auth
- 713aead: Allow specifying custom strategy name in Blitz's passport adapter
@blitzjs/next
- 69fb280: Allow setting static page properties (e.g.
getInitialProps
) on the App component - 0b94a45: Upgrade superjson to the latest version
@blitzjs/rpc
- c213d52: Fix issue with the route name that's generated for nested routes in @blitzjs/rpc. This was causing issues for windows users.
- 0b94a45: Upgrade superjson to the latest version
- f6dac09: Improve RPC logging: print
resolverName()
insetad of/resolverName()
@blitzjs/codemod
- d3403cf: Show file path on error when running the upgrade legacy codemod.
- 74a4ce8: Add
AuthenticatedSessionContext
to theupgrade-legacy
codemod import map - 43e65cf: Remove TypeScript type annotations from
next.config.js
(a JavaScript file) in theupgrade-legacy
codemod. - da914c9: Convert import statements to require when creating the next.config.js file in the codemod
@blitzjs/generator
- 7498aef: Fix tsconfig.json referencing blitz-env.d.ts insetad of next-env.d.ts in new app templates
- 22344d0: 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.
- 8fa9a56: Fix eslint and types setup in minimal app template
- c53978d: Fix upgrade-legacy
Update imports
step — importgetAntiCSRFToken
andAuthenticatedMiddlewareCtx
from correct locations - a84b8de: Remove
-cookie-prefix
appended to thecookiePrefix
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
🐞 Patches
blitz
- 638f231: Prevent
Minified react error #419
in production
@blitzjs/codemod
- 2313fa6: Fix upgrade-legacy codemod replacing identifiers with an invalid value. Previously new values were hardcoded to
NextApiRequest
. Now we're using correct values provided asreplaceIdentifiers
function argument. - 1bf185d: Add a new codemod step to update the .eslintrc.js file
@blitzjs/generator
- b72d121: Add vscode debugging configuration to new app templates