redwoodjs / redwood-tutorial

The end state after completing the RedwoodJS introduction tutorial
https://redwoodjs.com/tutorial
40 stars 109 forks source link

Update redwood monorepo to v6 (major) - autoclosed #100

Closed renovate[bot] closed 1 year ago

renovate[bot] commented 1 year ago

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@redwoodjs/api 5.0.0 -> 6.0.0 age adoption passing confidence
@redwoodjs/auth 5.0.0 -> 6.0.0 age adoption passing confidence
@redwoodjs/auth-dbauth-api 5.0.0 -> 6.0.0 age adoption passing confidence
@redwoodjs/auth-dbauth-setup 5.0.0 -> 6.0.0 age adoption passing confidence
@redwoodjs/auth-dbauth-web 5.0.0 -> 6.0.0 age adoption passing confidence
@redwoodjs/core 5.0.0 -> 6.0.0 age adoption passing confidence
@redwoodjs/forms 5.0.0 -> 6.0.0 age adoption passing confidence
@redwoodjs/graphql-server 5.0.0 -> 6.0.0 age adoption passing confidence
@redwoodjs/router 5.0.0 -> 6.0.0 age adoption passing confidence
@redwoodjs/web 5.0.0 -> 6.0.0 age adoption passing confidence

Release Notes

redwoodjs/redwood (@​redwoodjs/api) ### [`v6.0.0`](https://togithub.com/redwoodjs/redwood/releases/tag/v6.0.0) [Compare Source](https://togithub.com/redwoodjs/redwood/compare/v5.4.3...v6.0.0) > :evergreen_tree: **RedwoodJS Conference, September 26-29 in Oregon, USA** > The first RedwoodJS in-person conference is only three months away! Details and discussions are happening [here](https://community.redwoodjs.com/t/redwoodjs-conference-september-26-29-2023/4964) on the forums. > > Registration here: [www.redwoodjsconf.com](https://www.redwoodjsconf.com/). ##### Upgrade Guide https://community.redwoodjs.com/t/redwood-v6-0-0-upgrade-guide/5044 ##### Changelog ##### Breaking ##### Vite - Make Vite the default bundler [#​8301](https://togithub.com/redwoodjs/redwood/issues/8301) by [@​dac09](https://togithub.com/dac09) - chore(vite): Rename entry-client.tsx to entry.client [#​8592](https://togithub.com/redwoodjs/redwood/issues/8592) by [@​dac09](https://togithub.com/dac09) - feat(codemod): Add codemod for js to jsx conversion [#​8551](https://togithub.com/redwoodjs/redwood/issues/8551) by [@​Josh-Walker-GM](https://togithub.com/Josh-Walker-GM) - Update .js files to .jsx [#​8537](https://togithub.com/redwoodjs/redwood/issues/8537) by [@​cannikin](https://togithub.com/cannikin) - ESLint rule: process-env-computed [#​8612](https://togithub.com/redwoodjs/redwood/issues/8612) by [@​Tobbe](https://togithub.com/Tobbe) - fix(vite): Tailwind/postcss optimisation issue [#​8471](https://togithub.com/redwoodjs/redwood/issues/8471) by [@​dac09](https://togithub.com/dac09) - fix(vite): Do not use getPaths in vite setup handler [#​8610](https://togithub.com/redwoodjs/redwood/issues/8610) by [@​dac09](https://togithub.com/dac09) - fix(vite): list imports before dns call [#​8620](https://togithub.com/redwoodjs/redwood/issues/8620) by [@​jtoar](https://togithub.com/jtoar) - fix(vite): Change config for mantine and chakra to use export default [#​8639](https://togithub.com/redwoodjs/redwood/issues/8639) by [@​dac09](https://togithub.com/dac09) - Use vite unless bundler === webpack [#​8731](https://togithub.com/redwoodjs/redwood/issues/8731) by [@​Tobbe](https://togithub.com/Tobbe) - Setup vite: No longer experimental [#​8745](https://togithub.com/redwoodjs/redwood/issues/8745) by [@​Tobbe](https://togithub.com/Tobbe) - chore(vite): Hide API proxy error on start [#​8705](https://togithub.com/redwoodjs/redwood/issues/8705) by [@​dac09](https://togithub.com/dac09) - fix(v6): specify that the custom web index is webpack only [#​8772](https://togithub.com/redwoodjs/redwood/issues/8772) by [@​jtoar](https://togithub.com/jtoar) - buildHandler: Give execa cwd for yarn to find the rw-vite-build binary [#​8795](https://togithub.com/redwoodjs/redwood/issues/8795) by [@​Tobbe](https://togithub.com/Tobbe) - "Cleaning web" is only needed for Webpack [#​8807](https://togithub.com/redwoodjs/redwood/issues/8807) by [@​Tobbe](https://togithub.com/Tobbe) - docs(vite): Remove references to webpack, and more docs on SVGs and fonts [#​8707](https://togithub.com/redwoodjs/redwood/issues/8707) by [@​dac09](https://togithub.com/dac09) - Updates tutorial to use .jsx instead of .js for JSX files [#​8758](https://togithub.com/redwoodjs/redwood/issues/8758) by [@​cannikin](https://togithub.com/cannikin) - codemod(v6): Convert all process.env usage to dot notation [#​8611](https://togithub.com/redwoodjs/redwood/issues/8611) by [@​dac09](https://togithub.com/dac09) - chore(lint): Humanise eslint error for accessing process.env [#​8638](https://togithub.com/redwoodjs/redwood/issues/8638) by [@​dac09](https://togithub.com/dac09) - Remove DevFatalErrorPage import when building [#​8648](https://togithub.com/redwoodjs/redwood/issues/8648) by [@​Tobbe](https://togithub.com/Tobbe) - codemod(svgs): Convert imported SVGs to react components [#​8564](https://togithub.com/redwoodjs/redwood/issues/8564) by [@​dac09](https://togithub.com/dac09) - v6 codemod: FatalErrorPage [#​8713](https://togithub.com/redwoodjs/redwood/issues/8713) by [@​Tobbe](https://togithub.com/Tobbe) - Tweak vite setup output [#​8740](https://togithub.com/redwoodjs/redwood/issues/8740) by [@​Tobbe](https://togithub.com/Tobbe) - chore(vite): Remove unused vite-plugin-commonjs [#​8750](https://togithub.com/redwoodjs/redwood/issues/8750) by [@​dac09](https://togithub.com/dac09) - Pass webDir to rw-vite-build for setting cwd [#​8735](https://togithub.com/redwoodjs/redwood/issues/8735) by [@​Tobbe](https://togithub.com/Tobbe) - Vite plugin to replace env vars in index.html [#​8929](https://togithub.com/redwoodjs/redwood/issues/8929) by [@​Tobbe](https://togithub.com/Tobbe) - Update svgr codemod to output TS for tsx inputs [#​8935](https://togithub.com/redwoodjs/redwood/issues/8935) by [@​Tobbe](https://togithub.com/Tobbe) - Expose environment variables also on import.meta.env [#​8928](https://togithub.com/redwoodjs/redwood/issues/8928) by [@​Tobbe](https://togithub.com/Tobbe) - Webpack: Use resolve-url-loader to handle absolute paths in css url() [#​8980](https://togithub.com/redwoodjs/redwood/issues/8980) by [@​Tobbe](https://togithub.com/Tobbe) - chore(v6): add codemod changing `global` to `globalThis` [#​8924](https://togithub.com/redwoodjs/redwood/issues/8924) by [@​jtoar](https://togithub.com/jtoar) ##### Prisma v5 - fix(deps): update prisma monorepo to v5 (major) [#​8891](https://togithub.com/redwoodjs/redwood/issues/8891) ##### Storybook v7 - feat(storybook): upgrade to v7 [#​8342](https://togithub.com/redwoodjs/redwood/issues/8342) by [@​jtoar](https://togithub.com/jtoar) - fix(docs): remove the section on configuring Storybook's manager [#​8801](https://togithub.com/redwoodjs/redwood/issues/8801) by [@​jtoar](https://togithub.com/jtoar) - feat(cli): Lazy install storybook [#​8454](https://togithub.com/redwoodjs/redwood/issues/8454) by [@​Josh-Walker-GM](https://togithub.com/Josh-Walker-GM) - cli(fix): Stop storybook command installing early [#​8828](https://togithub.com/redwoodjs/redwood/issues/8828) by [@​Josh-Walker-GM](https://togithub.com/Josh-Walker-GM) - Updated Storybook Template files to for CSF 3 [#​8788](https://togithub.com/redwoodjs/redwood/issues/8788) by [@​ahaywood](https://togithub.com/ahaywood) - fix(cli): Prevent unwanted SIGINT error message from storybook [#​8977](https://togithub.com/redwoodjs/redwood/issues/8977) by [@​Josh-Walker-GM](https://togithub.com/Josh-Walker-GM) - chore(cli-storybook): Add telemetry [#​8803](https://togithub.com/redwoodjs/redwood/issues/8803) by [@​Josh-Walker-GM](https://togithub.com/Josh-Walker-GM) ##### Suspense Router - feat(router): Implement routing with Suspense [#​8392](https://togithub.com/redwoodjs/redwood/issues/8392) by [@​dac09](https://togithub.com/dac09) - Make unsupported route components rule error for v6 [#​8776](https://togithub.com/redwoodjs/redwood/issues/8776) by [@​jtoar](https://togithub.com/jtoar) - Change router rule to error in ESLint config [#​8779](https://togithub.com/redwoodjs/redwood/issues/8779) by [@​jtoar](https://togithub.com/jtoar) ##### RedwoodApolloProvider - feat(apollo): add linkFactory for better customization of apollo links [#​8500](https://togithub.com/redwoodjs/redwood/issues/8500) by [@​russell-dot-js](https://togithub.com/russell-dot-js) - chore(apollo): make previous Apollo Link change breaking [#​8761](https://togithub.com/redwoodjs/redwood/issues/8761) by [@​jtoar](https://togithub.com/jtoar) ##### Logging - Remove overly verbose data from custom formatter [#​8353](https://togithub.com/redwoodjs/redwood/issues/8353) by [@​cravend](https://togithub.com/cravend) - Move fastify.logger.infos to fastify.logger.traces [#​8590](https://togithub.com/redwoodjs/redwood/issues/8590) by [@​orta](https://togithub.com/orta) - Lets the watcher CLI show some logs in debug/trace and others all the time (and adds duration) [#​8591](https://togithub.com/redwoodjs/redwood/issues/8591) by [@​orta](https://togithub.com/orta) ##### Firebase major versions - feat(firebase-admin): upgrade to v11 [#​8305](https://togithub.com/redwoodjs/redwood/issues/8305) by [@​rapzo](https://togithub.com/rapzo) - fix(firebase): improve error handling [#​8976](https://togithub.com/redwoodjs/redwood/issues/8976) by [@​jtoar](https://togithub.com/jtoar) - chore(deps): update dependency firebase to v10 [#​8972](https://togithub.com/redwoodjs/redwood/issues/8972) ##### Supertokens major versions - Update SuperTokens dependencies [#​8957](https://togithub.com/redwoodjs/redwood/issues/8957) by [@​nkshah2](https://togithub.com/nkshah2) - fix(supertokens): improve setup and fix lint errors [#​8971](https://togithub.com/redwoodjs/redwood/issues/8971) by [@​jtoar](https://togithub.com/jtoar) ##### Misc breaking changes - remove `setup ui windicss` (project is sunsetting) [#​8598](https://togithub.com/redwoodjs/redwood/issues/8598) by [@​thedavidprice](https://togithub.com/thedavidprice) - chore(v6): change to React automatic runtime [#​8926](https://togithub.com/redwoodjs/redwood/issues/8926) by [@​jtoar](https://togithub.com/jtoar) ##### Features - feat(cli): Add README to .redwood [#​8790](https://togithub.com/redwoodjs/redwood/issues/8790) by [@​Josh-Walker-GM](https://togithub.com/Josh-Walker-GM) - feature([#​8676](https://togithub.com/redwoodjs/redwood/issues/8676)): added usernameMatch criteria to login methods to match signup [#​8686](https://togithub.com/redwoodjs/redwood/issues/8686) by [@​ageddesi](https://togithub.com/ageddesi) - Additional Messaging for Compatibility Checking for Create Redwood App [#​8673](https://togithub.com/redwoodjs/redwood/issues/8673) by [@​ahaywood](https://togithub.com/ahaywood) - rw upgrade: Update package versions from template package.json [#​8855](https://togithub.com/redwoodjs/redwood/issues/8855) by [@​Tobbe](https://togithub.com/Tobbe) - CRWA: --yes [#​8870](https://togithub.com/redwoodjs/redwood/issues/8870) by [@​Tobbe](https://togithub.com/Tobbe) - CRWA: Prompt for installation dir [#​8955](https://togithub.com/redwoodjs/redwood/issues/8955) by [@​Tobbe](https://togithub.com/Tobbe) ##### Fixed - Fix the codegen path for the GraphQL context object [#​8585](https://togithub.com/redwoodjs/redwood/issues/8585) by [@​orta](https://togithub.com/orta) - fix(type defs): log type-def generation errors at the end [#​8448](https://togithub.com/redwoodjs/redwood/issues/8448) by [@​jtoar](https://togithub.com/jtoar) - fix(graphql-server): Conditionally enable OTel plugin and OTel plugin updates [#​8782](https://togithub.com/redwoodjs/redwood/issues/8782) by [@​Josh-Walker-GM](https://togithub.com/Josh-Walker-GM) - fix(cli): Telemetry improvements [#​8798](https://togithub.com/redwoodjs/redwood/issues/8798) by [@​Josh-Walker-GM](https://togithub.com/Josh-Walker-GM) - fix(cli): Revert change to prisma error message [#​8825](https://togithub.com/redwoodjs/redwood/issues/8825) by [@​Josh-Walker-GM](https://togithub.com/Josh-Walker-GM) - yarn rw upgrade: Not < v1 anymore [#​8853](https://togithub.com/redwoodjs/redwood/issues/8853) by [@​Tobbe](https://togithub.com/Tobbe) - Update Tailwind setup. Show extensions to install [#​8954](https://togithub.com/redwoodjs/redwood/issues/8954) by [@​Tobbe](https://togithub.com/Tobbe) - fix(cli): Prevent multiple update available messages [#​8809](https://togithub.com/redwoodjs/redwood/issues/8809) by [@​Josh-Walker-GM](https://togithub.com/Josh-Walker-GM) - serve web: Fix socket support [#​8936](https://togithub.com/redwoodjs/redwood/issues/8936) by [@​Tobbe](https://togithub.com/Tobbe) - fix(cli): Escape telemetry in exec command [#​8947](https://togithub.com/redwoodjs/redwood/issues/8947) by [@​Josh-Walker-GM](https://togithub.com/Josh-Walker-GM) - CRWA: Move git init to include yarn.lock [#​8956](https://togithub.com/redwoodjs/redwood/issues/8956) by [@​Tobbe](https://togithub.com/Tobbe) ##### Docs - \[Docs] Couple typos in OAuth how-to doc, adds versioned docs for 5.x, 4.x, 3.x [#​8793](https://togithub.com/redwoodjs/redwood/issues/8793) by [@​cannikin](https://togithub.com/cannikin) - Oauth How-to: Adds note about not exposing accessToken via SDL [#​8839](https://togithub.com/redwoodjs/redwood/issues/8839) by [@​cannikin](https://togithub.com/cannikin) - Added documentation for the Create Redwood App [#​8777](https://togithub.com/redwoodjs/redwood/issues/8777) by [@​ahaywood](https://togithub.com/ahaywood) - Proofreading updates to the CRWA docs [#​8898](https://togithub.com/redwoodjs/redwood/issues/8898) by [@​Tobbe](https://togithub.com/Tobbe) - Update intermission.md including a caution block to let the reader know not to look for a Typescript version [#​8885](https://togithub.com/redwoodjs/redwood/issues/8885) by [@​jgal1](https://togithub.com/jgal1) - docs: update ArticleQuery type in routing-params.md [#​8895](https://togithub.com/redwoodjs/redwood/issues/8895) by [@​ekafyi](https://togithub.com/ekafyi) - docs(services): fix numericality validation example [#​8892](https://togithub.com/redwoodjs/redwood/issues/8892) by [@​roeeyn](https://togithub.com/roeeyn) - Update name reference in Redwood Docs [#​8904](https://togithub.com/redwoodjs/redwood/issues/8904) by [@​joriswill](https://togithub.com/joriswill) - docs: Change ref to webpack -> vite. Update url [#​8960](https://togithub.com/redwoodjs/redwood/issues/8960) by [@​Tobbe](https://togithub.com/Tobbe) - Update flightcontrol.md [#​8970](https://togithub.com/redwoodjs/redwood/issues/8970) by [@​ModupeD](https://togithub.com/ModupeD) - docs: Update file structure [#​8959](https://togithub.com/redwoodjs/redwood/issues/8959) by [@​Tobbe](https://togithub.com/Tobbe) ##### Chore - fix(rebuild-fixture): add temporary step for Storybook v7 [#​8406](https://togithub.com/redwoodjs/redwood/issues/8406) by [@​jtoar](https://togithub.com/jtoar) - feat(ci): isolate smoke tests, introduce caching [#​8449](https://togithub.com/redwoodjs/redwood/issues/8449) by [@​jtoar](https://togithub.com/jtoar) - chore(ci): deduplicate yarn cache by removing the `set-up-job` action [#​8504](https://togithub.com/redwoodjs/redwood/issues/8504) by [@​jtoar](https://togithub.com/jtoar) - chore(ci): use canary version of rwjs vite [#​8526](https://togithub.com/redwoodjs/redwood/issues/8526) by [@​jtoar](https://togithub.com/jtoar) - chore(cli-storybook): improve types, style changes [#​8555](https://togithub.com/redwoodjs/redwood/issues/8555) by [@​jtoar](https://togithub.com/jtoar) - chore(CI): test webpack in tutorial e2e [#​8602](https://togithub.com/redwoodjs/redwood/issues/8602) by [@​jtoar](https://togithub.com/jtoar) - chore(ci): use the line reporter for now [#​8605](https://togithub.com/redwoodjs/redwood/issues/8605) by [@​jtoar](https://togithub.com/jtoar) - chore(CI): test webpack in the smoke tests [#​8604](https://togithub.com/redwoodjs/redwood/issues/8604) by [@​jtoar](https://togithub.com/jtoar) - test-project-rebuild [#​8516](https://togithub.com/redwoodjs/redwood/issues/8516) by [@​Tobbe](https://togithub.com/Tobbe) - Update command to rebuild test project fixture [#​8624](https://togithub.com/redwoodjs/redwood/issues/8624) by [@​Tobbe](https://togithub.com/Tobbe) - Rebuild fixture: await copyProject [#​8625](https://togithub.com/redwoodjs/redwood/issues/8625) by [@​Tobbe](https://togithub.com/Tobbe) - chore(project-config): Cache results of common functions [#​8581](https://togithub.com/redwoodjs/redwood/issues/8581) by [@​Josh-Walker-GM](https://togithub.com/Josh-Walker-GM) - chore(cli-plugins): remove project file from sb command [#​8626](https://togithub.com/redwoodjs/redwood/issues/8626) by [@​jtoar](https://togithub.com/jtoar) - chore(smoke-tests): make smoke tests easier to run locally [#​8607](https://togithub.com/redwoodjs/redwood/issues/8607) by [@​jtoar](https://togithub.com/jtoar) - regenerate test project fixture: Include [@​rwjs/vite](https://togithub.com/rwjs/vite) in v6 specific step [#​8654](https://togithub.com/redwoodjs/redwood/issues/8654) by [@​Tobbe](https://togithub.com/Tobbe) - Remove unused global var RWJS_WEB_BUNDLER [#​8655](https://togithub.com/redwoodjs/redwood/issues/8655) by [@​Tobbe](https://togithub.com/Tobbe) - rebuild-test-project-fixture: Print tmp dir and other output tweaks [#​8657](https://togithub.com/redwoodjs/redwood/issues/8657) by [@​Tobbe](https://togithub.com/Tobbe) - rebuild-test-project-fixture: Hardcode migration time [#​8656](https://togithub.com/redwoodjs/redwood/issues/8656) by [@​Tobbe](https://togithub.com/Tobbe) - chore(cli): Add OpenTelemetry [#​8653](https://togithub.com/redwoodjs/redwood/issues/8653) by [@​Josh-Walker-GM](https://togithub.com/Josh-Walker-GM) - chore(ci): Fix playwright timeout [#​8687](https://togithub.com/redwoodjs/redwood/issues/8687) by [@​Josh-Walker-GM](https://togithub.com/Josh-Walker-GM) - chore(rwfw): Add force optimise to vite.config when running project:sync [#​8688](https://togithub.com/redwoodjs/redwood/issues/8688) by [@​dac09](https://togithub.com/dac09) - chore(vite) Remove invalid comment [#​8729](https://togithub.com/redwoodjs/redwood/issues/8729) by [@​Tobbe](https://togithub.com/Tobbe) - Update test-project after Vite doc changes [#​8755](https://togithub.com/redwoodjs/redwood/issues/8755) by [@​Tobbe](https://togithub.com/Tobbe) - internal(rwfw) Add bins as scripts [#​8754](https://togithub.com/redwoodjs/redwood/issues/8754) by [@​Tobbe](https://togithub.com/Tobbe) - chore(cli): Telemetry robustness and command name convention [#​8747](https://togithub.com/redwoodjs/redwood/issues/8747) by [@​Josh-Walker-GM](https://togithub.com/Josh-Walker-GM) - chore(cli): Update checker background process logging improvement [#​8762](https://togithub.com/redwoodjs/redwood/issues/8762) by [@​Josh-Walker-GM](https://togithub.com/Josh-Walker-GM) - chore(v6): temporarily revert host-related changes [#​8765](https://togithub.com/redwoodjs/redwood/issues/8765) by [@​jtoar](https://togithub.com/jtoar) - structure: Update lru-cache to v7 to minimize project:copy issues [#​8805](https://togithub.com/redwoodjs/redwood/issues/8805) by [@​Tobbe](https://togithub.com/Tobbe) - Add babel plugin to internal deps [#​8830](https://togithub.com/redwoodjs/redwood/issues/8830) by [@​Tobbe](https://togithub.com/Tobbe) - Fix babel devDeps in internal [#​8831](https://togithub.com/redwoodjs/redwood/issues/8831) by [@​Tobbe](https://togithub.com/Tobbe) - chore: use renamed babel plugin packages [#​8832](https://togithub.com/redwoodjs/redwood/issues/8832) by [@​jtoar](https://togithub.com/jtoar) - chore(renovate): audit `renovate.json` [#​8856](https://togithub.com/redwoodjs/redwood/issues/8856) by [@​jtoar](https://togithub.com/jtoar) - chore(deps): bump semver from 6.3.0 to 6.3.1 in /packages/studio/frontend [#​8883](https://togithub.com/redwoodjs/redwood/issues/8883) by [@​dependabot](https://togithub.com/dependabot) ##### Experimental features This release includes many commits from experimental features. While these features aren't available yet, for completeness, here's the PRs that went into each one. ##### GraphQL Realtime - Refactor GraphQL Server and CreateYoga to Support "api serve" with Fastify Server [#​8339](https://togithub.com/redwoodjs/redwood/issues/8339) by [@​dthyresson](https://togithub.com/dthyresson) - feat: WIP Support Authentication in Realtime Subscriptions [#​8813](https://togithub.com/redwoodjs/redwood/issues/8813) by [@​dthyresson](https://togithub.com/dthyresson) - feature: Support GraphQL Subscriptions on web side [#​8374](https://togithub.com/redwoodjs/redwood/issues/8374) by [@​dthyresson](https://togithub.com/dthyresson) - feature: Configure Redwood Realtime in GraphQL Yoga [#​8397](https://togithub.com/redwoodjs/redwood/issues/8397) by [@​dthyresson](https://togithub.com/dthyresson) - feature: Support Auth in Fastify GraphQL Server by mimicking Lambda Events and Context [#​8533](https://togithub.com/redwoodjs/redwood/issues/8533) by [@​dthyresson](https://togithub.com/dthyresson) - feature: Generate boilerplate to create RedwoodJS Realtime with GraphQL Live Queries or Subscriptions [#​8710](https://togithub.com/redwoodjs/redwood/issues/8710) by [@​dthyresson](https://togithub.com/dthyresson) - chore: RedwoodJS GraphQL subscription templates now use Dynamic Topic IDs [#​8766](https://togithub.com/redwoodjs/redwood/issues/8766) by [@​dthyresson](https://togithub.com/dthyresson) - feat: Configure In-Memory or Redis-backed GraphQL Live Query and Subscriptions [#​8791](https://togithub.com/redwoodjs/redwood/issues/8791) by [@​dthyresson](https://togithub.com/dthyresson) - feat: Support Authentication in Realtime Subscriptions [#​8815](https://togithub.com/redwoodjs/redwood/issues/8815) by [@​dthyresson](https://togithub.com/dthyresson) - fix: Fixes and simplifies the Countdown subscription example for Realtime [#​8838](https://togithub.com/redwoodjs/redwood/issues/8838) by [@​dthyresson](https://togithub.com/dthyresson) - fix(fastify): Ensure global context is unique and scoped to an individual request lifetime [#​8569](https://togithub.com/redwoodjs/redwood/issues/8569) by [@​Josh-Walker-GM](https://togithub.com/Josh-Walker-GM) - chore: Update graphql-server to Yoga v4 and latest subscriptions [#​8753](https://togithub.com/redwoodjs/redwood/issues/8753) by [@​dthyresson](https://togithub.com/dthyresson) - chore: Cleans up server template for realtime [#​8487](https://togithub.com/redwoodjs/redwood/issues/8487) by [@​dthyresson](https://togithub.com/dthyresson) - chore: Remind to setup auth in server file GraphQL configuration [#​8742](https://togithub.com/redwoodjs/redwood/issues/8742) by [@​dthyresson](https://togithub.com/dthyresson) - fix(v6): Refactor Redwood Realtime as a new redwoodjs/realtime package to better handle dependencies [#​8878](https://togithub.com/redwoodjs/redwood/issues/8878) by [@​jtoar](https://togithub.com/jtoar) - fix(rw serve): conditionally import `@redwoodjs/realtime` [#​8950](https://togithub.com/redwoodjs/redwood/issues/8950) by [@​jtoar](https://togithub.com/jtoar) ##### Server File - feat(cli): Support experimental server file from `yarn rw dev` [#​8623](https://togithub.com/redwoodjs/redwood/issues/8623) by [@​Josh-Walker-GM](https://togithub.com/Josh-Walker-GM) - fix(cli): Add experimental notice when `rw dev` uses server file [#​8723](https://togithub.com/redwoodjs/redwood/issues/8723) by [@​Josh-Walker-GM](https://togithub.com/Josh-Walker-GM) ##### CLI Plugins - feat(cli): Experimental support for plugins [#​8316](https://togithub.com/redwoodjs/redwood/issues/8316) by [@​Josh-Walker-GM](https://togithub.com/Josh-Walker-GM) - fix(cli): Fix plugin loading logic for built-in commands [#​8494](https://togithub.com/redwoodjs/redwood/issues/8494) by [@​Josh-Walker-GM](https://togithub.com/Josh-Walker-GM) - fix(cli): Revert change to error display for `rw test` [#​8770](https://togithub.com/redwoodjs/redwood/issues/8770) by [@​Josh-Walker-GM](https://togithub.com/Josh-Walker-GM) - chore(cli): Rename command cache file [#​8699](https://togithub.com/redwoodjs/redwood/issues/8699) by [@​Josh-Walker-GM](https://togithub.com/Josh-Walker-GM) ##### Dependencies
Click to see all upgraded dependencies
  • fix(deps): update dependency babel-plugin-polyfill-corejs3 to v0.8.2 #​8834
  • fix(deps): update storybook monorepo to v7.0.15 #​8403
  • fix(deps): update dependency @​types/webpack-env to v1.18.1 #​8412
  • fix(deps): update storybook monorepo to v7.0.17 #​8413
  • fix(deps): update storybook monorepo to v7.0.18 #​8431
  • fix(deps): update storybook monorepo to v7.0.20 #​8558
  • chore(deps): update dependency supertokens-auth-react to v0.33.0 #​8562
  • chore(deps): update dependency supertokens-auth-react to v0.33.1 #​8576
  • chore(deps): update dependency esbuild to v0.18.2 #​8616
  • chore(deps): update dependency esbuild to v0.18.3 #​8628
  • fix(deps): update storybook monorepo to v7.0.21 #​8630
  • chore(deps): update dependency esbuild to v0.18.4 #​8646
  • fix(deps): update storybook monorepo to v7.0.22 #​8652
  • fix(deps): update storybook monorepo to v7.0.23 #​8696
  • chore(deps): update dependency esbuild to v0.18.7 #​8717
  • chore(deps): update dependency esbuild to v0.18.8 #​8727
  • chore(deps): update dependency esbuild to v0.18.9 #​8736
  • fix(deps): update storybook monorepo to v7.0.24 #​8751
  • chore(deps): update dependency esbuild to v0.18.10 #​8748
  • fix(deps): update dependency fastify to v4.19.0 #​8802
  • fix(deps): update dependency @​tremor/react to v3.4.1 #​8786
  • fix(deps): update dependency @​vscode/ripgrep to v1.15.5 #​8787
  • chore(deps): update dependency esbuild to v0.18.11 #​8819
  • fix(deps): update dependency fastify to v4.19.2 #​8820
  • chore(deps): update dependency @​tsd/typescript to v5.1.6 #​8781
  • fix(deps): update dependency @​clerk/clerk-sdk-node to v4.10.15 #​8785
  • fix(deps): update typescript-eslint monorepo to v5.61.0 #​8822
  • chore(deps): update yarn to v3.6.1 #​8799
  • chore(deps): update babel monorepo #​8833
  • fix(deps): update storybook monorepo to v7.0.26 #​8846
  • fix(deps): update dependency core-js to v3.31.1 #​8841
  • fix(deps): update dependency @​vitejs/plugin-react to v4.0.2 #​8840
  • chore(deps): update babel monorepo to v7.22.9 #​8890
  • chore(deps): update dependency @​types/testing-library__jest-dom to v5.14.8 #​8848
  • chore(deps): update dependency postcss to v8.4.25 #​8850
  • fix(deps): update dependency @​apollo/client to v3.7.17 #​8880
  • chore(deps): update dependency typescript to v5.1.6 #​8759
  • fix(deps): update prisma monorepo to v5 (major) #​8891
  • fix(deps): update jest monorepo #​8843
  • fix(deps): update dependency vite to v4.4.3 #​8842
  • chore(deps): update dependency @​clerk/clerk-react to v4.22.0 #​8902
  • fix(deps): update storybook monorepo to v7.0.27 #​8901
  • chore(deps): update dependency esbuild to v0.18.12 #​8899
  • fix(deps): update dependency @​vitejs/plugin-react to v4.0.3 #​8881
  • fix(deps): update opentelemetry-js monorepo #​8903
  • fix(deps): update dependency react-hook-form to v7.45.2 #​8923
  • fix(deps): update dependency eslint to v8.45.0 #​8914
  • fix(deps): update dependency vite to v4.4.4 #​8911
  • fix(deps): update dependency babel-loader to v9.1.3 #​8910
  • fix(deps): update dependency fastify to v4.20.0 #​8927
  • fix(deps): update storybook monorepo to v7.1.0 #​8941
  • fix(deps): update dependency fastify-raw-body to v4.2.1 #​8937
  • fix(deps): update dependency webpack to v5.88.2 #​8940
  • chore(deps): update dependency esbuild to v0.18.14 #​8939
  • chore(deps): update dependency esbuild to v0.18.15 #​8945
  • fix(deps): update dependency vite to v4.4.6 #​8946
  • fix(deps): update dependency babel-plugin-polyfill-corejs3 to v0.8.3 #​8951
  • chore(deps): update dependency esbuild to v0.18.16 #​8963
  • chore(deps): update dependency postcss to v8.4.27 #​8965
  • chore(deps): update dependency lerna to v7.1.4 #​8964
  • fix(deps): update storybook monorepo to v7.1.1 #​8968
  • fix(deps): update dependency msw to v1.2.3 #​8966
  • fix(deps): update dependency vite to v4.4.7 #​8967
  • fix(deps): update dependency firebase-admin to v11.10.1 #​8969
  • chore(deps): update dependency firebase to v10 #​8972
### [`v5.4.3`](https://togithub.com/redwoodjs/redwood/releases/tag/v5.4.3) [Compare Source](https://togithub.com/redwoodjs/redwood/compare/v5.4.2...v5.4.3) ##### Patch Release This patch release includes an update to Prisma and a fix for Serverless deploy (see [https://github.com/redwoodjs/redwood/issues/8804](https://togithub.com/redwoodjs/redwood/issues/8804)) - fix(deps): update prisma monorepo to v4.16.2 [#​8800](https://togithub.com/redwoodjs/redwood/issues/8800) - fix(serverless): use named exports instead of default [#​8857](https://togithub.com/redwoodjs/redwood/issues/8857) by [@​jtoar](https://togithub.com/jtoar) ### [`v5.4.2`](https://togithub.com/redwoodjs/redwood/releases/tag/v5.4.2) [Compare Source](https://togithub.com/redwoodjs/redwood/compare/v5.4.1...v5.4.2) ##### Patch Release This patch release configures the the new `unsupported-route-components` ESLint rule to only run on the `web/src/Routes.{js,jsx,tsx}` file: - Only enable new eslint rule for the Routes file [#​8794](https://togithub.com/redwoodjs/redwood/issues/8794) by [@​Tobbe](https://togithub.com/Tobbe) - eslint unsupported-route-components: Minor tweaks [#​8797](https://togithub.com/redwoodjs/redwood/issues/8797) by [@​Tobbe](https://togithub.com/Tobbe) ### [`v5.4.1`](https://togithub.com/redwoodjs/redwood/releases/tag/v5.4.1) [Compare Source](https://togithub.com/redwoodjs/redwood/compare/v5.4.0...v5.4.1) ##### Patch Release This patch release fixes [https://github.com/redwoodjs/redwood/issues/8789](https://togithub.com/redwoodjs/redwood/issues/8789), where the new `@redwoodjs/eslint-plugin` package wasn't listed as one of `@redwoodjs/eslint-config`'s dependencies: - fix(lint): add eslint-plugin to eslint-config https://github.com/redwoodjs/redwood/commit/660e8cf7cceec1d77cb56f9bfdd283ca54cfb6db ### [`v5.4.0`](https://togithub.com/redwoodjs/redwood/releases/tag/v5.4.0) [Compare Source](https://togithub.com/redwoodjs/redwood/compare/v5.3.2...v5.4.0) > 🌲 **RedwoodJS Conference, September 26-29 in Oregon, USA** > The first RedwoodJS in-person conference is only three months away! Details and discussions are happening on the [Redwood forums](https://community.redwoodjs.com/t/redwoodjs-conference-september-26-29-2023/4964). > > Registration here: [www.redwoodjsconf.com](https://www.redwoodjsconf.com) ##### Changelog This release features a great new addition to Redwood's prerendering capabilities: Redwood now preloads the Apollo Client Cache on the frontend with the data retrieved during prerendering. Where Cells are used, this allows the data served during prerender to match the client data. In addition to that, there's plenty more features and fixes in this release like: - a new OAuth cookbook for dbAuth https://redwoodjs.com/docs/how-to/oauth - integrated TypeScript support for alias paths https://redwoodjs.com/docs/typescript/introduction#using-alias-paths We plan for this release to be the last v5 release before the next major, but will of course release patches as appropriate. Lastly, if you're using Clerk authentication and haven't seen the new auth decoder in the `v5.3.2` patch, please see the release notes and migration guide: https://github.com/redwoodjs/redwood/releases/tag/v5.3.2. ##### Features - Prepopulate apollo cache on prerendered pages [#​8566](https://togithub.com/redwoodjs/redwood/issues/8566) by [@​KrisCoulson](https://togithub.com/KrisCoulson) - Use defined path aliases for prerendering [#​7575](https://togithub.com/redwoodjs/redwood/issues/7575) by [@​esteban-url](https://togithub.com/esteban-url) - Initial support for using SDL codegen for GraphQL types [#​8417](https://togithub.com/redwoodjs/redwood/issues/8417) by [@​orta](https://togithub.com/orta) - eslint rule for unsupported-route-components [#​8774](https://togithub.com/redwoodjs/redwood/issues/8774) by [@​Tobbe](https://togithub.com/Tobbe) - eslint rule to add types to service functions [#​8599](https://togithub.com/redwoodjs/redwood/issues/8599) by [@​orta](https://togithub.com/orta) ##### Fixed - deprecate `setup ui windicss` (project is sunsetting) [#​8597](https://togithub.com/redwoodjs/redwood/issues/8597) by [@​thedavidprice](https://togithub.com/thedavidprice) - Added verbose mode to baremetal [#​8544](https://togithub.com/redwoodjs/redwood/issues/8544) by [@​Bigood](https://togithub.com/Bigood) - ChunkReferencesPlugin: Update types in webpack plugin [#​8658](https://togithub.com/redwoodjs/redwood/issues/8658) by [@​Tobbe](https://togithub.com/Tobbe) - fix: Insert const in for...of loop [#​8732](https://togithub.com/redwoodjs/redwood/issues/8732) by [@​drikusroor](https://togithub.com/drikusroor) - DX: Tweak comments in redwood.toml [#​8744](https://togithub.com/redwoodjs/redwood/issues/8744) by [@​Tobbe](https://togithub.com/Tobbe) ##### Docs - fix [#​8509](https://togithub.com/redwoodjs/redwood/issues/8509): link to react-hook-form api [#​8510](https://togithub.com/redwoodjs/redwood/issues/8510) by [@​rayhatfield](https://togithub.com/rayhatfield) - Update routing-params.md [#​8548](https://togithub.com/redwoodjs/redwood/issues/8548) by [@​andrewlamyw](https://togithub.com/andrewlamyw) - fix(docs): Remove whitespace in `services.md` [#​8577](https://togithub.com/redwoodjs/redwood/issues/8577) by [@​BlackHawkSigma](https://togithub.com/BlackHawkSigma) - fix(docs) test should query for postId, not comment id [#​8529](https://togithub.com/redwoodjs/redwood/issues/8529) by [@​rayhatfield](https://togithub.com/rayhatfield) - Update cli-commands.md [#​8600](https://togithub.com/redwoodjs/redwood/issues/8600) by [@​andrewlamyw](https://togithub.com/andrewlamyw) - fix(docs): Fix & make verifyOwnership consistent [#​8596](https://togithub.com/redwoodjs/redwood/issues/8596) by [@​drikusroor](https://togithub.com/drikusroor) - Fix typos in documentation [#​8659](https://togithub.com/redwoodjs/redwood/issues/8659) by [@​yahhuh](https://togithub.com/yahhuh) - OAuth cookbook [#​8622](https://togithub.com/redwoodjs/redwood/issues/8622) by [@​cannikin](https://togithub.com/cannikin) ##### Chore - chore(crwa): dedupe browserlist query [#​8621](https://togithub.com/redwoodjs/redwood/issues/8621) by [@​jtoar](https://togithub.com/jtoar) - Fix type `ScenarioData` JSDoc example [#​8545](https://togithub.com/redwoodjs/redwood/issues/8545) by [@​BlackHawkSigma](https://togithub.com/BlackHawkSigma) - Get rid of 'proposal-dynamic-import' [#​8456](https://togithub.com/redwoodjs/redwood/issues/8456) by [@​Tobbe](https://togithub.com/Tobbe) - Fix await import in auth setup [#​8582](https://togithub.com/redwoodjs/redwood/issues/8582) by [@​Tobbe](https://togithub.com/Tobbe) - feat: Update the SDL types lib [#​8586](https://togithub.com/redwoodjs/redwood/issues/8586) by [@​orta](https://togithub.com/orta) - chore(rwfw): working refactor, make `project:sync` ignore more files [#​8579](https://togithub.com/redwoodjs/redwood/issues/8579) by [@​jtoar](https://togithub.com/jtoar) - Only use the main lodash package [#​8583](https://togithub.com/redwoodjs/redwood/issues/8583) by [@​Tobbe](https://togithub.com/Tobbe) - chore(cli-plugins): make depcruise reusable [#​8568](https://togithub.com/redwoodjs/redwood/issues/8568) by [@​jtoar](https://togithub.com/jtoar) - fix(publishing): remove tsconfig.tsbuildinfo [#​8637](https://togithub.com/redwoodjs/redwood/issues/8637) by [@​jtoar](https://togithub.com/jtoar) - chore(studio): update tremor to v3 [#​8645](https://togithub.com/redwoodjs/redwood/issues/8645) by [@​Josh-Walker-GM](https://togithub.com/Josh-Walker-GM) - Added Amy to README [#​8757](https://togithub.com/redwoodjs/redwood/issues/8757) by [@​pantheredeye](https://togithub.com/pantheredeye) ##### Core dependencies - fix(deps): update prisma monorepo to v4.16.1 [#​8695](https://togithub.com/redwoodjs/redwood/issues/8695) - fix(deps): update dependency fastify to v4.18.0 [#​8619](https://togithub.com/redwoodjs/redwood/issues/8619) - fix(deps): update dependency react-hook-form to v7.45.0 [#​8664](https://togithub.com/redwoodjs/redwood/issues/8664) - fix(deps): update dependency [@​apollo/client](https://togithub.com/apollo/client) to v3.7.16 [#​8678](https://togithub.com/redwoodjs/redwood/issues/8678) ##### Dependencies
Click to see all upgraded dependencies
  • fix(deps): update dependency @​types/aws-lambda to v8.10.116 #​8535
  • fix(deps): update typescript-eslint monorepo to v5.59.9 #​8525
  • chore(deps): update dependency @​clerk/clerk-react to v4.18.0 #​8536
  • chore(deps): update dependency @​clerk/types to v3.41.0 #​8538
  • chore(deps): update dependency @​simplewebauthn/server to v7.3.0 #​8517
  • chore(deps): update dependency @​azure/msal-browser to v2.37.1 #​8541
  • fix(deps): update dependency @​fastify/http-proxy to v9.2.0 #​8539
  • fix(deps): update dependency react-router-dom to v6.12.0 #​8540
  • fix(deps): update opentelemetry-js monorepo #​8543
  • fix(deps): update dependency graphql-scalars to v1.22.2 #​8546
  • fix(deps): update dependency graphql-scalars to v1.22.2 #​8547
  • chore(deps): update dependency cypress to v12.14.0 #​8550
  • chore(deps): update dependency @​types/react to v18.2.9 #​8553
  • fix(deps): update dependency webpack-cli to v5.1.4 #​8554
  • fix(deps): update dependency systeminformation to v5.18.2 #​8542
  • fix(deps): update dependency @​whatwg-node/fetch to v0.9.4 #​8563
  • fix(deps): update dependency react-router-dom to v6.12.1 #​8565
  • chore(deps): update dependency @​types/uuid to v9.0.2 #​8567
  • chore(deps): update dependency firebase to v9.22.2 #​8570
  • fix(deps): update dependency @​types/aws-lambda to v8.10.117 #​8571
  • fix(deps): update dependency @​vscode/ripgrep to v1.15.4 #​8573
  • fix(deps): update dependency systeminformation to v5.18.3 #​8574
  • chore(deps): update dependency @​clerk/types to v3.42.0 #​8584
  • chore(deps): update react monorepo #​8595
  • fix(deps): update dependency @​clerk/clerk-sdk-node to v4.10.6 #​8603
  • fix(deps): update dependency @​whatwg-node/fetch to v0.9.6 #​8606
  • fix(deps): update dependency @​types/aws-lambda to v8.10.118 #​8608
  • chore(deps): update babel monorepo to v7.22.5 #​8575
  • chore(deps): update dependency @​auth0/auth0-spa-js to v2.0.8 #​8613
  • fix(deps): update dependency webpack-dev-server to v4.15.1 #​8615
  • fix(deps): update dependency concurrently to v8.2.0 #​8617
  • fix(deps): update dependency fastify to v4.18.0 #​8619
  • fix(deps): update dependency core-js to v3.31.0 #​8618
  • chore(deps): update dependency lerna to v7 #​8609
  • chore(deps): update node.js to v18 #​8614
  • chore(deps): update dependency @​testing-library/dom to v9.3.1 #​8627
  • chore(deps): update dependency lerna to v7.0.2 #​8629
  • fix(deps): update dependency @​clerk/clerk-sdk-node to v4.10.7 #​8631
  • fix(deps): update dependency html-webpack-plugin to v5.5.3 #​8632
  • fix(deps): update dependency msw to v1.2.2 #​8633
  • fix(deps): update dependency react-error-boundary to v4.0.10 #​8634
  • chore(deps): update dependency @​clerk/clerk-react to v4.20.1 #​8635
  • chore(deps): update dependency @​supabase/supabase-js to v2.25.0 #​8636
  • chore(deps): update dependency octokit to v2.0.22 #​8647
  • fix(deps): update dependency @​types/aws-lambda to v8.10.119 #​8649
  • fix(deps): update dependency css-minimizer-webpack-plugin to v5.0.1 #​8650
  • fix(deps): update dependency semver to v7.5.2 #​8651
  • chore(deps): update dependency @​clerk/clerk-react to v4.20.4 #​8662
  • fix(deps): update dependency dotenv to v16.3.1 #​8663
  • fix(deps): update dependency webpack to v5.87.0 #​8549
  • fix(deps): update dependency react-hook-form to v7.45.0 #​8664
  • chore(deps): update dependency vite to v4.1.5 [security] #​8671
  • chore(deps): update dependency @​clerk/clerk-react to v4.20.5 #​8672
  • chore(deps): update dependency autoprefixer to v10.4.14 #​8668
  • chore(deps): update dependency dependency-cruiser to v13.0.4 #​8674
  • chore(deps): update dependency esbuild to v0.18.6 #​8670
  • chore(deps): update dependency postcss to v8.4.24 #​8675
  • chore(deps): update react monorepo #​8677
  • fix(deps): update dependency @​clerk/clerk-sdk-node to v4.10.12 #​8679
  • chore(deps): update dependency @​npmcli/arborist to v6.2.10 #​8681
  • fix(deps): update dependency @​tremor/react to v3.2.3 #​8560
  • fix(deps): update dependency @​apollo/client to v3.7.16 #​8678
  • fix(deps): update prisma monorepo to v4.16.0 #​8684
  • chore(deps): update dependency vite to v4.3.9 #​8682
  • fix(deps): update dependency @​fastify/http-proxy to v9.2.1 #​8680
  • fix(deps): update typescript-eslint monorepo to v5.60.0 #​8660
  • fix(deps): update dependency @​graphiql/plugin-explorer to v0.1.20 #​8691
  • fix(deps): update prisma monorepo to v4.16.1 #​8695
  • fix(deps): update dependency react-toastify to v9.1.3 #​8694
  • chore(deps): update dependency @​simplewebauthn/server to v7.3.1 #​8690
  • fix(deps): update dependency @​vitejs/plugin-react to v4.0.1 #​8692
  • fix(deps): update dependency react-error-boundary to v4.0.10 #​8693
  • fix(deps): update dependency @​graphiql/toolkit to v0.8.4 #​8698
  • fix(deps): update dependency webpack to v5.88.0 #​8697
  • fix(deps): update dependency @​headlessui/react to v1.7.15 #​8700
  • fix(deps): update dependency @​heroicons/react to v2.0.18 #​8701
  • fix(deps): update dependency @​whatwg-node/fetch to v0.9.7 #​8702
  • fix(deps): update dependency graphiql to v2.4.7 #​8703
  • fix(deps): update dependency semver to v7.5.3 #​8704
  • chore(deps): update dependency @​clerk/types to v3.46.0 #​8708
  • fix(deps): update dependency systeminformation to v5.18.4 #​8706
  • chore(deps): update dependency @​playwright/test to v1.35.1 #​8709
  • chore(deps): update dependency @​types/react to v18.2.14 #​8714
  • chore(deps): update dependency @​supabase/supabase-js to v2.26.0 #​8711
  • chore(deps): update dependency @​types/vscode to v1.79.1 #​8715
  • chore(deps): update dependency cypress to v12.15.0 #​8716
  • fix(deps): update dependency @​graphiql/plugin-explorer to v0.1.21 #​8719
  • chore(deps): update dependency firebase to v9.23.0 #​8718
  • chore(deps): update dependency glob to v10.3.0 #​8720
  • chore(deps): update dependency nx to v16.4.0 #​8722
  • fix(deps): update dependency envinfo to v7.9.0 #​8725
  • fix(deps): update dependency eslint to v8.43.0 #​8726
  • chore(deps): update dependency octokit to v2.1.0 #​8724
  • fix(deps): update dependency @​graphiql/plugin-explorer to v0.1.22 #​8737
  • fix(deps): update dependency systeminformation to v5.18.5 #​8741
  • fix(deps): update typescript-eslint monorepo to v5.60.1 #​8746
  • fix(deps): update dependency webpack to v5.88.1 #​8768
  • fix(deps): update dependency react-hook-form to v7.45.1 #​8767
  • chore(deps): update dependency glob to v10.3.1 #​8783
  • chore(deps): update dependency @​clerk/types to v3.46.1 #​8780
### [`v5.3.2`](https://togithub.com/redwoodjs/redwood/releases/tag/v5.3.2) [Compare Source](https://togithub.com/redwoodjs/redwood/compare/v5.3.1...v5.3.2) ##### Patch Release > **Note** **Are you using [Clerk](https://clerk.com/) for authentication and user management? Keep reading**. This patch adds a new auth decoder, `clerkAuthDecoder` to the `@redwoodjs/auth-clerk-api` package and deprecates the existing one, which is simply named `authDecoder`. We recommend that everyone using Clerk migrate to the new auth decoder unless you’re already using a custom one. The current auth decoder is subject to rate limiting. ##### Background First, a quick reminder on how auth works in Redwood. On a project's api side, there's two critical auth functions, `authDecoder` and `getCurrentUser`. They're both passed to `createGraphQLHandler` in `api/src/functions/graphql.{ts,js}`: ```ts // api/src/functions/graphql.{ts,js} import { authDecoder } from '@​redwoodjs/auth-clerk-api' import { createGraphQLHandler } from '@​redwoodjs/graphql-server' // ... import { getCurrentUser } from 'src/lib/auth' export const handler = createGraphQLHandler({ authDecoder, getCurrentUser, // ... }) ``` As the codeblock above shows, `authDecoder` comes from one of Redwood's auth packages (but you can write it yourself if you want), while `getCurrentUser` comes from the `api/src/lib/auth.{ts,js}` file—it's a function that you own in your project. These functions are used together internally by Redwood. While this is a simplification, basically `authDecoder`'s return value is the first argument to `getCurrentUser`, like this: ```js // Internally, in Redwood. This is pseudocode. const decoded = await authDecoder(token, ...otherArgs) const currentUser = await getCurrentUser(decoded, ...otherArgs) // Add the user to the context... ``` ##### Migration Path The last thing you want is your project's `authDecoder` getting rate limited! Here's how to migrate: 1. Upgrade to this version via `yarn rw upgrade` 2. In your project's GraphQL file, `api/src/functions/graphql.{ts,js}`, import the new auth decoder, `clerkAuthDecoder`, as the `authDecoder` function from `@redwoodjs/auth-clerk-api`: ```diff // api/src/functions/graphql.{ts,js} - import { authDecoder } from '@​redwoodjs/auth-clerk-api' + import { clerkAuthDecoder as authDecoder } from '@​redwoodjs/auth-clerk-api' ``` 3. In your project's api-side auth file, `api/src/lib/auth.{ts,js}`, modify the `getCurrentUser` function accordingly and customize the session token on your Clerk application's dashboard (see https://clerk.com/docs/request-authentication/customizing-session-tokens) The modifications you'll have to make will be specific to your project. The `getCurrentUser` function's first argument, `decoded`, will be different. It'll still be an object, but by default, it has much fewer props than before. To illustrate the difference, let’s look at an example of what the `decoded` parameter to the `getCurrentUser` function is before and after: ```ts // api/src/lib/auth.{ts,js} export const getCurrentUser = async ( decoded, // 👈 This will be different, see below // ... ) => { if (!decoded) { logger.warn('Missing decoded user') return null } // Your custom logic... } ```
old auth decoder (`authDecoder`) return valuenew auth decoder (`clerkAuthDecoder`) return value
```js { id: 'user_...', passwordEnabled: true, totpEnabled: false, backupCodeEnabled: false, twoFactorEnabled: false, banned: false, createdAt: ..., updatedAt: ..., profileImageUrl: 'https://...', imageUrl: 'https://...', gender: '', birthday: '', primaryEmailAddressId: 'idn_...', primaryPhoneNumberId: null, primaryWeb3WalletId: null, lastSignInAt: ..., externalId: null, username: null, firstName: null, lastName: null, publicMetadata: {}, privateMetadata: {}, unsafeMetadata: {}, emailAddresses: [...], phoneNumbers: [], web3Wallets: [], externalAccounts: [], roles: [], } ``` ```js { id: 'user_...', azp: 'http://...', exp: ..., iat: ..., iss: 'https://...', j

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

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.