npm @redwoodjs/core 0.48.0
v0.48.0

latest releases: 9.0.0-canary.239, 9.0.0-canary.237, 9.0.0-canary.236...
2 years ago

Highlight: 🧶 Yarn 3 (Preview)

This release adds preview support for using Yarn v3 with Redwood projects. Why would you want to bump from Yarn v1 to v3? Because it's amazingly superior. And it's SuperEasy™ to upgrade and try it out. Just run the codemod:

npx @redwoodjs/codemods@canary upgrade-yarn

Let us know how it goes!

Known Gotchas
Upgrading to Yarn 3 requires corepack. If you're on a Node.js version less than v14.19, you need to install it manually via npm i -g corepack

Code Modification: Webhook timestamp verifiers

This is a required modification for projects using the the timestamp webhook verifier option.

PR #4608 introduces a new option called eventTimestamp. Together with the existing tolerance option it's possible to add timestamp diff checks to all verifiers. But do note that all webhook events won't have the needed timestamp info to implement. That's up to the vendor you're integrating with to include or not include. Currently we know Svix, Clerk and Stripe have the required info.

🚨This PR renames the timestamp webhook verifier option to currentTimestampOverride.

To automatically update your code, simply run this code modification in your Redwood project:

npx @redwoodjs/codemods@canary rename-verifier-timestamp

Manual Upgrade Step
Only necessary if you do not use the automated code mod above.

  1. For any webhook verifier you have a customized timestamp value, you'll need to rename the timestamp object key to currentTimestampOverride. A simple find and replace should do the trick!

Changelog

Unique contributors: 9

PRs merged: 22

Features

  • Enable yarn 3 for Redwood projects #4444 by @jtoar
  • Webhook verifiers: Add Base64Sha256 version for Svix webhooks used by Clerk auth #4598 by @Tobbe
  • feat(exec): Allow listing of scripts with rw exec to improve dx #4600 by @dac09
  • Webhook verifiers: Make them all support timestamp diff check #4608 by @Tobbe
    • BREAKING: see "Code Modifications"

Fixed

Chore

Package Dependencies

View all Dependency Version Upgrades

Don't miss a new core release

NewReleases is sending notifications on new releases.