πŸš€ RWJS v0.6.0 is Now Available

Along with bug fixes, ENV var support, Router enhancements, and improved TypeScript support, this release introduces a new workflow with CLI tools for contributing to the RedwoodJS Framework. For more information, please read CONTRIBUTING.md :star_struck:

Changed

  • Prisma: upgrade to Prisma-2.0.0-beta.3 #457
  • Config: Only use redwood-eslint-plugin when in a redwood project #443
  • Framework: build core packages and reference them correctly #456
  • TypeScript: Let api-dev-server and webpack load .ts and .tsx files #438

Added

  • CLI: Add workflow tools for local development #429 #442
    • split rwdev watch into copy and copy:watch #445 @jtoar
    • fix build:watch scripts and own add own resolve function #455
    • edit CONTRIBUTING.md #435 @jtoar
  • Config: support ENV vars in webpack projects #430 @snormore
    • write tests and docs for environmental variables #444
  • Router: add useMatch for crafting stateful links #416 @RobertBroersma
  • TypeScript: Setup TS Project References #359 @mohsen1
  • CLI: add β€˜yarn rw upgrade’ helper to upgrade @redwoodjs packages #436

Fixed

  • Router: fixes validatePath duplicate params & reject spaces in routes #420 @olance
  • Deploy: add process.exit(1) to ensure Netlify build fails on error #447
  • CLI: fixes mutation constant names in generated code #458
  • Docs: fix link markup #459 @benmccann

Breaking :warning:

Breaking changes only apply to Apps upgrading from previous versions.

Prisma-2.0.0-beta.3 has two major changes that may affect some applications upgrading from previous Redwood versions.

  • Enums are now disallowed for SQLite
  • Required 1-1 self relations are forbidden now

Release notes are available here.

How to upgrade RedwoodJS packages to v0.6.0

Redwood v0.6.0 includes a new CLI command to upgrade @redwoodjs NPM packages. However, you must first upgrade to v0.6.0 to use yarn rw upgrade

Update your @redwoodjs/* packages.

Four packages should be updated to v0.6.0

Root directory package.json

  • "@redwoodjs/core": "^0.6.0”

web/package.json

  • "@redwoodjs/web": "^0.6.0”
  • "@redwoodjs/router": "^0.6.0”

api/package.json

  • "@redwoodjs/api": "^0.6.0”

After updating and saving the files, install the packages from the root directory:
$ yarn install

Redwood Releases on GitHub

You can see all Redwood release notes and version history on GitHub.

8 Likes

Local dev and contributing is shockingly easy. Great work on the dev workflow!

3 Likes

That’s all the very fine work of @peterp :fire::fire:

1 Like