Compare commits

...

2 Commits

Author SHA1 Message Date
naskya af80fd92dc
chore: upgrade dependencies
Co-authored-by: sup39 <dev@sup39.dev>
2024-02-28 23:40:40 +09:00
naskya d30239b5e7
fix (backend): incorrect database index
Sorry for my silly mistake (cf. 9d56db0fbf 4356099fec)
2024-02-28 23:28:09 +09:00
10 changed files with 604 additions and 606 deletions

View File

@ -1,6 +1,7 @@
BEGIN; BEGIN;
DELETE FROM "migrations" WHERE name IN ( DELETE FROM "migrations" WHERE name IN (
'FixNoteUrlIndex1709129810501',
'RemoveCharts1709047957489', 'RemoveCharts1709047957489',
'DropUserProfileLanguage1708452631156', 'DropUserProfileLanguage1708452631156',
'EmojiModerator1692825433698', 'EmojiModerator1692825433698',

View File

@ -5,7 +5,7 @@
"type": "git", "type": "git",
"url": "https://firefish.dev/firefish/firefish.git" "url": "https://firefish.dev/firefish/firefish.git"
}, },
"packageManager": "pnpm@8.15.3", "packageManager": "pnpm@8.15.4",
"private": true, "private": true,
"scripts": { "scripts": {
"rebuild": "pnpm run clean && pnpm run build", "rebuild": "pnpm run clean && pnpm run build",
@ -51,9 +51,9 @@
"@biomejs/cli-linux-x64": "^1.5.3", "@biomejs/cli-linux-x64": "^1.5.3",
"@types/gulp": "4.0.17", "@types/gulp": "4.0.17",
"@types/gulp-rename": "2.0.6", "@types/gulp-rename": "2.0.6",
"@types/node": "20.11.19", "@types/node": "20.11.21",
"execa": "8.0.1", "execa": "8.0.1",
"pnpm": "8.15.3", "pnpm": "8.15.4",
"typescript": "5.3.3" "typescript": "5.3.3"
} }
} }

View File

@ -0,0 +1,11 @@
export class FixNoteUrlIndex1709129810501 {
name = "FixNoteUrlIndex1709129810501";
async up(queryRunner) {
await queryRunner.query(`DROP INDEX "IDX_note_url"`);
await queryRunner.query(`CREATE INDEX "IDX_note_url" ON "note" ("url")`);
}
async down(queryRunner) {
/* You don't revert this migration */
}
}

View File

