Skip to content

Commit

Permalink
Update package (#47)
Browse files Browse the repository at this point in the history
* chore(packages): update to latest non-breaking versions

* chore(packages): update to latest breaking versions

* test(web/snapshot): restore puppeteer
  • Loading branch information
GervinFung authored Sep 29, 2024
1 parent fee921a commit dcd884b
Show file tree
Hide file tree
Showing 5 changed files with 1,466 additions and 1,236 deletions.
5 changes: 2 additions & 3 deletions apps/web/eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@ const allowedFor = ['InternalLink', 'Image', 'Link'];
export default tseslint.config(
includeIgnoreFile(`${process.cwd()}/.gitignore`),
eslint.configs.recommended,
...tseslint.configs.recommendedTypeChecked,
...tseslint.configs.strict,
...tseslint.configs.stylistic,
...tseslint.configs.strictTypeChecked,
...tseslint.configs.stylisticTypeChecked,
node,
{
...next,
Expand Down
36 changes: 18 additions & 18 deletions apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,38 +12,38 @@
"typecheck": "make typecheck"
},
"dependencies": {
"@emotion/react": "^11.13.0",
"@emotion/react": "^11.13.3",
"@emotion/styled": "^11.13.0",
"@fontsource-variable/jetbrains-mono": "^5.0.21",
"@fontsource-variable/jetbrains-mono": "^5.1.0",
"@mui/joy": "5.0.0-beta.48",
"@periotable/data": "workspace:^",
"@poolofdeath20/util": "^0.8.0",
"@poolofdeath20/util": "^0.8.2",
"bowser": "^2.11.0",
"next": "^14.2.5",
"next-seo": "^6.5.0",
"next": "^14.2.13",
"next-seo": "^6.6.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-icons": "^5.2.1",
"use-debounce": "^10.0.1"
"react-icons": "^5.3.0",
"use-debounce": "^10.0.3"
},
"devDependencies": {
"@ducanh2912/next-pwa": "^10.2.8",
"@poolofdeath20/eslint-config": "^0.4.0",
"@ducanh2912/next-pwa": "^10.2.9",
"@poolofdeath20/eslint-config": "^0.4.1",
"@poolofdeath20/tsconfig": "^0.1.1",
"@types/jest-image-snapshot": "^6.4.0",
"@types/react": "^18.3.3",
"@types/react": "^18.3.10",
"@types/react-dom": "^18.3.0",
"axios": "^1.7.2",
"axios": "^1.7.7",
"ci-info": "^4.0.0",
"eslint": "^9.9.1",
"eslint": "^9.11.1",
"gen-env-type-def": "^0.0.4",
"jest-image-snapshot": "^6.4.0",
"knip": "^5.26.0",
"knip": "^5.30.6",
"next-sitemap": "^4.2.3",
"puppeteer": "^22.13.1",
"typescript": "^5.5.3",
"valibot": "^0.36.0",
"vite-node": "^2.0.3",
"vitest": "^2.0.3"
"puppeteer": "^22.15.0",
"typescript": "^5.6.2",
"valibot": "^0.42.1",
"vite-node": "^2.1.1",
"vitest": "^2.1.1"
}
}
8 changes: 3 additions & 5 deletions apps/web/src/common/classfication.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@ import { spaceToDash } from './string';

type Classification = (typeof classifications)[number];

const transformCategory = <
Classification extends Readonly<{
const transformCategory = (
classification: Readonly<{
category: string;
}>,
>(
classification: Classification
}>
) => {
return spaceToDash(classification.category).toLowerCase();
};
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/web/hooks/number.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { useRouter } from 'next/router';

import { parseQueryParam } from '../../common/string';

const useNumber = <Name extends string>(name: Name) => {
const useNumber = (name: string) => {
const router = useRouter();

const current = Optional.from(router.query[name])
Expand Down
Loading

0 comments on commit dcd884b

Please sign in to comment.