mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 09:25:06 +03:00
Upgrade vite and vitest to their latest major versions across the
monorepo, along with related packages.
**Changed:**
- `vite` catalog: `^7.3.2` → `^8.0.8` (Rolldown replaces esbuild/Rollup)
- `vitest` catalog: `^3.2.0` → `^4.1.4`
- `@vitejs/plugin-react`: `^4.3.4` → `^6.0.1`
- `@vitest/coverage-v8`: `^3.2.0` → `^4.1.4`
- `@vitest/ui`: `^3.2.0` → `^4.1.4`
- `vite-tsconfig-paths`: `^4.3.2` / `^5.1.4` → `^6.1.1`
**Pinned to vite 7:**
- `apps/lite-studio` — `@react-router/dev` hasn't declared vite 8
support yet
- `blocks/vue` — Nuxt plugins (`vite-plugin-inspect`, `vite-dev-rpc`,
`vite-hot-client`, `vite-plugin-vue-tracer`) haven't declared vite 8
support yet
**Test fixes for vitest 4 breaking changes:**
- **`apps/studio/lib/api/snippets.utils.test.ts`** — Replaced
`vi.mock('fs/promises')` automock with an explicit factory. Vitest 4's
automocking doesn't create mock functions for getter-based exports on
Node built-ins, so `mockedFS.access.mockResolvedValue` etc. were
`undefined`.
- **`apps/studio/lib/api/self-hosted/functions/index.test.ts`** —
Changed `mockReturnValue` to `mockImplementation(function() { ... })`
for a constructor mock. Vitest 4 no longer allows `mockReturnValue` when
the mock is called with `new`.
- **`apps/studio/tests/pages/api/mcp/index.test.ts`** — Changed arrow
function to regular `function` in `mockImplementation` for
`StreamableHTTPServerTransport`. Arrow functions can't be constructors,
and vitest 4 now enforces this.
- **`packages/ui-patterns/vitest.setup.ts`** — Changed `ResizeObserver`
mock from arrow function to regular `function` for the same constructor
enforcement reason. This was crashing Radix popover rendering in jsdom.
## To test
- `pnpm test:studio` — all 226 test files should pass
- `pnpm --filter ui-patterns vitest run` — all 183 tests should pass
- `pnpm --filter www test -- --run` — all 19 tests should pass
- `pnpm --filter ui vitest run` — all tests should pass
- `pnpm --filter dev-tools vitest run` — all tests should pass
- `pnpm --filter ai-commands vitest run` — all tests should pass
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **Chores**
* Standardized and updated development tooling versions and version
sources for consistent installs across the repo (Vite, Vitest,
vite-tsconfig-paths and related plugins/catalog entries).
* **Tests**
* Improved test mocks and typings (updated mock
factories/implementations and tightened spy/type assertions) to increase
test reliability and compatibility with updated tooling.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
---------
Co-authored-by: Alaister Young <10985857+alaister@users.noreply.github.com>
86 lines
1.9 KiB
YAML
86 lines
1.9 KiB
YAML
packages:
|
|
- apps/*
|
|
- packages/*
|
|
- blocks/*
|
|
- e2e/*
|
|
|
|
catalog:
|
|
'@sentry/nextjs': ^10.26.0
|
|
'@supabase/ssr': 0.10.2
|
|
'@supabase/auth-js': 2.103.0
|
|
'@supabase/postgrest-js': 2.103.0
|
|
'@supabase/realtime-js': 2.103.0
|
|
'@supabase/supabase-js': 2.103.0
|
|
'@types/node': ^22.0.0
|
|
'@types/react': ^18.3.0
|
|
'@types/react-dom': ^18.3.0
|
|
lodash: ^4.18.1
|
|
lodash-es: ^4.18.1
|
|
next: 16.2.3
|
|
react: ^18.3.0
|
|
react-dom: ^18.3.0
|
|
recharts: ^2.15.4
|
|
tailwindcss: 3.4.1
|
|
tsx: 4.20.3
|
|
typescript: ~6.0.0
|
|
valtio: ^1.12.0
|
|
'@vitejs/plugin-react': ^6.0.1
|
|
'@vitest/coverage-v8': ^4.1.4
|
|
'@vitest/ui': ^4.1.4
|
|
vite: ^8.0.8
|
|
vite-tsconfig-paths: ^6.1.1
|
|
vitest: ^4.1.4
|
|
zod: 3.25.76
|
|
|
|
ignoredBuiltDependencies:
|
|
- '@parcel/watcher'
|
|
- '@sentry/cli'
|
|
- contentlayer2
|
|
- core-js
|
|
- es5-ext
|
|
- esbuild
|
|
- libpg-query
|
|
- msw
|
|
- protobufjs
|
|
- sharp
|
|
|
|
minimumReleaseAge: 4320
|
|
|
|
minimumReleaseAgeExclude:
|
|
- '@ai-sdk/*'
|
|
- '@supabase/*'
|
|
- '@supabase-labs/*'
|
|
# The following packages are excluded from the minimum release age check because they had a vulneralibity
|
|
# Delete them the next time you update this list
|
|
- follow-redirects
|
|
|
|
onlyBuiltDependencies:
|
|
- node-pty
|
|
- supabase
|
|
|
|
overrides:
|
|
'@ardatan/relay-compiler>immutable': ^3.8.3
|
|
'@aws-sdk/core>fast-xml-parser': ^4.5.5
|
|
'@mapbox/node-pre-gyp>tar': ^7.5.11
|
|
'@redocly/respect-core>form-data': ^4.0.4
|
|
'@redocly/respect-core>js-yaml': ^4.1.1
|
|
'@rollup/plugin-terser>serialize-javascript': ^7.0.5
|
|
cacache>tar: ^7.5.11
|
|
dompurify: ^3.3.2
|
|
esbuild: ^0.25.2
|
|
lodash: 'catalog:'
|
|
lodash-es: 'catalog:'
|
|
node-gyp>tar: ^7.5.11
|
|
nodemailer: ^7.0.11
|
|
payload>undici: ^7.18.2
|
|
'pgsql-parser>libpg-query': ^15.2.0
|
|
refractor>prismjs: ^1.30.0
|
|
supabase>tar: ^7.5.11
|
|
'terser-webpack-plugin>serialize-javascript': ^7.0.5
|
|
tmp: ^0.2.4
|
|
webpack: ^5.104.1
|
|
unhead: ^2.1.13
|
|
|
|
patchedDependencies:
|
|
react-data-grid: patches/react-data-grid.patch
|