Skip to content

v8.3.0

Compare
Choose a tag to compare
@Josh-Walker-GM Josh-Walker-GM released this 25 Sep 01:23
· 359 commits to main since this release
b6e6805

Changelog

🚧 🚨 Experimental Breaking

chore(deps): Upgrade to React 19 RC 20240916 (#11575) by @Tobbe Please see #11575 for more details

πŸ› οΈ Fixes

fix `NODE_OPTIONS` env forwarding (#11587) by @cometkim

This change updates how we pass through any NODE_OPTIONS when you run the API side development server with yarn rw dev. Previously there may have been issues like unescaped spaces in paths which would have produced errors like:

api | node:events:497
api |       throw er; // Unhandled 'error' event
api |       ^
api |
api | Error: spawn space.js --enable-source-maps ENOENT
api |     at ChildProcess._handle.onexit (node:internal/child_process:286:19)
api |     at onErrorNT (node:internal/child_process:484:16)
api |     at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
api | Emitted 'error' event on ChildProcess instance at:
api |     at ChildProcess._handle.onexit (node:internal/child_process:292:12)
api |     at onErrorNT (node:internal/child_process:484:16)
api |     at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
api |   errno: -2,
api |   code: 'ENOENT',
api |   syscall: 'spawn space.js --enable-source-maps',
api |   path: 'space.js --enable-source-maps',
api |   spawnargs: [
api |     'yarn',
api |     'nodemon',
api |     '--quiet',
api |     '--watch',
api |     '/Users/jgmw/Development/redwood/rw-test/node_options_fix/redwood.toml',
api |     '--exec',
api |     'yarn rw-api-server-watch       --port 8911       --debug-port 18911       | rw-log-formatter'
api |   ]
api | }
api |
api | Node.js v20.17.0

Now these sort of error should no longer occur.

fix(dbAuth): Fix WebAuthn when authModelAccessor is set to a custom value (#11605) by @antonmoiseev

Previously if you had setup dbAuth with WebAuthn support and had chosen to rename the User and UserCredential models to some other name, such as Account and AccountCredential then dbAuth would have failed with an error something like:

{
  "error": "this.dbCredentialAccessor.findFirst(...).user is not a function"
}

This change fixes the database access so that it correctly takes into account the configured authModelAccessor.

Note: You should ensure your WebAuthn table has a unique index applied on the configured id column. Something like what our setup command generates will work great:

model UserCredential {
  id         String @id // <-- Note the index!
  ...
}
Fix storybook-vite not starting when `auth.ts` contains named imports after `createAuth` (#11593) by @Philzen

This change fixes an issue with our internal storybook mocks. Previous to this you might find that your storybook would fail with an error like:

3:49:51 PM [vite] Internal server error: Transform failed with 1 error:
…/web/src/auth.ts:2:9: ERROR: Expected identifier but found ","
  Plugin: vite:esbuild
  File: …/web/src/auth.ts:3:6

  Expected identifier but found ","
  1  |  import { createAuthentication as createAuth } from '@redwoodjs/testing/dist/web/mockAuth.js'
  2  |  import { , createDbAuthClient } from '@redwoodjs/auth-dbauth-web';
     |           ^
  3  |  const dbAuthClient = createDbAuthClient();
  4  |  export const {

This was due to a bug in our handling of imports which this change fixes.

Fixes `yarn rw jobs clear` command (#11578) by @cannikin
fix(graphql): Allow including 'File' scalar by default to be disabled (#11540) by @Josh-Walker-GM

As of v8.0.0 a File scalar was added to your graphql schema by default. This could be problematic if you wanted to define your own File scalar.

With this change it is now possible to disable including this scalar by default. To see how to do so look at the Default Scalar section of the Graphql docs here

Default NODE_ENV to "development" if it's `undefined` when starting jobs worker (#11572) by @cannikin

This mimics the behavior of yarn rw dev where NODE_ENV will equal development if you don't set it explicitly.

🚧 πŸ› οΈ Experimental Fixes

Revert "fix(rsc): Set a yarn resolution for rollup 4.21.3 (#11592)" (#11600) by @Tobbe Please see #11600 for more details
fix(rsc): Set a yarn resolution for rollup 4.21.3 (#11592) by @Tobbe Please see #11592 for more details

πŸ“š Docs

fix(docs): warn that uploads/storage is experimental (#11590) by @Josh-Walker-GM Please see #11590 for more details

πŸ“¦ Dependencies

Click to see all dependency updates

🧹 Chore

Click to see all chore contributions

🚧 🧹 Experimental Chore

Click to see all chore contributions
  • chore(rsc): Simplify RscRoutes by removing external promise (#11574) by @Tobbe