So. Many. Contributors. 🤩 (Over 100 individuals!) All of you are making Redwood better every week. And this version is no exception. Hats off to the amazing, growing community! Version v0.17.0 wouldn't have been the same without you.
- Check out all the current contributors here
- Did you see the new Redwood v1.0 Roadmap?
This version contains breaking changes. See the "Breaking" section below for more info and upgrade instruction.
v0.17.0 Highlights
-
✨New✨Deploy to AWS Serverless 🚀
- This is step 1 of 2, initialization. Consider it preview. If you want to try it out, you'll need to have the serverless framework installed
- Then generate the deployment via
yarn rw generate deploy aws_serverless
- You can deploy manually with these commands, but we're busy working on a deployment command in this issue.
- Related section in the Deploy Doc
-
TypeScript support: write and reference generated types 🔥
- See the new TypeScript Doc
- Upgrading? See "How to Upgrade ..." for required manual code changes.
-
New generator for TailwindCSS Setup 🎩
yarn rw generate util tailwind
- See related Doc
Changed
- Auth: Auth RBAC, hasRole accepts a single role or an array of roles #1016 by dthyresson
- Auth: Bump firebase-admin from 8.13.0 to 9.1.1 #1027
- Docs: Add
usePageLoadingContext
demo video to Router documentation. #792 by jtoar - Router: Memoize routes and named routes #956 by jtoar
- Forms: react-hook-form upgraded to latest v6.0 #964 by Ako92
- 🚨possible breaking changes
- Forms: removes @redwoodjs/forms from @redwoodjs/web #1048 by alvincrespo
- 🚨possible breaking changes
- Generator: add Scaffold generator CLI warning when model contains
@relation
#984 - TS: upgrade to typescript v4.02 #1018
- Prisma: upgrade to Prisma 2.6.0 #1004 #10
- v2.6.0 Release Notes
- v2.5.1 Release Notes
- v2.5.0 Release Notes
- Middlewares
- removing duplicates with
distinct
- aggregations
- many more preview features; see release notes
Added
- Deploy: Add deploy command for api with aws_serverless provider #1012 by hemildesai
- Deploy: Add aws_serverless provider for generate deploy command #976 by hemildesai
- TS: Add a way to write and reference generated types #960 🎉
- Config: add tailwind generator #828 #1025 #1026 by jtoar 🎉
- Project: Add documentation links to outline #935 by forresthayes
- Project: Add env variable diagnostics (fix #983 #971) #987 by aldonline
- Docs: add Contributors to README using All-Contributors #875
- CLI: Add option to skip yarn install to create-redwood-app #966 by forresthayes
- example:
yarn create redwood-app ./my-project --no-yarn-install
- example:
- Forms: support passing coercion functions to form fields #973 by forresthayes
Fixed
Breaking ⚠️
React Hook Forms v6
This release upgrades to v6 of React Hook Forms, which has breaking changes. The Redwood Forms package is not affected. However, if your project has custom implementations of React Hook Forms, you may need to follow the upgrade instructions in the React Hook Forms v6 Release Notes.
Redwood Forms as a standalone package
We've removed @redwoodjs/forms
from @redwoodjs/web
to reduce the web bundle size for projects not using forms. If you are using forms, then complete these two steps:
- Add
@redwoodjs/forms
as a dependency in<app>/web/package.json
.yarn workspace web add @redwoodjs/forms
- Change any "Forms" related imports from
@redwoodjs/web
to be from@redwoodjs/forms
- Search your project for
@redwoodjs/web
- Check for instances of imports like
import { Form .. }
- For all cases importing Form related elements from
@redwoodjs/web
, changeweb
toforms
. - Example: change
import { Form, FormError } from '@redwoodjs/web'
toimport { Form, FormError } from '@redwoodjs/forms'
- Search your project for
How to upgrade Redwood to v0.17.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.
Manual Code Modifications
- New TypeScript support requires adding
.redwood
to.gitignore
file. - Add
@redwoodjs/forms
as a standalone package inweb/package.json
.- See "Breaking" section above for instructions.
- Prisma deprecated syntax for the disconnect method from
disconnect()
to$disconnect()
- update you project accordingly for specific use
- for updates to the existing
api/prisma/seeds.js
file, see required code modification here
Upgrade Packages
Run the following command within your App directory:
yarn rw upgrade
To run the upgrade
command, your project must be using v0.6.0 or greater. See this forum topic for manual upgrade instructions and general upgrade help.