Releases: blitz-js/blitz
Releases · blitz-js/blitz
v0.34.0-canary.5
🐞 Patches
- Fix vercel deployments for canary release: #2226
v0.34.0-canary.4
🐞 Patches
- Fix "Failed to load config in getConfig" log message: #2220
- Fix new app file logging and fix
.npmrc
not being generated in canary release: #2221 - Fix crash when using Blitz inside iframes: #2219
- Send anonymous analytics to to blitz collector instead of nextjs: #2224
- Fix useInfiniteQuery suspense bug in canary release by upgrading react-query to 3.13.9: #2197
⚡️ Changes to the New App Template
- Rename
types.d.ts
toglobal.d.ts
: #2205 - Fix husky scripts to use
npx
for binaries instead ofnpm run
: #2213
Internal Meta Changes
- added @Cristy94 as contributor: e1276f9
- Fix integration test types and fix nextjs pnpm test: #2212
- added @peterpalau as contributor: 8de8202
- added @sean-brydon as contributor: a8b3794
- Retire a number of maintainers that haven't been active in long time: f861dd6
- added @Dieman89 as contributor: 2136ab7
- added @laubonghaudoi as contributor: 03ebcb9
- updated @sakulstra contributions: 61d11e4
Credits
Huge thanks to @mtford90, @sakulstra, and @peterpalau for helping!
v0.34.0-canary.3
🚀 New Features
- 🎉 Add autogenerated
Routes
manifest for use with<Link>
components: #2042
// You can import `Routes`
import { Link, Routes } from "blitz"
// And then use it for robust, fully typed links
<Link href={Routes.SignupPage()} />
<Link href={Routes.ProductsPage({ productId: 123 })} />
🐞 Patches
- Fix cannot find module 'next/constants' in 0.34.0-canary: #2203
Internal Meta Changes
- added @jahredhope as contributor: 3c3f10b
- Add new integration test harness: #2189
- Add first blitz integration test for useQuery: #2193
- Add integration test for invalidateQuery: #2194
- added @simonelnahas as contributor: 5fc813a
Credits
Huge thanks to @Skn0tt for helping!
v0.34.0-canary.2
🚀 New Features
- Upgrade our nextjs fork to 10.1.3: #2186
v0.34.0-canary.1
v0.34.0-canary.0
💥 Breaking Changes
- Upgrade to React Query v3: #2101
In _app.tsx
// _app.tsx
ErrorFallbackProps,
+ useQueryErrorResetBoundary,
} from "blitz"
-import {queryCache} from "react-query"
...
- onReset={() => {
- // This ensures the Blitz useQuery hooks will automatically refetch
- // data any time you reset the error boundary
- queryCache.resetErrorBoundaries()
- }}
+ onReset={useQueryErrorResetBoundary().reset}
Uses of useInfiniteQuery
- const [groupedProducts, {isFetching, isFetchingMore, fetchMore, canFetchMore}] = useInfiniteQuery(
+ const [groupedProducts, {isFetching, isFetchingNextPage, fetchNextPage, hasNextPage}] = useInfiniteQuery(
getProducts,
(page = {take: 3, skip: 0}) => page,
{
- getFetchMore: (lastGroup) => lastGroup.nextPage,
+ getNextPageParam: (lastGroup) => lastGroup.nextPage,
},
)
In test/utils.tsx
-import {RouterContext, BlitzRouter} from "blitz"
+import {RouterContext, BlitzRouter, BlitzProvider} from "blitz"
...
export function render(/*...*/) {
+<BlitzProvider>
<RouterContext.Provider value={{...mockRouter, ...router}}>{children}</RouterContext.Provider>
+</BlitzProvider>
...
export function renderHook(/*...*/) {
+<BlitzProvider>
<RouterContext.Provider value={{...mockRouter, ...router}}>{children}</RouterContext.Provider>
+</BlitzProvider>
If you were previously importing and using queryCache
from react-query
directly:
-import {queryCache} from "react-query"
+import {queryClient} from "blitz"
-queryCache.clear()
+queryClient.clear()
🚀 New Features
- Ability to prefetch queries on the server
- Read the docs
- This API is not elegant, but we'll improve it
🐞 Patches
⚡️ Changes to the New App Template
👩🍳 Recipes
Internal Meta Changes
- added @andrearizzello as contributor: cc7c72d
- Update findModuleExportsExpressions installer transform utility: #2155
- Update Emotion recipe to better leverage the installer package: #2156
- Switch to using @blitz/installer helper functions …: #2164
- fix ultra scripts so they work on Windows: #2154
- updated @konradkalemba contributions: 1d4695a
- updated @tundera contributions: 563720b
- updated @tundera contributions: af53933
Credits
Huge thanks to @tundera, @JuanM04, @sakulstra, @roesh, @MrLeebo, @wKovacs64, and @kevinlangleyjr for helping!
v0.33.1
Note: If your Jest tests fail, upgrade Prisma to 2.19 or later
🐞 Patches
⚡️ Changes to the New App Template
- Upgrade prisma to 2.19, remove
--preview-feature
from migrate: #2138 - Update react/react-dom to
0.0.0-experimental-6a589ad71
: #2149
👩🍳 Recipes
- Add
blitz install graphql-apollo-server
recipe to implement a GraphQL API endpoint: #2073 - Update render recipe with SESSION_SECRET_KEY: #2148
Internal Meta Changes
- added @franky47 as contributor: 70cc877
- added @FarazPatankar as contributor: e35d17d
- added @ericvicenti as contributor: d5872d9
- added @amdolan as contributor: 1a28e5b
- Add Digsas.com as seedling sponsor: ee5cceb
- updated @JuanM04 contributions: 4baa37b
- update PR template: #2141
- added @maastrich as contributor: 2e15ba2
- added @gstranger as contributor: 5ba52be
- updated @gstranger contributions: fa14a92
- added @markhughes as contributor: 3147394
Credits
Huge thanks to @JuanM04, @markhughes, @amdolan, @MrLeebo, @gstranger, and @maastrich for helping!
v0.33.0
🚀 New Features
- Add
blitz export
command: #2043
🐞 Patches
- Upgrade next: 10.0.7 → 10.0.9: #2119
- Fix
-d
shorthand for--dry-run
missing in blitz new: #2104 - Fix duplicated Set-Cookie header: #2109
⚡️ Changes to the New App Template
- Update auth mutations to trim whitespace from email & password: #2103
- Use decodeURIComponent for router.query.next during page authentication redirect: #2114
- Fix typescript jest issue in
forgotPassword.test.ts
: #2110
👩🍳 Recipes
- Add
blitz install logrocket
recipe: #2111
Internal Meta Changes
- Fixing recipe TODOs: #2112
- added @Skn0tt as contributor: fb27225
- added @the-red as contributor: 8bc3a40
- Add @Flavyoo as a contributor: 85fec4f
- Add @pbteja1998 as a contributor: 45b281a
- Add @pavestru as a contributor: c20b3a1
- Add @reo777 as a contributor: cae123d
- revert to typescript 4.1 because of nextjs integration issues: 3b6a2a2
- updated @kevinlangleyjr contributions: e6b34a7
- added @tmcw as contributor: 22cd691
- updated @remjx contributions: c574e28
- updated @roesh contributions: 7f7dcd3
Credits
Huge thanks to @Skn0tt, @pavestru, @JuanM04, @remjx, @roesh, and @kevinlangleyjr for helping!
v0.32.1
v0.32.0
🚀 New Features
- Allow the
ctx
to be accessed within passport strategies: #2058
🐞 Patches
- Fix node 14 global install by removing use of peer dependencies: #2091
- Fix extraneous console errors during tests: #2092
- Fix queries & mutations when using
basePath
: #2082 - Fix
blitz build
failure in a weird nextjs edgecase: #2094
👩🍳 Recipes
- Add Styled Components recipe!
blitz install styled-components
: #2087
Internal Meta Changes
- Added @flybayer as contributor: #2069
- Update bug_report.yml: e97ba82
- eslint config maintenance: #2078
- Integrate our new next.js fork into the monorepo at ./nextjs: #2079
- Added @flybayer as contributor: #2081
- Added @james2406 as contributor: #2090
- Docs: add james2406 as a contributor: #2093
- Docs: add bugzpodder as a contributor: #2095
- Docs: add Roesh as a contributor: #2097
Credits
Huge thanks to @james2406, @bugzpodder, and @kevinlangleyjr for helping!