Skip to content

Releases: redwoodjs/redwood

v7.0.0

20 Feb 04:47
Compare
Choose a tag to compare

Upgrade Guide

https://community.redwoodjs.com/t/redwood-v7-0-0-upgrade-guide/5713

Changelog

Breaking

  • chore(crwa): remove React prop-types package #9206 by @jtoar
  • fix(cli): Exit with non-zero exit code when yarn rw g types has errors #9280 by @Josh-Walker-GM
  • update node to v20 #9701
  • feat(CLI): add check node version middleware, rm .nvmrc, yarn engines #9728 by @jtoar
  • Adds allowedUserFields option to define the only data that can be returned to client by dbAuth functions #9374 by @cannikin
  • @testing-library/jest-dom v6 upgrade #9719 by @Tobbe
  • 7.0 RC: Remove hardcoded check for session.id #10013 by @cannikin

GraphQL

  • fix: Improve GraphQL Schema Validation to allow Subscription types when not using Realtime and ensure schema does not use reserved names #9005 by @dthyresson
  • feat: Support GraphQL Fragments with Apollo Client and Fragment Registry #9140 by @dthyresson
  • feature: Realtime setup and generator commands out of experimental and into main cli #9342 by @dthyresson
  • feature: Support GraphQL Trusted Documents aka Persisted Operations for added security #9416 by @dthyresson
  • Trusted Documents docs: Proofreading corrections #9737 by @Tobbe
  • Allow GraphQL documents to be typed with a TypedDocumentNode for fully-typed result and variables objects #9619 by @dthyresson
  • feat(scaffold/cell): Adds TypedDocument Support to Cell and Scaffold Generators #9693 by @dthyresson
  • Feat: Gql fragments support for prerender. Clean up crwa templates #9594 by @dthyresson
  • yarn rw setup graphql fragments #9811 by @Tobbe
  • feat: Adds Setup CLI Command to Configure GraphQL Trusted Documents #9800 by @dthyresson
  • prerender: Enable Trusted Documents support #9825 by @Tobbe
  • Add support for Prisma Bytes and GraphQL scalar Byte #9847 by @Tobbe
  • fix(gql): Better graphql.config.js template #9957 by @Tobbe
  • feat(gql): Codemod existing projects to get newest gql config #9959 by @Tobbe

Sentry

Server

  • Fastify config: Use exact file extension in log message #9828 by @Tobbe
  • Improve how the api-server watch command works #9841 by @Tobbe
  • fix(server): ensure consistency between CLI serve entrypoints regarding help and strict #9809 by @jtoar
  • feat(server file): add createServer #9845 by @jtoar
  • chore(server): dedupe web serve logic #9884 by @jtoar
  • chore(cli): Move coerceRootPath() #9891 by @Tobbe
  • fix(serve): fix server listening logs #9894 by @jtoar
  • feat(server): dedupe api server code, make host configurable #9948 by @jtoar
  • fix(server): spelling, fix deploy handler imports, dedupe server builder #9949 by @jtoar
  • fix(api-server): Remove duplicate command alias #9950 by @Tobbe
  • fix(server): use file extension in import, fix graphql route registering #9984 by @jtoar
  • fix(server): fix env var loading in createServer #10021 by @jtoar

Studio

Features

  • add TS support for storybook preview tsx config extension #9309 by @bnn1
  • useRoutePaths #9755 by @Tobbe
  • useRouteName #9758 by @Tobbe
  • useRoutePath(): Get the path for the current route by default #9790 by @Tobbe
  • Add routeParams to useMatch #9793 by @Tobbe
  • Add cli-helpers util to update redwood.toml #9832 by @Tobbe
  • describeScenario docs #9706 by @cjreimer
  • feat(testing): Add describeScenario utility to group scenario tests #9866 by @dac09
  • feat(dbAuth): Refactor dbAuthHandler to support WebAPI Request events #9835 by @dac09
  • feat(deps): update prisma monorepo to v5.9.1 #9980

Fixes

Docs

Chores

  • chore(esm): convert crwa to esm and bundle #9786 by @jtoar
  • chore(build): Avoid prebuilding api side, instead use an esbuild plugin #9767 by @dac09
  • chore(esm): convert @redwoodjs/project-config to ESM #9870 by @jtoar
  • chore(esm): convert @redwoodjs/cli-helpers to ESM #9872 by @jtoar
  • chore(api-server): switch to vitest #9929 by @Josh-Walker-GM

