Skip to content

Commit d35e892

Browse files
authored
chore: upgrade Bun to 1.4.1 (#6470)
## Summary - pin Bun 1.4.1 through mise and refresh the locked runtime artifacts - replace the Istanbul Vitest coverage provider with the V8 provider across coverage-enabled workspaces - remove the unused coverage provider from the CLI e2e workspace and preserve pnpm global-store peer resolution [Bun 1.4.1](https://bun.com/blog/bun-v1.4.1#node-js-compatibility-improvements) fixes the Vitest/c8 V8 coverage merge failure that previously blocked this migration. ## Binary size impact Compared locally built Bun 1.4.1 executables with the checksum-verified [v2.117.0-beta.18 production artifacts](https://github.com/supabase/cli/releases/tag/v2.117.0-beta.18), which embed Bun 1.4.0. | Platform | Production 1.4.0 | Local 1.4.1 | Change | |---|---:|---:|---:| | macOS arm64 | 69.52 MiB | 67.53 MiB | -2.86% | | macOS x64 | 76.00 MiB | 74.20 MiB | -2.37% | | Linux arm64 | 91.92 MiB | 90.36 MiB | -1.70% | | Linux x64 | 92.58 MiB | 91.01 MiB | -1.69% | | Windows arm64 | 84.50 MiB | 83.17 MiB | -1.57% | | Windows x64 | 94.52 MiB | 91.54 MiB | -3.16% | The compressed release archives are also 0.37%-1.54% smaller. The comparison is not fully runtime-isolated: the current source is one commit beyond the production tag, and the local macOS binaries lack CI release signing. Linux and Windows provide the cleanest indication of the Bun upgrade size impact.
1 parent 2677ccc commit d35e892

18 files changed

Lines changed: 186 additions & 123 deletions

.bun-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.4.0
1+
1.4.1

apps/cli-e2e/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
"devDependencies": {
1919
"@tsconfig/bun": "catalog:",
2020
"@types/bun": "catalog:",
21-
"@vitest/coverage-istanbul": "catalog:",
2221
"typescript": "catalog:",
2322
"vitest": "catalog:"
2423
}

apps/cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
"@types/pg": "^8.23.1",
6565
"@types/pg-copy-streams": "^1.2.5",
6666
"@vercel/detect-agent": "^1.2.5",
67-
"@vitest/coverage-istanbul": "catalog:",
67+
"@vitest/coverage-v8": "catalog:",
6868
"dotenv": "^17.4.2",
6969
"effect": "catalog:",
7070
"esbuild": "^0.28.2",

apps/cli/vitest.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export default defineConfig({
3737
passWithNoTests: true,
3838
coverage: {
3939
enabled: false,
40-
provider: "istanbul",
40+
provider: "v8",
4141
include: ["src/**/*.ts"],
4242
reporter: ["text", "lcov"],
4343
reportsDirectory: "coverage",

mise.lock

Lines changed: 24 additions & 24 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@
3939
"pkg-pr-new": "0.0.88",
4040
"turbo": "catalog:",
4141
"typescript": "catalog:",
42-
"verdaccio": "^6.10.0"
42+
"verdaccio": "^6.10.0",
43+
"vite": "^8.2.2"
4344
},
4445
"devEngines": {
4546
"packageManager": {

packages/api/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"devDependencies": {
3030
"@tsconfig/bun": "catalog:",
3131
"@types/bun": "catalog:",
32-
"@vitest/coverage-istanbul": "catalog:",
32+
"@vitest/coverage-v8": "catalog:",
3333
"typescript": "catalog:",
3434
"vitest": "catalog:"
3535
}

packages/api/vitest.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default defineConfig({
55
passWithNoTests: true,
66
coverage: {
77
enabled: false,
8-
provider: "istanbul",
8+
provider: "v8",
99
clean: false,
1010
include: ["src/**/*.ts"],
1111
reporter: ["text", "lcov"],

packages/cli-test-helpers/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"devDependencies": {
1616
"@tsconfig/bun": "catalog:",
1717
"@types/bun": "catalog:",
18-
"@vitest/coverage-istanbul": "catalog:",
18+
"@vitest/coverage-v8": "catalog:",
1919
"typescript": "catalog:",
2020
"vitest": "catalog:"
2121
}

packages/cli-test-helpers/vitest.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default defineConfig({
55
passWithNoTests: true,
66
coverage: {
77
enabled: false,
8-
provider: "istanbul",
8+
provider: "v8",
99
clean: false,
1010
include: ["src/**/*.ts"],
1111
reporter: ["text", "lcov"],

0 commit comments

Comments
 (0)