Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(deps): update @redwoodjs packages to v6.4.0 #4262

Merged
merged 1 commit into from
Nov 17, 2023

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Nov 17, 2023

Mend Renovate logo banner

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@redwoodjs/api 6.3.3 -> 6.4.0 age adoption passing confidence
@redwoodjs/core 6.3.3 -> 6.4.0 age adoption passing confidence
@redwoodjs/forms 6.3.3 -> 6.4.0 age adoption passing confidence
@redwoodjs/graphql-server 6.3.3 -> 6.4.0 age adoption passing confidence
@redwoodjs/router 6.3.3 -> 6.4.0 age adoption passing confidence
@redwoodjs/vite 6.3.3 -> 6.4.0 age adoption passing confidence
@redwoodjs/web 6.3.3 -> 6.4.0 age adoption passing confidence

Release Notes

redwoodjs/redwood (@​redwoodjs/api)

v6.4.0

Compare Source

Changelog
Features
  • dbAuth: Unique session cookie name per port #​9248 by @​Tobbe

    Previously, when using dbAuth, you couldn't run two different Redwood apps at the same time on different ports. One app would overwrite the session cookie used by the other, and vice versa. They both used the same cookie name (session), and browsers distinguish cookies by hostname, not port.

    This PR lets users configure the cookie name they want to use by setting cookie.name in their api/src/functions/auth.ts file:

    // api/src/functions/auth.ts
    
    const authHandler = new DbAuthHandler(event, context, {
      // ...
    
      cookie: {
        name: 'session_%port%',
    
        // The cookie's attributes have moved to `cookie.attributes`:
        attributes: {
          // ...
        }
      },
    })

    If that option isn't set, it defaults to the old name (session) for backwards compatibility. In a similar vein, DbAuthHandler still handles all the properties that are now nested in cookie.attributes at the top level.

  • <PrivateSet> #​9303 by @​Tobbe

    Fixes #​2562, #​9304, and https://community.redwoodjs.com/t/private-route-error-with-7-0-0-canary-347/5337. This PR deprecates the Router's <Private> component and the private prop on the Router's <Set> component. In their place, it introduces a new Router component, <PrivateSet>.

    Starting in this release, you'll see strikethroughs in your IDE when you use <Private> or the private prop on <Set>. They still work just as they did, but they'll be removed in a future major release, and <PrivateSet> is little more than a new name. The reason for the change is that in strict mode, private is a reserved word and there were just some bugs we couldn't fix without changing the name.

  • feat(cli): Setup command for mailer #​9335 by @​Josh-Walker-GM

    This PR adds a setup command for the mailer:

    yarn rw setup mailer
    

    and adds functionality that enables it to conditionally use an in-memory handler for tests and the studio handler for development if those dependencies are available.

    Check out the mailer docs for more: https://redwoodjs.com/docs/mailer.

Fixes
  • Fix infinite loops on nested private routes with roles #​9204 by @​KrisCoulson

    Fixes #​9131. This restores the Router's ability to handle multiple nested routes with different levels of authentication and redirect contexts.

  • fix(types): Generate maps to allow improved "go to definition" behaviour #​9269 by @​Josh-Walker-GM

    Fixes #​5862 and #​2867. Previously, navigating to the definition of cells, components, layouts, pages, etc. would lead to the .d.ts file. This could be pretty frustrating if you're used to flying between definitions. This PR generates basic definition/source mappings for directory-mapped modules, cell mirrors, router pages, and route links.

  • Fix Set wrapper type so you can have an array of wrappers #​9314 by @​Tobbe

    Fixes #​9313. This PR lets you do something like this in your web/src/Routes.tsx without type errors (notice the array of wrappers):

    const Routes = () => {
      return (
        <Router>
          <Set wrap={[Wrapper]}>
            <Route path="/" page={HomePage} name="home" />
          </Set>
          {/* ... */}
        </Router>
      )
    }
  • Don't remount wrap components when navigating within Set #​9312 by @​Tobbe

    Fixes #​9105. This PR assigns each Set a unique id and uses that id as a key when rendering all the wrapper components.

  • preview stats when building storybook for Chromatic "TurboSnap" #​9462 by @​majimaccho

    yarn rw storybook --build didn't generate a preview-stats.json required for Chromatic's TurboSnap feature.

