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
Redwood Releases on GitHub
You can see all Redwood release notes and version history on GitHub