diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d92fbcf8..af2c0009 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,7 +7,7 @@ on: pull_request: env: - BUN_VERSION: "1.4.0" + BUN_VERSION: "1.4.1" jobs: verify: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 32be1f88..7a1a2561 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,7 +10,7 @@ permissions: contents: write env: - BUN_VERSION: "1.4.0" + BUN_VERSION: "1.4.1" jobs: build: diff --git a/bun.lock b/bun.lock index c14cfb3f..8801f166 100644 --- a/bun.lock +++ b/bun.lock @@ -47,7 +47,7 @@ "@testcontainers/postgresql": "^11.12.0", "@testcontainers/rabbitmq": "^10.28.0", "@types/bootstrap": "~5.1.13", - "@types/bun": "^1.3.14", + "@types/bun": "^1.4.0", "@types/node": "^20.19.33", "@types/web-push": "^3.6.4", "@vitejs/plugin-vue": "~5.0.5", @@ -522,7 +522,7 @@ "@types/bootstrap": ["@types/bootstrap@5.1.13", "", { "dependencies": { "@popperjs/core": "^2.9.2" } }, "sha512-1hIIOgfkMlyQCQz/3ae53xr6ZN2d6EDj/n3G+Sh/LBsBUVigyDmnCbLwsaXJJ1GBGlkjgfXVoyIvEPowQw25xQ=="], - "@types/bun": ["@types/bun@1.3.14", "", { "dependencies": { "bun-types": "1.3.14" } }, "sha512-h1hFqFVcvAvD9j9K7ZW7vd82aSA+rTdznZa+5bwvCwqSB1jmmfLcbIWhOLx1/+boy/xmjgCs/OMUL8hRJSmnPw=="], + "@types/bun": ["@types/bun@1.4.0", "", { "dependencies": { "bun-types": "1.4.0" } }, "sha512-K+lZULY23vRgK/CfTjFIV+tyifaNdSMlPh9j+6mQ/cLfpOznLyAuzgV/JQysyECpkBQLVMSyvjlr2fBUSA9wFQ=="], "@types/docker-modem": ["@types/docker-modem@3.0.6", "", { "dependencies": { "@types/node": "*", "@types/ssh2": "*" } }, "sha512-yKpAGEuKRSS8wwx0joknWxsmLha78wNMe9R2S3UNsVOkZded8UqOrV8KoeDXoXsjndxwyF3eIhyClGbO1SEhEg=="], @@ -686,7 +686,7 @@ "buildcheck": ["buildcheck@0.0.7", "", {}, "sha512-lHblz4ahamxpTmnsk+MNTRWsjYKv965MwOrSJyeD588rR3Jcu7swE+0wN5F+PbL5cjgu/9ObkhfzEPuofEMwLA=="], - "bun-types": ["bun-types@1.3.14", "", { "dependencies": { "@types/node": "*" } }, "sha512-4N0ig0fEomHt5R0KCFWjovxow98rIoRwKolrYdCcknNwMekCXRnWEUvgu5soYV8QXtVsrUD8B95MBOZGPvr6KQ=="], + "bun-types": ["bun-types@1.4.0", "", { "dependencies": { "@types/node": "*" } }, "sha512-iIKw23BspnQQYd3prITOBxeUsxBHnwzX6YJfGMuNOZzeNcMmVqzIIVGRm1l69ogaPQmb4wB6BN8mA5bE9YuC5Q=="], "bundle-name": ["bundle-name@4.1.0", "", { "dependencies": { "run-applescript": "^7.0.0" } }, "sha512-tjwM5exMg6BGRI+kNmTntNsvdZS1X8BFYS6tnJ2hdH0kVxM6/eVZ2xy+FqStSWvYmtfFMDLIxurorHwDKfDz5Q=="], diff --git a/package.json b/package.json index b7d53719..d119d171 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "url": "https://github.com/Igloczek/uptime-maku.git" }, "engines": { - "bun": ">= 1.4.0" + "bun": ">= 1.4.1" }, "scripts": { "dev": "bun run --parallel dev:frontend dev:server", @@ -96,7 +96,7 @@ "@testcontainers/postgresql": "^11.12.0", "@testcontainers/rabbitmq": "^10.28.0", "@types/bootstrap": "~5.1.13", - "@types/bun": "^1.3.14", + "@types/bun": "^1.4.0", "@types/node": "^20.19.33", "@types/web-push": "^3.6.4", "@vitejs/plugin-vue": "~5.0.5", diff --git a/scripts/build/generate-kuma-db.ts b/scripts/build/generate-kuma-db.ts index be0d7829..7b815009 100644 --- a/scripts/build/generate-kuma-db.ts +++ b/scripts/build/generate-kuma-db.ts @@ -3,7 +3,7 @@ import fs from "node:fs"; import path from "node:path"; import { Database as BunDatabase } from "bun:sqlite"; import { applySqlFile } from "@/db/schema/sql-utils"; -import { SCHEMA_VERSION_KEY } from "@/server/db-migrations"; +import { LATEST_SCHEMA_VERSION, SCHEMA_VERSION_KEY } from "@/server/db-migrations"; const projectRoot = path.resolve(import.meta.dirname, "../.."); const schemaPath = path.join(projectRoot, "src/db/schema/current.sql"); @@ -23,17 +23,15 @@ function main() { const result = db .query('INSERT INTO setting ("key", value) VALUES (?, ?)') - .run(SCHEMA_VERSION_KEY, "1"); + .run(SCHEMA_VERSION_KEY, String(LATEST_SCHEMA_VERSION)); if (!result || Number(result.changes) !== 1) { throw new Error(`Failed to seed ${SCHEMA_VERSION_KEY} into generated out/kuma.db`); } - const seeded = db - .query('SELECT value FROM setting WHERE "key" = ?') - .get(SCHEMA_VERSION_KEY)?.value; - if (seeded !== "1") { - throw new Error(`Expected ${SCHEMA_VERSION_KEY}=1 after generation, got ${seeded}`); + const seeded = db.query('SELECT value FROM setting WHERE "key" = ?').get(SCHEMA_VERSION_KEY)?.value; + if (seeded !== String(LATEST_SCHEMA_VERSION)) { + throw new Error(`Expected ${SCHEMA_VERSION_KEY}=${LATEST_SCHEMA_VERSION} after generation, got ${seeded}`); } } finally { db.close(); diff --git a/src/components/NotificationDialog.vue b/src/components/NotificationDialog.vue index 16d7d99c..09158be0 100644 --- a/src/components/NotificationDialog.vue +++ b/src/components/NotificationDialog.vue @@ -55,6 +55,26 @@ +