Core Dependencies
Docs
Experimental features

Note

These features aren't officially released, but are included here for completeness since they're in this version. They're usable, but aren't fully documented and their API may change in future releases.

  • feat: add experimental docker setup command #​9024 by @​jtoar

    This release features the first iteration of Redwood's Dockerfile and compose files. Thanks to everyone who participated in the container working group! Get started with the experimental setup command:

    yarn rw exp setup-docker
    

    And consult the docs here if you have any questions: https://redwoodjs.com/docs/docker. Feedback welcome!

  • feat: Support GraphQL Subscriptions in Apollo Client using SSE links #​9009 by @​dthyresson

    This PR adds support for GraphQL SSE (Server Sent Events) in both Redwood's GraphQL Server and RedwoodApolloProvider if realtime is enabled. For more on the status of realtime, see https://community.redwoodjs.com/t/redwoodjs-realtime/5002.

  • feature: Support defer and stream GraphQL Directives in RedwoodRealtime #​9235 by @​dthyresson

  • feat(cli-helpers): Root package install and RWJS env var #​9296 by @​Josh-Walker-GM

    This PR adds a few helper functions for installing packages in a Redwood app's root workspace and for setting the RWJS_CWD env var correctly.

  • feature: Adds utility functions to add envars and update redwood.toml #​9324 by @​dthyresson

Dependencies
Click to see all upgraded dependencies
  • chore(deps): update dependency @​clerk/types to v3.52.0 #​9213
  • fix(deps): update dependency @​clerk/clerk-sdk-node to v4.12.6 #​9214
  • chore(deps): update dependency @​clerk/clerk-react to v4.25.1 #​9212
  • chore(deps): update dependency firebase to v10.4.0 #​9203
  • chore(deps): update dependency rimraf to v5.0.5 #​9360
  • fix(deps): update dependency concurrently to v8.2.2 #​9361
  • chore(deps): update dependency tailwindcss to v3.3.5 #​9378
  • fix(deps): update dependency msw to v1.3.2 #​9379
  • fix(deps): update dependency core-js to v3.33.2 #​9293
  • fix(deps): update apollo graphql packages #​9418
  • fix(deps): update dependency pino to v8.16.2 #​9476
  • fix(deps): update dependency prism-react-renderer to v2.2.0 #​9492

Configuration

📅 Schedule: Branch creation - "before 7am every weekday,every weekend" (UTC), Automerge - "before 7am every weekday" (UTC).

🚦 Automerge: Enabled.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about these updates again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot enabled auto-merge (rebase) November 17, 2023 06:19
@renovate renovate bot requested review from SevInf and jkomyno as code owners November 17, 2023 06:19
Copy link
Contributor Author

renovate bot commented Nov 17, 2023

⚠ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: platforms-serverless-vercel/vercel-with-redwood/yarn.lock
[06:19:16.894] INFO (9): Installing tool node v20.9.0...
v20.9.0
10.1.0
0.20.0
[06:19:19.605] INFO (9): Installed tool node in 2.7s.
[06:19:20.120] INFO (52): Installing tool yarn-slim v1.22.21...
3.6.1
[06:19:21.447] INFO (52): Installed tool yarn-slim in 1.3s.
Unknown Syntax Error: Unsupported option name ("--ignore-platform").

$ yarn install [--json] [--immutable] [--immutable-cache] [--check-cache] [--inline-builds] [--mode #0]

@renovate renovate bot merged commit ce84ad3 into dev Nov 17, 2023
30 of 40 checks passed
@renovate renovate bot deleted the renovate/@redwoodjs-packages branch November 17, 2023 06:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants