chore(deps): bump all dependencies#369
Conversation
Co-authored-by: Cody Olsen <stipsan@users.noreply.github.com>
Co-authored-by: Cody Olsen <stipsan@users.noreply.github.com>
…to latest major Co-authored-by: Cody Olsen <stipsan@users.noreply.github.com>
…nd @sanity/prettier-config to latest majors Co-authored-by: Cody Olsen <stipsan@users.noreply.github.com>
Co-authored-by: Cody Olsen <stipsan@users.noreply.github.com>
- migrate tsconfig preset from @sanity/pkg-utils/tsconfig to the new @sanity/tsconfig package - add publishConfig.exports without the dev-only source condition, as recommended by pkg-utils v10 - opt out of the new noRxjsPeerDependency strict check since rxjs is intentionally a peer dependency - fix website tsconfig: replace deprecated moduleResolution=node with bundler, and add explicit types: ["node"] now that TypeScript 6 no longer auto-includes ambient @types packages Co-authored-by: Cody Olsen <stipsan@users.noreply.github.com>
- migrate vitest.workspace.ts into the test.projects field in vitest.config.ts, since defineWorkspace/vitest.workspace.ts is removed in Vitest 4 Co-authored-by: Cody Olsen <stipsan@users.noreply.github.com>
ESLint 10 no longer depends on @eslint/js internally, so it must be installed directly since eslint.config.mjs imports it. Co-authored-by: Cody Olsen <stipsan@users.noreply.github.com>
|
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
|
Warning Review the following alerts detected in dependencies. According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.
|
Summary
Bumps every dependency across the workspace (root
react-rxpackage andwebsite) to their latest available version, including major versions where it was safe and reasonably scoped to do so.Each logical bump is its own commit so the history stays easy to bisect/review.
What was bumped
react-rxandwebsite.eslint-plugin-react-hooks) via the same command the repo's ownreact-compiler.ymlworkflow uses.bezier-easingv2 → v3,eslint-plugin-simple-import-sortv12 → v13.semantic-releasev24 → v25,@sanity/semantic-release-presetv5 → v6,@sanity/prettier-configv1 → v3.eslintv9 → v10, plus@typescript-eslint/*,typescript-eslint,eslint-plugin-react,eslint-config-prettierto their latest compatible releases. Verified the plugin chain actually catches violations under ESLint 10 (not just "doesn't crash"), despiteeslint-plugin-react'speerDependenciesrange not yet formally listing ESLint 10 support.typescriptv5.9 → v6.0, together with@sanity/pkg-utilsv8 → v10 (these two are coupled — pkg-utils v8 pinstypescript@5.8.x || 5.9.x, v10 adds6.0.xsupport).@sanity/pkg-utils/tsconfig/*to the new standalone@sanity/tsconfigpackage, as required by pkg-utils v10.strictOptions.noRxjsPeerDependency: 'off'inpackage.config.tsto opt out of a new pkg-utils v10 lint rule —rxjsis intentionally apeerDependencyhere (same rationale asreact) so consumers bring their own RxJS instance.publishConfig.exports(without the dev-onlysourcecondition), per pkg-utils v10's new recommendation.website/tsconfig.json: replaced the now-deprecatedmoduleResolution: "node"with"bundler", and added explicit"types": ["node"]now that TypeScript 6 no longer auto-includes ambient@types/*packages (the website readsprocess.env/process.cwd()).vitestv3 → v4 andjsdomv26 → v29. Migratedvitest.workspace.tsinto thetest.projectsfield insidevitest.config.ts, sincedefineWorkspace/workspace files are removed in Vitest 4.@eslint/jsas an explicitdevDependency— ESLint 10 no longer depends on it internally, buteslint.config.mjsimports it directly. This only surfaces on a clean install, so it's easy to miss.Intentionally left as-is
Three dependencies are tightly coupled and require a much larger, invasive migration than a routine dependency bump:
next(15 → 16) requiresnextra/nextra-theme-docsv4 in practice — confirmed by reproducing the exact failure (TypeError: pkg.init is not a functionloadingnext.config.ts) when pairing Next 16 with Nextra 3, even though Nextra 3'speerDependenciesloosely allow it (next: ">=13").nextra/nextra-theme-docs(3 → 4) dropped Pages Router support entirely in favor of the App Router, which would mean restructuring the wholewebsiteapp (movingpages/toapp/or a content directory, replacingtheme.config.jsxwith layout props, addingmdx-components, switching the search engine from FlexSearch to Pagefind, etc.).@vitejs/plugin-react(5 → 6) requires Vite 8 and removes Babel support entirely (Oxc-based refresh transform instead). This repo'svitest.config.tsrelies on the plugin'sbabeloption to runbabel-plugin-react-compilerfor thereact-compilertest project, so bumping this now would break React Compiler test coverage without a coordinated rework.Left these three at their current (still fully supported, non-vulnerable) versions rather than attempting a risky, large-scope rewrite as a side effect of a dependency bump. Happy to follow up with a dedicated PR for the Nextra 4 / App Router migration if desired.
Verification
For both
react-rxandwebsite, from a cleannode_modulesinstall:pnpm lint✅pnpm build(pkg build --strict --clean --check) ✅pnpm test(vitest run --typecheck, both thedefaultandreact-compilerprojects) ✅ 48/48 testspnpm --filter react-rx-website build(next build) ✅pnpm formatproduces no diff (one legitimate reformat from theprettier/@sanity/prettier-configbump was committed)