Dependencies

Click to see all upgraded dependencies
  • chore(deps): update dependency graphiql to v3 #9674
  • chore(deps): update dependency node to v20 #9701
  • chore(deps): update dependency @envelop/core to v5 #9669
  • fix(deps): update dependency sqlite to v5 #9698
  • fix(deps): update dependency react-helmet-async to v2 #9697
  • chore(deps): update babel monorepo #9892
  • chore(deps): update dependency esbuild to v0.20.0 #9897
  • chore(deps): update dependency @envelop/types to v5 #9899
  • fix(deps): update dependency @envelop/disable-introspection to v6 #9901
  • chore(deps): update dependency @envelop/testing to v7 #9898
  • fix(deps): update dependency @envelop/filter-operation-type to v6 #9902
  • fix(deps): update dependency @envelop/live-query to v7 #9903
  • fix(deps): update dependency @envelop/on-resolve to v4 #9904
  • fix(deps): update dependency @envelop/depth-limit to v4 #9905
  • fix(deps): update dependency @graphql-yoga/plugin-defer-stream to v3 #9906
  • fix(deps): update dependency @graphql-yoga/plugin-graphql-sse to v3 #9907
  • fix(deps): update dependency vite to v4.5.2 [security] #9852
  • chore(deps): update dependency firebase to v10.7.0 #9605
  • fix(deps): update dependency webpack to v5.90.0 #9911
  • fix(deps): update dependency react-hook-form to v7.49.3 #9910
  • fix(deps): update dependency graphql-yoga to v5.1.1 #9913
  • fix(deps): update dependency @graphql-yoga/subscription to v5 #9912
  • fix(deps): update dependency @graphql-yoga/plugin-persisted-operations to v3 #9908
  • fix(deps): update dependency @graphql-yoga/redis-event-target to v3 #9909
  • chore(deps): update dependency lerna to v8.0.2 #9914
  • fix(deps): update storybook monorepo to v7.6.10 #9917
  • chore(deps): update dependency vitest to v1.2.2 #9915
  • fix(deps): update apollo graphql packages #9916
  • chore(deps): update dependency @playwright/test to v1.41.1 #9918
  • fix(deps): update dependency graphql-sse to v2.5.2 #9921
  • fix(deps): update dependency fastify to v4.25.2 #9920
  • fix(deps): update dependency core-js to v3.35.1 #9919
  • fix(deps): update dependency @clerk/clerk-sdk-node to v4.13.7 #9923
  • chore(deps): update dependency @testing-library/dom to v9.3.4 #9924
  • fix(deps): update dependency @testing-library/user-event to v14.5.2 #9925
  • chore(deps): update dependency @clerk/clerk-react to v4.30.3 #9922
  • chore(deps): update dependency @testing-library/jest-dom to v6.3.0 #9926
  • chore(deps): bump follow-redirects from 1.15.3 to 1.15.4 in /docs #9818
  • chore(deps): bump @fastify/reply-from from 9.4.0 to 9.6.0 #9813
  • chore(deps): bump follow-redirects from 1.15.2 to 1.15.4 #9817
  • fix(deps): update dependency nodemailer to v6.9.9 [security] #9951
  • fix(deps): update dependency firebase-admin to v11.11.1 #9953

v7.0.0-rc.x

30 Jan 11:26
Compare
Choose a tag to compare
v7.0.0-rc.x Pre-release
Pre-release

Upgrade Guide

https://community.redwoodjs.com/t/redwood-v7-0-0-rc-is-now-available/5713

Changelog

Breaking

  • chore(crwa): remove React prop-types package #9206 by @jtoar
  • fix(cli): Exit with non-zero exit code when yarn rw g types has errors #9280 by @Josh-Walker-GM
  • update node to v20 #9701
  • feat(CLI): add check node version middleware, rm .nvmrc, yarn engines #9728 by @jtoar
  • Adds allowedUserFields option to define the only data that can be returned to client by dbAuth functions #9374 by @cannikin
  • @testing-library/jest-dom v6 upgrade #9719 by @Tobbe
  • 7.0 RC: Remove hardcoded check for session.id #10013 by @cannikin

