Releases: blitz-js/blitz
Releases · blitz-js/blitz
v0.41.0
🚀 New Features
- Add support for uuid field type in blitz generate: #2808
🐞 Patches
- Display an error if loading a module fails in blitz console: #2792
- Fix
blitz install
not working: #2799 - Add a spinner during the blitz new version check: #2791
Internal Meta Changes
- added @g3offrey as contributor: 99b5876
- Add README for styled-components recipe: #2776
- added @keevan as contributor: aa560d2
- Add README for tailwind recipe: #2777
- added @kimngan-bui as contributor: ef36229
- Add README for secureheaders recipe: #2780
- Add README for render recipe: #2779
- Add README for reflexjs recipe: #2778
- Add README for theme-ui recipe: #2803
- updated @piotrski contributions: 17853ee
- updated @g3offrey contributions: 39e089b
- added @9j as contributor: 25cdbbb
- added @Vandivier as contributor: 6056ed8
- updated @g3offrey contributions: ea566b2
Credits
Huge thanks to @Vandivier, @g3offrey, @9j, @keevan, @kimngan-bui, and @piotrski for helping!
v0.40.0
🚀 Big Update
- 🎉 Remove custom blitz compiler - all custom features now in core framework!: #2662
- The
next-env.d.ts
feature now works correctly but asblitz-env.d.ts
. This file will be automatically written to disk and updated based on your specific feature usage. You should checkblitz-env.d.ts
into your repo - The intermediate
.blitz/build
folder is no longer used - Fixes all issues caused by
.blitz/build
step - Now works with pnpm
- Debugger breakpoints should now work
- Issues with .gitignore files is resolved
- Overall dev/build perf is improved
- The
💥 Breaking Changes
- Auto generated RPC endpoints now use a flat path with shared namespace instead of using the full file path. #2516
- This is only a breaking change if you are manually invoking the autogenerated endpoints, like from a mobile app.
- This change is according to this RFC.
- See the docs
-/api/auth/mutations/login +/api/rpc/login -/api/modules/users/queries/getUsers +/api/rpc/getUsers
getBlitzRuntimeData()
function removed. It was only used for theblitz install secureheaders
recipe. If you previously installed that recipe, update thesecureheaders.ts
file with the changes in this commit: 8d98843validateZodSchema()
is now async by default. You can specify sync/async with a second argument: #2616- Read the docs
- This is only a breaking change if you were using validateZodSchema as a standalone utility. If you are only using it with a form library, then there is no breaking change.
🚀 New Features
- Ability to version queries & mutations. This is mainly useful when you have mobile apps. #2516
FILE: app/users/mutations/createUser.ts API URL: /api/rpc/createUser FILE: app/users/mutations/v2/createUser.ts API URL: /api/rpc/v2/createUser
- Upgrade next.js to 11.1.0: #2656
- Add package manager prompt to
blitz new
: #2715
🐞 Patches
- Fix RedirectError incorrectly failing Cypress tests: #2655
- Fix serialization of RedirectError: #2659
- Fix No matching version found for eslint-config-next: 18b3f32
- Added
BLITZ_TELEMETRY_DISABLED
env variable: #2664 - Fix useQuery hooks to not cache data during SSR: #2666
- Fix
<Link>
not working correctly with i18n and basepath: #2668 - Fix usage with pnpm: #2673
- Upgrade internal Typescript version and potentially improve TS perf: #2669
- Fix route manifest for mdx pages: #2678
- Update react-query to 3.21.1 (and fix an infinite loop bug): #2684
- 🚨 [security] Update tar: 6.1.0 → 6.1.11: #2687
- Fix missing BLITZ_APP_DIR error when running a custom server: #2699
- Fix first build of custom server when
customServer.hotReload: false
: #2698 - Fix internal middleware to use
forwarded
header to set protocol: #2705 - Make jest-preset work in plain js projects: #2740
- PassportAuth — improve error message if req.query.auth is undefined: #2766
- Jest-preset: handle static assets for next/image: #2763
- Fix CSRFTokenMismatchError on logout: #2761
- Fix CSRFTokenMissmatch error for anonymous sessions after significant time of inactivity: #2762
- Fix Yarn Berry gitignore for new apps: #2775
- Fix
blitz install
to work with pnpm: #2702
⚡️ Changes to the New App Template
- Few improvements to LabeledTextField: #2677
- Use
jest.config.ts
for Typescript apps: #2663 - Remove typescript bits from package.json generated for js projects: #1402
- Remove tsc step from pre-push and ignore types.ts file in js apps: #2734
- Update prisma 2.x to prisma 3.x: #2731
👩🍳 Recipes
- fix secureheaders recipe: 8d98843
- removed unused htmlescape import in
secureheaders
recipe: #2675 - add recipe for ghost cms: #2693
- Add stitches recipe: #2773
Internal Meta Changes
- added @hashimwarren as contributor: a8f5db4
- added @damilolarandolph as contributor: 2b2c9f1
- added @mwcampbell as contributor: 5cf84a6
- Add Boostry as bronze sponsor: 83bcd44
- added @ratson as contributor: 0f027bd
- added @maciejmyslinski as contributor: 5fe42c1
- added @andreasasprou as contributor: 927db97
- added @kotx as contributor: 994cba8
- updated @kotx contributions: 89b0f96
- added @isaka1022 as contributor: 29b5b31
- Add Aleksandra to core team as Lead Maintainer: e704aca
- Update "Read the Documentation" link in Readme: #2733
- added @fuzzthink as contributor: 554a91a
- added @bcye as contributor: a4975d1
- Add @beerose as codeowner: #2735
- updated @s-r-x contributions: 9f835f4
- added @emilygracekz as contributor: c95e0cc
- added @npverni as contributor: f79dad9
- Retire @nitaking from L1 Maintainers: #2756
- added @davyengone as contributor: 41df687
- added @Fedeorlandau as contributor: be4ac2c
- added @johnmurphy01 as contributor: 3fb7327
- added @martinsaxa as contributor: db611a1
- added @ajwgeek as contributor: f5829db
- updated @johnmurphy01 contributions: c28ecb6
- Update fauna logo: b6cc8b1
- Add sakura-ui recipe README: #2710
- Add README files to recipes: #2774
Credits
Huge thanks to @roesh, @s-r-x, @akbo, @JuanM04, @andreasasprou, @kotx, @beerose, @martinsaxa, @meehawk, @ratson, @bcye, @emilygracekz, @prisis, @markhughes, @mzaien, @fuzzthink, @isaka1022, and @johnmurphy01 for helping!
v0.40.0-canary.10
🐞 Patches
- Fix CSRFTokenMismatchError on logout: #2761
- Fix CSRFTokenMissmatch error for anonymous sessions after significant time of inactivity: #2762
- Fix suspense/hydration bug (on canary): #2785
- Fix ssr with auth pages failing on Vercel on canary release: #2787
- Make jest-preset work in plain js projects: #2740
- PassportAuth — improve error message if req.query.auth is undefined: #2766
- Jest-preset: handle static assets for next/image: #2763
⚡️ Changes to the New App Template
👩🍳 Recipes
Internal Meta Changes
- added @emilygracekz as contributor: c95e0cc
- added @npverni as contributor: f79dad9
- Retire @nitaking from L1 Maintainers: #2756
- added @davyengone as contributor: 41df687
- added @Fedeorlandau as contributor: be4ac2c
- added @johnmurphy01 as contributor: 3fb7327
- added @martinsaxa as contributor: db611a1
- added @ajwgeek as contributor: f5829db
- updated @johnmurphy01 contributions: c28ecb6
- Add README files to recipes: #2774
Credits
Huge thanks to @beerose, @martinsaxa, @JuanM04, @emilygracekz, @markhughes, @mzaien, and @johnmurphy01 for helping!
v0.40.0-canary.9
🚀 New Features
- Add package manager prompt to
blitz new
: #2715
🐞 Patches
- Fix broken vercel deployments with canary release: #2730
- Fix
blitz generate
Internal Blitz Error: process.env.BLITZ_APP_DIR is not set (in canary release): #2736
⚡️ Changes to the New App Template
- Remove typescript bits from package.json generated for js projects: #1402
- Remove tsc step from pre-push and ignore types.ts file in js apps: #2734
👩🍳 Recipes
- Add sakura-ui recipe README: #2710
Internal Meta Changes
- updated @kotx contributions: 89b0f96
- added @isaka1022 as contributor: 29b5b31
- Add Aleksandra to core team as Lead Maintainer: e704aca
- Update "Read the Documentation" link in Readme: #2733
- added @fuzzthink as contributor: 554a91a
- added @bcye as contributor: a4975d1
- Add @beerose as codeowner: #2735
- updated @s-r-x contributions: 9f835f4
Credits
Huge thanks to @s-r-x, @bcye, @beerose, @isaka1022, and @fuzzthink for helping!
v0.40.0-canary.8
🐞 Patches
- Update react-query to 3.21.1 (and fix an infinite loop bug): #2684
- Update tar: 6.1.0 → 6.1.11: #2687
- Fix missing BLITZ_APP_DIR error when running a custom server: #2699
- Fix first build of custom server when
customServer.hotReload: false
: #2698 - Fix internal middleware to use
forwarded
header to set protocol: #2705 - Fix(cli): blitz install to work with pnpm: #2702
⚡️ Changes to the New App Template
- Use
jest.config.ts
for Typescript apps: #2663
Internal Meta Changes
- added @ratson as contributor: 0f027bd
- added @maciejmyslinski as contributor: 5fe42c1
- added @andreasasprou as contributor: 927db97
- added @kotx as contributor: 994cba8
Credits
Huge thanks to @andreasasprou, @kotx, @meehawk, and @ratson for helping!
v0.40.0-canary.7
🐞 Patches
- Fix route manifest for mdx pages: #2678
v0.40.0-canary.6
💥 Potential Breaking Changes
validateZodSchema()
is now async by default. You can specify sync/async with a second argument: #2616- Read the docs
- This is only a breaking change if you were using validateZodSchema as a standalone utility. If you are only using it with a form library, then there is no breaking change.
🐞 Patches
- Fix missing
BlitzScript.getInlineScriptSource
in canary release: #2676 - Fix usage with pnpm (requires adding a few lines to
.npmrc
) #2673 - Upgrade internal Typescript version and potentially improve TS perf: #2669
⚡️ Changes to the New App Template
- Few improvements to LabeledTextField: #2677
👩🍳 Recipes
Internal Meta Changes
- Add Boostry as bronze sponsor: 83bcd44
Credits
v0.40.0-canary.5
💥 Breaking Changes
getBlitzRuntimeData()
function removed. It was only used for theblitz install secureheaders
recipe. If you previously installed that recipe, update thesecureheaders.ts
file with the changes in this commit: 8d98843
🚀 Big Update
- 🎉 Remove custom blitz compiler - all custom features now in core framework!: #2662
- The
next-env.d.ts
feature now works correctly but asblitz-env.d.ts
. This file will be automatically written to disk and updated based on your specific feature usage. You should checkblitz-env.d.ts
into your repo - The intermediate
.blitz/build
folder is no longer used - Fixes all issues caused by
.blitz/build
step - Should now work with pnpm
- Debugger breakpoints should now work
- Issues with .gitignore files is resolved
- Overall dev/build perf is somewhat improved
- The
🐞 Patches
- Added
BLITZ_TELEMETRY_DISABLED
env variable: #2664 - Fix useQuery hooks to not cache data during SSR: #2666
- Fix
<Link>
not working correctly with i18n and basepath: #2668
Internal Meta Changes
- added @mwcampbell as contributor: 5cf84a6
Credits
v0.40.0-canary.4
🐞 Patches
- Fix serialization of RedirectError: #2659
- Fix No matching version found for eslint-config-next: 18b3f32
Internal Meta Changes
- added @hashimwarren as contributor: a8f5db4
- added @damilolarandolph as contributor: 2b2c9f1
Credits
Huge thanks to @akbo for helping!