@ -9,9 +9,9 @@
"migrate": "typeorm migration:run -d ormconfig.js", "migrate": "typeorm migration:run -d ormconfig.js",
"revertmigration": "typeorm migration:revert -d ormconfig.js", "revertmigration": "typeorm migration:revert -d ormconfig.js",
"check:connect": "node ./check_connect.js", "check:connect": "node ./check_connect.js",
"build": "pnpm swc src -d built -D", "build": "pnpm swc src --out-dir built --source-maps false --copy-files --strip-leading-paths",
"build:debug": "pnpm swc src -d built -s -D", "build:debug": "pnpm swc src --out-dir built --source-maps true --copy-files --strip-leading-paths",
"watch": "pnpm swc src -d built -D -w", "watch": "pnpm swc src --out-dir built --source-maps true --copy-files --strip-leading-paths --watch",
"lint": "pnpm biome check --apply **/*.ts ; pnpm run format", "lint": "pnpm biome check --apply **/*.ts ; pnpm run format",
"mocha": "cross-env NODE_ENV=test TS_NODE_FILES=true TS_NODE_TRANSPILE_ONLY=true TS_NODE_PROJECT=\"./test/tsconfig.json\" mocha", "mocha": "cross-env NODE_ENV=test TS_NODE_FILES=true TS_NODE_TRANSPILE_ONLY=true TS_NODE_PROJECT=\"./test/tsconfig.json\" mocha",
"test": "pnpm run mocha", "test": "pnpm run mocha",
@ -21,24 +21,24 @@
"@swc/core-android-arm64": "1.3.11" "@swc/core-android-arm64": "1.3.11"
}, },
"dependencies": { "dependencies": {
"@bull-board/api": "5.14.1", "@bull-board/api": "5.14.2",
"@bull-board/koa": "5.14.1", "@bull-board/koa": "5.14.2",
"@bull-board/ui": "5.14.1", "@bull-board/ui": "5.14.2",
"@discordapp/twemoji": "^15.0.2", "@discordapp/twemoji": "^15.0.2",
"@elastic/elasticsearch": "8.12.1", "@elastic/elasticsearch": "8.12.2",
"@koa/cors": "5.0.0", "@koa/cors": "5.0.0",
"@koa/multer": "3.0.2", "@koa/multer": "3.0.2",
"@koa/router": "12.0.1", "@koa/router": "12.0.1",
"@ladjs/koa-views": "9.0.0", "@ladjs/koa-views": "9.0.0",
"@peertube/http-signature": "1.7.0", "@peertube/http-signature": "1.7.0",
"@redocly/openapi-core": "1.9.0", "@redocly/openapi-core": "1.9.1",
"@sinonjs/fake-timers": "11.2.2", "@sinonjs/fake-timers": "11.2.2",
"@twemoji/parser": "^15.0.0", "@twemoji/parser": "^15.0.0",
"adm-zip": "^0.5.10", "adm-zip": "^0.5.10",
"ajv": "8.12.0", "ajv": "8.12.0",
"archiver": "6.0.1", "archiver": "6.0.2",
"argon2": "^0.31.2", "argon2": "^0.40.1",
"aws-sdk": "2.1561.0", "aws-sdk": "2.1567.0",
"axios": "^1.6.7", "axios": "^1.6.7",
"backend-rs": "workspace:*", "backend-rs": "workspace:*",
"bcryptjs": "2.4.3", "bcryptjs": "2.4.3",
@ -61,7 +61,7 @@
"form-data": "^4.0.0", "form-data": "^4.0.0",
"got": "14.2.0", "got": "14.2.0",
"gunzip-maybe": "^1.4.2", "gunzip-maybe": "^1.4.2",
"happy-dom": "^13.3.8", "happy-dom": "^13.6.2",
"hpagent": "1.2.0", "hpagent": "1.2.0",
"ioredis": "5.3.2", "ioredis": "5.3.2",
"ip-cidr": "4.0.0", "ip-cidr": "4.0.0",
@ -88,7 +88,7 @@
"multer": "1.4.5-lts.1", "multer": "1.4.5-lts.1",
"nested-property": "4.0.0", "nested-property": "4.0.0",
"node-fetch": "3.3.2", "node-fetch": "3.3.2",
"nodemailer": "6.9.9", "nodemailer": "6.9.10",
"opencc-js": "^1.0.5", "opencc-js": "^1.0.5",
"os-utils": "0.0.14", "os-utils": "0.0.14",
"otpauth": "^9.2.2", "otpauth": "^9.2.2",
@ -109,7 +109,7 @@
"rename": "1.0.4", "rename": "1.0.4",
"rndstr": "1.0.0", "rndstr": "1.0.0",
"rss-parser": "3.13.0", "rss-parser": "3.13.0",
"sanitize-html": "2.11.0", "sanitize-html": "2.12.1",
"semver": "7.6.0", "semver": "7.6.0",
"sharp": "0.33.2", "sharp": "0.33.2",
"sonic-channel": "^1.3.1", "sonic-channel": "^1.3.1",
@ -118,9 +118,9 @@
"syslog-pro": "1.0.0", "syslog-pro": "1.0.0",
"systeminformation": "5.22.0", "systeminformation": "5.22.0",
"tar-stream": "^3.1.7", "tar-stream": "^3.1.7",
"tesseract.js": "^5.0.4", "tesseract.js": "^5.0.5",
"tinycolor2": "1.6.0", "tinycolor2": "1.6.0",
"tmp": "0.2.1", "tmp": "0.2.2",
"typeorm": "0.3.20", "typeorm": "0.3.20",
"ulid": "2.3.0", "ulid": "2.3.0",
"uuid": "9.0.1", "uuid": "9.0.1",
@ -129,7 +129,7 @@
"xev": "3.0.2" "xev": "3.0.2"
}, },
"devDependencies": { "devDependencies": {
"@swc/cli": "0.1.65", "@swc/cli": "0.3.10",
"@swc/core": "1.4.2", "@swc/core": "1.4.2",
"@types/adm-zip": "^0.5.5", "@types/adm-zip": "^0.5.5",
"@types/bcryptjs": "2.4.6", "@types/bcryptjs": "2.4.6",
@ -140,7 +140,7 @@
"@types/js-yaml": "4.0.9", "@types/js-yaml": "4.0.9",
"@types/jsonld": "1.5.13", "@types/jsonld": "1.5.13",
"@types/jsrsasign": "10.5.12", "@types/jsrsasign": "10.5.12",
"@types/koa": "2.14.0", "@types/koa": "2.15.0",
"@types/koa-bodyparser": "4.3.12", "@types/koa-bodyparser": "4.3.12",
"@types/koa-cors": "0.0.6", "@types/koa-cors": "0.0.6",
"@types/koa-favicon": "2.1.3", "@types/koa-favicon": "2.1.3",
@ -151,22 +151,22 @@
"@types/koa__multer": "2.0.7", "@types/koa__multer": "2.0.7",
"@types/koa__router": "12.0.4", "@types/koa__router": "12.0.4",
"@types/mocha": "10.0.6", "@types/mocha": "10.0.6",
"@types/node": "20.11.19", "@types/node": "20.11.21",
"@types/node-fetch": "2.6.11", "@types/node-fetch": "2.6.11",
"@types/nodemailer": "6.4.14", "@types/nodemailer": "6.4.14",
"@types/oauth": "0.9.4", "@types/oauth": "0.9.4",
"@types/opencc-js": "^1.0.3", "@types/opencc-js": "^1.0.3",
"@types/pg": "^8.11.0", "@types/pg": "^8.11.2",
"@types/probe-image-size": "^7.2.4", "@types/probe-image-size": "^7.2.4",
"@types/pug": "2.0.10", "@types/pug": "2.0.10",
"@types/punycode": "2.1.4", "@types/punycode": "2.1.4",
"@types/qrcode": "1.5.5", "@types/qrcode": "1.5.5",
"@types/qs": "6.9.11", "@types/qs": "6.9.12",
"@types/random-seed": "0.3.5", "@types/random-seed": "0.3.5",
"@types/ratelimiter": "3.4.6", "@types/ratelimiter": "3.4.6",
"@types/rename": "1.0.7", "@types/rename": "1.0.7",
"@types/sanitize-html": "2.11.0", "@types/sanitize-html": "2.11.0",
"@types/semver": "7.5.7", "@types/semver": "7.5.8",
"@types/sinonjs__fake-timers": "8.1.5", "@types/sinonjs__fake-timers": "8.1.5",
"@types/syslog-pro": "^1.0.3", "@types/syslog-pro": "^1.0.3",
"@types/tinycolor2": "1.4.6", "@types/tinycolor2": "1.4.6",
@ -176,7 +176,7 @@
"@types/websocket": "1.0.10", "@types/websocket": "1.0.10",
"@types/ws": "8.5.10", "@types/ws": "8.5.10",
"cross-env": "7.0.3", "cross-env": "7.0.3",
"eslint": "^8.56.0", "eslint": "^8.57.0",
"execa": "8.0.1", "execa": "8.0.1",
"json5-loader": "4.0.1", "json5-loader": "4.0.1",
"mocha": "10.3.0", "mocha": "10.3.0",

View File

@ -44,5 +44,5 @@
"compileOnSave": false, "compileOnSave": false,
"include": [ "include": [
"./src/**/*.ts" "./src/**/*.ts"
], ]
} }

