v0.4.0
Changed
- Upgraded Prisma2 to preview025 #350
⚠️ Prisma introduced a new relation syntax, which is not compatible with previous migration files. If you have a deployed app and need to migrate DB changes, see this Issue providing a workaround.
- Context handlers accept an asynchronous function #348 @RobertBroersma
- Upgrade package dependencies including Babel 7.9, React Hook Form v5, and Prettier v2 #349
- Forward refs to anchors in Links #356 @RobertBroersma
Added
- Support for graphql directives! #347 @RobertBroersma
- Format generated templates using the local
prettier.config.js
#351 @satyarohith - Docs for webpack config #354 @maximgeerinck
Fixed
- Fixed a problem with the Router where it would try to render a
Page
without the correct params. #380
How to upgrade to v0.4.0*
Update your @redwoodjs/*
packages.
Four packages should be updated to v0.4.0
Root directory package.json
"@redwoodjs/core": "^0.4.0”
web/package.json
"@redwoodjs/web": "^0.4.0”
"@redwoodjs/router": "^0.4.0”
api/package.json
"@redwoodjs/api": "^0.4.0”
After updating and saving the files, install the packages from the root directory:
$ yarn install