diff --git a/packages/api/package.json b/packages/api/package.json index 832c5fd6..7b3178db 100644 --- a/packages/api/package.json +++ b/packages/api/package.json @@ -67,7 +67,6 @@ "@std/testing": "jsr:^1.0.19", "@types/react": "catalog:", "@types/react-dom": "catalog:", - "bun-types": "catalog:", "typescript": "catalog:" } } diff --git a/packages/header-analysis/tsconfig.json b/packages/header-analysis/tsconfig.json index fad7f99b..48baa5cf 100644 --- a/packages/header-analysis/tsconfig.json +++ b/packages/header-analysis/tsconfig.json @@ -2,7 +2,6 @@ "extends": "@openstatus/tsconfig/base.json", "include": ["src", "*.ts"], "compilerOptions": { - "resolveJsonModule": true, - "types": ["bun"] + "resolveJsonModule": true } } diff --git a/packages/status-fetcher/__tests__/fetch.test.ts b/packages/status-fetcher/__tests__/fetch.test.ts index a17bc46e..fef8d991 100644 --- a/packages/status-fetcher/__tests__/fetch.test.ts +++ b/packages/status-fetcher/__tests__/fetch.test.ts @@ -17,7 +17,7 @@ type FetchImpl = (url: string, init?: RequestInit) => Promise; const installMockFetch = (impl: FetchImpl) => { const fn = spy(impl); - global.fetch = fn as unknown as typeof fetch; + globalThis.fetch = fn as unknown as typeof fetch; return fn; }; diff --git a/packages/status-fetcher/__tests__/fetchers/uptimerobot.test.ts b/packages/status-fetcher/__tests__/fetchers/uptimerobot.test.ts index 01dd6918..0169bd4d 100644 --- a/packages/status-fetcher/__tests__/fetchers/uptimerobot.test.ts +++ b/packages/status-fetcher/__tests__/fetchers/uptimerobot.test.ts @@ -70,7 +70,7 @@ function monitor( describe("UptimeRobotFetcher", () => { let fetcher: UptimeRobotFetcher; - const originalFetch = global.fetch; + const originalFetch = globalThis.fetch; beforeEach(() => { fetcher = new UptimeRobotFetcher(); @@ -78,7 +78,7 @@ describe("UptimeRobotFetcher", () => { }); afterEach(() => { - global.fetch = originalFetch; + globalThis.fetch = originalFetch; }); describe("canHandle", () => { diff --git a/packages/status-fetcher/__tests__/helpers.ts b/packages/status-fetcher/__tests__/helpers.ts index 9e0650a5..05cde49f 100644 --- a/packages/status-fetcher/__tests__/helpers.ts +++ b/packages/status-fetcher/__tests__/helpers.ts @@ -14,7 +14,7 @@ type FetchImpl = (url: string, init?: RequestInit) => Promise; export const installMockFetch = (impl: FetchImpl) => { const fn = spy(impl); - global.fetch = fn as unknown as typeof fetch; + globalThis.fetch = fn as unknown as typeof fetch; return fn; }; diff --git a/packages/status-fetcher/tsconfig.json b/packages/status-fetcher/tsconfig.json index 0d9806db..32f1f641 100644 --- a/packages/status-fetcher/tsconfig.json +++ b/packages/status-fetcher/tsconfig.json @@ -9,8 +9,7 @@ "skipLibCheck": true, "esModuleInterop": true, "resolveJsonModule": true, - "isolatedModules": true, - "types": ["bun"] + "isolatedModules": true }, "include": ["src/**/*", "__tests__/**/*"] } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 5f962ff5..60adc6fe 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -428,9 +428,6 @@ catalogs: bcryptjs: specifier: 3.0.3 version: 3.0.3 - bun-types: - specifier: 1.4.2 - version: 1.4.2 class-variance-authority: specifier: 0.7.1 version: 0.7.1 @@ -1907,7 +1904,7 @@ importers: version: 2.11.3 drizzle-orm: specifier: 'catalog:' - version: 0.45.3(@libsql/client@0.17.4)(@opentelemetry/api@1.9.1)(@types/pg@8.15.6)(@upstash/redis@1.38.0)(bun-types@1.3.14) + version: 0.45.3(@libsql/client@0.17.4)(@opentelemetry/api@1.9.1)(@types/pg@8.15.6)(@upstash/redis@1.38.0)(bun-types@1.4.2) effect: specifier: 'catalog:' version: 4.0.0-rc.117 @@ -2131,9 +2128,6 @@ importers: '@types/react-dom': specifier: 'catalog:' version: 19.3.0(@types/react@19.3.0) - bun-types: - specifier: 'catalog:' - version: 1.4.2 typescript: specifier: 'catalog:' version: 7.0.2 @@ -2182,10 +2176,10 @@ importers: version: 3.0.3 drizzle-orm: specifier: 'catalog:' - version: 0.45.3(@libsql/client@0.17.4)(@opentelemetry/api@1.9.1)(@types/pg@8.15.6)(@upstash/redis@1.38.0)(bun-types@1.3.14) + version: 0.45.3(@libsql/client@0.17.4)(@opentelemetry/api@1.9.1)(@types/pg@8.15.6)(@upstash/redis@1.38.0)(bun-types@1.4.2) drizzle-zod: specifier: 'catalog:' - version: 0.8.3(drizzle-orm@0.45.3(@libsql/client@0.17.4)(@opentelemetry/api@1.9.1)(@types/pg@8.15.6)(@upstash/redis@1.38.0)(bun-types@1.3.14))(zod@4.6.5) + version: 0.8.3(drizzle-orm@0.45.3(@libsql/client@0.17.4)(@opentelemetry/api@1.9.1)(@types/pg@8.15.6)(@upstash/redis@1.38.0)(bun-types@1.4.2))(zod@4.6.5) zod: specifier: 'catalog:' version: 4.6.5 @@ -3062,7 +3056,7 @@ importers: version: 26.6.2 drizzle-orm: specifier: 'catalog:' - version: 0.45.3(@libsql/client@0.17.4)(@opentelemetry/api@1.9.1)(@types/pg@8.15.6)(@upstash/redis@1.38.0)(bun-types@1.3.14) + version: 0.45.3(@libsql/client@0.17.4)(@opentelemetry/api@1.9.1)(@types/pg@8.15.6)(@upstash/redis@1.38.0)(bun-types@1.4.2) typescript: specifier: 'catalog:' version: 7.0.2 @@ -8454,9 +8448,6 @@ packages: buffer-from@1.1.2: resolution: {integrity: sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==} - bun-types@1.3.14: - resolution: {integrity: sha512-4N0ig0fEomHt5R0KCFWjovxow98rIoRwKolrYdCcknNwMekCXRnWEUvgu5soYV8QXtVsrUD8B95MBOZGPvr6KQ==} - bun-types@1.4.2: resolution: {integrity: sha512-bxV1FgK7yBIzjRe5zBozIM4Bem11ZJcCXSrjWRG3YWLt8yFDePu4cLjpebO8OvPeIE9trbyPF4fuj3Cia4Fj3w==} @@ -16645,14 +16636,10 @@ snapshots: buffer-from@1.1.2: {} - bun-types@1.3.14: - dependencies: - '@types/node': 26.6.2 - optional: true - bun-types@1.4.2: dependencies: '@types/node': 26.6.2 + optional: true bundle-name@4.1.0: dependencies: @@ -17059,14 +17046,6 @@ snapshots: esbuild: 0.25.12 tsx: 4.23.15 - drizzle-orm@0.45.3(@libsql/client@0.17.4)(@opentelemetry/api@1.9.1)(@types/pg@8.15.6)(@upstash/redis@1.38.0)(bun-types@1.3.14): - optionalDependencies: - '@libsql/client': 0.17.4 - '@opentelemetry/api': 1.9.1 - '@types/pg': 8.15.6 - '@upstash/redis': 1.38.0 - bun-types: 1.3.14 - drizzle-orm@0.45.3(@libsql/client@0.17.4)(@opentelemetry/api@1.9.1)(@types/pg@8.15.6)(@upstash/redis@1.38.0)(bun-types@1.4.2): optionalDependencies: '@libsql/client': 0.17.4 @@ -17075,9 +17054,9 @@ snapshots: '@upstash/redis': 1.38.0 bun-types: 1.4.2 - drizzle-zod@0.8.3(drizzle-orm@0.45.3(@libsql/client@0.17.4)(@opentelemetry/api@1.9.1)(@types/pg@8.15.6)(@upstash/redis@1.38.0)(bun-types@1.3.14))(zod@4.6.5): + drizzle-zod@0.8.3(drizzle-orm@0.45.3(@libsql/client@0.17.4)(@opentelemetry/api@1.9.1)(@types/pg@8.15.6)(@upstash/redis@1.38.0)(bun-types@1.4.2))(zod@4.6.5): dependencies: - drizzle-orm: 0.45.3(@libsql/client@0.17.4)(@opentelemetry/api@1.9.1)(@types/pg@8.15.6)(@upstash/redis@1.38.0)(bun-types@1.3.14) + drizzle-orm: 0.45.3(@libsql/client@0.17.4)(@opentelemetry/api@1.9.1)(@types/pg@8.15.6)(@upstash/redis@1.38.0)(bun-types@1.4.2) zod: 4.6.5 dunder-proto@1.0.1: diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index e7e5c419..13e21c8f 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -143,7 +143,6 @@ catalog: "@workos-inc/node": 10.13.0 ai: 6.0.287 bcryptjs: 3.0.3 - bun-types: 1.4.2 class-variance-authority: 0.7.1 clsx: 2.1.1 cmdk: 1.1.1