chore: ⬆️ Upgrade dependencies

This commit is contained in:
Jesse Wierzbinski 2024-09-14 17:32:32 +02:00
parent a05a0b313f
commit 2e41bfeee4
No known key found for this signature in database
5 changed files with 35 additions and 31 deletions

View file

@ -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": { "organizeImports": {
"enabled": true "enabled": true
}, },
@ -8,16 +8,26 @@
"rules": { "rules": {
"all": true, "all": true,
"correctness": { "correctness": {
"noNodejsModules": "off" "noNodejsModules": "off",
"useImportExtensions": "off",
"noUndeclaredDependencies": "off"
},
"performance": {
"useTopLevelRegex": "off"
}, },
"complexity": { "complexity": {
"noExcessiveCognitiveComplexity": "off" "noExcessiveCognitiveComplexity": "off"
}, },
"suspicious": {
"noMisplacedAssertion": "off",
"noConsole": "off"
},
"style": { "style": {
"noDefaultExport": "off", "noDefaultExport": "off",
"noParameterProperties": "off", "noParameterProperties": "off",
"noNamespaceImport": "off", "noNamespaceImport": "off",
"useFilenamingConvention": "off", "useFilenamingConvention": "off",
"useDefaultSwitchClause": "off",
"useNamingConvention": { "useNamingConvention": {
"level": "warn", "level": "warn",
"options": { "options": {
@ -52,14 +62,7 @@
} }
}, },
"nursery": { "nursery": {
"noDuplicateElseIf": "warn", "noDuplicateElseIf": "warn"
"noDuplicateJsonKeys": "warn",
"noEvolvingTypes": "warn",
"noYodaExpression": "warn",
"useConsistentBuiltinInstantiation": "warn",
"useErrorMessage": "warn",
"useImportExtensions": "off",
"useThrowNewError": "warn"
} }
} }
}, },

BIN
bun.lockb

Binary file not shown.

View file

