update packages

This commit is contained in:
Pas 2025-10-25 00:21:34 -06:00
parent 46fd4ef380
commit b46f618386
5 changed files with 480 additions and 432 deletions

View file

@ -47,7 +47,7 @@
"classnames": "^2.5.1",
"core-js": "^3.46.0",
"detect-browser": "^5.3.0",
"dompurify": "^3.2.7",
"dompurify": "^3.3.0",
"flag-icons": "^7.5.0",
"focus-trap-react": "^10.3.1",
"fscreen": "^1.2.0",
@ -57,7 +57,6 @@
"immer": "^10.1.3",
"iso-639-3": "^3.0.1",
"jwt-decode": "^4.0.0",
"lodash.isequal": "^4.5.0",
"lodash.merge": "^4.6.2",
"million": "^2.6.4",
"nanoid": "^5.1.6",
@ -80,18 +79,16 @@
"zustand": "^4.5.7"
},
"devDependencies": {
"@babel/core": "^7.28.4",
"@babel/preset-env": "^7.28.3",
"@babel/preset-typescript": "^7.27.1",
"@rollup/wasm-node": "^4.52.4",
"@babel/core": "^7.28.5",
"@babel/preset-env": "^7.28.5",
"@babel/preset-typescript": "^7.28.5",
"@rollup/wasm-node": "^4.52.5",
"@types/chromecast-caf-sender": "^1.0.11",
"@types/crypto-js": "^4.2.2",
"@types/dompurify": "^3.2.0",
"@types/fscreen": "^1.0.4",
"@types/lodash.isequal": "^4.5.8",
"@types/lodash.merge": "^4.6.9",
"@types/lodash.throttle": "^4.1.9",
"@types/node": "^20.19.20",
"@types/node": "^20.19.23",
"@types/pako": "^2.0.4",
"@types/react": "^18.3.26",
"@types/react-dom": "^18.3.7",
@ -129,11 +126,11 @@
"tailwindcss-themer": "^4.1.1",
"type-fest": "^4.41.0",
"typescript": "^5.9.3",
"vite": "^5.4.20",
"vite": "^5.4.21",
"vite-plugin-checker": "^0.6.4",
"vite-plugin-package-version": "^1.1.0",
"vite-plugin-pwa": "^0.17.5",
"vite-plugin-static-copy": "^1.0.6",
"vite-plugin-static-copy": "^3.1.4",
"vitest": "^1.6.1",
"workbox-window": "^7.3.0"
},

File diff suppressed because it is too large Load diff

View file

@ -1,4 +1,3 @@
import isEqual from "lodash.isequal";
import {
Dispatch,
SetStateAction,
@ -19,7 +18,9 @@ export function useDerived<T>(
setOverwrite(undefined);
}, [initial]);
const changed = useMemo(
() => !isEqual(overwrite, initial) && overwrite !== undefined,
() =>
JSON.stringify(overwrite) !== JSON.stringify(initial) &&
overwrite !== undefined,
[overwrite, initial],
);
const setter = useCallback<Dispatch<SetStateAction<T>>>(

2
src/vite-env.d.ts vendored Normal file
View file

@ -0,0 +1,2 @@
/// <reference types="vite/client" />
/// <reference types="vite-plugin-pwa/vanillajs" />

View file

@ -1,7 +1,7 @@
{
"compilerOptions": {
"target": "ES2020",
"lib": ["dom", "dom.iterable", "esnext"],
"target": "ES2022",
"lib": ["ES2022.Array", "ES2022", "DOM", "DOM.Iterable"],
"allowJs": true,
"skipLibCheck": true,
"esModuleInterop": true,
@ -10,7 +10,7 @@
"forceConsistentCasingInFileNames": true,
"noFallthroughCasesInSwitch": true,
"module": "esnext",
"moduleResolution": "node",
"moduleResolution": "bundler",
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
@ -22,7 +22,7 @@
"../node_modules/@sozialhelden/ietf-language-tags/dist/cjs"
]
},
"types": ["vite/client", "vite-plugin-pwa/vanillajs"]
"typeRoots": ["node_modules/@types"]
},
"include": ["src"]
}