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! 🚀
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 usingconnectOrCreate
(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 ⚠️
🎉 No breaking changes (that we know about 🤞)
How to upgrade RedwoodJS packages to v0.12.0
👉 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