github blitz-js/blitz v0.25.0

latest releases: blitz@2.0.0-alpha.26, @blitzjs/rpc@2.0.0-alpha.26, @blitzjs/next@2.0.0-alpha.26...
18 months ago

💥 Breaking Changes

  • Rename the useQuery mutate helper to setQueryData: #1291
-const [product, {mutate}] = useQuery(getProduct, {where: {id: props.query.id}})
+const [product, {setQueryData}] = useQuery(getProduct, {where: {id: props.query.id}})

🔥 Major Changes

🚀 Minor Changes

  • Revert react-query to 2.5.12 because of concurrent mode bugs: #1430

🐞 Patches

  • Fix infinite loop with multiple tabs open: #1453
  • Fix error stack trace regression by upgrading tslog: 2.9.0 → 2.9.1: #1348
  • Fix db.connect error when using without prisma: #1342
  • Fix blitz CLI not using proper exit codes: #1316
  • Fix your jest tests failing because of useQuery error message: #1357
  • Fix blitz db seed not working: #1363
  • Fix inconsistencies with the CLI -h flag: #1257
  • Fix useInfiniteQuery broken cache: #1391
  • Fix useQuery queries running on first render with empty parameters: #1444
  • Fix TS type for useRouter(): #1422
  • Improve error message about git and git config: #1432
  • Improve error message for invalid RPC requests: #1450
  • Added useMemo call for response from useRouter: #1352
  • Remove as prop from blitz generate page templates: #1411
  • Upon blitz new, prompt user for upgrade if blitz version is outdated: #1397
  • Switch to superjson for error serialization (enables using instanceof): #1414
  • Remove React imports from page templates: #1418
  • Upgrade superjson: 1.2.3 → 1.3.0: #1347

⚡️ Changes to the New App Template

  • Add incremental:true to tsconfig.json: #1350
  • Move tsc from pre-commit to pre-push hook: #1362
  • Fix tests not found if app has blitz in the name: #1355
  • Move typescript to production dependencies (so blitz db seed works on prod deploy): #1377
  • Upgrade react version to 0.0.0-experimental-4ead6b530: #1451

👀 Changes to Example Apps

  • Remove tailwind example app: #1384
  • Upgrade @prisma/client: 2.8.0 → 2.10.0: #1395
  • Upgrade @prisma/cli: 2.4.1 → 2.10.0: #1394

Internal Meta Changes

  • Adds test to assert useMutation validation: #1351
  • Docs: add nksaraf as a contributor: #1358
  • Docs: add dulcehc as a contributor: #1359
  • Docs: add markhaehnel as a contributor: #1360
  • Docs: add sirmyron as a contributor: #1361
  • Docs: add nemesv as a contributor: #1373
  • Docs: add machadolucasvp as a contributor: #1380
  • Added eslint import sorting: #1345
  • Docs: add maciekgrzybek as a contributor: #1381
  • Docs: add mweibel as a contributor: #1382
  • Add sirmyron l1 maintainer: #1389
  • Upgrade @prisma/sdk: 2.6.0 → 2.10.0: #1393
  • Docs: add isoppp as a contributor: #1412
  • Docs: add wobsoriano as a contributor: #1420
  • Cypress test fix: #1369
  • Docs: add benediktms as a contributor: #1429
  • Bump next from 9.5.1 to 10.0.1 in /examples/plain-js: #1431
  • Docs: add akirabaruah as a contributor: #1441
  • Add @zanedb as a contributor: cbcbeef
  • Add @goleary as a contributor: dbef6f9
  • Update @nksaraf as a contributor: 6df771c
  • Add @matamatanot as a contributor: 1ccfc7e
  • Add @ericsakmar as a contributor: 4181738
  • Add @leggsimon as a contributor: 6907e92
  • Add @Talor-A as a contributor: c4d7593
  • Add Bytes Newsletter signup banner: 56b18e4

Credits

Huge thanks to @aericson, @nksaraf, @markhaehnel, @sirmyron, @nemesv, @maciekgrzybek, @isoppp, @abuuzayr, @wobsoriano, @akirabaruah, @dulcehc, @machadolucasvp, @mweibel, @peaonunes, @svobik7, and @benediktms for helping!

Don't miss a new blitz release

NewReleases is sending notifications on new releases.