chore: ⬆️ Upgrade Bun to 1.2.7

This commit is contained in:
Jesse Wierzbinski 2025-03-27 14:41:43 +01:00
parent ebb0f52f1e
commit 5f8c57b3e1
No known key found for this signature in database
5 changed files with 160 additions and 160 deletions

View file

@ -1,5 +1,5 @@
# Bun doesn't run well on Musl but this seems to work
FROM oven/bun:1.2.5-alpine as base
FROM oven/bun:1.2.7-alpine as base
# Switch to Bash by editing /etc/passwd
RUN apk add --no-cache libstdc++ git bash curl openssh cloc && \

View file

@ -31,7 +31,7 @@ Please see [Database Changes](#database-changes) and [New Configuration](#new-co
### Backend
- [x] 🚀 Upgraded Bun to `1.2.5`
- [x] 🚀 Upgraded Bun to `1.2.7`
- [x] 🖼️ Simplified media pipeline: this will improve S3 performance
- [ ] 📈 It is now possible to disable media proxying for your CDN (offloading considerable bandwidth to your more optimized CDN).
- [x] 👷 Outbound federation, inbox processing, data fetching and media processing are now handled by a queue system.
@ -46,7 +46,7 @@ Configuration parsing and validation has been overhauled. Unfortunately, this me
Various media-related attributes have been merged into a single `Medias` table. This will require a migration in order to preserve the old data.
Since very few instances are running `0.7.0`, we have decided to "rawdog it" instead of making a proper migration script (as that would take a ton of *unpaid* time).
Since very few instances are running `0.7.0`, we have decided to "rawdog it" instead of making a proper migration script (as that would take a ton of _unpaid_ time).
In the case that you've been running secret instances in the shadows, let us know and we'll help you out.
@ -139,7 +139,7 @@ As a demonstration of the power of this system and an effort to modularize the c
- Animated media will now stay animated when uploaded.
- Some instance metadata will no longer be missing from `/api/v2/instabnce` endpoint. In fact, it will now be more complete than Mastodon's implementation.
- The Origin HTTP header will no longer be used to determine the origin of a request. This was a security issue.
- New notes will no longer incorrectly be federated to *all* remote users at once.
- New notes will no longer incorrectly be federated to _all_ remote users at once.
- Fix [Elk Client](https://elk.zone/) not being able to log in.
## Removals

View file

@ -26,7 +26,7 @@ RUN bun run build
WORKDIR /temp/dist
# Copy production dependencies and source code into final image
FROM oven/bun:1.2.5-alpine
FROM oven/bun:1.2.7-alpine
# Install libstdc++ for Bun and create app directory
RUN apk add --no-cache libstdc++ && \

View file

@ -26,7 +26,7 @@ RUN bun run build:worker
WORKDIR /temp/dist
# Copy production dependencies and source code into final image
FROM oven/bun:1.2.5-alpine
FROM oven/bun:1.2.7-alpine
# Install libstdc++ for Bun and create app directory
RUN apk add --no-cache libstdc++ && \

144
bun.lock
View file

@ -4,82 +4,82 @@
"": {
"name": "versia-server",
"dependencies": {
"@bull-board/api": "latest",
"@bull-board/hono": "latest",
"@clerc/plugin-completions": "latest",
"@clerc/plugin-friendly-error": "latest",
"@clerc/plugin-help": "latest",
"@clerc/plugin-not-found": "latest",
"@clerc/plugin-version": "latest",
"@hackmd/markdown-it-task-lists": "latest",
"@hono/prometheus": "latest",
"@hono/zod-openapi": "latest",
"@hono/zod-validator": "latest",
"@inquirer/confirm": "latest",
"@logtape/file": "latest",
"@logtape/logtape": "latest",
"@scalar/hono-api-reference": "latest",
"@sentry/bun": "latest",
"@bull-board/api": "^6.7.10",
"@bull-board/hono": "^6.7.10",
"@clerc/plugin-completions": "^0.44.0",
"@clerc/plugin-friendly-error": "^0.44.0",
"@clerc/plugin-help": "^0.44.0",
"@clerc/plugin-not-found": "^0.44.0",
"@clerc/plugin-version": "^0.44.0",
"@hackmd/markdown-it-task-lists": "^2.1.4",
"@hono/prometheus": "^1.0.1",
"@hono/zod-openapi": "0.19.2",
"@hono/zod-validator": "^0.4.3",
"@inquirer/confirm": "^5.1.8",
"@logtape/file": "^0.9.0",
"@logtape/logtape": "^0.9.0",
"@scalar/hono-api-reference": "^0.7.3",
"@sentry/bun": "^9.9.0",
"@versia/client": "workspace:*",
"@versia/federation": "latest",
"@versia/federation": "^0.2.1",
"@versia/kit": "workspace:*",
"altcha-lib": "latest",
"blurhash": "latest",
"bullmq": "latest",
"c12": "latest",
"chalk": "latest",
"clerc": "latest",
"confbox": "latest",
"drizzle-orm": "latest",
"hono": "latest",
"html-to-text": "latest",
"ioredis": "latest",
"ip-matching": "latest",
"iso-639-1": "latest",
"jose": "latest",
"linkify-html": "latest",
"linkify-string": "latest",
"linkifyjs": "latest",
"magic-regexp": "latest",
"markdown-it": "latest",
"markdown-it-anchor": "latest",
"markdown-it-container": "latest",
"markdown-it-toc-done-right": "latest",
"mime-types": "latest",
"mitata": "latest",
"oauth4webapi": "latest",
"ora": "latest",
"pg": "latest",
"qs": "latest",
"sharp": "latest",
"sonic-channel": "latest",
"string-comparison": "latest",
"stringify-entities": "latest",
"uqr": "latest",
"web-push": "latest",
"xss": "latest",
"zod": "latest",
"zod-validation-error": "latest",
"altcha-lib": "^1.2.0",
"blurhash": "^2.0.5",
"bullmq": "^5.44.4",
"c12": "^3.0.2",
"chalk": "^5.4.1",
"clerc": "^0.44.0",
"confbox": "^0.2.1",
"drizzle-orm": "^0.41.0",
"hono": "^4.7.5",
"html-to-text": "^9.0.5",
"ioredis": "^5.6.0",
"ip-matching": "^2.1.2",
"iso-639-1": "^3.1.5",
"jose": "^6.0.10",
"linkify-html": "^4.2.0",
"linkify-string": "^4.2.0",
"linkifyjs": "^4.2.0",
"magic-regexp": "^0.8.0",
"markdown-it": "^14.1.0",
"markdown-it-anchor": "^9.2.0",
"markdown-it-container": "^4.0.0",
"markdown-it-toc-done-right": "^4.2.0",
"mime-types": "^3.0.1",
"mitata": "^1.0.34",
"oauth4webapi": "^3.3.1",
"ora": "^8.2.0",
"pg": "^8.14.1",
"qs": "^6.14.0",
"sharp": "^0.33.5",
"sonic-channel": "^1.3.1",
"string-comparison": "^1.3.0",
"stringify-entities": "^4.0.4",
"uqr": "^0.1.2",
"web-push": "^3.6.7",
"xss": "^1.0.15",
"zod": "^3.24.2",
"zod-validation-error": "^3.4.0",
},
"devDependencies": {
"@biomejs/biome": "latest",
"@types/bun": "latest",
"@types/html-to-text": "latest",
"@types/markdown-it-container": "latest",
"@types/mime-types": "latest",
"@types/pg": "latest",
"@types/qs": "latest",
"@types/web-push": "latest",
"drizzle-kit": "latest",
"markdown-it-image-figures": "latest",
"markdown-it-mathjax3": "latest",
"ts-prune": "latest",
"typescript": "latest",
"vitepress": "latest",
"vitepress-plugin-tabs": "latest",
"vitepress-sidebar": "latest",
"vue": "latest",
"zod-to-json-schema": "latest",
"@biomejs/biome": "^1.9.4",
"@types/bun": "^1.2.7",
"@types/html-to-text": "^9.0.4",
"@types/markdown-it-container": "^2.0.10",
"@types/mime-types": "^2.1.4",
"@types/pg": "^8.11.11",
"@types/qs": "^6.9.18",
"@types/web-push": "^3.6.4",
"drizzle-kit": "^0.30.6",
"markdown-it-image-figures": "^2.1.1",
"markdown-it-mathjax3": "^4.3.2",
"ts-prune": "^0.10.3",
"typescript": "^5.8.2",
"vitepress": "^1.6.3",
"vitepress-plugin-tabs": "^0.6.0",
"vitepress-sidebar": "^1.31.1",
"vue": "^3.5.13",
"zod-to-json-schema": "^3.24.5",
},
"peerDependencies": {
"typescript": "^5.7.2",