npm @redwoodjs/core 0.14.0
v0.14.0

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

v0.14.0 Highlights

  • New project Diagnostics command
    • run the command yarn rw diagnostics
  • Customize Jest configuration per Side (e.g. web/ and api/)
    • one more example of Redwood handling the painful integration parts so you can have more fun building your app 🥳
    • ⚠️ this introduces a breaking change to existing applications, see "How to upgrade" section for required manual code changes

Thank you to @aldonline and @RobertBroersma for the highlights above 🚀

And to all the documentation contributors, thank you and keep up the great work!

Changed

  • Tests: configure Jest dynamically per-Side #805 🎉
  • Tests: increase Jest test timeout #845 @Tobbe
  • Cells: Cell's queries are now given an operation name #867 #847
  • Generators: scaffold's table styles #844 @SimeonGriggs
  • Generators: improved Scaffold's details/show page #840 @Tobbe
  • Generators: updatedAt is now ignored in SDL creation #777 @leibowitz
  • Forms: use context to handle coercions #834 @Tobbe

Added

  • CLI: added "diagnostics" command to CLI #842 @aldonline 🎉
  • CLI: added yarn rw sb alias to start Storybook #833

Fixed

  • Auth: fixed the auth generator regex #832
  • Storybook: import the user's default CSS file #821
  • Tests: map MockRouter also map private routes #820
  • Generators: use field name for relation generation #813 @Rosenberg96

Breaking ⚠️

#805 changes how Jest is configured, which breaks yarn rw test for existing applications. See "How to upgrade" below for manual code modification instructions.


How to upgrade RedwoodJS packages to v0.14.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.

Step 1 of 2: 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.

Step 2 of 2: Manual Code Additions

Add two new Jest config files to your Redwood project. For a code example, see PR #78

1. Create api/jest.config.js:

const { getConfig } = require('@redwoodjs/core')

const config = getConfig({ type: 'jest', target: 'node' })
config.displayName.name = 'api'

module.exports = config

2. Create web/jest.config.js

const { getConfig } = require('@redwoodjs/core')

const config = getConfig({ type: 'jest', target: 'browser' })
config.displayName.name = 'web'

module.exports = config

Don't miss a new core release

NewReleases is sending notifications on new releases.