v8.3.0
Changelog
π§ π¨ Experimental Breaking
π οΈ 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.
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 detailsfix(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(deps): update babel monorepo (#11633) by @renovate
- chore(deps): update eslint monorepo (#11634) by @renovate
- chore(deps): update dependency firebase to v10.13.2 (#11632) by @renovate
- chore(deps): update dependency @supabase/supabase-js to v2.45.4 (#11631) by @renovate
- chore(deps): update dependency nodemon to v3.1.7 (#11627) by @renovate
- chore(deps): update dependency esbuild to v0.24.0 (#11622) by @renovate
- fix(deps): update dependency @swc/core to v1.7.28 (#11617) by @renovate
- fix(deps): update dependency @rollup/pluginutils to v5.1.2 (#11616) by @renovate
- fix(deps): update dependency @types/node to v20.16.6 (#11618) by @renovate
- fix(deps): update dependency vite-plugin-cjs-interop to v2.1.4 (#11613) by @renovate
- chore(deps): update prisma monorepo to v5.20.0 (#11615) by @renovate
- fix(deps): update dependency vite to v5.4.7 (#11612) by @renovate
- chore(deps): update dependency rollup to v4.22.4 [security] (#11604) by @renovate
- fix(deps): update dependency find-my-way to v8.2.2 [security] (#11585) by @renovate
- fix(deps): update dependency vite to v5.4.6 [security] (#11580) by @renovate
π§Ή Chore
Click to see all chore contributions
- chore(deps): update dependency eslint-plugin-perfectionist to v3.7.0 (#11630) by @renovate
- chore(deps): update dependency eslint-plugin-package-json to v0.15.3 (#11629) by @renovate
- chore(deps): update dependency eslint-plugin-n to v17.10.3 (#11628) by @renovate
- chore(deps): update github/codeql-action digest to 461ef6c (#11625) by @renovate
- chore(deps): update actions/setup-node digest to 0a44ba7 (#11624) by @renovate
- chore(deps): update chore (#11626) by @renovate
- chore(deps): Bump rollup (#11623) by @Josh-Walker-GM
- chore(deps): update dependency publint to v0.2.11 (#11621) by @renovate
- chore(deps): update dependency knip to v5.30.5 (#11619) by @renovate
- chore(deps): update dependency publint to v0.2.11 (#11620) by @renovate
- chore(deps): update dependency memfs to v4.12.0 (#11614) by @renovate
- chore(deps): update dependency @types/qs to v6.9.16 (#11611) by @renovate
- chore(deps): update dependency @types/nodemailer to v6.4.16 (#11610) by @renovate
- chore(deps): update dependency @types/lodash to v4.17.9 (#11609) by @renovate
- chore(deps): update dependency @types/jsonwebtoken to v9.0.7 (#11608) by @renovate
- chore(deps): update dependency @types/estree to v1.0.6 (#11607) by @renovate
- chore(deps): update dependency @playwright/test to v1.47.2 (#11606) by @renovate
- chore(deps): update dependency @arethetypeswrong/cli to v0.16.4 (#11586) by @renovate
- chore(test-project): Update TailwindCSS (#11583) by @Tobbe