Skip to content

Releases: redwoodjs/redwood

v7.6.0

21 May 20:12
2008910
Compare
Choose a tag to compare

Changelog

  • feat(cli): Add experimental setup command for React Compiler (#10574) by @Josh-Walker-GM

    You can now use yarn rw exp setup-react-compiler to enable the experimental React Compiler. See our forum post for more information and feedback.

  • fix(cli): Add deprecation notice for edgio deployment (#10551) by @Josh-Walker-GM

    This change adds notices to the CLI and our documentation site to inform you that the edgio deployment provider is now deprecated as of v7.

  • Added warning note to not add WebAuthn (#10231) by @pantheredeye

    Adds a warning to the tutorial telling users not to add WebAuthn as it's not supported by the generated login pages the tutorial uses.

  • fix(functions): Fix context variable warning/error (#10556) by @Tobbe

    In a newly generated function there's a warning/error in the JSDoc that also prevents VSCode from showing the correct information. This change corrects this problem.

  • patch(crwa): Fix small annoyances (formatting, spell-check) (#10651) by @Tobbe

    This change corrects a few typo errors and improves the formatting of our template files.

  • Docs: QoL Updates to Contributing.md (#10561) by @pantheredeye

    Quality of life updates for the contributing doc (the document in the root of the main repository).

Dependencies

Click to see all upgraded dependencies
  • fix(deps): update dependency systeminformation to v5.22.9 #10575
  • fix(deps): update dependency lru-cache to v10.2.2 #10580
  • chore(deps): update dependency rimraf to v5.0.7 #10577
  • chore(deps): update dependency esbuild to v0.21.3 #10581
  • chore(deps): update dependency semver to v7.6.2 #10578
  • fix(deps): update dependency @react-email/render to v0.0.13 #10590
  • chore(deps): update dependency @envelop/core to v5.0.1 #10587
  • fix(deps): update dependency @types/aws-lambda to v8.10.137 #10591
  • chore(deps): update dependency @testing-library/jest-dom to v6.4.5 #10588
  • fix(deps): update dependency ioredis to v5.4.1 #10583
  • chore(deps): update dependency supertokens-node to v15.2.2 #10597
  • fix(deps): update dependency qs to v6.12.1 #10599
  • fix(deps): update dependency css-loader to v6.11.0 #10601
  • fix(deps): update dependency envinfo to v7.13.0 #10603
  • fix(deps): update dependency pino to v8.21.0 #10604
  • fix(deps): update dependency @pmmmwh/react-refresh-webpack-plugin to v0.5.13 #10605
  • fix(deps): update dependency graphql-yoga to v5.3.1 #10607
  • fix(deps): update dependency @types/webpack-env to v1.18.5 #10609
  • fix(deps): update dependency @types/aws-lambda to v8.10.138 #10608
  • fix(deps): update dependency webpack-bundle-analyzer to v4.10.2 #10612
  • fix(deps): update dependency @clerk/clerk-sdk-node to v4.13.16 #10611
  • chore(deps): update dependency redis to v4.6.14 #10610
  • fix(deps): update dependency babel-plugin-module-resolver to v5.0.2 #10615
  • chore(deps): update dependency @clerk/clerk-react to v4.31.1 #10616
  • fix(deps): update dependency react-hook-form to v7.51.4 #10622
  • fix(deps): update dependency react-helmet-async to v2.0.5 #10621
  • fix(deps): update dependency fastify to v4.27.0 #10625
  • fix(deps): update prisma monorepo to v5.14.0 #10627
  • fix(deps): update dependency @sdl-codegen/node to v0.0.15 #10632
  • fix(deps): update dependency mini-css-extract-plugin to v2.9.0 #10633
  • chore(deps): update yarn monorepo #10624
  • chore(deps): update dependency firebase to v10.12.0 #10635
  • fix(deps): update dependency @graphql-yoga/plugin-defer-stream to v3.3.1 #10638
  • fix(deps): update dependency @graphql-yoga/plugin-persisted-operations to v3.3.1 #10640
  • fix(deps): update dependency core-js to v3.37.1 #10630
  • fix(deps): update graphql-tools monorepo #10641
  • fix(deps): update dependency @graphql-yoga/plugin-graphql-sse to v3.3.1 #10639
  • chore(deps): update babel monorepo to v7.24.5 #10614
  • chore(deps): update dependency @supabase/supabase-js to v2.43.2 #10365
  • fix(deps): update dependency graphql-sse to v2.5.3 #10364
  • chore(deps): update node.js to >=14.17 <=20.13 #10368
  • chore(deps): update dependency vscode-languageserver-protocol to v3.17.5 #10351

v7.6.0-rc.73

17 May 16:32
11f5e48
Compare
Choose a tag to compare
v7.6.0-rc.73 Pre-release
Pre-release

Changelog

  • feat(cli): Add experimental setup command for React Compiler (#10574) by @Josh-Walker-GM

    You can now use yarn rw exp setup-react-compiler to enable the experimental React Compiler. See our forum post for more information and feedback.

  • fix(cli): Add deprecation notice for edgio deployment (#10551) by @Josh-Walker-GM

    This change adds notices to the CLI and our documentation site to inform you that the edgio deployment provider is now deprecated as of v7.

  • Added warning note to not add WebAuthn (#10231) by @pantheredeye

    Adds a warning to the tutorial telling users not to add WebAuthn as it's not supported by the generated login pages the tutorial uses.

  • fix(functions): Fix context variable warning/error (#10556) by @Tobbe

    In a newly generated function there's a warning/error in the JSDoc that also prevents VSCode from showing the correct information. This change corrects this problem.

  • Docs: QoL Updates to Contributing.md (#10561) by @pantheredeye

    Quality of life updates for the contributing doc (the document in the root of the main repository).

Dependencies

Click to see all upgraded dependencies
  • fix(deps): update dependency systeminformation to v5.22.9 #10575
  • fix(deps): update dependency lru-cache to v10.2.2 #10580
  • chore(deps): update dependency rimraf to v5.0.7 #10577
  • chore(deps): update dependency esbuild to v0.21.3 #10581
  • chore(deps): update dependency semver to v7.6.2 #10578
  • fix(deps): update dependency @react-email/render to v0.0.13 #10590
  • chore(deps): update dependency @envelop/core to v5.0.1 #10587
  • fix(deps): update dependency @types/aws-lambda to v8.10.137 #10591
  • chore(deps): update dependency @testing-library/jest-dom to v6.4.5 #10588
  • fix(deps): update dependency ioredis to v5.4.1 #10583
  • chore(deps): update dependency supertokens-node to v15.2.2 #10597
  • fix(deps): update dependency qs to v6.12.1 #10599
  • fix(deps): update dependency css-loader to v6.11.0 #10601
  • fix(deps): update dependency envinfo to v7.13.0 #10603
  • fix(deps): update dependency pino to v8.21.0 #10604
  • fix(deps): update dependency @pmmmwh/react-refresh-webpack-plugin to v0.5.13 #10605
  • fix(deps): update dependency graphql-yoga to v5.3.1 #10607
  • fix(deps): update dependency @types/webpack-env to v1.18.5 #10609
  • fix(deps): update dependency @types/aws-lambda to v8.10.138 #10608
  • fix(deps): update dependency webpack-bundle-analyzer to v4.10.2 #10612
  • fix(deps): update dependency @clerk/clerk-sdk-node to v4.13.16 #10611
  • chore(deps): update dependency redis to v4.6.14 #10610
  • fix(deps): update dependency babel-plugin-module-resolver to v5.0.2 #10615
  • chore(deps): update dependency @clerk/clerk-react to v4.31.1 #10616
  • fix(deps): update dependency react-hook-form to v7.51.4 #10622
  • fix(deps): update dependency react-helmet-async to v2.0.5 #10621
  • fix(deps): update dependency fastify to v4.27.0 #10625
  • fix(deps): update prisma monorepo to v5.14.0 #10627
  • fix(deps): update dependency @sdl-codegen/node to v0.0.15 #10632
  • fix(deps): update dependency mini-css-extract-plugin to v2.9.0 #10633
  • chore(deps): update yarn monorepo #10624
  • chore(deps): update dependency firebase to v10.12.0 #10635
  • fix(deps): update dependency @graphql-yoga/plugin-defer-stream to v3.3.1 #10638
  • fix(deps): update dependency @graphql-yoga/plugin-persisted-operations to v3.3.1 #10640
  • fix(deps): update dependency core-js to v3.37.1 #10630
  • fix(deps): update graphql-tools monorepo #10641
  • fix(deps): update dependency @graphql-yoga/plugin-graphql-sse to v3.3.1 #10639

v7.5.1

15 May 13:32
e08f609
Compare
Choose a tag to compare

Patch Release

  • Fix radio button null element default prop to use correct input (#10510) by @jason-curtis

    This change fixes an issue with the defaultChecked field when using the scaffold generator with an enum. You should now see correct code generated to determine if the default is checked or unchecked.

  • fix(functions): Mock context in function test template (#10555) by @Tobbe

    Currently if you switch on TypeScript strict mode in a Redwood project you will get red squiggles in our default function tests that we create when users generate new functions. This change corrects this particular error by providing the correct function parameter in the generated code.

v7.5.0

08 May 16:08
030b3eb
Compare
Choose a tag to compare

Changelog

  • feat(upgrade): Use GitHub token if available when downloading patches (#10515) by @Tobbe

    When you upgrade via yarn rw upgrade and require yarn patches, we will now use a GitHub token if it is available in your environment when fetching the git tree from GitHub. We support GH_TOKEN, GITHUB_TOKEN and REDWOOD_GITHUB_TOKEN as the env var names.

  • feat(baremetal): Add verbose output to ssh exec (#10525) by @Tobbe

    This change adds additional logging to the ssh during baremetal when you use --verbose. Allowing you to see exactly what SSH commands are being run, and in what path.

    Standard output without --verbose - this remains unchanged
    image

    Before (verbose output)
    image

    After (verbose output)
    image

  • feat(baremetal): Add more details to error messages (#10527) by @Tobbe

    Now when an ssh command execution fails the error message will additionally include the directory it was executed in and the full stderr message

    Before
    image

    After
    image

  • Add redwood.toml to yarn rw info (#10518) by @Tobbe

    The project redwood.toml file is now included in the yarn rw info output to make it easier and faster to provide enough details for issues to be debugged quickly

    Before

    System:
      OS: macOS 14.1.1
      Shell: 5.9 - /bin/zsh
    Binaries:
      Node: 20.11.0 - /usr/local/bin/node
      Yarn: 4.1.1 - /usr/local/bin/yarn
    Databases:
      SQLite: 3.39.5 - /usr/bin/sqlite3
    Browsers:
      Safari: 17.1
    

    After

    System:
      OS: macOS 14.1.1
      Shell: 5.9 - /bin/zsh
    Binaries:
      Node: 20.11.0 - /usr/local/bin/node
      Yarn: 4.1.1 - /usr/local/bin/yarn
    Databases:
      SQLite: 3.39.5 - /usr/bin/sqlite3
    Browsers:
      Safari: 17.1
    redwood.toml:
      [web]
        title = "Redwood App"
        port = 8910
        apiUrl = "/.redwood/functions" # You can customize graphql and dbauth urls individually too: see https://redwoodjs.com/docs/app-configuration-redwood-toml#api-paths
        includeEnvironmentVariables = [
          # Add any ENV vars that should be available to the web side to this array
          # See https://redwoodjs.com/docs/environment-variables#web
        ]
      [api]
        port = 8911
      [browser]
        open = true
      [notifications]
        versionUpdates = ["latest"]
    
  • Fix invisible tags in MetaTag & Metadata JSDoc (#10504) by @Philzen

    This change fixes the common pitfall that tags of all kind are not visible in JSDoc view because it will try to interpret them as HTML. Now these tags should be visible when the JSDoc is rendered. See #10504 for more information

  • docs: Adds GraphQL Caching docs for Client and Response caching (#10054) by @dthyresson

    This PR introduces new GraphQL documentation to cover both client and server (aka response) caching.

  • deps: Upgrade to React Testing Library 14.3.1 (#10514) by @Tobbe

v7.5.0-rc.33

02 May 19:50
8f3f388
Compare
Choose a tag to compare
v7.5.0-rc.33 Pre-release
Pre-release

Changelog

  • Fix invisible tags in MetaTag & Metadata JSDoc (#10504) by @Philzen

    This change fixes the common pitfall that tags of all kind are not visible in JSDoc view because it will try to interpret them as HTML. Now these tags should be visible when the JSDoc is rendered. See #10504 for more information

  • feat(upgrade): Use GitHub token if available when downloading patches (#10515) by @Tobbe

    If a GitHub token is available in the environment we use that when fetching the
    git tree from GitHub. That way we're less likely to be rate limited. For most
    users the token shouldn't be needed. The free allowance/usage of the GitHub API
    should be enough.

    We support GH_TOKEN, GITHUB_TOKEN and REDWOOD_GITHUB_TOKEN as the env var names

  • Add redwood.toml to yarn rw info (#10518) by @Tobbe

    The project redwood.toml file is now included in the yarn rw info output to
    make it easier and faster to help with issue reports

    Before

    System:
      OS: macOS 14.1.1
      Shell: 5.9 - /bin/zsh
    Binaries:
      Node: 20.11.0 - /usr/local/bin/node
      Yarn: 4.1.1 - /usr/local/bin/yarn
    Databases:
      SQLite: 3.39.5 - /usr/bin/sqlite3
    Browsers:
      Safari: 17.1
    

    After

    System:
      OS: macOS 14.1.1
      Shell: 5.9 - /bin/zsh
    Binaries:
      Node: 20.11.0 - /usr/local/bin/node
      Yarn: 4.1.1 - /usr/local/bin/yarn
    Databases:
      SQLite: 3.39.5 - /usr/bin/sqlite3
    Browsers:
      Safari: 17.1
    redwood.toml:
      [web]
        title = "Redwood App"
        port = 8910
        apiUrl = "/.redwood/functions" # You can customize graphql and dbauth urls individually too: see https://redwoodjs.com/docs/app-configuration-redwood-toml#api-paths
        includeEnvironmentVariables = [
          # Add any ENV vars that should be available to the web side to this array
          # See https://redwoodjs.com/docs/environment-variables#web
        ]
      [api]
        port = 8911
      [browser]
        open = true
      [notifications]
        versionUpdates = ["latest"]
    
  • feat(baremetal): Add verbose output to ssh exec (#10525) by @Tobbe

    Passing --verbose to the baremetal deploy command is supposed to give you
    more detailed info about what's happening. Previously however passing
    --verbose didn't actually provide any extra information. This PR adds logging
    to the new SshExecutor class so that you can see exactly what SSH commands are
    being run, and in what path.

    Standard output (this stays the same before and after)
    image

    Before (verbose output)
    image
    Doesn't really help much compared to the standard output 😅

    After (verbose output)
    image

  • feat(baremetal): Add more details to error messages (#10527) by @Tobbe

    Now when an ssh command execution fails the error message will additionally
    include the directory it was executed in and the full stderr message

    Before
    image

    After
    image

v7.4.3

23 Apr 13:37
d518ca4
Compare
Choose a tag to compare

Patch Release

  • Modified type for describeScenario (#10468) by @cjreimer

    This change corrects the return type of getScenario. See: #10468 for more information.

v7.4.2

19 Apr 20:04
77a4e03
Compare
Choose a tag to compare

Patch Release

  • fix(cli): avoid npx during upgrade command (#10479) by @Josh-Walker-GM

    This change fixes a problem with the yarn rw upgrade command when you don't have npx installed. If you don't have npx installed you will now have to manually run a command to dedupe dependencies rather than this being done for you automatically during the upgrade command. If this is the case, the npx command will be logged to the console when you run yarn rw upgrade. See #10466 for more information.

  • fix: Fixes Unknown Fragment issues due to GraphQL Tag type mismatch in web (#10357) by @dthyresson

    Users reported in #10322 an incompatibility with fragments and when using gql from global web. The TS errors were caused by the global web gql type not being compatible with the standard graphql-tag type. This change corrects this issue.

v7.4.1

13 Apr 17:53
06ca6f7
Compare
Choose a tag to compare

Patch Release

  • chore(deps): update dependency typescript to v5.4.5 (#10452)

    This dependency upgrade includes fixes that address a bug that caused auto-complete and auto-import functionality to be broken in Javascript projects.

v7.4.0

12 Apr 21:25
8cdadf9
Compare
Choose a tag to compare

Changelog

  • docs(redirect): Add docs for redirect routes (#10374) by @Tobbe

    There were no docs for <Route path="/some/path" redirect="/some/other/path" />. This change introduces docs for the redirect prop.

  • feat(router): Allow redirect routes to use route names as target (#10376) by @Tobbe

    When specifying a redirect route like
    <Route path="/simple" redirect="/newSimple" name="simple" /> the value of redirect is the path of the page the user should be redirected to. However, the paths can be long and annoying to type out. And if they ever change the redirect would now be broken.

    Also, for private routes we do this:

    <Router>
      <Route path="/" page={HomePage} name="home" />
      <PrivateSet unauthenticated="home">
        <Route path="/admin" page={AdminPage} name="admin" />
      </PrivateSet>
    </Router>

    Here, if a user isn't authenticated, the user will be redirected to the home route. Notice how the target route is specified by its name (home) instead of its path (/).

    With this it's now also possible to redirect using the name of the target route, making our route behavior more consistent. So this will now work

    <Router>
      <Route path="/" page={HomePage} name="home" />
      <Route path="/no-longer-exists" redirect="home" />
    </Router>

    Old style paths still works. The logic is super simple. If the redirect value starts with / it's assumed to be a path. If not, it's assumed to be a route name. This should make this change fully backwards compatible.

  • docs: Adds important admonition for generate dbAuth to clarify that must setup dbAuth not just generate the pages (#10293) by @dthyresson

  • docs: Add information about how to turn off Prisma/db operations during a Vercel deploy to reduce Postgres Storage use (#10294) by @dthyresson

  • chore(CLI): build with esbuild (#10323) by @jtoar

    This change speeds up the CLI by up to 50ms.

Dependencies

Click to see all upgraded dependencies
  • fix(deps): update docusaurus monorepo to v3.1.1 #10337
  • fix(deps): update graphqlcodegenerator monorepo #10338
  • fix(deps): update opentelemetry-js monorepo #10339
  • fix(deps): update dependency @graphql-codegen/client-preset to v4.2.5 #10349
  • fix(deps): update dependency html-webpack-plugin to v5.6.0 #10352
  • chore(deps): update dependency supertokens-auth-react to v0.39.1 #10347
  • chore(deps): update babel monorepo #10363
  • chore(deps): update dependency firebase to v10.11.0 #10366

v7.3.2

11 Apr 21:48
0cb788d
Compare
Choose a tag to compare

Patch Release

  • fix(auth): Handle when authorization header is lowercased (#10442) by @dac09

    This fix handles an authentication error that occurred when the 'Authorization' header was presented in lowercase as 'authorization'.