Skip to content

Commit

Permalink
update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
djobbo committed Jan 19, 2024
1 parent 6a9f25b commit affa698
Show file tree
Hide file tree
Showing 19 changed files with 1,377 additions and 687 deletions.
5 changes: 2 additions & 3 deletions app/components/search/Searchbox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,8 @@ export const Searchbox = () => {

const { rankings1v1, aliases, isLoading } = usePlayerSearch(search)

const isPotentialBrawlhallaId = !!numericLiteralValidator
.catch("")
.parse(search)
const isPotentialBrawlhallaId =
numericLiteralValidator.safeParse(search).success

const { data: potentialBrawlhallaIdAliases } =
trpc.getPlayerAliases.useQuery(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export const PlayerWeaponsTab = ({
changeSortDirection: changeWeaponSortDirection,
sortDirection: weaponSortDirection,
displaySortFn: displayWeaponSortFn,
} = useSortBy<typeof weaponsStats[number], WeaponSortOption>(
} = useSortBy<(typeof weaponsStats)[number], WeaponSortOption>(
weaponsStats,
{
name: {
Expand Down
6 changes: 3 additions & 3 deletions app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"encoding": "^0.1.13",
"kbar": "0.1.0-beta.39",
"logger": "workspace:*",
"next": "13.5.6",
"next": "14.1.0",
"next-sitemap": "^3.1.43",
"react": "^18.2.0",
"react-dom": "^18.2.0",
Expand All @@ -36,7 +36,7 @@
"server": "workspace:*",
"ui": "workspace:*",
"web-parser": "workspace:*",
"zod": "^3.20.2"
"zod": "^3.22.4"
},
"devDependencies": {
"@tanstack/query-core": "^4.22.0",
Expand All @@ -47,6 +47,6 @@
"postcss": "^8.4.20",
"tailwindcss": "^3.2.4",
"tsconfig": "workspace:*",
"typescript": "^4.9.4"
"typescript": "^5.3.3"
}
}
6 changes: 3 additions & 3 deletions app/public/sitemap-0.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:news="http://www.google.com/schemas/sitemap-news/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:mobile="http://www.google.com/schemas/sitemap-mobile/1.0" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1" xmlns:video="http://www.google.com/schemas/sitemap-video/1.1">
<url><loc>http://localhost:3000</loc><lastmod>2023-10-21T13:29:31.400Z</lastmod><changefreq>daily</changefreq><priority>1</priority></url>
<url><loc>http://localhost:3000/@me/favorites</loc><lastmod>2023-10-21T13:29:31.400Z</lastmod><changefreq>daily</changefreq><priority>1</priority></url>
<url><loc>http://localhost:3000/calc</loc><lastmod>2023-10-21T13:29:31.400Z</lastmod><changefreq>daily</changefreq><priority>1</priority></url>
<url><loc>http://localhost:3000</loc><lastmod>2024-01-19T03:26:51.331Z</lastmod><changefreq>daily</changefreq><priority>1</priority></url>
<url><loc>http://localhost:3000/@me/favorites</loc><lastmod>2024-01-19T03:26:51.331Z</lastmod><changefreq>daily</changefreq><priority>1</priority></url>
<url><loc>http://localhost:3000/calc</loc><lastmod>2024-01-19T03:26:51.331Z</lastmod><changefreq>daily</changefreq><priority>1</priority></url>
</urlset>
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,16 @@
"setup:env": "zx setup.zx.mjs"
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^5.48.0",
"@typescript-eslint/parser": "^5.48.0",
"eslint": "^8.31.0",
"eslint-config-next": "^13.1.1",
"@typescript-eslint/eslint-plugin": "^6.19.0",
"@typescript-eslint/parser": "^6.19.0",
"eslint": "^8.56.0",
"eslint-config-next": "^14.1.0",
"eslint-plugin-jsx-a11y": "^6.6.1",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-sort-imports-es6-autofix": "^0.6.0",
"prettier": "^2.8.1",
"turbo": "^1.9.4",
"typescript": "^4.9.4",
"prettier": "^3.2.4",
"turbo": "^1.11.3",
"typescript": "^5.3.3",
"zx": "^7.2.3"
},
"engines": {
Expand Down
8 changes: 4 additions & 4 deletions packages/bhapi/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const rankedTierNames = [
"Diamond",
]

export type RankedTierName = typeof rankedTierNames[number]
export type RankedTierName = (typeof rankedTierNames)[number]

export const rankedTiers = [
["Diamond", 2000],
Expand Down Expand Up @@ -46,7 +46,7 @@ export const rankedTiers = [

export const rankedTiersComplete = rankedTiers.map(([tier]) => tier)

export type RankedTier = typeof rankedTiersComplete[number] | "Valhallan"
export type RankedTier = (typeof rankedTiersComplete)[number] | "Valhallan"

const rankedRegionsValidators = [
z.literal("all"),
Expand Down Expand Up @@ -86,8 +86,8 @@ export const weapons = [
"Battle Boots",
] as const

export type Weapon = typeof weapons[number]
export type Weapon = (typeof weapons)[number]

export const clanRanks = ["Leader", "Officer", "Member", "Recruit"] as const

export type ClanRank = typeof clanRanks[number]
export type ClanRank = (typeof clanRanks)[number]
29 changes: 16 additions & 13 deletions packages/bhapi/legends.ts
Original file line number Diff line number Diff line change
Expand Up @@ -734,7 +734,7 @@ export const legends: Legend[] = [
dexterity: "3",
defense: "8",
speed: "4",
}
},
]

export const legendsMap = arrayToMap(legends, "legend_id")
Expand Down Expand Up @@ -811,18 +811,21 @@ export type FullWeapon = {
}

export const getFullWeapons = (legends: FullLegend[]): FullWeapon[] => {
const weaponsMap = legends.reduce((acc, legend) => {
const legendData = legendsMap[legend.legend_id]
acc[legendData.weapon_one] = [
...(acc[legendData.weapon_one] ?? []),
legend,
]
acc[legendData.weapon_two] = [
...(acc[legendData.weapon_two] ?? []),
legend,
]
return acc
}, {} as Record<Weapon, FullLegend[]>)
const weaponsMap = legends.reduce(
(acc, legend) => {
const legendData = legendsMap[legend.legend_id]
acc[legendData.weapon_one] = [
...(acc[legendData.weapon_one] ?? []),
legend,
]
acc[legendData.weapon_two] = [
...(acc[legendData.weapon_two] ?? []),
legend,
]
return acc
},
{} as Record<Weapon, FullLegend[]>,
)

const weapons = Object.entries(weaponsMap).map(([weapon, legends]) => ({
weapon,
Expand Down
4 changes: 2 additions & 2 deletions packages/bhapi/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"devDependencies": {
"@types/node": "^20.8.7",
"tsconfig": "workspace:*",
"typescript": "^4.9.4"
"typescript": "^5.3.3"
},
"scripts": {
"ts:check": "tsc --noEmit"
Expand All @@ -14,6 +14,6 @@
"common": "workspace:*",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"zod": "^3.20.2"
"zod": "^3.22.4"
}
}
6 changes: 3 additions & 3 deletions packages/common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@
"@types/node": "^20.8.7",
"@types/react": "^18.2.31",
"tsconfig": "workspace:*",
"typescript": "^4.9.4"
"typescript": "^5.3.3"
},
"scripts": {
"ts:check": "tsc --noEmit"
},
"dependencies": {
"classnames": "^2.3.2",
"dayjs": "^1.11.7",
"next": "13.5.6",
"next": "14.1.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-use": "^17.4.0",
"zod": "^3.20.2"
"zod": "^3.22.4"
}
}
2 changes: 1 addition & 1 deletion packages/db/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"discord-api-types": "^0.37.25",
"prisma": "^4.8.0",
"tsconfig": "workspace:*",
"typescript": "^4.9.4"
"typescript": "^5.3.3"
},
"dependencies": {
"@prisma/client": "^4.8.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/dl-roster-images/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@
"ts-node": "^10.9.1",
"ts-node-dev": "^2.0.0",
"tsconfig": "workspace:*",
"typescript": "^4.9.4"
"typescript": "^5.3.3"
}
}
2 changes: 1 addition & 1 deletion packages/logger/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"devDependencies": {
"@types/node": "^20.8.7",
"tsconfig": "workspace:*",
"typescript": "^4.9.4"
"typescript": "^5.3.3"
},
"scripts": {
"ts:check": "tsc --noEmit"
Expand Down
2 changes: 1 addition & 1 deletion packages/server/mutations/updateDBPlayerData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export const sortablePlayerProps = [
"damageGadgets",
] as const satisfies readonly (keyof BHPlayerData)[]

export type SortablePlayerProp = typeof sortablePlayerProps[number]
export type SortablePlayerProp = (typeof sortablePlayerProps)[number]

export const updateDBPlayerData = async (
playerStats: PlayerStats,
Expand Down
2 changes: 1 addition & 1 deletion packages/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"db": "workspace:*",
"logger": "workspace:*",
"web-parser": "workspace:*",
"zod": "^3.20.2"
"zod": "^3.22.4"
},
"devDependencies": {
"@types/node": "^20.8.7",
Expand Down
4 changes: 2 additions & 2 deletions packages/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"postcss": "^8.4.20",
"tailwindcss": "^3.2.4",
"tsconfig": "workspace:*",
"typescript": "^4.9.4"
"typescript": "^5.3.3"
},
"dependencies": {
"@radix-ui/colors": "^0.1.8",
Expand All @@ -29,7 +29,7 @@
"db": "workspace:*",
"kbar": "0.1.0-beta.39",
"logger": "workspace:*",
"next": "13.5.6",
"next": "14.1.0",
"nprogress": "^0.2.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/theme/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const {
})

const setColor =
(prop: string) => (color: keyof typeof theme["colors"], state?: string) =>
(prop: string) => (color: keyof (typeof theme)["colors"], state?: string) =>
css(
state
? { [state]: { [prop]: theme.colors[color] } }
Expand Down
4 changes: 2 additions & 2 deletions packages/web-parser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@
"bhapi": "workspace:*",
"cheerio": "1.0.0-rc.12",
"logger": "workspace:*",
"zod": "^3.20.2"
"zod": "^3.22.4"
},
"devDependencies": {
"@types/node": "^20.8.7",
"ts-node": "^10.9.1",
"ts-node-dev": "^2.0.0",
"tsconfig": "workspace:*",
"typescript": "^4.9.4"
"typescript": "^5.3.3"
}
}
Loading

0 comments on commit affa698

Please sign in to comment.