Skip to content

Open-source status page, incident response and uptime monitoring

fix build (#2755)

Thibault Le Ouayaa7ac8d76e1b
diff --git a/packages/api/package.json b/packages/api/package.json
index 832c5fd63..7b3178dbd 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 fad7f99b4..48baa5cfe 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 a17bc46e8..fef8d9913 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<Response>;
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 01dd69181..0169bd4d9 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 9e0650a56..05cde49f5 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<Response>;
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 0d9806dbf..32f1f6413 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 5f962ff58..60adc6fe8 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/[email protected])(@opentelemetry/[email protected])(@types/[email protected])(@upstash/[email protected])([email protected])
+ version: 0.45.3(@libsql/[email protected])(@opentelemetry/[email protected])(@types/[email protected])(@upstash/[email protected])([email protected])
effect:
specifier: 'catalog:'
version: 4.0.0-rc.117
@@ -2131,9 +2128,6 @@ importers:
'@types/react-dom':
specifier: 'catalog:'
version: 19.3.0(@types/[email protected])
- 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/[email protected])(@opentelemetry/[email protected])(@types/[email protected])(@upstash/[email protected])([email protected])
+ version: 0.45.3(@libsql/[email protected])(@opentelemetry/[email protected])(@types/[email protected])(@upstash/[email protected])([email protected])
drizzle-zod:
specifier: 'catalog:'
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/[email protected])(@opentelemetry/[email protected])(@types/[email protected])(@upstash/[email protected])([email protected])
+ version: 0.45.3(@libsql/[email protected])(@opentelemetry/[email protected])(@types/[email protected])(@upstash/[email protected])([email protected])
typescript:
specifier: 'catalog:'
version: 7.0.2
@@ -8454,9 +8448,6 @@ packages:
resolution: {integrity: sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==}
- resolution: {integrity: sha512-4N0ig0fEomHt5R0KCFWjovxow98rIoRwKolrYdCcknNwMekCXRnWEUvgu5soYV8QXtVsrUD8B95MBOZGPvr6KQ==}
-
resolution: {integrity: sha512-bxV1FgK7yBIzjRe5zBozIM4Bem11ZJcCXSrjWRG3YWLt8yFDePu4cLjpebO8OvPeIE9trbyPF4fuj3Cia4Fj3w==}
@@ -16645,14 +16636,10 @@ snapshots:
- dependencies:
- '@types/node': 26.6.2
- optional: true
-
dependencies:
'@types/node': 26.6.2
+ optional: true
dependencies:
@@ -17059,14 +17046,6 @@ snapshots:
esbuild: 0.25.12
tsx: 4.23.15
- 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
-
optionalDependencies:
'@libsql/client': 0.17.4
@@ -17075,9 +17054,9 @@ snapshots:
'@upstash/redis': 1.38.0
bun-types: 1.4.2
dependencies:
- drizzle-orm: 0.45.3(@libsql/[email protected])(@opentelemetry/[email protected])(@types/[email protected])(@upstash/[email protected])([email protected])
+ drizzle-orm: 0.45.3(@libsql/[email protected])(@opentelemetry/[email protected])(@types/[email protected])(@upstash/[email protected])([email protected])
zod: 4.6.5
diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml
index e7e5c419a..13e21c8f9 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