View File

@ -33,8 +33,8 @@
"@types/tinycolor2": "1.4.6", "@types/tinycolor2": "1.4.6",
"@types/uuid": "9.0.8", "@types/uuid": "9.0.8",
"@vitejs/plugin-vue": "5.0.4", "@vitejs/plugin-vue": "5.0.4",
"@vue/compiler-sfc": "3.4.19", "@vue/compiler-sfc": "3.4.21",
"@vue/runtime-core": "3.4.19", "@vue/runtime-core": "3.4.21",
"autobind-decorator": "2.4.0", "autobind-decorator": "2.4.0",
"autosize": "6.0.1", "autosize": "6.0.1",
"blurhash": "2.0.5", "blurhash": "2.0.5",
@ -71,10 +71,10 @@
"punycode": "2.3.1", "punycode": "2.3.1",
"rollup": "4.12.0", "rollup": "4.12.0",
"s-age": "1.1.2", "s-age": "1.1.2",
"sass": "1.71.0", "sass": "1.71.1",
"seedrandom": "3.0.5", "seedrandom": "3.0.5",
"stringz": "2.1.0", "stringz": "2.1.0",
"swiper": "11.0.6", "swiper": "11.0.7",
"syuilo-password-strength": "0.0.1", "syuilo-password-strength": "0.0.1",
"textarea-caret": "3.1.0", "textarea-caret": "3.1.0",
"three": "0.161.0", "three": "0.161.0",
@ -84,9 +84,9 @@
"typescript": "5.3.3", "typescript": "5.3.3",
"unicode-emoji-json": "^0.4.0", "unicode-emoji-json": "^0.4.0",
"uuid": "9.0.1", "uuid": "9.0.1",
"vite": "5.1.3", "vite": "5.1.4",
"vite-plugin-compression": "^0.5.1", "vite-plugin-compression": "^0.5.1",
"vue": "3.4.19", "vue": "3.4.21",
"vue-draggable-plus": "^0.3.5", "vue-draggable-plus": "^0.3.5",
"vue-plyr": "^7.0.0", "vue-plyr": "^7.0.0",
"vue-prism-editor": "2.0.0-alpha.2" "vue-prism-editor": "2.0.0-alpha.2"