GraphQL

  • fix: Improve GraphQL Schema Validation to allow Subscription types when not using Realtime and ensure schema does not use reserved names #9005 by @dthyresson
  • feat: Support GraphQL Fragments with Apollo Client and Fragment Registry #9140 by @dthyresson
  • feature: Realtime setup and generator commands out of experimental and into main cli #9342 by @dthyresson
  • feature: Support GraphQL Trusted Documents aka Persisted Operations for added security #9416 by @dthyresson
  • Trusted Documents docs: Proofreading corrections #9737 by @Tobbe
  • Allow GraphQL documents to be typed with a TypedDocumentNode for fully-typed result and variables objects #9619 by @dthyresson
  • feat(scaffold/cell): Adds TypedDocument Support to Cell and Scaffold Generators #9693 by @dthyresson
  • Feat: Gql fragments support for prerender. Clean up crwa templates #9594 by @dthyresson
  • yarn rw setup graphql fragments #9811 by @Tobbe
  • feat: Adds Setup CLI Command to Configure GraphQL Trusted Documents #9800 by @dthyresson
  • prerender: Enable Trusted Documents support #9825 by @Tobbe
  • Add support for Prisma Bytes and GraphQL scalar Byte #9847 by @Tobbe
  • fix(gql): Better graphql.config.js template #9957 by @Tobbe
  • feat(gql): Codemod existing projects to get newest gql config #9959 by @Tobbe

Sentry

Server

  • Fastify config: Use exact file extension in log message #9828 by @Tobbe
  • Improve how the api-server watch command works #9841 by @Tobbe
  • fix(server): ensure consistency between CLI serve entrypoints regarding help and strict #9809 by @jtoar
  • feat(server file): add createServer #9845 by @jtoar
  • chore(server): dedupe web serve logic #9884 by @jtoar
  • chore(cli): Move coerceRootPath() #9891 by @Tobbe
  • fix(serve): fix server listening logs #9894 by @jtoar
  • feat(server): dedupe api server code, make host configurable #9948 by @jtoar
  • fix(server): spelling, fix deploy handler imports, dedupe server builder #9949 by @jtoar
  • fix(api-server): Remove duplicate command alias #9950 by @Tobbe
  • fix(server): use file extension in import, fix graphql route registering #9984 by @jtoar
  • fix(server): fix env var loading in createServer #10021 by @jtoar

Studio

Features

  • add TS support for storybook preview tsx config extension #9309 by @bnn1
  • useRoutePaths #9755 by @Tobbe
  • useRouteName #9758 by @Tobbe
  • useRoutePath(): Get the path for the current route by default #9790 by @Tobbe
  • Add routeParams to useMatch #9793 by @Tobbe
  • Add cli-helpers util to update redwood.toml #9832 by @Tobbe
  • describeScenario docs #9706 by @cjreimer
  • feat(testing): Add describeScenario utility to group scenario tests #9866 by @dac09
  • feat(dbAuth): Refactor dbAuthHandler to support WebAPI Request events #9835 by @dac09
  • feat(deps): update prisma monorepo to v5.9.1 #9980

Fixes

Docs

Chores

  • chore(esm): convert crwa to esm and bundle #9786 by @jtoar
  • chore(build): Avoid prebuilding api side, instead use an esbuild plugin #9767 by @dac09
  • chore(esm): convert @redwoodjs/project-config to ESM #9870 by @jtoar
  • chore(esm): convert @redwoodjs/cli-helpers to ESM #9872 by @jtoar
  • chore(api-server): switch to vitest #9929 by @Josh-Walker-GM

Dependencies

Click to see all upgraded dependencies
  • chore(deps): update dependency graphiql to v3 #9674
  • chore(deps): update dependency node to v20 #9701
  • chore(deps): update dependency @envelop/core to v5 #9669
  • fix(deps): update dependency sqlite to v5 #9698
  • fix(deps): update dependency react-helmet-async to v2 #9697
  • chore(deps): update babel monorepo #9892
  • chore(deps): update dependency esbuild to v0.20.0 #9897
  • chore(deps): update dependency @envelop/types to v5 #9899
  • fix(deps): update dependency @envelop/disable-introspection to v6 #9901
  • chore(deps): update dependency @envelop/testing to v7 #9898
  • fix(deps): update dependency @envelop/filter-operation-type to v6 #9902
  • fix(deps): update dependency @envelop/live-query to v7 #9903
  • fix(deps): update dependency @envelop/on-resolve to v4 #9904
  • fix(deps): update dependency @envelop/depth-limit to v4 #9905
  • fix(deps): update dependency @graphql-yoga/plugin-defer-stream to v3 #9906
  • fix(deps): update dependency @graphql-yoga/plugin-graphql-sse to v3 #9907
  • fix(deps): update dependency vite to v4.5.2 [security] #9852
  • chore(deps): update dependency firebase to v10.7.0 #9605
  • fix(deps): update dependency webpack to v5.90.0 #9911
  • fix(deps): update dependency react-hook-form to v7.49.3 #9910
  • fix(deps): update dependency graphql-yoga to v5.1.1 #9913
  • fix(deps): update dependency @graphql-yoga/subscription to v5 #9912
  • fix(deps): update dependency @graphql-yoga/plugin-persisted-operations to v3 #9908
  • fix(deps): update dependency @graphql-yoga/redis-event-target to v3 #9909
  • chore(deps): update dependency lerna to v8.0.2 #9914
  • fix(deps): update storybook monorepo to v7.6.10 #9917
  • chore(deps): update dependency vitest to v1.2.2 #9915
  • fix(deps): update apollo graphql packages #9916
  • chore(deps): update dependency @playwright/test to v1.41.1 #9918
  • fix(deps): update dependency graphql-sse to v2.5.2 #9921
  • fix(deps): update dependency fastify to v4.25.2 #9920
  • fix(deps): update dependency core-js to v3.35.1 #9919
  • fix(deps): update dependency @clerk/clerk-sdk-node to v4.13.7 #9923
  • chore(deps): update dependency @testing-library/dom to v9.3.4 #9924
  • fix(deps): update dependency @testing-library/user-event to v14.5.2 #9925
  • chore(deps): update dependency @clerk/clerk-react to v4.30.3 #9922
  • chore(deps): update dependency @testing-library/jest-dom to v6.3.0 #9926
  • chore(deps): bump follow-redirects from 1.15.3 to 1.15.4 in /docs #9818
  • chore(deps): bump @fastify/reply-from from 9.4.0 to 9.6.0 #9813
  • chore(deps): bump follow-redirects from 1.15.2 to 1.15.4 #9817
  • fix(deps): update dependency nodemailer to v6.9.9 [security] #9951
  • fix(deps): update dependency firebase-admin to v11.11.1 #9953

v6.6.4

25 Jan 01:36
Compare
Choose a tag to compare

Patch Release

  • fix(crwa): remove yarn-install option for yarn 1 #9881 by @jtoar

    This only affects yarn create redwood-app. This PR removes the ability to run yarn install when using yarn v1 to run yarn create redwood-app. Users are expected to cd into the new directory and run yarn install there where the correct version will automatically be picked up by corepack.

v6.6.3

25 Jan 01:34
Compare
Choose a tag to compare

Patch Release

  • feat(crwa): Always install using yarn v4 #9861 by @Tobbe

    This only affects yarn create redwood-app. This PR fixes errors in the installation process by changing directories into the new redwood app before running yarn install so that the subprocess uses the correct version of yarn.

v6.6.2

03 Jan 14:55
Compare
Choose a tag to compare

Patch Release

  • fix(dbAuth): Correct hardcoded DB column #9788 by @Josh-Walker-GM

    Logging in with webauthn enabled was broken when you had customised your schema to use different column names than the default. See #8743 for details.

  • fix(fastify): Prevent duplicate @fastify/url-data registration #9794

    A recent change in #9714 introduced a small issue where the @fastify/url-data plugin would register twice and on the second registration would throw an uncaught error. This would cause failures when attempting to launch the server from some entrypoints. See: #9789 for more information.

v6.6.1

01 Jan 14:52
Compare
Choose a tag to compare

Patch Release

Note

