mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-03-21 18:04:39 -05:00
Upgrade deps (TS 5.5)
This commit is contained in:
parent
64b8c074a3
commit
47018e2a22
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -24,3 +24,5 @@ dump
|
|||
/playwright/.cache/
|
||||
|
||||
newrelic_agent.log
|
||||
|
||||
.vscode
|
||||
|
|
|
|||
|
|
@ -490,6 +490,7 @@ function TagsAdder() {
|
|||
const id = React.useId();
|
||||
|
||||
const tagsForSelect = CALENDAR_EVENT.TAGS.filter(
|
||||
// @ts-expect-error TODO: fix this (5.5 version)
|
||||
(tag) => !tags.includes(tag) && tag !== "BADGE",
|
||||
);
|
||||
|
||||
|
|
@ -506,6 +507,7 @@ function TagsAdder() {
|
|||
id={id}
|
||||
className="calendar-new__select"
|
||||
onChange={(e) =>
|
||||
// @ts-expect-error TODO: fix this (5.5 version)
|
||||
setTags([...tags, e.target.value as CalendarEventTag])
|
||||
}
|
||||
>
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ function decodeURLQuery(queryString: string): LFGFilter[] {
|
|||
return queryString
|
||||
.split("-")
|
||||
.map(smallStrToFilter)
|
||||
.filter((x) => x !== null) as LFGFilter[];
|
||||
.filter((x) => x !== null);
|
||||
}
|
||||
|
||||
function encodeURLQuery(filters: LFGFilter[]): string {
|
||||
|
|
|
|||
|
|
@ -91,6 +91,7 @@ function resolveRelevantKey({
|
|||
if (!weaponIds.includes(normalizedWeaponId)) continue;
|
||||
if (damageType !== type) continue;
|
||||
|
||||
// @ts-expect-error TODO: fix this (5.5 version)
|
||||
if (!actualKeys.includes(key)) {
|
||||
throw new Error(
|
||||
`Invalid damagePriorities (no key in object-dmg.json for the weapon): ${JSON.stringify(
|
||||
|
|
|
|||
|
|
@ -337,7 +337,7 @@ function modePreferencesMemento(args: CreateMatchMementoArgs) {
|
|||
|
||||
if (!result[mode]) result[mode] = [];
|
||||
|
||||
result[mode]!.push({
|
||||
result[mode].push({
|
||||
userId,
|
||||
preference: found?.preference,
|
||||
});
|
||||
|
|
|
|||
|
|
@ -1206,13 +1206,13 @@ export function sortSeeding(slots: ParticipantSlot[]): ParticipantSlot[] {
|
|||
|
||||
// a and b are not null because of the filter.
|
||||
// The slots are from seeding slots, thus they have a position.
|
||||
withoutByes.sort((a, b) => a!.position! - b!.position!);
|
||||
withoutByes.sort((a, b) => a.position! - b.position!);
|
||||
|
||||
if (withoutByes.length === slots.length) return withoutByes;
|
||||
|
||||
// Same for v and position.
|
||||
const placed = Object.fromEntries(
|
||||
withoutByes.map((v) => [v!.position! - 1, v]),
|
||||
withoutByes.map((v) => [v.position! - 1, v]),
|
||||
);
|
||||
const sortedWithByes = Array.from(
|
||||
{ length: slots.length },
|
||||
|
|
|
|||
|
|
@ -205,11 +205,9 @@ export class InMemoryDatabase implements CrudInterface {
|
|||
if (
|
||||
// @ts-expect-error imported
|
||||
existing[key] &&
|
||||
// @ts-expect-error imported
|
||||
typeof existing[key] === "object" &&
|
||||
typeof value[key] === "object"
|
||||
) {
|
||||
// @ts-expect-error imported
|
||||
Object.assign(existing[key], value[key]); // For opponent objects, this does a deep merge of level 2.
|
||||
} else {
|
||||
// @ts-expect-error imported
|
||||
|
|
|
|||
2881
package-lock.json
generated
2881
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
18
package.json
18
package.json
|
|
@ -31,8 +31,8 @@
|
|||
"db:prod": "sqlite3 --column --header db-prod.sqlite3"
|
||||
},
|
||||
"dependencies": {
|
||||
"@aws-sdk/client-s3": "^3.598.0",
|
||||
"@aws-sdk/lib-storage": "^3.598.0",
|
||||
"@aws-sdk/client-s3": "^3.600.0",
|
||||
"@aws-sdk/lib-storage": "^3.600.0",
|
||||
"@dnd-kit/core": "^6.1.0",
|
||||
"@dnd-kit/sortable": "^8.0.0",
|
||||
"@dnd-kit/utilities": "^3.2.2",
|
||||
|
|
@ -43,8 +43,8 @@
|
|||
"@remix-run/node": "^2.9.2",
|
||||
"@remix-run/react": "^2.9.2",
|
||||
"@remix-run/serve": "^2.9.2",
|
||||
"@tldraw/tldraw": "^2.2.0",
|
||||
"aws-sdk": "^2.1642.0",
|
||||
"@tldraw/tldraw": "^2.2.1",
|
||||
"aws-sdk": "^2.1646.0",
|
||||
"better-sqlite3": "^11.0.0",
|
||||
"clsx": "^2.1.1",
|
||||
"compressorjs": "^1.2.1",
|
||||
|
|
@ -99,22 +99,22 @@
|
|||
"@types/react": "^18.3.3",
|
||||
"@types/react-dom": "^18.3.0",
|
||||
"@types/react-responsive-masonry": "^2.1.3",
|
||||
"@typescript-eslint/eslint-plugin": "^7.13.0",
|
||||
"@typescript-eslint/parser": "^7.13.0",
|
||||
"@typescript-eslint/eslint-plugin": "^7.13.1",
|
||||
"@typescript-eslint/parser": "^7.13.1",
|
||||
"cross-env": "^7.0.3",
|
||||
"dotenv": "^16.4.5",
|
||||
"eslint": "^8.57.0",
|
||||
"eslint-plugin-react": "^7.34.2",
|
||||
"eslint-plugin-react": "^7.34.3",
|
||||
"eslint-plugin-react-hooks": "^4.6.2",
|
||||
"ignore-styles": "^5.0.1",
|
||||
"ley": "^0.8.1",
|
||||
"mockdate": "^3.0.5",
|
||||
"prettier": "3.3.2",
|
||||
"stylelint": "^16.6.1",
|
||||
"stylelint-config-standard": "^36.0.0",
|
||||
"stylelint-config-standard": "^36.0.1",
|
||||
"tsconfig-paths": "^4.2.0",
|
||||
"tsm": "^2.3.0",
|
||||
"typescript": "^5.4.5",
|
||||
"typescript": "^5.5.2",
|
||||
"uvu": "^0.5.6",
|
||||
"vite": "^5.3.1",
|
||||
"vite-tsconfig-paths": "^4.3.2"
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user