View File

@ -7,9 +7,10 @@
"types": "./built/index.d.ts", "types": "./built/index.d.ts",
"license": "MIT", "license": "MIT",
"scripts": { "scripts": {
"build": "pnpm swc src -d built -D", "build": "pnpm swc src --out-dir built --source-maps false --copy-files --strip-leading-paths",
"build:types": "pnpm tsc --emitDeclarationOnly", "build:types": "pnpm tsc --emitDeclarationOnly",
"build:debug": "pnpm swc src -d built -s -D", "build:debug": "pnpm swc src --out-dir built --source-maps true --copy-files --strip-leading-paths",
"watch": "pnpm swc src --out-dir built --source-maps true --copy-files --strip-leading-paths --watch",
"lint": "pnpm biome check --apply src", "lint": "pnpm biome check --apply src",
"format": "pnpm biome format --write src", "format": "pnpm biome format --write src",
"jest": "jest --coverage --detectOpenHandles", "jest": "jest --coverage --detectOpenHandles",
@ -20,18 +21,18 @@
"url": "https://firefish.dev/firefish/firefish.git" "url": "https://firefish.dev/firefish/firefish.git"
}, },
"devDependencies": { "devDependencies": {
"@swc/cli": "0.1.65", "@swc/cli": "0.3.10",
"@swc/core": "1.4.2", "@swc/core": "1.4.2",
"@swc/types": "^0.1.5", "@swc/types": "^0.1.5",
"@types/jest": "^29.5.12", "@types/jest": "^29.5.12",
"@types/node": "20.11.19", "@types/node": "20.11.21",
"jest": "^29.7.0", "jest": "^29.7.0",
"jest-fetch-mock": "^3.0.3", "jest-fetch-mock": "^3.0.3",
"jest-websocket-mock": "^2.5.0", "jest-websocket-mock": "^2.5.0",
"mock-socket": "^9.3.1", "mock-socket": "^9.3.1",
"ts-jest": "^29.1.2", "ts-jest": "^29.1.2",
"ts-node": "10.9.2", "ts-node": "10.9.2",
"tsd": "^0.30.5", "tsd": "^0.30.7",
"typescript": "5.3.3" "typescript": "5.3.3"
}, },
"files": [ "files": [

View File

@ -1,24 +0,0 @@
{
"$schema": "https://json.schemastore.org/swcrc",
"jsc": {
"parser": {
"syntax": "typescript",
"dynamicImport": true,
"decorators": true
},
"transform": {
"decoratorMetadata": true
},
"experimental": {
"keepImportAssertions": true
},
"baseUrl": ".",
"paths": {
"@/*": [
"./src/*"
]
},
"target": "es2022"
},
"minify": false
}

View File

@ -5,20 +5,13 @@
"scripts": { "scripts": {
"build": "pnpm vite build --emptyOutDir", "build": "pnpm vite build --emptyOutDir",
"build:debug": "pnpm run build", "build:debug": "pnpm run build",
"watch": "pnpm swc src -d built -D -w",
"lint": "pnpm biome check *.ts --apply", "lint": "pnpm biome check *.ts --apply",
"format": "pnpm biome format * --write" "format": "pnpm biome format * --write"
}, },
"devDependencies": { "devDependencies": {
"@swc/cli": "0.1.65",
"@swc/core": "1.4.2",
"@swc/core-android-arm64": "1.3.11",
"firefish-js": "workspace:*", "firefish-js": "workspace:*",
"idb-keyval": "^6.2.1", "idb-keyval": "^6.2.1",
"vite": "5.1.3", "vite": "5.1.4",
"vite-plugin-compression": "^0.5.1" "vite-plugin-compression": "^0.5.1"
},
"optionalDependencies": {
"@swc/core-android-arm64": "1.3.11"
} }
} }

File diff suppressed because it is too large Load Diff