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", "classnames": "^2.5.1",
"core-js": "^3.46.0", "core-js": "^3.46.0",
"detect-browser": "^5.3.0", "detect-browser": "^5.3.0",
"dompurify": "^3.2.7", "dompurify": "^3.3.0",
"flag-icons": "^7.5.0", "flag-icons": "^7.5.0",
"focus-trap-react": "^10.3.1", "focus-trap-react": "^10.3.1",
"fscreen": "^1.2.0", "fscreen": "^1.2.0",
@ -57,7 +57,6 @@
"immer": "^10.1.3", "immer": "^10.1.3",
"iso-639-3": "^3.0.1", "iso-639-3": "^3.0.1",
"jwt-decode": "^4.0.0", "jwt-decode": "^4.0.0",
"lodash.isequal": "^4.5.0",
"lodash.merge": "^4.6.2", "lodash.merge": "^4.6.2",
"million": "^2.6.4", "million": "^2.6.4",
"nanoid": "^5.1.6", "nanoid": "^5.1.6",
@ -80,18 +79,16 @@
"zustand": "^4.5.7" "zustand": "^4.5.7"
}, },
"devDependencies": { "devDependencies": {
"@babel/core": "^7.28.4", "@babel/core": "^7.28.5",
"@babel/preset-env": "^7.28.3", "@babel/preset-env": "^7.28.5",
"@babel/preset-typescript": "^7.27.1", "@babel/preset-typescript": "^7.28.5",
"@rollup/wasm-node": "^4.52.4", "@rollup/wasm-node": "^4.52.5",
"@types/chromecast-caf-sender": "^1.0.11", "@types/chromecast-caf-sender": "^1.0.11",
"@types/crypto-js": "^4.2.2", "@types/crypto-js": "^4.2.2",
"@types/dompurify": "^3.2.0",
"@types/fscreen": "^1.0.4", "@types/fscreen": "^1.0.4",
"@types/lodash.isequal": "^4.5.8",
"@types/lodash.merge": "^4.6.9", "@types/lodash.merge": "^4.6.9",
"@types/lodash.throttle": "^4.1.9", "@types/lodash.throttle": "^4.1.9",
"@types/node": "^20.19.20", "@types/node": "^20.19.23",
"@types/pako": "^2.0.4", "@types/pako": "^2.0.4",
"@types/react": "^18.3.26", "@types/react": "^18.3.26",
"@types/react-dom": "^18.3.7", "@types/react-dom": "^18.3.7",
@ -129,11 +126,11 @@
"tailwindcss-themer": "^4.1.1", "tailwindcss-themer": "^4.1.1",
"type-fest": "^4.41.0", "type-fest": "^4.41.0",
"typescript": "^5.9.3", "typescript": "^5.9.3",
"vite": "^5.4.20", "vite": "^5.4.21",
"vite-plugin-checker": "^0.6.4", "vite-plugin-checker": "^0.6.4",
"vite-plugin-package-version": "^1.1.0", "vite-plugin-package-version": "^1.1.0",
"vite-plugin-pwa": "^0.17.5", "vite-plugin-pwa": "^0.17.5",
"vite-plugin-static-copy": "^1.0.6", "vite-plugin-static-copy": "^3.1.4",
"vitest": "^1.6.1", "vitest": "^1.6.1",
"workbox-window": "^7.3.0" "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 { import {
Dispatch, Dispatch,
SetStateAction, SetStateAction,
@ -19,7 +18,9 @@ export function useDerived<T>(
setOverwrite(undefined); setOverwrite(undefined);
}, [initial]); }, [initial]);
const changed = useMemo( const changed = useMemo(
() => !isEqual(overwrite, initial) && overwrite !== undefined, () =>
JSON.stringify(overwrite) !== JSON.stringify(initial) &&
overwrite !== undefined,
[overwrite, initial], [overwrite, initial],
); );
const setter = useCallback<Dispatch<SetStateAction<T>>>( 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": { "compilerOptions": {
"target": "ES2020", "target": "ES2022",
"lib": ["dom", "dom.iterable", "esnext"], "lib": ["ES2022.Array", "ES2022", "DOM", "DOM.Iterable"],
"allowJs": true, "allowJs": true,
"skipLibCheck": true, "skipLibCheck": true,
"esModuleInterop": true, "esModuleInterop": true,
@ -10,7 +10,7 @@
"forceConsistentCasingInFileNames": true, "forceConsistentCasingInFileNames": true,
"noFallthroughCasesInSwitch": true, "noFallthroughCasesInSwitch": true,
"module": "esnext", "module": "esnext",
"moduleResolution": "node", "moduleResolution": "bundler",
"resolveJsonModule": true, "resolveJsonModule": true,
"isolatedModules": true, "isolatedModules": true,
"noEmit": true, "noEmit": true,
@ -22,7 +22,7 @@
"../node_modules/@sozialhelden/ietf-language-tags/dist/cjs" "../node_modules/@sozialhelden/ietf-language-tags/dist/cjs"
] ]
}, },
"types": ["vite/client", "vite-plugin-pwa/vanillajs"] "typeRoots": ["node_modules/@types"]
}, },
"include": ["src"] "include": ["src"]
} }