mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 08:28:19 +01:00
chore: ⬆️ Upgrade dependencies
This commit is contained in:
parent
a05a0b313f
commit
2e41bfeee4
23
biome.json
23
biome.json
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"$schema": "https://biomejs.dev/schemas/1.8.3/schema.json",
|
||||
"$schema": "https://biomejs.dev/schemas/1.9.0/schema.json",
|
||||
"organizeImports": {
|
||||
"enabled": true
|
||||
},
|
||||
|
|
@ -8,16 +8,26 @@
|
|||
"rules": {
|
||||
"all": true,
|
||||
"correctness": {
|
||||
"noNodejsModules": "off"
|
||||
"noNodejsModules": "off",
|
||||
"useImportExtensions": "off",
|
||||
"noUndeclaredDependencies": "off"
|
||||
},
|
||||
"performance": {
|
||||
"useTopLevelRegex": "off"
|
||||
},
|
||||
"complexity": {
|
||||
"noExcessiveCognitiveComplexity": "off"
|
||||
},
|
||||
"suspicious": {
|
||||
"noMisplacedAssertion": "off",
|
||||
"noConsole": "off"
|
||||
},
|
||||
"style": {
|
||||
"noDefaultExport": "off",
|
||||
"noParameterProperties": "off",
|
||||
"noNamespaceImport": "off",
|
||||
"useFilenamingConvention": "off",
|
||||
"useDefaultSwitchClause": "off",
|
||||
"useNamingConvention": {
|
||||
"level": "warn",
|
||||
"options": {
|
||||
|
|
@ -52,14 +62,7 @@
|
|||
}
|
||||
},
|
||||
"nursery": {
|
||||
"noDuplicateElseIf": "warn",
|
||||
"noDuplicateJsonKeys": "warn",
|
||||
"noEvolvingTypes": "warn",
|
||||
"noYodaExpression": "warn",
|
||||
"useConsistentBuiltinInstantiation": "warn",
|
||||
"useErrorMessage": "warn",
|
||||
"useImportExtensions": "off",
|
||||
"useThrowNewError": "warn"
|
||||
"noDuplicateElseIf": "warn"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
|
|||
34
package.json
34
package.json
|
|
@ -75,8 +75,8 @@
|
|||
"flexibleTaxonomy": true
|
||||
},
|
||||
"devDependencies": {
|
||||
"@biomejs/biome": "^1.8.3",
|
||||
"@types/bun": "^1.1.8",
|
||||
"@biomejs/biome": "^1.9.0",
|
||||
"@types/bun": "^1.1.9",
|
||||
"@types/cli-progress": "^3.11.6",
|
||||
"@types/cli-table": "^0.3.4",
|
||||
"@types/html-to-text": "^9.0.4",
|
||||
|
|
@ -84,13 +84,13 @@
|
|||
"@types/jsonld": "^1.5.15",
|
||||
"@types/markdown-it-container": "^2.0.10",
|
||||
"@types/mime-types": "^2.1.4",
|
||||
"@types/pg": "^8.11.8",
|
||||
"@types/qs": "^6.9.15",
|
||||
"@types/pg": "^8.11.10",
|
||||
"@types/qs": "^6.9.16",
|
||||
"drizzle-kit": "^0.24.2",
|
||||
"oclif": "^4.14.29",
|
||||
"oclif": "^4.14.32",
|
||||
"ts-prune": "^0.10.3",
|
||||
"typescript": "^5.5.4",
|
||||
"zod-to-json-schema": "^3.23.2"
|
||||
"typescript": "^5.6.2",
|
||||
"zod-to-json-schema": "^3.23.3"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"typescript": "^5.3.2"
|
||||
|
|
@ -98,7 +98,7 @@
|
|||
"dependencies": {
|
||||
"@bradenmacdonald/s3-lite-client": "npm:@jsr/bradenmacdonald__s3-lite-client",
|
||||
"@hackmd/markdown-it-task-lists": "^2.1.4",
|
||||
"@hono/hono": "npm:@jsr/hono__hono@4.5.11",
|
||||
"@hono/hono": "npm:@jsr/hono__hono@4.6.1",
|
||||
"@hono/prometheus": "^1.0.1",
|
||||
"@hono/swagger-ui": "^0.4.1",
|
||||
"@hono/zod-openapi": "^0.16.0",
|
||||
|
|
@ -106,37 +106,37 @@
|
|||
"@inquirer/confirm": "^3.2.0",
|
||||
"@inquirer/input": "^2.3.0",
|
||||
"@json2csv/plainjs": "^7.0.6",
|
||||
"@logtape/logtape": "npm:@jsr/logtape__logtape@0.4.2",
|
||||
"@oclif/core": "^4.0.20",
|
||||
"@sentry/bun": "^8.28.0",
|
||||
"@logtape/logtape": "npm:@jsr/logtape__logtape@0.5.1",
|
||||
"@oclif/core": "^4.0.22",
|
||||
"@sentry/bun": "^8.30.0",
|
||||
"@tufjs/canonical-json": "^2.0.0",
|
||||
"@versia/client": "^0.1.0",
|
||||
"@versia/federation": "^0.1.0",
|
||||
"altcha-lib": "^1.0.0",
|
||||
"altcha-lib": "^1.1.0",
|
||||
"blurhash": "^2.0.5",
|
||||
"bullmq": "^5.12.14",
|
||||
"bullmq": "^5.13.0",
|
||||
"c12": "^1.11.2",
|
||||
"chalk": "^5.3.0",
|
||||
"cli-progress": "^3.12.0",
|
||||
"cli-table": "^0.3.11",
|
||||
"drizzle-orm": "^0.33.0",
|
||||
"extract-zip": "^2.0.1",
|
||||
"hono": "npm:@jsr/hono__hono@4.5.11",
|
||||
"hono": "npm:@jsr/hono__hono@4.6.1",
|
||||
"html-to-text": "^9.0.5",
|
||||
"ioredis": "^5.4.1",
|
||||
"ip-matching": "^2.1.2",
|
||||
"iso-639-1": "^3.1.3",
|
||||
"jose": "^5.8.0",
|
||||
"jose": "^5.9.2",
|
||||
"linkify-html": "^4.1.3",
|
||||
"linkify-string": "^4.1.3",
|
||||
"linkifyjs": "^4.1.3",
|
||||
"magic-regexp": "^0.8.0",
|
||||
"markdown-it": "^14.1.0",
|
||||
"markdown-it-anchor": "^9.1.0",
|
||||
"markdown-it-anchor": "^9.2.0",
|
||||
"markdown-it-container": "^4.0.0",
|
||||
"markdown-it-toc-done-right": "^4.2.0",
|
||||
"mime-types": "^2.1.35",
|
||||
"oauth4webapi": "^2.12.1",
|
||||
"oauth4webapi": "^2.13.0",
|
||||
"ora": "^8.1.0",
|
||||
"pg": "^8.12.0",
|
||||
"prom-client": "^15.1.3",
|
||||
|
|
|
|||
|
|
@ -261,6 +261,7 @@ export class Attachment extends BaseInterface<typeof Attachments> {
|
|||
duration: value.duration || undefined,
|
||||
fps: value.fps || undefined,
|
||||
height: value.height || undefined,
|
||||
// biome-ignore lint/style/useExplicitLengthCheck: Biome thinks we're checking if size is not zero
|
||||
size: value.size || undefined,
|
||||
width: value.width || undefined,
|
||||
sha256: value.hash?.sha256 || undefined,
|
||||
|
|
|
|||
|
|
@ -511,8 +511,8 @@ export class Note extends BaseInterface<typeof Notes, StatusWithRelations> {
|
|||
application?: Application;
|
||||
}): Promise<Note> {
|
||||
const plaintextContent = data.content
|
||||
? data.content["text/plain"]?.content ??
|
||||
Object.entries(data.content)[0][1].content
|
||||
? (data.content["text/plain"]?.content ??
|
||||
Object.entries(data.content)[0][1].content)
|
||||
: undefined;
|
||||
|
||||
const parsedMentions = [
|
||||
|
|
@ -954,9 +954,9 @@ export class Note extends BaseInterface<typeof Notes, StatusWithRelations> {
|
|||
url: data.uri || this.getMastoUri(),
|
||||
bookmarked: false,
|
||||
quote: data.quotingId
|
||||
? (await Note.fromId(data.quotingId, userFetching?.id).then(
|
||||
? ((await Note.fromId(data.quotingId, userFetching?.id).then(
|
||||
(n) => n?.toApi(userFetching),
|
||||
)) ?? null
|
||||
)) ?? null)
|
||||
: null,
|
||||
edited_at: data.updatedAt
|
||||
? new Date(data.updatedAt).toISOString()
|
||||
|
|
|
|||
Loading…
Reference in a new issue