npm @redwoodjs/core 0.47.0
v0.47.0

latest releases: 8.0.0-canary.640, 8.0.0-canary.639, 7.6.0-rc.73...
2 years ago

Recommended Code Modification

This code modification is recommended but not required.

PR #4167 adds a shiny ✨ new Runtime Error Page. New projects ship with the updated code. To use the new Error Page with existing projects, the following code modification is required.

Option 1: Automated Code Mod

To automatically apply the required code mods, run this command:

npx @redwoodjs/codemods@canary update-dev-fatal-error-page

Option 2: Manual Code Mod

Only make these changes if you did not use the automated code mod above.

Update the file web/src/pages/FatalErrorPage/FatalErrorPage.js|tsx:

  1. Add a variable and condition for RedwoodDevFatalErrorPage use in development:
+ // Ensures that production builds do not include the error page
+ let RedwoodDevFatalErrorPage = undefined
+ if (process.env.NODE_ENV === 'development') {
+   RedwoodDevFatalErrorPage =
+   require('@redwoodjs/web/dist/components/DevFatalErrorPage').DevFatalErrorPage
+ }
  1. Update export with a condition for production and development:
- export default () => (
+ export default RedwoodDevFatalErrorPage ||
+ (() => (

Changelog

Unique contributors: 8

PRs merged: 13

Features

  • Provide a Revised Runtime Error Page #4167 by @orta
    • CODE MOD: this feature requires a code modification for existing projects
  • g secret: raw output #4523 by @Tobbe
  • Support for undefined as a value for service validators #4534 by @realStandal
  • Deprecate 'rw open' command #4555 by @thedavidprice
    • DEPRECATION: the redwood open command has been fully deprecated

Fixed

  • fix: allow boolean for some validators in validation recipe #4528 by @aguscha333
  • create-redwood-app: Correct --overwrite description #4542 by @Tobbe
  • fix: link anchor to dataMigrate up docs #4558 by @Jolg42

Chore

Package Dependencies

View all Dependency Version Upgrades

Don't miss a new core release

NewReleases is sending notifications on new releases.