From 1430d6f7e78143d0a85aad4ee561059e9d14c654 Mon Sep 17 00:00:00 2001 From: Jesse Wierzbinski Date: Fri, 21 Nov 2025 08:49:19 +0100 Subject: [PATCH] chore: :arrow_up: Upgrade to Bun 1.3.2 --- CHANGELOG.md | 2 +- Dockerfile | 2 +- Worker.Dockerfile | 2 +- bun.lock | 7 ++++--- bunfig.toml | 3 +++ flake.lock | 6 +++--- nix/package.nix | 2 +- package.json | 2 +- packages/kit/db/notification.ts | 1 - utils/server.ts | 2 +- 10 files changed, 16 insertions(+), 13 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 20043794..c4352fd4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,7 +9,7 @@ ### Backend -- [x] 🚀 Upgraded Bun to `1.2.18` +- [x] 🚀 Upgraded Bun to `1.3.2` # `0.8.0` • Federation 2: Electric Boogaloo diff --git a/Dockerfile b/Dockerfile index bf08eea0..220dfa29 100644 --- a/Dockerfile +++ b/Dockerfile @@ -24,7 +24,7 @@ RUN bun run build api WORKDIR /temp/dist # Copy production dependencies and source code into final image -FROM oven/bun:1.2.18-alpine +FROM oven/bun:1.3.2-alpine # Install libstdc++ for Bun and create app directory RUN mkdir -p /app diff --git a/Worker.Dockerfile b/Worker.Dockerfile index 1c7dae39..ed95c3d0 100644 --- a/Worker.Dockerfile +++ b/Worker.Dockerfile @@ -24,7 +24,7 @@ RUN bun run build worker WORKDIR /temp/dist # Copy production dependencies and source code into final image -FROM oven/bun:1.2.18-alpine +FROM oven/bun:1.3.2-alpine # Install libstdc++ for Bun and create app directory RUN mkdir -p /app diff --git a/bun.lock b/bun.lock index 8af074ea..fa586551 100644 --- a/bun.lock +++ b/bun.lock @@ -1,5 +1,6 @@ { "lockfileVersion": 1, + "configVersion": 1, "workspaces": { "": { "name": "versia-server", @@ -244,7 +245,7 @@ "@logtape/sentry": "~1.0.0", "@scalar/hono-api-reference": "~0.9.25", "@sentry/bun": "~10.26.0", - "@types/bun": "~1.2.18", + "@types/bun": "~1.3.2", "@types/html-to-text": "~9.0.4", "@types/markdown-it-container": "~2.0.10", "@types/mime-types": "~3.0.1", @@ -783,7 +784,7 @@ "@ts-morph/common": ["@ts-morph/common@0.12.3", "", { "dependencies": { "fast-glob": "^3.2.7", "minimatch": "^3.0.4", "mkdirp": "^1.0.4", "path-browserify": "^1.0.1" } }, "sha512-4tUmeLyXJnJWvTFOKtcNJ1yh0a3SsTLi2MUoyj8iUNznFRN1ZquaNe7Oukqrnki2FzZkm0J9adCNLDZxUzvj+w=="], - "@types/bun": ["@types/bun@1.2.23", "", { "dependencies": { "bun-types": "1.2.23" } }, "sha512-le8ueOY5b6VKYf19xT3McVbXqLqmxzPXHsQT/q9JHgikJ2X22wyTW3g3ohz2ZMnp7dod6aduIiq8A14Xyimm0A=="], + "@types/bun": ["@types/bun@1.3.2", "", { "dependencies": { "bun-types": "1.3.2" } }, "sha512-t15P7k5UIgHKkxwnMNkJbWlh/617rkDGEdSsDbu+qNHTaz9SKf7aC8fiIlUdD5RPpH6GEkP0cK7WlvmrEBRtWg=="], "@types/connect": ["@types/connect@3.4.38", "", { "dependencies": { "@types/node": "*" } }, "sha512-K6uROf1LD88uDQqJCktA4yzL1YYAK6NgfsI0v/mTgyPKWsX1CnJ0XPSDhViejru1GcRkLWb8RlzFYJRqGUbaug=="], @@ -925,7 +926,7 @@ "bun-bagel": ["bun-bagel@1.2.0", "", { "peerDependencies": { "typescript": "^5.0.0" } }, "sha512-c4S68dNddpnog9nxXp9PAhcep0alOy49jpRlC1yACoxplUvgX22NZxeQUIIov5TCJJDH/snT5R9bMyix7AG0KQ=="], - "bun-types": ["bun-types@1.2.23", "", { "dependencies": { "@types/node": "*" }, "peerDependencies": { "@types/react": "^19" } }, "sha512-R9f0hKAZXgFU3mlrA0YpE/fiDvwV0FT9rORApt2aQVWSuJDzZOyB5QLc0N/4HF57CS8IXJ6+L5E4W1bW6NS2Aw=="], + "bun-types": ["bun-types@1.3.2", "", { "dependencies": { "@types/node": "*" }, "peerDependencies": { "@types/react": "^19" } }, "sha512-i/Gln4tbzKNuxP70OWhJRZz1MRfvqExowP7U6JKoI8cntFrtxg7RJK3jvz7wQW54UuvNC8tbKHHri5fy74FVqg=="], "call-bind-apply-helpers": ["call-bind-apply-helpers@1.0.2", "", { "dependencies": { "es-errors": "^1.3.0", "function-bind": "^1.1.2" } }, "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ=="], diff --git a/bunfig.toml b/bunfig.toml index aa1fb8b4..b5b4e342 100644 --- a/bunfig.toml +++ b/bunfig.toml @@ -3,3 +3,6 @@ [test] preload = ["./packages/tests/setup.ts"] + +[install] +linker = "hoisted" diff --git a/flake.lock b/flake.lock index eeab4a1a..333e23c3 100644 --- a/flake.lock +++ b/flake.lock @@ -20,11 +20,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1751637120, - "narHash": "sha256-xVNy/XopSfIG9c46nRmPaKfH1Gn/56vQ8++xWA8itO4=", + "lastModified": 1763421233, + "narHash": "sha256-Stk9ZYRkGrnnpyJ4eqt9eQtdFWRRIvMxpNRf4sIegnw=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "5c724ed1388e53cc231ed98330a60eb2f7be4be3", + "rev": "89c2b2330e733d6cdb5eae7b899326930c2c0648", "type": "github" }, "original": { diff --git a/nix/package.nix b/nix/package.nix index 99d5e1af..5d31eb5e 100644 --- a/nix/package.nix +++ b/nix/package.nix @@ -54,7 +54,7 @@ in # Required else we get errors that our fixed-output derivation references store paths dontFixup = true; - outputHash = "sha256-U1bCDAFWmA4kJw9LODdhP0bKIZ4pxAscS6aVLNV9lkI="; + outputHash = "sha256-2ytoiv8+0XTcGhxb/f/xmFk8xWpfotFD0Z+ZIfG9j/I="; outputHashAlgo = "sha256"; outputHashMode = "recursive"; }; diff --git a/package.json b/package.json index 70be53e6..888ac69a 100644 --- a/package.json +++ b/package.json @@ -41,7 +41,7 @@ ], "catalog": { "@biomejs/biome": "2.3.4", - "@types/bun": "~1.2.18", + "@types/bun": "~1.3.2", "@types/html-to-text": "~9.0.4", "@types/markdown-it-container": "~2.0.10", "@types/mime-types": "~3.0.1", diff --git a/packages/kit/db/notification.ts b/packages/kit/db/notification.ts index b80fa5dd..2d954212 100644 --- a/packages/kit/db/notification.ts +++ b/packages/kit/db/notification.ts @@ -189,7 +189,6 @@ export class Notification extends BaseInterface< created_at: new Date(this.data.createdAt).toISOString(), id: this.data.id, type: this.data.type, - event: undefined, status: this.data.status ? await new Note(this.data.status).toApi(account) : undefined, diff --git a/utils/server.ts b/utils/server.ts index bb4a9bd4..af8111f0 100644 --- a/utils/server.ts +++ b/utils/server.ts @@ -8,7 +8,7 @@ import type { HonoEnv } from "~/types/api.ts"; export const createServer = ( config: z.infer, app: Hono, -): Server => +): Server => serve({ port: config.http.bind_port, reusePort: true,