This release introduces the new π Redwood Auth Package π, which is a lightweight wrapper around popular SPA authentication libraries. Current support includes Netlify Identity Widget, Auth0, and Netlify GoTrue-JS. (With more on the way!) And it wouldn't be done the Redwood Way if it didn't include a generator to handle the boilerplate for you. We hope you find it delightful to use!
Getting Started with Redwood Auth
Documentation
- Redwood Auth Guide has all the details
- Complete the new Redwood Tutorial Authentication section to add Auth to your RedwoodBlog
Example App Implementations
- Learn to implement Netlify Auth via the Redwood Example Blog tutorial
- Explore Auth implementation in the Example Invoice project
CLI Trailblazing
- Feeling π? Just dive in with
yarn rw g auth [netlify|auth0]
Other v0.7.0 Highlights π
- New Function generator and Custom Function Cookbook guide
- New Scaffold generator option to add 'path/' structure via
yarn rw g scaffold <path/model>
#423 - New Form fields (too many to list!) and improvements to Redwood Forms
- Upgrades Prisma to v2.0.0-beta.5 (release notes for beta.4 and beta.5)
And a gigantic Thank You to all the amazing contributors below who are making Redwood better every day. It's a blast to build this with you! π
Changed
- Dev-server: improve Error Handling at FatalErrorBoundary #486
- Generators: humanize labels on scaffold forms #493 @lachlanjc
- Config: convert custom webpack cell-loader into Babel Plugin #512 @RobertBroersma
- Prisma: upgrade to Prisma v2.0.0-beta.5 #525 #532
- β οΈpossible breaking change to migration files; see "Breaking" below
Added
- Auth: add @redwoodjs/auth package #497 #536 π
- Generators: adds auth generator #539 π
- Generators: adds function generator #517 π
- Generators: add path specification to scaffolds #423 @jtoar π
- CLI: add console log on rebuild complete #504 @vikash-eatgeek
- CLI: add @redwoodjs/auth package to CLI upgrade command #556
- CLI upgrade command: add option --tag with choices 'canary' or 'rc' #560
- Docs: add router docs for useMatch and NavLink #470 @RobertBroersma
- Forms: add Radio Field #479 @vikash-eatgeek
- Forms: add checkbox field #488 @vikash-eatgeek
- Forms: adds all input type Field form helpers #511
Fixed
- CLI: fix
yarn rw info
not displaying redwoodjs packages on Windows #476 - Generators: remove excess closing braces from foreign key map on scaffold generator #482 @eurobob
- Generators: fixes possible null error in truncate #485 @kwyoung11
- Generators: switch out "Hammer" data source in tests #506 @lachlanjc
- Generators: fix NamesCell reload after deleting item #519 @cephalization
- Dev-server: 'yarn rw dev' now only starts the API and DB servers when the api folder is present #490 @ackinc
- Dev-server: fix Prisma Client error when running dev server w/out DB #524
- Router: Convert children into array to do array things #547
Breaking β οΈ
For previously deployed applications, it is possible the new Prisma migration files from beta.5 are incompatible with previous migrations. If you encounter a migration error on deployment, follow these steps after you backup your deployment DB:
- Remove your local Prisma "migrations/" directory and files.
- Create a new migration via
yarn rw db save
- Drop the "_Migrations" table on your deployment DB
- If you are using the netlify-plugin-prisma-provider, make sure it is at
v0.3.0
Rerun your deployment, which should complete successfully.
How to upgrade RedwoodJS packages to v0.7.0
If the Current Version is v0.6.0
Redwood v0.6.0 includes 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 four @redwoodjs/*
packages.
Root directory package.json
"@redwoodjs/core": "^0.7.0β
web/package.json
"@redwoodjs/web": "^0.7.0β
"@redwoodjs/router": "^0.7.0β
api/package.json
"@redwoodjs/api": "^0.7.0β
Install the upgraded packages
$ yarn install