@ -75,8 +75,8 @@
"flexibleTaxonomy": true "flexibleTaxonomy": true
}, },
"devDependencies": { "devDependencies": {
"@biomejs/biome": "^1.8.3", "@biomejs/biome": "^1.9.0",
"@types/bun": "^1.1.8", "@types/bun": "^1.1.9",
"@types/cli-progress": "^3.11.6", "@types/cli-progress": "^3.11.6",
"@types/cli-table": "^0.3.4", "@types/cli-table": "^0.3.4",
"@types/html-to-text": "^9.0.4", "@types/html-to-text": "^9.0.4",
@ -84,13 +84,13 @@
"@types/jsonld": "^1.5.15", "@types/jsonld": "^1.5.15",
"@types/markdown-it-container": "^2.0.10", "@types/markdown-it-container": "^2.0.10",
"@types/mime-types": "^2.1.4", "@types/mime-types": "^2.1.4",
"@types/pg": "^8.11.8", "@types/pg": "^8.11.10",
"@types/qs": "^6.9.15", "@types/qs": "^6.9.16",
"drizzle-kit": "^0.24.2", "drizzle-kit": "^0.24.2",
"oclif": "^4.14.29", "oclif": "^4.14.32",
"ts-prune": "^0.10.3", "ts-prune": "^0.10.3",
"typescript": "^5.5.4", "typescript": "^5.6.2",
"zod-to-json-schema": "^3.23.2" "zod-to-json-schema": "^3.23.3"
}, },
"peerDependencies": { "peerDependencies": {
"typescript": "^5.3.2" "typescript": "^5.3.2"
@ -98,7 +98,7 @@
"dependencies": { "dependencies": {
"@bradenmacdonald/s3-lite-client": "npm:@jsr/bradenmacdonald__s3-lite-client", "@bradenmacdonald/s3-lite-client": "npm:@jsr/bradenmacdonald__s3-lite-client",
"@hackmd/markdown-it-task-lists": "^2.1.4", "@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/prometheus": "^1.0.1",
"@hono/swagger-ui": "^0.4.1", "@hono/swagger-ui": "^0.4.1",
"@hono/zod-openapi": "^0.16.0", "@hono/zod-openapi": "^0.16.0",
@ -106,37 +106,37 @@
"@inquirer/confirm": "^3.2.0", "@inquirer/confirm": "^3.2.0",
"@inquirer/input": "^2.3.0", "@inquirer/input": "^2.3.0",
"@json2csv/plainjs": "^7.0.6", "@json2csv/plainjs": "^7.0.6",
"@logtape/logtape": "npm:@jsr/logtape__logtape@0.4.2", "@logtape/logtape": "npm:@jsr/logtape__logtape@0.5.1",
"@oclif/core": "^4.0.20", "@oclif/core": "^4.0.22",
"@sentry/bun": "^8.28.0", "@sentry/bun": "^8.30.0",
"@tufjs/canonical-json": "^2.0.0", "@tufjs/canonical-json": "^2.0.0",
"@versia/client": "^0.1.0", "@versia/client": "^0.1.0",
"@versia/federation": "^0.1.0", "@versia/federation": "^0.1.0",
"altcha-lib": "^1.0.0", "altcha-lib": "^1.1.0",
"blurhash": "^2.0.5", "blurhash": "^2.0.5",
"bullmq": "^5.12.14", "bullmq": "^5.13.0",
"c12": "^1.11.2", "c12": "^1.11.2",
"chalk": "^5.3.0", "chalk": "^5.3.0",
"cli-progress": "^3.12.0", "cli-progress": "^3.12.0",
"cli-table": "^0.3.11", "cli-table": "^0.3.11",
"drizzle-orm": "^0.33.0", "drizzle-orm": "^0.33.0",
"extract-zip": "^2.0.1", "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", "html-to-text": "^9.0.5",
"ioredis": "^5.4.1", "ioredis": "^5.4.1",
"ip-matching": "^2.1.2", "ip-matching": "^2.1.2",
"iso-639-1": "^3.1.3", "iso-639-1": "^3.1.3",
"jose": "^5.8.0", "jose": "^5.9.2",
"linkify-html": "^4.1.3", "linkify-html": "^4.1.3",
"linkify-string": "^4.1.3", "linkify-string": "^4.1.3",
"linkifyjs": "^4.1.3", "linkifyjs": "^4.1.3",
"magic-regexp": "^0.8.0", "magic-regexp": "^0.8.0",
"markdown-it": "^14.1.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-container": "^4.0.0",
"markdown-it-toc-done-right": "^4.2.0", "markdown-it-toc-done-right": "^4.2.0",
"mime-types": "^2.1.35", "mime-types": "^2.1.35",
"oauth4webapi": "^2.12.1", "oauth4webapi": "^2.13.0",
"ora": "^8.1.0", "ora": "^8.1.0",
"pg": "^8.12.0", "pg": "^8.12.0",
"prom-client": "^15.1.3", "prom-client": "^15.1.3",

View file

@ -261,6 +261,7 @@ export class Attachment extends BaseInterface<typeof Attachments> {
duration: value.duration || undefined, duration: value.duration || undefined,
fps: value.fps || undefined, fps: value.fps || undefined,
height: value.height || undefined, height: value.height || undefined,
// biome-ignore lint/style/useExplicitLengthCheck: Biome thinks we're checking if size is not zero
size: value.size || undefined, size: value.size || undefined,
width: value.width || undefined, width: value.width || undefined,
sha256: value.hash?.sha256 || undefined, sha256: value.hash?.sha256 || undefined,

View file

@ -511,8 +511,8 @@ export class Note extends BaseInterface<typeof Notes, StatusWithRelations> {
application?: Application; application?: Application;
}): Promise<Note> { }): Promise<Note> {
const plaintextContent = data.content const plaintextContent = data.content
? data.content["text/plain"]?.content ?? ? (data.content["text/plain"]?.content ??
Object.entries(data.content)[0][1].content Object.entries(data.content)[0][1].content)
: undefined; : undefined;
const parsedMentions = [ const parsedMentions = [
@ -954,9 +954,9 @@ export class Note extends BaseInterface<typeof Notes, StatusWithRelations> {
url: data.uri || this.getMastoUri(), url: data.uri || this.getMastoUri(),
bookmarked: false, bookmarked: false,
quote: data.quotingId quote: data.quotingId
? (await Note.fromId(data.quotingId, userFetching?.id).then( ? ((await Note.fromId(data.quotingId, userFetching?.id).then(
(n) => n?.toApi(userFetching), (n) => n?.toApi(userFetching),
)) ?? null )) ?? null)
: null, : null,
edited_at: data.updatedAt edited_at: data.updatedAt
? new Date(data.updatedAt).toISOString() ? new Date(data.updatedAt).toISOString()