Skip to content

Releases: blitz-js/blitz

v0.34.0-canary.5

15 Apr 20:48
Compare
Choose a tag to compare
v0.34.0-canary.5 Pre-release
Pre-release

🐞 Patches

  • Fix vercel deployments for canary release: #2226

v0.34.0-canary.4

15 Apr 17:04
Compare
Choose a tag to compare
v0.34.0-canary.4 Pre-release
Pre-release

🐞 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 to global.d.ts: #2205
  • Fix husky scripts to use npx for binaries instead of npm run: #2213

Internal Meta Changes

Credits

Huge thanks to @mtford90, @sakulstra, and @peterpalau for helping!

v0.34.0-canary.3

10 Apr 22:30
Compare
Choose a tag to compare
v0.34.0-canary.3 Pre-release
Pre-release

🚀 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

Credits

Huge thanks to @Skn0tt for helping!

v0.34.0-canary.2

07 Apr 19:42
Compare
Choose a tag to compare
v0.34.0-canary.2 Pre-release
Pre-release

🚀 New Features

  • Upgrade our nextjs fork to 10.1.3: #2186

v0.34.0-canary.1

06 Apr 20:47
Compare
Choose a tag to compare
v0.34.0-canary.1 Pre-release
Pre-release

🐞 Patches

  • Change Blitz to use our nextjs fork (no internal changes besides using our own build): #2122

Internal Meta Changes

  • add userTrack as seedling sponsor: a3737af

v0.34.0-canary.0

05 Apr 22:20
Compare
Choose a tag to compare
v0.34.0-canary.0 Pre-release
Pre-release

💥 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

🐞 Patches

  • Fix query string spaces with useRouterQuery(): #2174
  • Fix shallow routing: #2173

⚡️ Changes to the New App Template

  • Add .editorconfig and .vscode extension recomendations: #2142
  • Upgrade dependencies: #2176

👩‍🍳 Recipes

  • Fix quirrel install recipe: #2170
  • Remove prisma 2.19 version upgrade from GQL recipe: #2167

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

27 Mar 15:18
Compare
Choose a tag to compare

Note: If your Jest tests fail, upgrade Prisma to 2.19 or later

🐞 Patches

  • Fix query parameter decoding: #2143
  • Fix bug when db folder is not present: #2152

⚡️ 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

Credits

Huge thanks to @JuanM04, @markhughes, @amdolan, @MrLeebo, @gstranger, and @maastrich for helping!

v0.33.0

17 Mar 19:23
Compare
Choose a tag to compare

🚀 New Features

🐞 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

Credits

Huge thanks to @Skn0tt, @pavestru, @JuanM04, @remjx, @roesh, and @kevinlangleyjr for helping!

v0.32.1

10 Mar 17:36
Compare
Choose a tag to compare

🐞 Patches

  • Fix not being able to use await in blitz console for some users: #2077
  • Fix another bug with queries/mutations when using basePath: #2100
  • Fix useRouterQuery to not parse values (leave as string): #2102

Credits

Huge thanks to @Skn0tt and @bugzpodder for helping!

v0.32.0

09 Mar 22:27
Compare
Choose a tag to compare

🚀 New Features

🐞 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!