v0.31.0 Highlights 🎉
🥇 All generators now support typescript
We're working hard to have full typescript support for 1.0, and this release we're making it a lot easier for the TS crowd. All Redwood generators now generate typescript — and it even auto-detects if your Redwood project is in TypeScript
🔐 Built in support for verifiying webhooks
Do you wince whenever you realise you have to actually verify the webhooks your application receives? Fear not, this release Redwood brings you built-in support for checking the webhook signatures, including a plethora of common verification methods — SHA256, JWT, among others.
📦 New deploy provider Render
It's now super easy to setup a "serverful" deployment, with a database included, thanks to our friends at Render. In typical Redwood fashion, of course, it's one CLI command to get everything setup.
- Get started with the Render Redwood Deployment doc
Fixed
- Fix "yarn rw test web" in e2e tests (#2329) 4c8c894 @peterp
- Fix type for update service function (#2326) d1ea508 @dac09
- Disable role linting in Routes (#2318) 293c99d @jtoar
- Teardown should attempt to delete dbName table (#2083) 36b6f91 @nexneo
- Restore @storybook/addon-a11y (#2309) 0b93201 @jtoar
- Auth: Implement automatic token refresh on supported providers (#2277) 3557f70 @dthyresson @dac09
- Move api-server dep from api to cli (#2307) 89c1310 @dac09
- logger.ts: Fix comment spelling (#2256) 006a1dd @Tobbe
- Fix page generator taking in ts | Fix rw serve crashing out cli (#2335) @dac09
- Adds process and require to eslint config web (#2354) @dthyresson
Added
- Verify signatures for secure webhooks and functions (#1843) 2780246 @dthyresson
- Webhooks: Handle base64 encoded webhook payloads (#2340) @dthyresson
- Serve web/dist with
yarn rw serve web
(#2234) 22ea3fc @dac09 - Handle focus on route change (#2321) 99575c3 @jtoar
- Support generating typescript cells and pages | Autodetect ts project (#2279) adcc6d7 @dac09
- Add import type to configuration files (#2214) 555c72c @renansoares
- Adding Setup Deploy Render Command (#2099) e4cfe34 @SEANDOUGHTY
- Updates to Redwood-Render integration (#2336) @SEANDOUGHTY
- Static typing for cells (#2208) 0730651 @corbt
Changed
- Upgraded pino and new related types for PinoPretty (#2330) 930eda7 @dthyresson
- create-redwood-app messages: moved app start commands to end (#2278) 5432900 @qooqu
- Recommended Babel package upgrades (dependabot) (#2255) 05639db @thedavidprice
- Update CONTRIBUTING.md (#2084) a02bee5 @qooqu
- Router README: Pass props to set wrappers (#2257) 7be2581 @Tobbe
- [Internal] Adds skipLibCheck flag to tsconfig (#2175) b09a967 @dac09
Dependabot updates
- Bump @reach/skip-nav from 0.13.2 to 0.15.0 (#2237) 61e0f8e dependabot[bot]
- Bump core-js from 3.6.5 to 3.10.1 (#2243) 3e0e1eb dependabot[bot]
- Bump react-refresh from 0.9.0 to 0.10.0 (#2195) 5ce8336 dependabot[bot]
- Bump mini-css-extract-plugin from 1.3.9 to 1.4.1 (#2240) a0aece0 dependabot[bot]
- Bump esbuild from 0.9.0 to 0.11.6 (#2241) 1ded37e dependabot[bot]
- Bump @testing-library/user-event from 12.5.0 to 13.1.2 (#2254) 2722a6c dependabot[bot]
- Bump prompts from 2.4.0 to 2.4.1 (#2194) 42cb13b dependabot[bot]
- Bump firebase-admin from 9.5.0 to 9.6.0 (#2185) f98a206 dependabot[bot]
- Bump @testing-library/user-event from 12.5.0 to 13.1.1 (#2196) b74640f dependabot[bot]
- Bump eslint-plugin-jest-dom from 3.6.5 to 3.7.0 (#2184) 5c98e1e dependabot[bot]
Breaking ⚠️
Surprise! Nothing to see here. If you've been keeping up with upgrades for a while, you've earned yourself a treat 🍦
But we have changed the flags on the generator cli. Take a look with yarn redwood generate --help
How to Upgrade
Code Modifications
If you created your project at Redwood v0.30.0
, you are most likely missing .gitignore
in the root directory. Create the file and copy the contents from this reference template/.gitignore
Upgrade Packages to v0.31 from v0.30.x
Run the following command within your App's directory:
yarn redwood upgrade
Ensure yarn has installed everything correctly by running
yarn install --force
Upgrading from an earlier version?
Skipping versions when upgrading is not recommended and will likely cause problems. Please follow the "how to upgrade" sections for each newer version here 👉 https://github.com/redwoodjs/redwood/releases
Upgrading to a version that is not the latest?
The command yarn rw upgrade
will always upgrade to the latest (i.e. most recent) Redwood version. If you need to upgrade incrementally to a earlier, specific release, use the --tag
option. For example, if you need to upgrade from v0.27.0 to v0.28.4, run the following command:
yarn redwood upgrade --tag 0.28.4
Need help or having trouble upgrading packages?
See this forum topic for manual upgrade instructions and general upgrade help.