If you're using the experimental OpenTelemetry support, and have your config file in a non-standard location this release is breaking.
See further down for more info
TL;DR: Please move the config file to api/src/opentelemetry.ts

  • fix: Support Custom Id Field Names when generating Cells #9778 by @dthyresson

    With this fix in place it's now possible to use yarn rw g cell ModelName for models that use a custom id field name, like uuid or email.

  • fix(baremetal) sshExec() errors not displaying #9743 by @Mirai-Miki

    Running yarn rw deploy baremetal production could sometimes exit without displaying an error. With this fix a nicely formated error is now displayed

  • fix(studio): Fix windows path issues #9752 by @Josh-Walker-GM

    Removes some assumptions of / as the path separator.

  • fix(path-alias): Fix aliasing of paths using ts/jsconfig #9574 by @dac09

  • Fix supertokens docs & integration issues #9757 by @suzdalnitski

    Adds more details to the Supertokens docs. Especially around environment variables.

    Also updates the api/lib/supertokens.ts template to include apiKey: process.env.SUPERTOKENS_API_KEY.

  • Fixes the way OpenTelemetry setup template uses project-config for port setting #9775 by @dthyresson

    The syntax in the opentelemetry.ts template was wrong. It was using a mix of import and require on the same line. This PR fixes this, so the file can be executed properly

  • fix(otel): Fix OTel sdk loading #9777 by @Josh-Walker-GM

    Problem
    The toml config value that was supported for the experimental OpenTelemetry support points to the source file. It was however being used as if it were pointing to the transpiled version of the file.

    Changes

    1. Switches the opentelemetry.ts file to use import over require syntax.
    2. Removes the apiSdk toml option and now assumes the file exists at api/src/opentelemetry.ts such that it then also exists at api/dist/opentelemetry.js.
    3. Adds a large concurrencyLimit option to the OTel trace exporter. This fixes a limitation of the current redwood studio. This config will be removed in an upcoming change to the redwood studio which will better support the BatchSpanProcessor instead.

    Warning
    If you're using the experimental OpenTelemetry support, and have your config file in a non-standard location this change is breaking.
    Please move the config file to api/src/opentelemetry.ts

  • fix(crwa): use fs.renameSync instead of fs.rename #9787 by @jtoar

  • Adds a note about the two commands you will use with your schema to the top of the schema file #8589 by @orta

    The following comment is now part of the schema.prisma template

     // Don't forget to tell Prisma about your edits to this file using
     // `yarn rw prisma migrate dev` or `yarn rw prisma db push`.
     // `migrate` is like committing while `push` is for prototyping.
     // Read more about both here:
     // https://www.prisma.io/docs/orm/prisma-migrate
    
  • Docker: Update to work with corepack and yarn v4 #9764

    Update our experimental Dockerfile support to work with corepack and yarn v4. If you're using this experimental feature you probably want to run yarn rw exp setup-docker -f to generate a new Dockerfile and compare the changes to your own Dockerfile to see what you might want to incorporate.

  • docs: Update Metadata docs #9744 by @Tobbe

  • docs: added some clarification on serverless functions getting executed in a non-serverless environment #9742 by @suzdalnitski

  • docs: Replaced deprecated <Set private> with PrivateSet within router.md #9749 by @suzdalnitski

  • docs: Make it easier to find useMatch docs #9756 by @Tobbe

  • docs: Supertokens.md: Fix typo #9765 by @Tobbe

  • docs: docker.md: Fix web path #9768 by @Tobbe

v6.6.0

22 Dec 12:19
Compare
Choose a tag to compare

Changelog

Important

While this release includes preliminary support for Yarn v4, upgrading to it is completely optional. If anything doesn't work, you can always downgrade back to Yarn v3. We expect most rough edges to be with deploy providers. If you run into anything, please open an issue!

