From 5014d2409e5e8071bf4a2739ee2570731d52d415 Mon Sep 17 00:00:00 2001 From: Espen Hovlandsdal Date: Tue, 24 Sep 2024 11:15:08 -0700 Subject: [PATCH] chore(deps): upgrade to vite 5.4.7 --- dev/embedded-studio/package.json | 2 +- dev/test-studio/package.json | 2 +- package.json | 2 +- packages/@sanity/cli/package.json | 2 +- packages/sanity/package.json | 2 +- pnpm-lock.yaml | 116 +++++++++++++++++++++--------- 6 files changed, 89 insertions(+), 37 deletions(-) diff --git a/dev/embedded-studio/package.json b/dev/embedded-studio/package.json index b37836f1500..6ac77f2a194 100644 --- a/dev/embedded-studio/package.json +++ b/dev/embedded-studio/package.json @@ -19,6 +19,6 @@ "@types/react-dom": "^18.3.0", "@vitejs/plugin-react": "^4.3.1", "typescript": "5.6.2", - "vite": "^5.3.5" + "vite": "^5.4.7" } } diff --git a/dev/test-studio/package.json b/dev/test-studio/package.json index f90f7e318a1..9c73f4bb6eb 100644 --- a/dev/test-studio/package.json +++ b/dev/test-studio/package.json @@ -63,6 +63,6 @@ }, "devDependencies": { "chokidar": "^3.6.0", - "vite": "^5.3.5" + "vite": "^5.4.7" } } diff --git a/package.json b/package.json index fe10243bf63..17b9f522ddf 100644 --- a/package.json +++ b/package.json @@ -167,7 +167,7 @@ "semver": "^7.3.5", "turbo": "^2.1.2", "typescript": "5.6.2", - "vite": "^5.3.5", + "vite": "^5.4.7", "vite-tsconfig-paths": "^4.3.2", "yargs": "^17.3.0" }, diff --git a/packages/@sanity/cli/package.json b/packages/@sanity/cli/package.json index a82d990a323..45919f3e0fc 100644 --- a/packages/@sanity/cli/package.json +++ b/packages/@sanity/cli/package.json @@ -128,7 +128,7 @@ "semver": "^7.3.5", "semver-compare": "^1.0.0", "tar": "^6.1.11", - "vite": "^5.3.5", + "vite": "^5.4.7", "which": "^2.0.2", "xdg-basedir": "^4.0.0" }, diff --git a/packages/sanity/package.json b/packages/sanity/package.json index f457b9aff8e..76acc770573 100644 --- a/packages/sanity/package.json +++ b/packages/sanity/package.json @@ -261,7 +261,7 @@ "use-device-pixel-ratio": "^1.1.0", "use-hot-module-reload": "^2.0.0", "use-sync-external-store": "^1.2.0", - "vite": "^5.3.5", + "vite": "^5.4.7", "yargs": "^17.3.0" }, "devDependencies": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 647a34d4292..415b1ca20e8 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -101,7 +101,7 @@ importers: version: 7.18.0(eslint@8.57.0)(typescript@5.6.2) '@vitejs/plugin-react': specifier: ^4.3.1 - version: 4.3.1(vite@5.4.5(@types/node@18.19.44)(terser@5.32.0)) + version: 4.3.1(vite@5.4.7(@types/node@18.19.44)(terser@5.32.0)) cac: specifier: ^6.7.12 version: 6.7.14 @@ -229,11 +229,11 @@ importers: specifier: 5.6.2 version: 5.6.2 vite: - specifier: ^5.3.5 - version: 5.4.5(@types/node@18.19.44)(terser@5.32.0) + specifier: ^5.4.7 + version: 5.4.7(@types/node@18.19.44)(terser@5.32.0) vite-tsconfig-paths: specifier: ^4.3.2 - version: 4.3.2(typescript@5.6.2)(vite@5.4.5(@types/node@18.19.44)(terser@5.32.0)) + version: 4.3.2(typescript@5.6.2)(vite@5.4.7(@types/node@18.19.44)(terser@5.32.0)) yargs: specifier: ^17.3.0 version: 17.7.2 @@ -287,13 +287,13 @@ importers: version: 18.3.0 '@vitejs/plugin-react': specifier: ^4.3.1 - version: 4.3.1(vite@5.4.5(@types/node@22.5.4)(terser@5.32.0)) + version: 4.3.1(vite@5.4.7(@types/node@22.5.4)(terser@5.32.0)) typescript: specifier: 5.6.2 version: 5.6.2 vite: - specifier: ^5.3.5 - version: 5.4.5(@types/node@22.5.4)(terser@5.32.0) + specifier: ^5.4.7 + version: 5.4.7(@types/node@22.5.4)(terser@5.32.0) dev/page-building-studio: dependencies: @@ -569,8 +569,8 @@ importers: version: 6.1.13(react-dom@18.3.1(react@18.3.1))(react@18.3.1) devDependencies: vite: - specifier: ^5.3.5 - version: 5.4.5(@types/node@22.5.4)(terser@5.32.0) + specifier: ^5.4.7 + version: 5.4.7(@types/node@22.5.4)(terser@5.32.0) examples/blog-studio: dependencies: @@ -944,8 +944,8 @@ importers: specifier: ^6.1.11 version: 6.2.1 vite: - specifier: ^5.3.5 - version: 5.4.5(@types/node@18.19.44)(terser@5.32.0) + specifier: ^5.4.7 + version: 5.4.7(@types/node@18.19.44)(terser@5.32.0) which: specifier: ^2.0.2 version: 2.0.2 @@ -1472,7 +1472,7 @@ importers: version: 0.0.6 '@vitejs/plugin-react': specifier: ^4.3.1 - version: 4.3.1(vite@5.4.5(@types/node@18.19.44)(terser@5.32.0)) + version: 4.3.1(vite@5.4.7(@types/node@18.19.44)(terser@5.32.0)) archiver: specifier: ^7.0.0 version: 7.0.1 @@ -1687,8 +1687,8 @@ importers: specifier: ^1.2.0 version: 1.2.2(react@18.3.1) vite: - specifier: ^5.3.5 - version: 5.4.5(@types/node@18.19.44)(terser@5.32.0) + specifier: ^5.4.7 + version: 5.4.7(@types/node@18.19.44)(terser@5.32.0) yargs: specifier: ^17.3.0 version: 17.7.2 @@ -1701,7 +1701,7 @@ importers: version: 29.7.0 '@playwright/experimental-ct-react': specifier: 1.44.1 - version: 1.44.1(@types/node@18.19.44)(terser@5.32.0)(vite@5.4.5(@types/node@18.19.44)(terser@5.32.0)) + version: 1.44.1(@types/node@18.19.44)(terser@5.32.0)(vite@5.4.7(@types/node@18.19.44)(terser@5.32.0)) '@playwright/test': specifier: 1.44.1 version: 1.44.1 @@ -11549,6 +11549,37 @@ packages: terser: optional: true + vite@5.4.7: + resolution: {integrity: sha512-5l2zxqMEPVENgvzTuBpHer2awaetimj2BGkhBPdnwKbPNOlHsODU+oiazEZzLK7KhAnOrO+XGYJYn4ZlUhDtDQ==} + engines: {node: ^18.0.0 || >=20.0.0} + hasBin: true + peerDependencies: + '@types/node': ^18.0.0 || >=20.0.0 + less: '*' + lightningcss: ^1.21.0 + sass: '*' + sass-embedded: '*' + stylus: '*' + sugarss: '*' + terser: ^5.4.0 + peerDependenciesMeta: + '@types/node': + optional: true + less: + optional: true + lightningcss: + optional: true + sass: + optional: true + sass-embedded: + optional: true + stylus: + optional: true + sugarss: + optional: true + terser: + optional: true + void-elements@3.1.0: resolution: {integrity: sha512-Dhxzh5HZuiHQhbvTW9AMetFfBHDMYpo23Uo9btPXgdYP+3T5S+p+jgNy7spra+veYhBP2dCSgxR/i2Y02h5/6w==} engines: {node: '>=0.10.0'} @@ -14256,7 +14287,7 @@ snapshots: dependencies: playwright: 1.44.1 playwright-core: 1.44.1 - vite: 5.4.5(@types/node@18.19.44)(terser@5.32.0) + vite: 5.4.7(@types/node@18.19.44)(terser@5.32.0) transitivePeerDependencies: - '@types/node' - less @@ -14267,10 +14298,10 @@ snapshots: - sugarss - terser - '@playwright/experimental-ct-react@1.44.1(@types/node@18.19.44)(terser@5.32.0)(vite@5.4.5(@types/node@18.19.44)(terser@5.32.0))': + '@playwright/experimental-ct-react@1.44.1(@types/node@18.19.44)(terser@5.32.0)(vite@5.4.7(@types/node@18.19.44)(terser@5.32.0))': dependencies: '@playwright/experimental-ct-core': 1.44.1(@types/node@18.19.44)(terser@5.32.0) - '@vitejs/plugin-react': 4.3.1(vite@5.4.5(@types/node@18.19.44)(terser@5.32.0)) + '@vitejs/plugin-react': 4.3.1(vite@5.4.7(@types/node@18.19.44)(terser@5.32.0)) transitivePeerDependencies: - '@types/node' - less @@ -14995,7 +15026,7 @@ snapshots: '@sanity/pkg-utils': 6.11.2(@types/babel__core@7.20.5)(@types/node@18.19.44)(debug@4.3.7)(typescript@5.6.2) '@sanity/ui': 2.8.9(react-dom@18.3.1(react@18.3.1))(react-is@18.3.1)(react@18.3.1)(styled-components@6.1.13(react-dom@18.3.1(react@18.3.1))(react@18.3.1)) '@types/cpx': 1.5.5 - '@vitejs/plugin-react': 4.3.1(vite@5.4.5(@types/node@18.19.44)(terser@5.32.0)) + '@vitejs/plugin-react': 4.3.1(vite@5.4.7(@types/node@18.19.44)(terser@5.32.0)) cac: 6.7.14 chalk: 4.1.2 chokidar: 3.6.0 @@ -15019,7 +15050,7 @@ snapshots: styled-components: 6.1.13(react-dom@18.3.1(react@18.3.1))(react@18.3.1) tmp: 0.2.3 typescript: 5.6.2 - vite: 5.4.5(@types/node@18.19.44)(terser@5.32.0) + vite: 5.4.7(@types/node@18.19.44)(terser@5.32.0) transitivePeerDependencies: - '@types/babel__core' - '@types/node' @@ -15048,7 +15079,7 @@ snapshots: '@sanity/pkg-utils': 6.11.2(@types/babel__core@7.20.5)(@types/node@18.19.44)(debug@4.3.7)(typescript@5.6.2) '@sanity/ui': 2.8.9(react-dom@19.0.0-rc-f994737d14-20240522(react@19.0.0-rc-f994737d14-20240522))(react-is@19.0.0-rc-a7d1240c-20240731)(react@19.0.0-rc-f994737d14-20240522)(styled-components@6.1.13(react-dom@19.0.0-rc-f994737d14-20240522(react@19.0.0-rc-f994737d14-20240522))(react@19.0.0-rc-f994737d14-20240522)) '@types/cpx': 1.5.5 - '@vitejs/plugin-react': 4.3.1(vite@5.4.5(@types/node@18.19.44)(terser@5.32.0)) + '@vitejs/plugin-react': 4.3.1(vite@5.4.7(@types/node@18.19.44)(terser@5.32.0)) cac: 6.7.14 chalk: 4.1.2 chokidar: 3.6.0 @@ -15072,7 +15103,7 @@ snapshots: styled-components: 6.1.13(react-dom@19.0.0-rc-f994737d14-20240522(react@19.0.0-rc-f994737d14-20240522))(react@19.0.0-rc-f994737d14-20240522) tmp: 0.2.3 typescript: 5.6.2 - vite: 5.4.5(@types/node@18.19.44)(terser@5.32.0) + vite: 5.4.7(@types/node@18.19.44)(terser@5.32.0) transitivePeerDependencies: - '@types/babel__core' - '@types/node' @@ -15101,7 +15132,7 @@ snapshots: '@sanity/pkg-utils': 6.11.2(@types/babel__core@7.20.5)(@types/node@22.5.4)(typescript@5.6.2) '@sanity/ui': 2.8.9(react-dom@18.3.1(react@18.3.1))(react-is@19.0.0-rc-a7d1240c-20240731)(react@18.3.1)(styled-components@6.1.13(react-dom@18.3.1(react@18.3.1))(react@18.3.1)) '@types/cpx': 1.5.5 - '@vitejs/plugin-react': 4.3.1(vite@5.4.5(@types/node@22.5.4)(terser@5.32.0)) + '@vitejs/plugin-react': 4.3.1(vite@5.4.7(@types/node@22.5.4)(terser@5.32.0)) cac: 6.7.14 chalk: 4.1.2 chokidar: 3.6.0 @@ -15125,7 +15156,7 @@ snapshots: styled-components: 6.1.13(react-dom@18.3.1(react@18.3.1))(react@18.3.1) tmp: 0.2.3 typescript: 5.6.2 - vite: 5.4.5(@types/node@22.5.4)(terser@5.32.0) + vite: 5.4.7(@types/node@22.5.4)(terser@5.32.0) transitivePeerDependencies: - '@types/babel__core' - '@types/node' @@ -16064,25 +16095,36 @@ snapshots: transitivePeerDependencies: - supports-color - '@vitejs/plugin-react@4.3.1(vite@5.4.5(@types/node@18.19.44)(terser@5.32.0))': + '@vitejs/plugin-react@4.3.1(vite@5.4.5(@types/node@22.5.4)(terser@5.32.0))': dependencies: '@babel/core': 7.25.2 '@babel/plugin-transform-react-jsx-self': 7.24.7(@babel/core@7.25.2) '@babel/plugin-transform-react-jsx-source': 7.24.7(@babel/core@7.25.2) '@types/babel__core': 7.20.5 react-refresh: 0.14.2 - vite: 5.4.5(@types/node@18.19.44)(terser@5.32.0) + vite: 5.4.5(@types/node@22.5.4)(terser@5.32.0) transitivePeerDependencies: - supports-color - '@vitejs/plugin-react@4.3.1(vite@5.4.5(@types/node@22.5.4)(terser@5.32.0))': + '@vitejs/plugin-react@4.3.1(vite@5.4.7(@types/node@18.19.44)(terser@5.32.0))': dependencies: '@babel/core': 7.25.2 '@babel/plugin-transform-react-jsx-self': 7.24.7(@babel/core@7.25.2) '@babel/plugin-transform-react-jsx-source': 7.24.7(@babel/core@7.25.2) '@types/babel__core': 7.20.5 react-refresh: 0.14.2 - vite: 5.4.5(@types/node@22.5.4)(terser@5.32.0) + vite: 5.4.7(@types/node@18.19.44)(terser@5.32.0) + transitivePeerDependencies: + - supports-color + + '@vitejs/plugin-react@4.3.1(vite@5.4.7(@types/node@22.5.4)(terser@5.32.0))': + dependencies: + '@babel/core': 7.25.2 + '@babel/plugin-transform-react-jsx-self': 7.24.7(@babel/core@7.25.2) + '@babel/plugin-transform-react-jsx-source': 7.24.7(@babel/core@7.25.2) + '@types/babel__core': 7.20.5 + react-refresh: 0.14.2 + vite: 5.4.7(@types/node@22.5.4)(terser@5.32.0) transitivePeerDependencies: - supports-color @@ -23657,13 +23699,13 @@ snapshots: vary@1.1.2: {} - vite-tsconfig-paths@4.3.2(typescript@5.6.2)(vite@5.4.5(@types/node@18.19.44)(terser@5.32.0)): + vite-tsconfig-paths@4.3.2(typescript@5.6.2)(vite@5.4.7(@types/node@18.19.44)(terser@5.32.0)): dependencies: debug: 4.3.7(supports-color@9.4.0) globrex: 0.1.2 tsconfck: 3.1.1(typescript@5.6.2) optionalDependencies: - vite: 5.4.5(@types/node@18.19.44)(terser@5.32.0) + vite: 5.4.7(@types/node@18.19.44)(terser@5.32.0) transitivePeerDependencies: - supports-color - typescript @@ -23688,7 +23730,17 @@ snapshots: fsevents: 2.3.3 terser: 5.32.0 - vite@5.4.5(@types/node@18.19.44)(terser@5.32.0): + vite@5.4.5(@types/node@22.5.4)(terser@5.32.0): + dependencies: + esbuild: 0.21.5 + postcss: 8.4.47 + rollup: 4.21.3 + optionalDependencies: + '@types/node': 22.5.4 + fsevents: 2.3.3 + terser: 5.32.0 + + vite@5.4.7(@types/node@18.19.44)(terser@5.32.0): dependencies: esbuild: 0.21.5 postcss: 8.4.47 @@ -23698,7 +23750,7 @@ snapshots: fsevents: 2.3.3 terser: 5.32.0 - vite@5.4.5(@types/node@22.5.4)(terser@5.32.0): + vite@5.4.7(@types/node@22.5.4)(terser@5.32.0): dependencies: esbuild: 0.21.5 postcss: 8.4.47