mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 00:18:19 +01:00
chore: ⬆️ Upgrade to Bun 1.3.2
This commit is contained in:
parent
f00ac1a590
commit
1430d6f7e7
|
|
@ -9,7 +9,7 @@
|
||||||
|
|
||||||
### Backend
|
### Backend
|
||||||
|
|
||||||
- [x] 🚀 Upgraded Bun to `1.2.18`
|
- [x] 🚀 Upgraded Bun to `1.3.2`
|
||||||
|
|
||||||
# `0.8.0` • Federation 2: Electric Boogaloo
|
# `0.8.0` • Federation 2: Electric Boogaloo
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ RUN bun run build api
|
||||||
WORKDIR /temp/dist
|
WORKDIR /temp/dist
|
||||||
|
|
||||||
# Copy production dependencies and source code into final image
|
# 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
|
# Install libstdc++ for Bun and create app directory
|
||||||
RUN mkdir -p /app
|
RUN mkdir -p /app
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ RUN bun run build worker
|
||||||
WORKDIR /temp/dist
|
WORKDIR /temp/dist
|
||||||
|
|
||||||
# Copy production dependencies and source code into final image
|
# 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
|
# Install libstdc++ for Bun and create app directory
|
||||||
RUN mkdir -p /app
|
RUN mkdir -p /app
|
||||||
|
|
|
||||||
7
bun.lock
7
bun.lock
|
|
@ -1,5 +1,6 @@
|
||||||
{
|
{
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
|
"configVersion": 1,
|
||||||
"workspaces": {
|
"workspaces": {
|
||||||
"": {
|
"": {
|
||||||
"name": "versia-server",
|
"name": "versia-server",
|
||||||
|
|
@ -244,7 +245,7 @@
|
||||||
"@logtape/sentry": "~1.0.0",
|
"@logtape/sentry": "~1.0.0",
|
||||||
"@scalar/hono-api-reference": "~0.9.25",
|
"@scalar/hono-api-reference": "~0.9.25",
|
||||||
"@sentry/bun": "~10.26.0",
|
"@sentry/bun": "~10.26.0",
|
||||||
"@types/bun": "~1.2.18",
|
"@types/bun": "~1.3.2",
|
||||||
"@types/html-to-text": "~9.0.4",
|
"@types/html-to-text": "~9.0.4",
|
||||||
"@types/markdown-it-container": "~2.0.10",
|
"@types/markdown-it-container": "~2.0.10",
|
||||||
"@types/mime-types": "~3.0.1",
|
"@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=="],
|
"@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=="],
|
"@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-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=="],
|
"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=="],
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,3 +3,6 @@
|
||||||
|
|
||||||
[test]
|
[test]
|
||||||
preload = ["./packages/tests/setup.ts"]
|
preload = ["./packages/tests/setup.ts"]
|
||||||
|
|
||||||
|
[install]
|
||||||
|
linker = "hoisted"
|
||||||
|
|
|
||||||
|
|
@ -20,11 +20,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1751637120,
|
"lastModified": 1763421233,
|
||||||
"narHash": "sha256-xVNy/XopSfIG9c46nRmPaKfH1Gn/56vQ8++xWA8itO4=",
|
"narHash": "sha256-Stk9ZYRkGrnnpyJ4eqt9eQtdFWRRIvMxpNRf4sIegnw=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "5c724ed1388e53cc231ed98330a60eb2f7be4be3",
|
"rev": "89c2b2330e733d6cdb5eae7b899326930c2c0648",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
|
||||||
|
|
@ -54,7 +54,7 @@ in
|
||||||
# Required else we get errors that our fixed-output derivation references store paths
|
# Required else we get errors that our fixed-output derivation references store paths
|
||||||
dontFixup = true;
|
dontFixup = true;
|
||||||
|
|
||||||
outputHash = "sha256-U1bCDAFWmA4kJw9LODdhP0bKIZ4pxAscS6aVLNV9lkI=";
|
outputHash = "sha256-2ytoiv8+0XTcGhxb/f/xmFk8xWpfotFD0Z+ZIfG9j/I=";
|
||||||
outputHashAlgo = "sha256";
|
outputHashAlgo = "sha256";
|
||||||
outputHashMode = "recursive";
|
outputHashMode = "recursive";
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -41,7 +41,7 @@
|
||||||
],
|
],
|
||||||
"catalog": {
|
"catalog": {
|
||||||
"@biomejs/biome": "2.3.4",
|
"@biomejs/biome": "2.3.4",
|
||||||
"@types/bun": "~1.2.18",
|
"@types/bun": "~1.3.2",
|
||||||
"@types/html-to-text": "~9.0.4",
|
"@types/html-to-text": "~9.0.4",
|
||||||
"@types/markdown-it-container": "~2.0.10",
|
"@types/markdown-it-container": "~2.0.10",
|
||||||
"@types/mime-types": "~3.0.1",
|
"@types/mime-types": "~3.0.1",
|
||||||
|
|
|
||||||
|
|
@ -189,7 +189,6 @@ export class Notification extends BaseInterface<
|
||||||
created_at: new Date(this.data.createdAt).toISOString(),
|
created_at: new Date(this.data.createdAt).toISOString(),
|
||||||
id: this.data.id,
|
id: this.data.id,
|
||||||
type: this.data.type,
|
type: this.data.type,
|
||||||
event: undefined,
|
|
||||||
status: this.data.status
|
status: this.data.status
|
||||||
? await new Note(this.data.status).toApi(account)
|
? await new Note(this.data.status).toApi(account)
|
||||||
: undefined,
|
: undefined,
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ import type { HonoEnv } from "~/types/api.ts";
|
||||||
export const createServer = (
|
export const createServer = (
|
||||||
config: z.infer<typeof ConfigSchema>,
|
config: z.infer<typeof ConfigSchema>,
|
||||||
app: Hono<HonoEnv>,
|
app: Hono<HonoEnv>,
|
||||||
): Server =>
|
): Server<undefined> =>
|
||||||
serve({
|
serve({
|
||||||
port: config.http.bind_port,
|
port: config.http.bind_port,
|
||||||
reusePort: true,
|
reusePort: true,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue