From 7264101950d5f581f38afb6705ae749e50f2c719 Mon Sep 17 00:00:00 2001 From: ugi-dev Date: Sun, 8 Nov 2026 10:13:19 +1100 Subject: [PATCH] chore(deps): depend on bun-types directly instead of @types/bun @types/bun is a one-line stub (`/// `) that Socket scores at 47 for quality. bun-types holds the actual declarations and scores 84, so depend on it directly and point the tsconfig `types` arrays at it. The resolved types are unchanged. --- bun.lock | 10 ++++------ package.json | 2 +- packages/compat-react/tsconfig.json | 2 +- packages/compat-rehype/tsconfig.json | 2 +- packages/compat/tsconfig.json | 2 +- packages/kirari/tsconfig.json | 2 +- packages/react/tsconfig.json | 2 +- packages/rehype/tsconfig.json | 2 +- sites/docs/tsconfig.json | 2 +- 9 files changed, 12 insertions(+), 14 deletions(-) diff --git a/bun.lock b/bun.lock index 8275dcd..abcb7b4 100644 --- a/bun.lock +++ b/bun.lock @@ -7,7 +7,7 @@ "devDependencies": { "@biomejs/biome": "2.5.15", "@changesets/cli": "^3.0.3", - "@types/bun": "^1.4.3", + "bun-types": "^1.4.4", "typescript": "^7.0.2", }, }, @@ -269,8 +269,6 @@ "@swc/helpers": ["@swc/helpers@0.5.23", "", { "dependencies": { "tslib": "^2.8.0" } }, "sha512-5lSsMOTXURePglDfvuAQUqkGek9Hg2kksOYay2m0+XR++b2NWYL/4sWyuvVBIs8oKnJaxkdi9whaL/sqN13afw=="], - "@types/bun": ["@types/bun@1.4.3", "", { "dependencies": { "bun-types": "1.4.3" } }, "sha512-N67Pqy8JXbAY/j0tNraS3V5mubGvc6rrrNDmDCtZLlFzccbUJPDb0tvgUBC5q4m8ybkP93Jcn1QB+RYQ6PvBhw=="], - "@types/debug": ["@types/debug@4.1.13", "", { "dependencies": { "@types/ms": "*" } }, "sha512-KSVgmQmzMwPlmtljOomayoR89W4FynCAi3E8PPs7vmDVPe84hT+vGPKkJfThkmXs0x0jAaa9U8uW8bbfyS2fWw=="], "@types/estree": ["@types/estree@1.0.9", "", {}, "sha512-GhdPgy1el4/ImP05X05Uw4cw2/M93BCUmnEvWZNStlCzEKME4Fkk+YpoA5OiHNQmoS7Cafb8Xa3Pya8m1Qrzeg=="], @@ -361,7 +359,7 @@ "buffer-image-size": ["buffer-image-size@0.6.4", "", { "dependencies": { "@types/node": "*" } }, "sha512-nEh+kZOPY1w+gcCMobZ6ETUp9WfibndnosbpwB1iJk/8Gt5ZF2bhS6+B6bPYz424KtwsR6Rflc3tCz1/ghX2dQ=="], - "bun-types": ["bun-types@1.4.3", "", { "dependencies": { "@types/node": "*", "undici-types": "*" } }, "sha512-tinRJNGOmUN+tEAsn2y2e942n9JHRHR42iUYzDH75NmhJqVBokGSQkkfSFdNWwsANIdrK6ACH9t01M452YyTwg=="], + "bun-types": ["bun-types@1.4.4", "", { "dependencies": { "@types/node": "*", "undici-types": "*" } }, "sha512-yjrJh5oGX7mMPKGd19YXyIjmEuj4G4zNC30bs7PM9Az7NQ3ndF3j6hbeRdvJTRQEhJ/FYQwW0a2moweEi2hMxQ=="], "cac": ["cac@7.1.0", "", {}, "sha512-LMDU/U2yA4IPIY8KT0NsNPWEYZvAMkbgyspxJ6btJaYV+WMDOHAZCmB0lsTObiHaRS1V/ztKAl7+TSkTqXyeoA=="], @@ -671,7 +669,7 @@ "typescript": ["typescript@7.0.2", "", { "optionalDependencies": { "@typescript/typescript-aix-ppc64": "7.0.2", "@typescript/typescript-darwin-arm64": "7.0.2", "@typescript/typescript-darwin-x64": "7.0.2", "@typescript/typescript-freebsd-arm64": "7.0.2", "@typescript/typescript-freebsd-x64": "7.0.2", "@typescript/typescript-linux-arm": "7.0.2", "@typescript/typescript-linux-arm64": "7.0.2", "@typescript/typescript-linux-loong64": "7.0.2", "@typescript/typescript-linux-mips64el": "7.0.2", "@typescript/typescript-linux-ppc64": "7.0.2", "@typescript/typescript-linux-riscv64": "7.0.2", "@typescript/typescript-linux-s390x": "7.0.2", "@typescript/typescript-linux-x64": "7.0.2", "@typescript/typescript-netbsd-arm64": "7.0.2", "@typescript/typescript-netbsd-x64": "7.0.2", "@typescript/typescript-openbsd-arm64": "7.0.2", "@typescript/typescript-openbsd-x64": "7.0.2", "@typescript/typescript-sunos-x64": "7.0.2", "@typescript/typescript-win32-arm64": "7.0.2", "@typescript/typescript-win32-x64": "7.0.2" }, "bin": { "tsc": "bin/tsc" } }, "sha512-8FYau96o3NKOhbjKi/qNvG/W5jhzxkbdm5sj9AbZ/5T5sWqn3hJgLfGx27sRKZWTvyzCP8dLRBTf5tBTSRVUNA=="], - "undici-types": ["undici-types@8.9.0", "", {}, "sha512-KTDyRTYX8sWmKXAikPHHSyc63CRPETMctyjKFupcC6OBLXT3xsN0e9aF7m+mIXutFWpUXuedtowG7iLOzp0kQg=="], + "undici-types": ["undici-types@8.12.2", "", {}, "sha512-VoMeD2O0KdHhcn+oPqOrpivN+7aDOklVSwOLD7JNjbzV1CboAFek9IFOXnreoufTUtAsCsOK0iETiERPNR/fDA=="], "unified": ["unified@11.0.5", "", { "dependencies": { "@types/unist": "^3.0.0", "bail": "^2.0.0", "devlop": "^1.0.0", "extend": "^3.0.0", "is-plain-obj": "^4.0.0", "trough": "^2.0.0", "vfile": "^6.0.0" } }, "sha512-xKvGhPWw3k84Qjh8bI3ZeJjqnyadK+GEFtazSfZv/rKeTkTjOJho6mFqh2SM96iIcZokxiOpg78GazTSg8+KHA=="], @@ -701,7 +699,7 @@ "zwitch": ["zwitch@2.0.4", "", {}, "sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A=="], - "bun-types/undici-types": ["undici-types@8.12.2", "", {}, "sha512-VoMeD2O0KdHhcn+oPqOrpivN+7aDOklVSwOLD7JNjbzV1CboAFek9IFOXnreoufTUtAsCsOK0iETiERPNR/fDA=="], + "@types/node/undici-types": ["undici-types@8.9.0", "", {}, "sha512-KTDyRTYX8sWmKXAikPHHSyc63CRPETMctyjKFupcC6OBLXT3xsN0e9aF7m+mIXutFWpUXuedtowG7iLOzp0kQg=="], "parse-entities/@types/unist": ["@types/unist@2.0.11", "", {}, "sha512-CmBKiL6NNo/OqgmMn95Fk9Whlp2mtvIv+KNpQKN2F4SjvrEesubTRWGYSg+BnWZOnlCaSTU1sMpsBOzgbYhnsA=="], } diff --git a/package.json b/package.json index 6b368ad..c4f4c97 100644 --- a/package.json +++ b/package.json @@ -39,7 +39,7 @@ "devDependencies": { "@biomejs/biome": "2.5.15", "@changesets/cli": "^3.0.3", - "@types/bun": "^1.4.3", + "bun-types": "^1.4.4", "typescript": "^7.0.2" } } diff --git a/packages/compat-react/tsconfig.json b/packages/compat-react/tsconfig.json index 65b9ba1..aa5265a 100644 --- a/packages/compat-react/tsconfig.json +++ b/packages/compat-react/tsconfig.json @@ -8,7 +8,7 @@ "exactOptionalPropertyTypes": true, "verbatimModuleSyntax": true, "skipLibCheck": true, - "types": ["bun"], + "types": ["bun-types"], "lib": ["ES2022", "DOM"], "jsx": "react-jsx" }, "include": ["test"] diff --git a/packages/compat-rehype/tsconfig.json b/packages/compat-rehype/tsconfig.json index 65b9ba1..aa5265a 100644 --- a/packages/compat-rehype/tsconfig.json +++ b/packages/compat-rehype/tsconfig.json @@ -8,7 +8,7 @@ "exactOptionalPropertyTypes": true, "verbatimModuleSyntax": true, "skipLibCheck": true, - "types": ["bun"], + "types": ["bun-types"], "lib": ["ES2022", "DOM"], "jsx": "react-jsx" }, "include": ["test"] diff --git a/packages/compat/tsconfig.json b/packages/compat/tsconfig.json index 9b9279d..2193694 100644 --- a/packages/compat/tsconfig.json +++ b/packages/compat/tsconfig.json @@ -8,7 +8,7 @@ "exactOptionalPropertyTypes": true, "verbatimModuleSyntax": true, "skipLibCheck": true, - "types": ["bun"], + "types": ["bun-types"], "lib": ["ES2022"] }, "include": ["test", "scripts"] diff --git a/packages/kirari/tsconfig.json b/packages/kirari/tsconfig.json index 5b96f44..2ae625b 100644 --- a/packages/kirari/tsconfig.json +++ b/packages/kirari/tsconfig.json @@ -8,7 +8,7 @@ "exactOptionalPropertyTypes": true, "verbatimModuleSyntax": true, "skipLibCheck": true, - "types": ["bun"], + "types": ["bun-types"], "lib": ["ES2022"] }, "include": ["src", "test", "scripts"] diff --git a/packages/react/tsconfig.json b/packages/react/tsconfig.json index ebb1683..72d3215 100644 --- a/packages/react/tsconfig.json +++ b/packages/react/tsconfig.json @@ -9,7 +9,7 @@ "exactOptionalPropertyTypes": true, "verbatimModuleSyntax": true, "skipLibCheck": true, - "types": ["bun"], + "types": ["bun-types"], "lib": ["ES2022", "DOM"] }, "include": ["src", "test", "checks"] diff --git a/packages/rehype/tsconfig.json b/packages/rehype/tsconfig.json index 62f3bf3..4f5f53d 100644 --- a/packages/rehype/tsconfig.json +++ b/packages/rehype/tsconfig.json @@ -8,7 +8,7 @@ "exactOptionalPropertyTypes": true, "verbatimModuleSyntax": true, "skipLibCheck": true, - "types": ["bun"], + "types": ["bun-types"], "lib": ["ES2022"] }, "include": ["src", "test"] diff --git a/sites/docs/tsconfig.json b/sites/docs/tsconfig.json index 5e0f05b..364bf96 100644 --- a/sites/docs/tsconfig.json +++ b/sites/docs/tsconfig.json @@ -9,7 +9,7 @@ "skipLibCheck": true, "resolveJsonModule": true, "types": [ - "bun" + "bun-types" ], "lib": [ "ES2022",