Features

  • chore(deps): update yarn to v4 #9343

    New Redwood projects will use Yarn v4 out of the box. Yarn v4 includes many new features and fixes like an improved UI, the ability to write constraints in JS instead of Prolog, and a simpler way to get set up all together.

    For existing projects, upgrading to Yarn v4 is fairly simple, but may require changes based on your deploy provider. Here are the steps locally:

    • Enable corepack

      corepack enable
      

      Corepack is a manager for package managers if you will. It's a tool shipped with Node.js 16+ that automatically selects the right package manager and version to run depending on the project you're working on.

    • Update the packageManager field in your project's root package.json to yarn@4.0.2

      -  "packageManager": "yarn@3.7.0" // Or whatever version it happened to be at
      +  "packageManager": "yarn@4.0.2"

      Corepack uses the packageManager field in your root package json to select the package manager and version.

    • Remove yarnPath in .yarnrc.yml and remove .yarn/releases

      Now that you're using Corepack, you don't need yarnPath or the binary in .yarn/releases anymore. You can still use them if you prefer this workflow, but they're not necessary and will take precedence over packageManager.

    • If you previously installed yarn via hombrew or NPM we recommend removing that installation since it can conflict with corepack in some cases:

      brew uninstall yarn
      

      See Yarn's announcement post for more details: https://yarnpkg.com/blog/release/4.0.

  • Support custom @id column name in scaffold #8264 by @samthuang

    An improvement to the scaffold generator now allows columns with custom names to serve as the @id field in the Prisma datamodel. Previously the scaffold generator assumed that the @id field was named "id". This change provides flexibility to specify any name for the @id column if it's marked with the @id attribute in the Prisma datamodel.

  • Adds new <Metadata> component for proper <meta> tag generation #9315 by @cannikin

    The new <Metadata> component allows for a more natural and powerful way to set <head> tags, like <meta ... />. See the new docs at https://redwoodjs.com/docs/seo-head#setting-meta-tags-and-opengraph-directives-with-metadata.

  • Add vscode web debugger and compound #9567 by @xmaxcooking

    Adds two debug configurations to .vscode/launch.json:

    • Web Debugger (launches the built-in chrome web debugger)
    • Compound of Dev + Api + Web (launches a fully-debuggable redwood with a single configuration)
  • Studio: Make port configurable #9709 by @Tobbe

    Makes it possible to configure the base port Redwood Studio uses. The default is 4318. Mailer will use basePort + 1.

  • Preserve trailing whitespace for Markdown, HTML & MJML (RedwoodJS project + create-redwood-app template) #5869 by @Philzen

    While trailing whitespace is just noise in code (well, 99 % of the time...), for markdown it has actual significance. This changes the VS Code configuration to respect it in markdown files.

  • ✨ Added autodocs to component Storybook Stories #9547 by @ahaywood

    For the Storybook component template, tags: ['autodocs'] is added to the meta block:

     const meta: Meta<typeof ${pascalName}> = {
       component: ${pascalName},
    +  tags: ['autodocs']
     }
  • Export SignupHandlerOptions interface and update its userAttributes type #9049 by @c-ciobanu

    You can now use TypeScript generics to get correct typings for userAttributes. For more context, see https://community.redwoodjs.com/t/signuphandleroptions-userattributes-type/5231.

Fixes

  • fix: sentry no longer supports tracing as a seperate package #9542 by @ageddesi

  • fix: Safeguard for Sentry default templates + nitpick #9012 by @HazAT

    This, and the fix above both make sure our Sentry setup script follows the latest best practices and also enables the HTTP Tracing integration for the frontend.

  • Update .vscode/settings.json files for ESLint setting #9723 by @morganmspencer

  • Fix Studio paths #9729 by @Tobbe

  • fix(gitpod): enable corepack to get proper node version #9732 by @colbywhite

  • fix(CLI): fix getDevNodeOptions #9735 by @jtoar

    NODE_OPTIONS="..." yarn rw dev now works as expected.

  • fix(fastify): Server not handling periods in query params #9714

Docs

Core Dependencies

  • fix(deps): update storybook monorepo to v7.6.4 #9647
  • chore(deps): update yarn to v4 #9343
  • chore(deps): update babel monorepo #9718
  • chore(deps): update dependency typescript to v5.3.3 #9645

Dependencies

Click to see all upgraded dependencies
  • chore(deps): update dependency @clerk/clerk-react to v4.28.3 #9643
  • fix(deps): update dependency @clerk/clerk-sdk-node to v4.13.1 #9648
  • fix(deps): update dependency clsx to v2 #9681
  • chore(deps): update postgres docker tag to v16 #9679
  • fix(deps): update dependency ci-info to v4 #9680
  • fix(deps): update dependency core-js to v3.34.0 #9649
  • chore(deps): update dependency @clerk/types to v3.60.0 #9644
  • chore(deps): update dependency typescript to v5.3.3 #9645

v6.5.1

07 Dec 20:34
Compare
Choose a tag to compare

