🎉 RedwoodJS v0.12.0

This version includes many improvements and fixes across CLI, Generators, Auth, TypeScript support, and Unit Tests.

To everyone in the community who’s been contributing via issues, forum conversations, and PRs, thank you for making Redwood better! :rocket:

v0.12.0 Highlights

  • upgrade to Prisma v2.1.1 (v2.1.0 Release Notes and v2.1.1 Release Notes)
    • adds basic filtering on Json data
    • prepared statement caching for PostgreSQL
    • upsert operation on a related row by using connectOrCreate (experimental)
    • transactionApi : perform multiple unrelated write operations in a transaction and rollback if needed (experimental)
  • improved TypeScript support for Deploy and Generators #744 #685

Changed

  • Prisma: upgrade to Prisma-2.1.1 #748
  • Tests: wrap MSW graphql for convenience #689 @RobertBroersma
  • CLI: leverage yargs arg-parser lib #704 @jamesgeorge007
  • CLI: commandeer ports when they are in use #736
  • Generators: scaffolds use checkbox fields #719 @Tobbe @lachlanjc
  • Generators: scaffolds use checkbox to display boolean value #732 @Tobbe
  • Auth: change custom authHeader to return type #720 @dac09
  • Ops: updates GH Actions and RW Tasks to use Main as Triggers #723
  • Flash: optimize Flash component #724 @Terris

Added

  • TS: convert layout generator to TypeScript #685 @kimadeline
  • Router: add useLocation hook to Redwood Router #650 @Terris
  • Auth: add reauthenticate method to useAuth #721
  • CI: add cypress integration tests for tutorial #728

Fixed

  • Auth: fixes auth firebase #729 @noire-munich
  • CLI: generate Prisma client if it doesn’t exist #735
  • TS: actually build TS files. #744
  • Config: fix(import-dir) Ignore file extensions | Ignore .test files #746 @dac09
  • Generators: properly append array syntax #747

Breaking :warning:

:tada: No breaking changes (that we know about :crossed_fingers:)


How to upgrade RedwoodJS packages to v0.12.0

:point_right: IMPORTANT: Skipping versions when upgrading is not recommended and will likely cause problems. Do read through all Release Notes between your current version and this latest version. Each minor release will likely require you to implement breaking change fixes and apply manual code modifications.

If the Current Version is > v0.6.0

Redwood v0.6.0 included a new CLI command to upgrade @redwoodjs NPM packages. Run the following command within your App directory:

yarn rw upgrade

If the Current Version is < v0.6.0

Manually update the following @redwoodjs/* packages.

Root directory package.json
  • "@redwoodjs/core": "^0.12.0”
web/package.json
  • "@redwoodjs/web": "^0.12.0”
  • "@redwoodjs/router": "^0.12.0”
  • "@redwoodjs/auth": "^0.12.0” (if installed)
api/package.json
  • "@redwoodjs/api": "^0.X”

Install the upgraded packages

$ yarn install


Redwood Releases on GitHub

You can see all Redwood release notes and version history on GitHub

9 Likes

Congrats about the release! :clap:t4: :clap:t4: :clap:t4:

Question about Prisma update:
The new connectOrCreate and the transactionAPI needs to be defined on the generator client or it’s included out of the box in Redwood?

The Release notes in Prisma 2.1.0 says:

The experimentalFeatures field can be set like this:

generator client {
  provider = "prisma-client-js"
  experimentalFeatures = ["connectOrCreate", "transactionApi"]
}

Thanks!

1 Like

Ah, great question --> it is NOT included out of the box in Redwood. You’ll need to setup your schema.prisma per the Prisma documentation. This also means you’ll be outside of Redwood Generator support: you might find the generators run successfully but the resulting code needs manual changes, or the generator might blow up. ¯_(ツ)_/¯

But would be very curious to know how it goes, so please keep us updated! :laughing: