Releases: redwoodjs/graphql
v8.6.1
Changelog
This release focuses on upgrading third party packages to fix security vulnerabilities
📦 Dependencies
- chore(deps): Bump vite to 5.4.15 (#12012) by @Tobbe
- chore(deps): Upgrade Vitest to 2.1.8 (#12010) by @Tobbe
- chore(deps): bump elliptic from 6.6.0 to 6.6.1 (#11960) by @dependabot[bot]
- chore(deps): bump tar-fs from 2.1.1 to 2.1.2 (#12011) by @dependabot[bot]
- chore(deps): Bump vite-plugin-node-polyfills to v0.23.0 (#12014) by @Tobbe
- chore(deps): bump axios from 1.7.7 to 1.8.4 (#12013) by @dependabot[bot]
- chore(deps): bump serialize-javascript from 6.0.1 to 6.0.2 in /docs (#11954) by @dependabot[bot]
- chore(deps): Bump Vite to 5.4.16 (#12016) by @Tobbe
🧹 Chore
v7.7.5
Changelog
🛠️ Fixes
- fix(storybook): Make Storybook run also on Node v20.19.0 (#12003) by @Tobbe
- fix(storybook): Apply workaround in #12003 also for Webpack Storybook (d1dd80f) by @Tobbe
📦 Dependencies
- chore(deps): bump elliptic from 6.5.5 to 6.6.1 (#11960) by @dependabot[bot]
- chore(deps): Bump vite to 4.5.11 (#12012) by @Tobbe
- chore(deps): bump tar-fs from 2.1.1 to 2.1.2 (#12011) by @dependabot[bot]
- chore(deps): bump axios from 1.6.7 to 1.8.4 (#12013) by @dependabot[bot]
- chore(deps): Bump vitest to 1.6.1 to fix security issue by (f901e4a) @Tobbe
v8.6.0
Changelog
🚀 Features
feat(scripts): Args type for script arguments (#11946) by @Tobbe
Generated scripts will now come with an `Args` interface that you can add your arguments to for better TS support.🛠️ Fixes
- fix(babel-config): react compiler target should be a string (#11935) by @Tobbe
- fix(cli): Await files() when generating scripts (#11947) by @Tobbe
- fix(cli): Support passing numeric args to prisma (#11948) by @Tobbe
- fix(testing): Don't generate scenarios with red squiggles (#11992) by @Tobbe
- fix(storybook): Make Storybook run also on Node v20.19.0 (#12003) by @Tobbe
- fix(dbAuth): Don't include .snap files in the built package (#12007) by @Tobbe
📚 Docs
- docs(deployment): Removes grove based deployment information (#11932) by @Josh-Walker-GM
- docs: fix discord invite link (#11933) by @Josh-Walker-GM
- fix a spelling error (principal -> principle) (#11952) by @tzwel
- docs: Fix spelling in graphql docs (#11964) by @Tobbe
- Update auth.webAuthn.ts.template (#11990) by @mikecanann
📦 Dependencies
Click to see all dependency updates
- deps(@babel/generator): Bump to 7.26.10 (#11983) by @Tobbe
- chore(deps): storybook 7.6.20 (#12002) by @Tobbe
- deps(@babel/core): Bump to 7.26.10 (#11981) by @Tobbe
- deps(babel): @babel/runtime-corejs3 7.26.10 (#11985) by @Tobbe
- deps(babel): Bump presets and plugins to their latest versions (#11988) by @Tobbe
- deps(babel): Bump
@babel
parser, register and traverse (#11989) by @Tobbe
v8.5.0
Changelog
🚀 Features
feat(cli): Support generating sdls for models with only an id and relation (#11931) by @Tobbe
It's now possible to generate SDL files for models that look like this// This would be seeded with available car brands
model CarBrand {
brand String @id
cars Car[]
}
[Storybook] Improve typing, add doc links & remove redundant JSDoc in preview.tsx (#11745) by @Philzen
Better types for storybook preview config Better IntelliSense hints for storybook- [TS + Docs] Include potential gql input variables in ListCell's Loading and Success component typing & improve TS docs (#11773) by @Philzen
feat(router): Add option to not reset scroll to the top on navigate/link (#11380) by @guitheengineer
You can now donavigate(`?id=${id}`, { scroll: false })
and <Link to={`?id=${id}`} options={{ scroll: false }} />
to not reset the scroll to the top when navigating.
feat(dbAuth): Lax SameSite cookie policy (#11889) by @Tobbe
Setting theSameSite
cookie policy to Lax
allows users to be immediately
authenticated when arriving from external domains.
🛠️ Fixes
- fix(router): Skip search params with undefined and null values passed to named routes (#11635) by @antonmoiseev
fix(cli): Pin TailwindCSS to v3 (#11920) by @Tobbe
Pinning TW to v3 for our `yarn rw setup ui tailwind` command until we've added support for TW v4📚 Docs
- fix(docs): make bold the whole word, not just the first char (#11710) by @fromaline
📦 Dependencies
Click to see all dependency updates
- chore(deps): update dependency prettier-plugin-curly to v0.3.1 (#11855) by @renovate
- chore(deps): [email protected] (#11895) by @Tobbe
- chore(deps) re-upgrade to yarn 4.6.0 (#11911) by @Tobbe
- fix(deps): update dependency isbot to v5.1.21 (#11912) by @renovate
- fix(deps): update dependency vite to v5.4.12 [security] (#11916) by @renovate
- fix(deps): update dependency @fastify/multipart to v8.3.1 [security] (#11922) by @renovate
- chore(deps): bump store2 from 2.14.2 to 2.14.4 (#11927) by @dependabot
v8.4.5
Changelog
Trying to fix our release process and broken releases
🛠️ Fixes
🧹 Chore
Click to see all chore contributions
- chore(deps): [email protected] (#11909) by @Tobbe
- chore(deps): [email protected] (#11910) by @Tobbe
v8.4.4
v8.4.3
Changelog
🛠️ Fixes
- [Router] Fix TS error when passing WrapperProps to
<PrivateSet>
s (#11739) by @Philzen - fix(cli): Update cell test template to include
id
(#11749) by @Tobbe - fix(cli): Fix Cell test generation for list cells (#11779) by @Tobbe
- fix(cli): Fix TS warnings in custom function template (#11770) by @Tobbe
- Fix
useEffect is not defined
in i18n template (#11788) by @Philzen - fix(babel-config): Specify 'target' for the react compiler plugin (#11822) by @Tobbe
- Export EmptyAsValue and RedwoodRegisterOptions from packages/forms (#11783) by @c-ciobanu
- [setup i18n storybook] Use function with capitalized name to comply with eslint-rule (#11827) by @Philzen
- fix(crwrsca): add @types/node to fix peer deps (#11842) by @Tobbe
- fix(deploy): Restore Render deploy setup script (#11857) by @Tobbe
- fix(cookie): Fix regression after v1 upgrade (#11866) by @Tobbe
- fix(dev): Remove redundant whitespace in cli output (#11880) by @Tobbe
- [fix] Make --load-env-files work with
yarn rw test
(#11887) by @Philzen - fix(templates+docs) Make Storybook links link to correct versions (#11892) by @Philzen
Fix AuthProviderProps export missing from @redwood/auth
(#11766) by @Philzen
`AuthProviderProps` is now exported from `@redwood/auth`
Fix absolute & component folder imports in Storybook config folder (#11746) by @Philzen
Include the storybook config folder in the includes in `{ts,js}config.json`[TS] Include query parameters in typed Cell component props (#11737) by @Philzen
If you have a Cell that for example takes an `id` prop, to be used as a query parameter, it'd also be passed to the individual cell components. This is now properly reflected in the types.fix(ogimage): Corrected package.json exports (#11724) by @Tobbe
Fix publish warnings in our ogImage package. Making TS types available for anyone using this packageRemove header example with broken link (#11776) by @Philzen
We used to have an `x-auth-comment` header with a link describing how to set up auth for the graphql playground. The link was broken, and no extra setup is needed anymore. So the comment header is now removed.Fix Storybook preview config being set up in old config directory (#11869) by @Philzen
Store Storybook config in `web/.storybook/`fix(forms): Re-export InputFieldProps (#11879) by @Tobbe
Makes it possible to import the `InputFieldProps` type from `@redwoodjs/forms`📚 Docs
- chore(docs): Fix links in Storybook docs; add link to dbAuth OAuth plugin (#11581) by @arimendelow
📦 Dependencies
Click to see all dependency updates
- chore(deps): update dependency typescript-eslint to v8 (#11234) by @renovate
- chore(deps): bump cross-spawn from 7.0.3 to 7.0.6 (#11725) by @dependabot
- chore(deps): bump nanoid from 3.3.7 to 3.3.8 (#11778) by @dependabot
- chore(deps): Bump systeminformation from 5.23.5 to 5.23.8 (#11793) by @Tobbe
- fix(deps): update dependency @whatwg-node/server to v0.9.65 (#11819) by @renovate
- fix(deps): update dependency dotenv to v16.4.7 (#11820) by @renovate
- fix(deps): update dependency @vitejs/plugin-react to v4.3.4 (#11818) by @renovate
- fix(deps): update dependency isbot to v5.1.19 (#11821) by @renovate
- chore(deps): update dependency @clerk/types to v3.65.4 (#11829) by @renovate
- chore(deps): update dependency @clerk/clerk-react to v4.32.4 (#11828) by @renovate
- chore(deps): update dependency @types/nodemailer to v6.4.17 (#11833) by @renovate
- chore(deps): update dependency eslint-plugin-n to v17.15.1 (#11840) by @renovate
- chore(deps): update dependency firebase to v10.14.1 (#11834) by @renovate
- chore(deps): update dependency @types/nodemailer to v6.4.17 (#11845) by @renovate
- chore(deps): update dependency ioredis to v5.4.2 (#11846) by @renovate
- chore(deps): update dependency eslint-plugin-jsonc to v2.18.2 (#11839) by @renovate
- fix(deps): update dependency esbuild to v0.24.2 (#11847) by @renovate
- fix(deps): update dependency eslint-plugin-jsx-a11y to v6.10.2 (#11848) by @renovate
- chore(deps): update dependency eslint-plugin-package-json to ^0.18.0 (#11849) by @renovate
- chore(deps): update dependency eslint-plugin-perfectionist to v3.9.1 (#11850) by @renovate
- chore(deps): update dependency eslint-plugin-yml to v1.16.0 (#11853) by @renovate
- chore(deps): update dependency prettier to v3.4.2 (#11854) by @renovate
- fix(deps): update dependency nodemailer to v6.9.16 (#11858) by @renovate
- chore(deps): update dependency knip to v5.41.1 (#11861) by @renovate
- [chore] Use framer-motion @^11 instead of @^9 for Chakra UI setup (#11870) by @Philzen
- Update to @typescript-eslint version that supports TypeScript 5.6.2 (#11878) by @Philzen
🧹 Chore
Click to see all chore contributions
- [TS/chore] Migrate deprecated apollo `QueryReference` type in cellTypes.ts (#11780) by @Philzen
- chore(formatting): Fix formatting in auth/src/index.ts (#11792) by @Tobbe
- Remove extraneous `i18n` dependency from i18n setup (#11789) by @Philzen
- [Chore] Update yarn to v4.6.0 (#11874) by @Philzen
- [chore] Re-use loadEnvFiles from cli-helpers lib, elimininating code duplicatation (#11885) by @Philzen
v8.4.2
Changelog
🛠️ Fixes
fix: 🐛 add custom headers to subscription in apollo client (#11744) by @dennemark
Allow passing custom headers to `sseLink`, which is used by the Apollo client for subscriptions.Include .storybook
folder in Linting (#11748) by @Philzen
fix(api-server): prevent race condition in server restart process (#11731) by @o0charlie0o
📚 Docs
- docs: update oauth.md (#11698) by @ejsinfuego
📦 Dependencies
Click to see all dependency updates
- chore(deps): bump @eslint/plugin-kit from 0.2.0 to 0.2.3 in /packages/create-redwood-rsc-app (#11720) by @dependabot
- chore(deps): bump cross-spawn from 7.0.3 to 7.0.5 in /packages/create-redwood-rsc-app (#11723) by @dependabot
- fix(deps): update dependency smol-toml to v1.3.1 [security] (#11733) by @renovate
🧹 Chore
v8.4.1
Changelog
🛠️ Fixes
fix(dbAuth): Don't use Multi Value Headers on Vercel (#11718) by @Tobbe
Fixes a regression regarding dbAuth on Vercel introduced in RW 8
Properly kill dev api-server (#11691) by @callingmedic911
Sometime the api-server doesn't get killed in time before the new instance is started. This change makes sure that we wait for the process. If it's not killed within 2 seconds with SIGTERM, we send a SIGKILL to it.
Fix build with TS alias without basePath (#11693) by @callingmedic911
It fixes the build process for a project with TypeScript path alias. It uses root directory as the fallback if there's no baseUrl in tsconfig.json
.
v8.4.0
Changelog
🚧 🚨 Experimental Breaking
breaking(rsc): Removing live-reload RSC dev server approach (#11648) by @Tobbe
Please see #11648 for more details🚀 Features
feat(baremetal): Check available disk space (#11469) by @Tobbe
Adds an early step to the yarn rw deploy baremetal
command that checks to
make sure there is enough free disk space on the server before continuing.
By default it will make sure there is at least 2048 MB (2 GB) of free disk space
but this can be changed by setting the new deploy.toml
option
freeSpaceRequired
to however many MB you want.
You can skip this step by passing --no-df
to the deploy baremetal
command or
setting freeSpaceRequired
to 0
.
🛠️ Fixes
fix(jobs): merge job options to prevent 'undefined' values in place of defaults (#11666) by @Josh-Walker-GM
Please see #11666 for more detailsfix(jobs): Fixes creating worker with deleteSuccessfulJobs config setting in JobManager (#11653) by @dthyresson
According to the Job documentation, the JobManager's deleteSuccessfulJobs
can be used to decide if one wants successfully completed jobs from being deleted from the BackgroundJobs
table.
Keeping job run history around is useful for reporting purposes, such s hoe many jobs run over time, how many fails, how many successes, etc.
However, the deleteSuccessfulJobs
was not being correctly passed to the worker in createWorker
so the worker always used the default value -- true -- and always deleted the job run record regardless of configuration.
This PR fixes this issue by setting the config value when creating the worker.
fix(crwa): Add missing quotes to seed example (#11651) by @Tobbe
Just un-commenting the example seed code now gives you valid code to seed your database with
fix(web) type NonSuspenseCellQueryResult... (#11639) by @richard-stafflink
The result you get back as queryResult
is now properly typed. Typically the
type will be something like FindPostById
, i.e. the first type that is passed
to CellSuccessProps
(instead of just being any
).
fix(crwa): Better handling of installing to . (#11645) by @Tobbe
When installing to cwd
:
- Print "the current directory" instead of "."
- Skip the output of
cd
(which would move you to your home directory, which
most likely is not what you want)
📚 Docs
docs(deploy): fix grove command (#11689) by @Josh-Walker-GM
Please see #11689 for more detailsdocs: fix versioned docs (#11643) by @Josh-Walker-GM
Please see #11643 for more detailsRemoved 'Azure' as deploy provider mention' (#11116) by @pantheredeye
Please see #11116 for more detailsUpdate the Deployment step of the tutorial for GROVE (#10890) by @cannikin
Please see #10890 for more details📦 Dependencies
Click to see all dependency updates
- chore(deps): update babel monorepo to v7.25.7 (#11682) by @renovate
- chore(deps): update dependency firebase to v10.14.0 (#11680) by @renovate
- fix(deps): update dependency firebase-admin to v12.6.0 (#11681) by @renovate
- fix(deps): update dependency @types/node to v20.16.11 (#11679) by @renovate
- fix(deps): update dependency @joshwooding/vite-plugin-react-docgen-typescript to v0.4.1 (#11675) by @renovate
- fix(deps): update dependency @vitejs/plugin-react to v4.3.2 (#11673) by @renovate
- chore(deps): update dependency node to v20.18.0 (#11669) by @renovate
- fix(deps): update dependency @faire/mjml-react to v3.4.0 (#11672) by @renovate
- fix(deps): update dependency cookie to v0.7.2 (#11670) by @renovate
- chore(deps): bump cookie from 0.7.0 to 0.7.1 (#11665) by @dependabot
- fix(deps): update dependency cookie to v0.7.0 [security] (#11661) by @renovate
- fix(deps): update dependency http-proxy-middleware to v3.0.3 (#11657) by @renovate
- fix(deps): update dependency vite to v5.4.8 (#11658) by @renovate
🧹 Chore
Click to see all chore contributions
- chore(deps): update github/codeql-action digest to c36620d (#11678) by @renovate
- chore(deps): update actions/checkout action to v4.2.1 (#11676) by @renovate
- chore(deps): update dependency @actions/core to v1.11.1 (#11677) by @renovate
- chore(deps): update dependency eslint-plugin-perfectionist to v3.8.0 (#11674) by @renovate
- chore(deps): update dependency @types/jscodeshift to v0.12.0 (#11671) by @renovate
- chore(deps): update dependency knip to v5.33.1 (#11668) by @renovate
- chore(deps): update dependency @types/lodash to v4.17.10 (#11667) by @renovate
- chore(deps): update dependency rollup to v4.24.0 (#11664) by @renovate
- chore(deps): update dependency memfs to v4.13.0 (#11663) by @renovate
- chore(deps): update chore (#11662) by @renovate
- chore(deps): update dependency @types/vscode to v1.94.0 (#11659) by @renovate
- chore(release): update docs (#11637) by @Josh-Walker-GM
🚧 🧹 Experimental Chore
Click to see all chore contributions
- chore(rsc): Extract importRsdwServer() and move type assertions to utils (#11688) by @Tobbe
- chore(rsc): Fix console log and add todo (#11685) by @Tobbe
- chore(rsc): Fix TODO and simplify SSR code (#11650) by @Tobbe
- chore(rsc): Rename renderRoutesFromDist to renderRoutesSsr (#11647) by @Tobbe
- chore(rsc): Make Router-related imports safer for RSC (#11644) by @Tobbe
- chore(rsc): Remove unused node-loader (#11642) by @Tobbe
- chore(rsc): Refactor: Extract rscFetch and rsaFetch (#11582) by @Tobbe