Releases: blitz-js/blitz
Releases · blitz-js/blitz
v0.38.2
🐞 Patches
- Upgrade to Next.js 11.0.1: #2526
- Main fix is support for
svgr
- Main fix is support for
- Fix prefetched dehydrated state to support Dates, Maps, etc: #2512
- Fix
blitz db seed
to print stack traces for any errors: #2528 - Fix built in errors like RedirectError and AuthenticationError to not log as "uncaught" in browser console: #2522
Internal Meta Changes
Credits
v0.38.1
🐞 Patches
- Fix
blitz generate
/new page does not useRoutes
: #2501 - Fix
validateZodSchema()
to pass if schema undefined: #2511 - Fix
blitz generate
to regenerate the Routes manifest: #2504 - Add support for custom messages and icons in recipes: #2510
- Fix so that npm scripts don't run on
blitz install
recipes: #2498 - Fix lint warning, unused
path
in generated api routes: #2513 - Fix browser error when using
prisma.$use()
: #2514
Internal Meta Changes
- added @igeligel as contributor: 1e39604
- updated @ntgussoni contributions: a2c6c9c
- added @prisis as contributor: 6198025
- added @benjakugler96 as contributor: b6fcba1
Credits
Huge thanks to @dbachrach, @ntgussoni, @prisis, and @benjakugler96 for helping!
v0.38.0
💥 Breaking Changes
- Blitz now provides an optimized
<ErrorBoundary>
component : #2480- Remove
react-error-boundary
from your package.json - Update all imports of as shown here:
-import {ErrorBoundary} from "react-error-boundary" +import {ErrorBoundary} from "blitz"
- You can optionally remove the
resetKeys={[router.asPath]}
prop because we now automatically reset on route change
- Remove
🚀 New Features
- Upgrade to Next.js 11: #2489
- Adds
<Script>
Read the docs - Adds automatic size detection for local images (don't have to set width/height props on
- Webpack 5 now used by default
blitz build
will now fail if eslint errors are detected (can be disabled)
- Adds
- Change
blitz
eslint config to use the neweslint-config-next
package from Next.js 11 - Add
<ErrorBoundary>
component into core: #2480 - Add
validateZodSchema()
API for better form errors: #2441 - Add
formatZodError()
utility: #2494 - Add
setPublicDataForUser()
— useful for updating the role of another user: #2473 - Add
RedirectError
: #2483
🐞 Patches
- Fix
BlitzConfig
type to allow extra fields: #2471 - Fix pages to never render if
Page.authenticate=true
and logged out: #2476 - Rename
DISABLE_CSRF_PROTECTION
toDANGEROUSLY_DISABLE_CSRF_PROTECTION
: 7685629 - Fix broken vercel deployments: #2479
- Fix
Page.authenticate = {redirect: '/login';}
not working correctly on logout AND add RedirectError: #2483 - Fix edit page generated by
blitz generate
to not have buggy behavior: #2487 - Fix bug with <Image> and SSR for configured domains: #2474
- Change all user facing references of next.js to blitz.js: #2438
⚡️ Changes to the New App Template
- Use
validateZodSchema()
in<Form>
#2441 - Move dev dependencies to devDependencies in package.json (better for Docker): #2475
- Upgrade react@alpha react-dom@alpha: 1c256c9
Internal Meta Changes
- added @kivi as contributor: be9f708
- added @dangreaves as contributor: 2fa862e
- Fix GH actions to cancel existing actions on new push: 3138fc5
- updated @swinner2 contributions: f20d7cf
- updated @swinner2 contributions: b3f1598
- added @lksnmnn as contributor: 5d0998a
- updated @lksnmnn contributions: 2c3afcf
- added @dbachrach as contributor: fc66d61
- updated @dbachrach contributions: 6e71113
- added @ashikka as contributor: 5f2bf3a
- added @deini as contributor: b80cf67
- Remove all nextjs/examples: e4e3e75
Credits
Huge thanks to @swinner2, @lksnmnn, @dangreaves, @dbachrach, @mabadir, @ashikka, and @kivi for helping!
v0.37.0
🚀 New Features
- Add ability to disable custom server hot reloading: #2447
🐞 Patches
- Fix webpack 5 support (Webpack 5 now used by default): #2453
- Fix Prisma @@Map in Enums break the model generator: #2445
- Remove unneeded
cd
message duringblitz install
in some cases: #2451 - Fix CSRF 401 errors for HEAD requests: #2443
- Fix Routes manifest for pages with parent & child relationships: #2424
- Fix auth & middleware not working on Vercel (No longer need the
path.resolve
workaround): #2463 - Fix to not build custom server during
blitz start
: #2408 - Fix one part of pnp issues: #2464
⚡️ Changes to the New App Template
- Update Prisma and React dependencies: #2462
Internal Meta Changes
- added @max-programming as contributor: 9c54361
- added @sebastianhoitz as contributor: f8ce548
- updated @markhughes contributions: f2d41ef
- updated @frankiesardo contributions: 577206a
- added @garnerp as contributor: 22a845e
- updated @mabadir contributions: ff85cf1
Credits
Huge thanks to @markhughes, @MrLeebo, @max-programming, @sebastianhoitz, @frankiesardo, and @mabadir for helping!
v0.36.4
🐞 Patches
- Fix so
blitz new
always generates valid cookiePrefix: #2427 - Add couple missing dependencies to @blitzjs/cli package: #2439
- Add helpful error when trying
blitz export
with blitz auth: #2435 - Add debug to blitz package: #2426
Internal Meta Changes
- added @ormarek as contributor: cb432b6
- Remove CI from canary branch: d4dc932
- added @AntoineGuestin as contributor: 6b463fc
- added @swinner2 as contributor: a00f162
Credits
Huge thanks to @swinner2 and @AntoineGuestin for helping!
v0.36.3
🐞 Patches
- Fix broken Vercel deployments from version 0.35+: #2419
- For using session inside getServerSideProps, you'll need to update the workaround as noted here: https://github.com/blitz-js/blitz/issues/794#issuecomment-850909662
- Fix caught authentication errors showing as uncaught in Firefox: #2417
- Fix third-party recipes not working: #2418
⚡️ Changes to the New App Template
- Fix zod bug on /reset-password page closes: #2414: 8fb8608
v0.36.2
💥 Breaking Changes
blitz install
now requires this version or later because of a bug fix for npm users: #2404
🚀 New Features
- Add support for nonce and crossOrigin in BlitzScript: #2377
- Upgrade templates to work with Zod v3: #2375
- Add
BlitzConfig
type and add it to newapp template: #2411
🐞 Patches
- Upgrade nextjs to 10.2.3: #2409
- Fix bug: cannot find module
next/constants
: #2402 - Upgrade react-query and Fix
CancelledError
when clicking Logout: #2406 - Fix queries & mutations to work with trailing slash config: #2392
Internal Meta Changes
- Add contributor over time graph to CONTRIBUTOR_STATS: #2397
- added @guoqqqi as contributor: 3dcc885
- added @timbooker as contributor: 65405b6
Credits
Huge thanks to @markhughes, @JuanM04, @timbooker, and @guoqqqi for helping!
v0.35.2
v0.35.1
🐞 Patches
- Only build blitz config when needed and Fix
blitz.config.js
not found error: #2389 - Fixed
blitz compile
bug when noPropertyAccessFromIndexSignature is true: #2385 - Allow passing Route Manifest result to
Page.authenticate.redirectTo
: #2359 - Fix HEAD requests 'Cannot read property '$authorize' of undefined': #2364
👩🍳 Recipes
- Fix Regression on Tailwind Recipe purging in production: #2383
Internal Meta Changes
- added @frankiesardo as contributor: 2e05dec
- added @enemycnt as contributor: e22a44b
- added @Dipeshwagle as contributor: 059e75a
- added @benbender as contributor: ac67dc0
- added @nimashoghi as contributor: 1e29525
- added @chronark as contributor: 2302786
Credits
Huge thanks to @Skn0tt, @Dipeshwagle, @nimashoghi, and @benbender for helping!
v0.35.0
💥 Breaking Changes
- Use cookie prefix from
blitz.config.js
instead of package.json name field: #2311- To Update: set
cookiePrefix
inblitz.config.js
to the same value as yourpackage.json#name
field: - Your app will work fine without setting cookiePrefix, but all users will be logged out on first deployment if cookiePrefix is empty or has a different value than your current
package.json#name
field.
- To Update: set
// blitz.config.js
module.exports = {
middleware: [
sessionMiddleware({
+ cookiePrefix: 'my-app-name',
isAuthorized: simpleRolesIsAuthorized,
}),
],
}
🚀 New Features
- Update Next.js to 10.2.0: #2285
- Add support for
blitz.config.ts
: #2283 - Add Typescript & esmodule support and hot reloading to custom servers: #2255
- Allow
useQuery
to run during SSR or SSG: #1940 - Add ability to increase bodyParser size for queries & mutations: #2328
- Allow using Route Manifest for
Page.redirectAuthenticatedTo
: #2243 - Enable proxy support for cli/install: #2264
- Add experimental.initServer hook for running code on server start: #2256
- For building Recipes: New schema.prisma transform utilities: #2169
🐞 Patches
- Fix generators not support string ids: #2267
- Fix optional catch-all handling in routes codegen: #2290
- Fix inability to install recipe: #2297
- Fix can't install recipes: #2307
- Improve recipe install log message: 2d48782
- Add helpful message when request is missing the anti-csrf header: #2113
- Fix
useInfiniteQuery
return type when suspense is disabled: #2312 - Deserialize SuperJSON-ed pageProps before passing to dehydratedState: #2281
- Fix
Routes.X
is not a function when inside a monorepo: 79ca87e - Fix
blitz new
TypeError: Cannot convert undefined or null #2340
⚡️ Changes to the New App Template
- Set Prettier as default formatter for VS Code users: #2266
- Add a
<Suspense>
boundary to_app.tsx
: #2277 - Update
global.d.ts
to reference types from nextjs: #1995 - Update TypeScript Default Config: Safety for indexAccess: #2291
- move all devDependencies to regular dependencies: #2325
👩🍳 Recipes
Internal Meta Changes
- added @mubaidr as contributor: b007405
- added @silicontwin as contributor: fa264b8
- added @mlabate as contributor: a4b9005
- Fix formatting inconsistency in sponsors tables: #2275
- added @lumaxis as contributor: afd4e59
- updated @mubaidr contributions: 7cf85e2
- updated @MrLeebo contributions: de70e1a
- added @dawnofmidnight as contributor: 0a37ea4
- updated @ericvicenti contributions: 0e479e4
- added @kirakik as contributor: 92b1d72
- added @agustif as contributor: faa6add
- added @Anjianto as contributor: 4e20f06
- added @adblanc as contributor: 57ea77e
- updated @abuuzayr contributions: 1c023dc
- added @meepdeew as contributor: 630b04f
- added @Hardik3296 as contributor: b6d173a
- added @acornellier as contributor: 2ff44aa
- added @craigglennie as contributor: f6ee4b4
- added @fernvilla as contributor: b5d7095
- added @swiftgaruda as contributor: 3ca262d
- added @Patil2099 as contributor: 1034b01
- added @mabadir as contributor: 62fb61f
Credits
Huge thanks to @mabadir, @MrLeebo, @jxe, @Skn0tt, @mubaidr, @kirakik, @adblanc, @acornellier, @fernvilla, @silicontwin, @roesh, @FDiskas, @ericvicenti, @Anjianto, @agustif, and @lumaxis for helping!