Join us for the upcoming RedwoodJS Meetup on Thursday, December 3rd.
v0.21.0 Highlights
A huge Thank You to everyone who contributed to documentation on redwoodjs.com.
And to @dac09 and @Tobbe for these release highlights as well as all the fantastic individuals below who made this release possible!
Experimental support for React fast-refresh!
React fast refresh is a development-time feature that improves the “Hot reloading” functionality. The biggest benefit is that your components maintain state when you save them and they’re refreshed on the screen. Learn more here about this feature.
To add support for fast-refresh, edit your redwood.toml
file and add the following:
[web]
# ... others
experimentalFastRefresh = true
Restart you development process and you should be good to go!
Added multiproviders to firebase auth!
Now, when you logIn()
or signUp()
with the firebase auth client, you can optionally specify the provider: google.com
, facebook.com
, github.com
, twitter.com
, microsoft.com
or apple.com
. The default is google.com
.
Converted @redwoodjs/forms
to TypeScript!
More progress toward the Redwood v1 TS support goals!
Changed
- Apollo: Add fetchPolicy and nextFetchPolicy to beforeQuery #1428 @cannikin
- Apollo: Remove unnecessary refetchQuery calls #1497 @cannikin
- Tests: update Cell tests to just test that nothing is thrown #1397 @cannikin
- Tests: default sides to “all” in test command #1414 @cannikin
- CLI: updated the CLI command rw generate deploy anchor links to match the documentation for Netlify and Vercel #1422 @dhausser
- Docs: update contributors #1430 @thedavidprice
- Docs: Update create-redwood-app readme to fix npm result #1484 @jacebenson
- Ops: use api/db for E2E test #1500 @thedavidprice
- Prisma: Upgrade to Prisma
v2.11.0
#1499 @thedavidprice- 2.11.0 Release Notes
- Native database types in the Prisma schema (Preview)
- New types in the Prisma schema: BigInt, Bytes and Decimal (Preview)
- Set foreign keys directly (Preview)
- 2.10.2 Release Notes
- 2.10.1 Release Notes
- 2.10.0 Release Notes
- Support for Microsoft SQL Server (Preview)
- Single-command schema changes for prototyping
prisma db push
(Preview)
- 2.11.0 Release Notes
Added
- Auth: added multiproviders to firebase auth! #1412 @dac09
- TS: converted @redwoodjs/forms to TypeScript! #1431 @Tobbe
- Dev: experimental support for React fast-refresh! #1461 #1463 #1464 @dac09
- see “Highlights” above for instructions
- Ops: GH Action to create packages from PRs #1459 #1485 #1477 @Tobbe
- Storybook: add
open
flag,yarn rw storbook --open
will now open the browsers. #1445 @jvanbaarsen - Storybook: add Redwood’s “node” Webpack config to Storybook’s Webpack config. #1491 @jderrough
- Server: http server tweaks. #1441 @peterp
- Prisma: added
{ redwood { prismaVersion } }
field to GraphQL #1425 @jvanbaarsen - Prisma: add ability to specify a custom path for the
prisma.schema
#1424 @dhausser - CRWA: Quick start message added to
yarn create redwood-app
#1388 @kevPo
Fixes
- Prisma: fix field resolver not working #1440 @AntonioMeireles
- Prisma: bug fix
prisma.disconnect
deprecated warning #1404 @guillaumeLamanda - Prisma: fixes setting Prisma Version in root redwood schema #1442 @AntonioMeireles
- Prisma: use original prisma schema path #1486 #1488 @peterp
- Generator: fix nested scaffolding QUERY import paths #1432 @forresthayes
- Fixes DB Generators failing when a schema path includes spaces or other problematic characters #1492 @dthyresson
- Tests: fix
rw test
logic #1415 @cannikin - Tests: overwritten DATABASE_URL wasn’t being used in actual Jest run #1446 @cannikin
- Tests: run jest api tests in sequence. #1447 @cannikin
- Tests: fix tests when the project app path includes spaces or other problematic characters #1494 @dthyresson
- Setup: fix tailwindcss setup command #1407 @mohinderps
- Docs: fix a typo in the contribution guide #1401 @olance
- Docs: fix typo in User route param types section #1466 @ajcwebdev
- Storybook: launch Storybook with path w/ spaces #1495 @dthyresson
Breaking
[Minor Change] In this release, the Apollo fetchPolicy
and nextFetchPolicy
were changed for Redwood Cell’s beforeQuery
. It’s possible that cache behavior may change for custom implementations of Apollo cache configuration. However, it’s unlikely the majority of Redwood projects will experience any changes after upgrading — tests demonstrated backwards compatibility. (See #1428) Also relevant are updates to Scaffold Generators no longer requiring refetchQuery
calls. Note: existing refetchQuery
configuration is backwards compatible. (See #1497)
How to upgrade RedwoodJS to v0.21.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
The following code modifications are recommended but not required.
- [Recommended] Rename
api/prisma
toapi/db
This change is not required. New installations of Redwood now use the directoryapi/db
instead ofapi/prisma
. If you change the directory name in your project, you must also add aschemaPath
config toredwood.toml
. See #116 for code change example.
// redwood.toml
...
[api]
port = 8911
schemaPath = "./api/db/schema.prisma"
...
- [Recommended] Remove
schema.prisma
“rhel-openssl-1.0.x”binaryTarget
Prisma v2.11.0 (included in this release) fixes the requirement for adding “rhel-openssl-1.0.x”. Removing thisbinaryTarget
may also reduce the size of the built API. See #115 for code change example.
// api/db/schema.prisma
...
generator client {
provider = "prisma-client-js"
binaryTargets = "native"
}
...
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.
Redwood Releases on GitHub
You can see all Redwood release notes and version history on GitHub