Patch Release

  • fix(deps): update prisma monorepo to v5.7.0 #9642

    Users were facing issues deploying to Netlify on Node.js 20. Prisma would fail during runtime saying it couldn't locate the engine binary. This Prisma minor includes the fix; read more in the Prisma release notes.

    (Note that Redwood doesn't officially support Node.js 20 yet, but their deploys were upgrading from underneath them due to the unpinned .nvmrc; see v6.4.2)

  • fix(cli): avoid calling rw-vite-build via yarn #9624 by @jtoar

    This PR starts optimizing Redwood's memory usage during build. Redwood has always had memory problems on certain deploy providers. But many users have reported that v6 seems to be more problematic than usual. To address this, we started profiling CLI commands, looking at the amount of memory used and the number of processes spawned, starting with yarn rw build. We found that using yarn internally to call a binary seemed to increas memory by ~100 MB compared to using node. The number of processes spawned also dropped by two with this change. While this is far from conclusive, we'd like to get this change in an RC to see if it makes a noticeable difference for users.

    (If you're interested in profiling the amount of memory used by CLI commands, now's a great time to contribute!)

  • fix(CLI): merge NODE_OPTIONS in yarn rw dev #9585 by @jtoar

    This PR merges user-specified NODE_OPTIONS with Redwood's, which is just the --enable-source-maps option:

    NODE_OPTIONS="--no-experimental-fetch" yarn rw dev
    # Resulting NODE_OPTIONS: --no-experimental-fetch --enable-source-maps
    
  • chore: Update Testing documentation to link to How to Test Email/Mailer #9634 by @dthyresson

v6.5.1-rc.0

06 Dec 06:41
Compare
Choose a tag to compare
v6.5.1-rc.0 Pre-release
Pre-release

Patch Release

  • fix(cli): avoid calling rw-vite-build via yarn #9624 by @jtoar

    This PR starts optimizing Redwood's memory usage during build. Redwood has always had memory problems on certain deploy providers. But many users have reported that v6 seems to be more problematic than usual. To address this, we started profiling CLI commands, looking at the amount of memory used and the number of processes spawned, starting with yarn rw build. We found that using yarn internally to call a binary seemed to increas memory by ~100 MB compared to using node. The number of processes spawned also dropped by two with this change. While this is far from conclusive, we'd like to get this change in an RC to see if it makes a noticeable difference for users.

    (If you're interested in profiling the amount of memory used by CLI commands, now's a great time to contribute!)

v6.5.0

05 Dec 20:30
Compare
Choose a tag to compare

Changelog

Fix

  • fix: add custom inspect to work around a Prisma issue that causes console to hang #9623 by @ymc9

    Fixes #8817. (The related Prisma issue: prisma/prisma#18292.) Typing db in the Redwood console (yarn rw console) caused it to hang for ~10 seconds. This PR adds a workaround as suggseted by the Prisma team here: prisma/prisma#19648 (comment).

Core Dependencies

  • update prisma to v5.5.2 #9403
  • update vite to v4.5.1 #9627
  • update @apollo/client to v3.8.8 #9600
  • update storybook to v7.6.3 #9628
  • update react-hook-form to v7.48.2 #9407
  • update webpack to v5.89.0 #9408
  • update typescript to 5.3.2 #9589

Docs

Dependencies

Click to see all upgraded dependencies
  • fix(deps): update dependency graphql-sse to v2.3.0 #9406
  • chore(deps): update dependency @clerk/types to v3.58.0 #9431
  • chore(deps): update dependency @azure/msal-browser to v2.38.3 #9421
  • chore(deps): update dependency graphql-scalars to v1.22.4 #9426
  • chore(deps): update dependency @auth0/auth0-spa-js to v2.1.2 #9420
  • chore(deps): update dependency @clerk/clerk-react to v4.28.0 #9430
  • chore(deps): update dependency @envelop/types to v4.0.1 #9424
  • fix(deps): update dependency @graphql-yoga/plugin-defer-stream to v2.0.5 #9439
  • fix(deps): update dependency fast-glob to v3.3.2 #9442
  • fix(deps): update dependency @graphql-tools/utils to v10.0.8 #9438
  • fix(deps): update dependency systeminformation to v5.21.17 #9446
  • fix(deps): update dependency jsonwebtoken to v9.0.2 #9443
  • fix(deps): update dependency semver to v7.5.4 #9445
  • fix(deps): update dependency @envelop/on-resolve to v3.0.3 #9436
  • fix(deps): update dependency nodemailer to v6.9.7 #9444
  • fix(deps): update dependency @graphql-yoga/plugin-graphql-sse to v2.0.5 #9440
  • fix(deps): update dependency @simplewebauthn/browser to v7.4.0 #9454
  • chore(deps): update dependency firebase to v10.6.0 #9449
  • fix(deps): update dependency firebase-admin to v11.11.0 #9458
  • fix(deps): update dependency @testing-library/user-event to v14.5.1 #9455
  • chore(deps): update dependency supertokens-node to v15.2.1 #9466
  • fix(deps): update dependency jwks-rsa to v3.1.0 #9467
  • fix(deps): update opentelemetry-js monorepo #9468
  • fix(deps): update typescript-eslint monorepo to v5.62.0 #9469
  • chore(deps): update dependency nodemon to v3 #9470
  • fix(deps): update dependency @react-email/render to v0.0.9 #9473
  • fix(deps): update dependency @whatwg-node/fetch to v0.9.14 #9474
  • chore(deps): update dependency @simplewebauthn/server to v7.4.0 #9480
  • fix(deps): update dependency uuid to v9.0.1 #9477
  • fix(deps): update dependency whatwg-fetch to v3.6.19 #9478
  • chore(deps): update dependency @supabase/supabase-js to v2.38.4 #9482
  • chore(deps): update dependency @testing-library/react to v14.1.0 #9488
  • fix(deps): update dependency ci-info to v3.9.0 #9490
  • fix(deps): update dependency smtp-server to v3.13.0 #9494
  • fix(deps): update dependency envinfo to v7.11.0 #9491
  • fix(deps): update dependency resend to v1.1.0 #9493
  • chore(deps): update dependency @testing-library/jest-dom to v5.17.0 #9487
  • chore(deps): update dependency autoprefixer to v10.4.16 #9502
  • fix(deps): update dependency eslint-plugin-import to v2.29.0 #9499
  • fix(deps): update dependency eslint-config-prettier to v8.10.0 #9498
  • fix(deps): update dependency eslint to v8.53.0 #9497
  • fix(deps): update dependency @types/aws-lambda to v8.10.126 #9503
  • fix(deps): update dependency eslint-plugin-jsx-a11y to v6.8.0 #9500
  • fix(deps): update dependency eslint-plugin-react to v7.33.2 #9501
  • fix(deps): update dependency @clerk/clerk-sdk-node to v4.12.21 #9505
  • fix(deps): update dependency @types/node to v18.18.9 #9504
  • fix(deps): update dependency @types/jest to v29.5.8 #9508
  • fix(deps): update dependency @vscode/ripgrep to v1.15.6 #9538
  • chore(deps): update dependency @playwright/test to v1.40.0 #9565
  • chore(deps): update dependency @supabase/supabase-js to v2.38.5 #9563
  • fix(deps): update dependency core-js to v3.33.3 #9564
  • chore(deps): update dependency @testing-library/react to v14.1.2 #9569
  • fix(deps): update dependency eslint to v8.54.0 #9571
  • chore(deps): update dependency @clerk/clerk-react to v4.28.1 #9598
  • fix(deps): update dependency @clerk/clerk-sdk-node to v4.12.22 #9601
  • chore(deps): update dependency @supabase/supabase-js to v2.39.0 #9603
  • chore(deps): update dependency @playwright/test to v1.40.1 #9599
  • fix(deps): update dependency @whatwg-node/server to v0.9.18 #9602
  • fix(deps): update docusaurus monorepo to v3.0.1 #9608
  • fix(deps): update dependency graphql-sse to v2.4.0 #9607
  • fix(deps): update dependency fs-extra to v11.2.0 #9606
  • fix(deps): update graphql-tools monorepo #9609
  • chore(deps): update dependency nodemon to v3.0.2 #9615
  • fix(deps): update dependency @react-email/render to v0.0.10 #9616
  • fix(deps): update dependency systeminformation to v5.21.20 #9617
  • fix(deps): update dependency eslint to v8.55.0 #9629
  • chore(deps): update dependency @clerk/clerk-react to v4.28.2 #9625