github blitz-js/blitz v0.14.0

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

💥 Breaking Changes

  • Rename NextScript to BlitzScript: #638
    • You need to make the following change in your _document.tsx file:
--import { Document, Html, DocumentHead, Main, NextScript, DocumentContext } from "@blitzjs/core"
++import { Document, Html, DocumentHead, Main, BlitzScript, DocumentContext } from "@blitzjs/core"

class MyDocument extends Document {
  static async getInitialProps(ctx: DocumentContext) {
    const initialProps = await Document.getInitialProps(ctx)
    return { ...initialProps }
  }
  render() {
    return (
      <Html lang="en">
        <DocumentHead />
        <body>
          <Main />
--          <NextScript />
++          <BlitzScript />
        </body>
      </Html>
    )

🚀 Minor Changes

  • 🎉 Add blitz generate model See the docs#545
  • Add useParam hook See the docs#637
    • This is super nice for getting route parameters as number instead of string!!
  • Add missing re-export items from Next.js: #636
    • Error, InferGetStaticPropsType and InferGetServerSidePropsType

🐞 Patches

  • Update query/mutation templates for Prisma 2.0.0: #655
  • Add AppProps to _app.tsx in new app template (#674): #671
  • Only parse typescript/js files: #645
  • Add dot option to glob: #646
  • Fix pipeline build error: #651

👀 Changes to Example Apps

  • Update example apps to Prisma 2.0.0: #658

Internal Meta Changes

  • Docs: add reymon359 as a contributor: #640
  • Rewrite recipe installer framework with Ink: #608
  • Docs: add anteprimorac as a contributor: #648
  • Docs: add gvasquez11 as a contributor: #649
  • Do some yarn workspace maintenance: #633
  • Docs: add josemiguelo as a contributor: #657
  • Docs: add osirvent as a contributor: #660
  • Fix broken linting by centralizing it + run via lint-staged: #661
  • Sync README parts with blitzjs.com/docs/getting-started: #664
  • Docs: add donni106 as a contributor: #665
  • Add three lint rules to catch async/await promise bugs: #662
  • Docs: add exclipy as a contributor: #673
  • Docs: add tehnuge as a contributor: #675
  • Add @blitzjs/config package for internal use: #653
  • GUI: Import Blitz Projects: #643

Credits

Huge thanks to @anteprimorac, @aem, @gvasquez11, @reymon359, @merelinguist, @ryardley, @osirvent, @donni106, @Zeko369, and @ditorojuan for helping!

Don't miss a new blitz release

NewReleases is sending notifications on new releases.