chore: update deps

This commit is contained in:
Innei 2024-12-09 17:37:01 +08:00
parent d684e14056
commit d5bf07fd75
No known key found for this signature in database
GPG Key ID: 0F62D33977F021F7
16 changed files with 2008 additions and 1656 deletions

View File

@ -33,13 +33,13 @@
"builder-util-runtime": "9.2.10",
"dompurify": "~3.2.2",
"electron-context-menu": "4.0.4",
"electron-log": "5.2.3",
"electron-log": "5.2.4",
"electron-squirrel-startup": "1.0.1",
"electron-updater": "^6.3.9",
"es-toolkit": "1.29.0",
"fast-folder-size": "2.3.0",
"font-list": "1.5.1",
"i18next": "^24.0.2",
"i18next": "^24.0.5",
"js-yaml": "4.1.0",
"linkedom": "^0.18.5",
"lowdb": "7.0.1",
@ -53,8 +53,8 @@
"devDependencies": {
"@types/js-yaml": "4.0.9",
"@types/node": "^22.10.1",
"electron": "33.2.0",
"electron": "33.2.1",
"electron-devtools-installer": "3.2.0",
"hono": "4.6.12"
"hono": "4.6.13"
}
}

View File

@ -15,6 +15,7 @@ export default defineProject({
},
plugins: [
// @ts-expect-error
tsconfigPath({
projects: ["./tsconfig.json"],
}),

1
apps/renderer/.env Symbolic link
View File

@ -0,0 +1 @@
../../.env

View File

@ -11,7 +11,7 @@
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@dnd-kit/core": "^6.2.0",
"@dnd-kit/core": "^6.3.1",
"@egoist/tipc": "0.3.2",
"@electron-toolkit/preload": "^3.0.1",
"@follow/electron-main": "workspace:*",
@ -19,7 +19,7 @@
"@fontsource/sn-pro": "5.1.0",
"@headlessui/react": "2.2.0",
"@hookform/resolvers": "3.9.1",
"@lottiefiles/dotlottie-react": "0.10.1",
"@lottiefiles/dotlottie-react": "0.11.0",
"@microflash/remark-callout-directives": "4.3.2",
"@openpanel/web": "1.0.1",
"@radix-ui/react-avatar": "1.1.1",
@ -31,13 +31,13 @@
"@radix-ui/react-popover": "1.1.2",
"@radix-ui/react-slider": "^1.2.1",
"@radix-ui/react-slot": "1.1.0",
"@sentry/react": "8.41.0",
"@shikijs/transformers": "1.24.0",
"@tanstack/query-sync-storage-persister": "5.62.0",
"@tanstack/react-query": "5.62.0",
"@tanstack/react-query-devtools": "5.62.0",
"@tanstack/react-query-persist-client": "5.62.0",
"@tanstack/react-virtual": "3.10.9",
"@sentry/react": "8.42.0",
"@shikijs/transformers": "1.24.1",
"@tanstack/query-sync-storage-persister": "5.62.3",
"@tanstack/react-query": "5.62.3",
"@tanstack/react-query-devtools": "5.62.3",
"@tanstack/react-query-persist-client": "5.62.3",
"@tanstack/react-virtual": "3.11.0",
"@use-gesture/react": "10.3.1",
"@welldone-software/why-did-you-render": "8.0.3",
"@yornaath/batshit": "0.10.1",
@ -49,24 +49,24 @@
"dexie": "4.0.10",
"dexie-export-import": "^4.1.4",
"dnum": "^2.14.0",
"electron-log": "5.2.3",
"electron-log": "5.2.4",
"embla-carousel-react": "8.5.1",
"embla-carousel-wheel-gestures": "8.0.1",
"es-toolkit": "1.29.0",
"firebase": "11.0.2",
"foxact": "0.2.42",
"framer-motion": "11.12.0",
"foxact": "0.2.43",
"framer-motion": "11.13.1",
"franc-min": "6.2.0",
"fuse.js": "7.0.0",
"hast-util-to-jsx-runtime": "2.3.2",
"hast-util-to-mdast": "^10.1.1",
"hast-util-to-text": "4.0.2",
"i18next": "^24.0.2",
"i18next": "^24.0.5",
"i18next-browser-languagedetector": "8.0.0",
"idb-keyval": "6.2.1",
"immer": "10.1.1",
"jotai": "2.10.3",
"katex": "0.16.11",
"katex": "0.16.14",
"lethargy": "1.0.9",
"masonic": "4.0.1",
"mdast-util-gfm-table": "^2.0.0",
@ -79,13 +79,13 @@
"react-blurhash": "^0.3.0",
"react-error-boundary": "4.1.2",
"react-fast-marquee": "1.6.5",
"react-hook-form": "7.53.2",
"react-hook-form": "7.54.0",
"react-hotkeys-hook": "4.6.1",
"react-i18next": "^15.1.3",
"react-intersection-observer": "9.13.1",
"react-ios-pwa-prompt": "^2.0.6",
"react-resizable-layout": "npm:@innei/react-resizable-layout@0.7.3-fork.1",
"react-router": "7.0.1",
"react-router": "7.0.2",
"react-selecto": "^1.26.3",
"react-shadow": "20.5.0",
"react-zoom-pan-pinch": "^3.6.1",
@ -98,22 +98,22 @@
"remark-gh-alerts": "0.0.3",
"remark-parse": "11.0.0",
"remark-rehype": "11.1.1",
"shiki": "1.24.0",
"sonner": "1.7.0",
"tldts": "6.1.65",
"shiki": "1.24.1",
"sonner": "1.7.1",
"tldts": "6.1.66",
"unified": "11.0.5",
"unist-util-visit-parents": "^6.0.1",
"use-context-selector": "2.0.0",
"use-pull-to-refresh": "2.4.1",
"use-sync-external-store": "1.2.2",
"use-sync-external-store": "1.4.0",
"usehooks-ts": "3.1.0",
"vfile": "6.0.3",
"web-push": "3.6.7",
"zod": "3.23.8",
"zustand": "5.0.1"
"zustand": "5.0.2"
},
"devDependencies": {
"@babel/generator": "7.26.2",
"@babel/generator": "7.26.3",
"@follow/atoms": "workspace:*",
"@follow/components": "workspace:*",
"@follow/constants": "workspace:*",
@ -133,6 +133,6 @@
"happy-dom": "15.11.7",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-scan": "0.0.35"
"react-scan": "0.0.41"
}
}
}

View File

@ -31,7 +31,9 @@ export default defineProject({
},
plugins: [
// @ts-expect-error
astPlugin,
// @ts-expect-error
tsconfigPath({
projects: ["./tsconfig.json"],
}),

View File

@ -12,14 +12,14 @@
"@fontsource/sn-pro": "5.1.0",
"@openpanel/web": "1.0.1",
"@resvg/resvg-js": "2.6.2",
"@sentry/react": "8.41.0",
"@tanstack/react-query": "5.62.0",
"@sentry/react": "8.42.0",
"@tanstack/react-query": "5.62.3",
"blurhash": "2.0.5",
"click-to-react-component": "1.1.2",
"dayjs": "1.11.13",
"fastify": "5.1.0",
"framer-motion": "11.12.0",
"i18next": "^24.0.2",
"framer-motion": "11.13.1",
"i18next": "^24.0.5",
"jotai": "2.10.3",
"kose-font": "1.0.0",
"linkedom": "^0.18.5",
@ -30,10 +30,10 @@
"react-hotkeys-hook": "4.6.1",
"react-i18next": "^15.1.3",
"react-photo-view": "1.2.6",
"react-router": "7.0.1",
"react-router": "7.0.2",
"satori": "0.12.0",
"sonner": "1.7.0",
"tailwindcss": "3.4.15",
"sonner": "1.7.1",
"tailwindcss": "3.4.16",
"use-context-selector": "2.0.0",
"xss": "1.0.15"
},
@ -48,10 +48,10 @@
"@radix-ui/react-avatar": "1.1.1",
"@types/html-minifier-terser": "7.0.2",
"chokidar": "4.0.1",
"daisyui": "4.12.14",
"daisyui": "4.12.20",
"dotenv-flow": "4.1.0",
"es-toolkit": "1.29.0",
"foxact": "0.2.42",
"foxact": "0.2.43",
"glob": "11.0.0",
"html-minifier-terser": "7.2.0",
"lightningcss": "1.28.2",
@ -62,6 +62,6 @@
"tailwindcss": "3.4.15",
"tsup": "8.3.5",
"tsx": "4.19.2",
"vite": "6.0.2"
"vite": "6.0.3"
}
}

View File

@ -44,7 +44,7 @@
"update:main-hash": "tsx plugins/vite/generate-main-hash.ts"
},
"devDependencies": {
"@babel/generator": "7.26.2",
"@babel/generator": "7.26.3",
"@clack/prompts": "0.8.2",
"@egoist/tailwindcss-icons": "1.8.1",
"@electron-forge/cli": "7.6.0",
@ -59,12 +59,12 @@
"@hookform/resolvers": "3.9.1",
"@iconify-json/logos": "1.2.3",
"@iconify-json/mingcute": "1.2.1",
"@iconify-json/simple-icons": "^1.2.13",
"@iconify-json/simple-icons": "^1.2.15",
"@iconify/tools": "4.0.7",
"@microflash/remark-callout-directives": "4.3.2",
"@mozilla/readability": "^0.5.0",
"@pengx17/electron-forge-maker-appimage": "1.2.1",
"@sentry/vite-plugin": "2.22.6",
"@sentry/vite-plugin": "2.22.7",
"@t3-oss/env-core": "^0.11.1",
"@tailwindcss/container-queries": "0.1.1",
"@tailwindcss/typography": "0.5.15",
@ -73,7 +73,7 @@
"@types/node": "^22.10.1",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"@vercel/node": "3.2.27",
"@vercel/node": "3.2.28",
"@vitejs/plugin-legacy": "6.0.0",
"@vitejs/plugin-react": "^4.3.4",
"async-es": "^3.2.6",
@ -81,31 +81,31 @@
"cross-env": "7.0.3",
"cssnano": "7.0.6",
"dnum": "^2.14.0",
"dotenv": "16.4.5",
"drizzle-orm": "0.36.4",
"electron": "33.2.0",
"dotenv": "16.4.7",
"drizzle-orm": "0.37.0",
"electron": "33.2.1",
"electron-devtools-installer": "3.2.0",
"electron-packager-languages": "0.5.0",
"electron-vite": "^2.3.0",
"eslint": "^9.16.0",
"eslint-config-hyoban": "^3.1.14",
"eslint-config-hyoban": "^3.1.15",
"fake-indexeddb": "6.0.0",
"happy-dom": "15.11.7",
"hono": "4.6.12",
"hono": "4.6.13",
"html-minifier-terser": "7.2.0",
"js-yaml": "4.1.0",
"lint-staged": "15.2.10",
"nbump": "2.0.7",
"postcss": "8.4.49",
"postcss-js": "4.0.1",
"prettier": "3.4.1",
"prettier": "3.4.2",
"raw-body": "3.0.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"rimraf": "6.0.1",
"shx": "^0.3.4",
"simple-git-hooks": "2.11.1",
"tailwindcss": "3.4.15",
"tailwindcss": "3.4.16",
"tailwindcss-animate": "1.0.7",
"tailwindcss-motion": "0.4.3-beta",
"tailwindcss-safe-area": "0.6.0",
@ -115,12 +115,12 @@
"turbo": "2.3.3",
"typescript": "5.7.2",
"unplugin-ast": "^0.12.0",
"vite": "6.0.2",
"vite": "6.0.3",
"vite-bundle-analyzer": "0.15.2",
"vite-plugin-mkcert": "1.17.6",
"vite-plugin-pwa": "0.21.1",
"vite-tsconfig-paths": "5.1.3",
"vitest": "2.1.6"
"vite-tsconfig-paths": "5.1.4",
"vitest": "2.1.8"
},
"pnpm": {
"patchedDependencies": {
@ -132,11 +132,13 @@
"daisyui": "patches/daisyui.patch",
"jsonpointer": "patches/jsonpointer.patch",
"workbox-precaching": "patches/workbox-precaching.patch",
"@tanstack/react-virtual@3.10.9": "patches/@tanstack__react-virtual@3.10.9.patch"
"@tanstack/react-virtual": "patches/@tanstack__react-virtual.patch"
},
"overrides": {
"is-core-module": "npm:@nolyfill/is-core-module@^1",
"isarray": "npm:@nolyfill/isarray@^1"
"isarray": "npm:@nolyfill/isarray@^1",
"@types/react": "npm:@types/react@^18.3.12",
"@types/react-dom": "npm:@types/react-dom@^18.3.1"
}
},
"simple-git-hooks": {
@ -174,4 +176,4 @@
},
"productName": "Follow",
"mainHash": "a17b3455d95c59da9a9724da5c9a04332f454caf2391c53ac32fc54184965658"
}
}

View File

@ -48,15 +48,15 @@
"@react-hook/window-size": "3.1.1",
"class-variance-authority": "0.7.1",
"dayjs": "1.11.13",
"foxact": "0.2.42",
"framer-motion": "11.12.0",
"foxact": "0.2.43",
"framer-motion": "11.13.1",
"jotai": "2.10.3",
"masonic": "4.0.1",
"react-blurhash": "^0.3.0",
"react-fast-marquee": "1.6.5",
"react-hook-form": "7.53.2",
"react-hook-form": "7.54.0",
"react-i18next": "^15.1.3",
"sonner": "1.7.0",
"sonner": "1.7.1",
"use-context-selector": "2.0.0",
"usehooks-ts": "3.1.0",
"vaul": "1.1.1"

View File

@ -17,7 +17,7 @@
"@follow/shared": "workspace:*",
"@follow/types": "workspace:*",
"@follow/utils": "workspace:*",
"foxact": "0.2.42",
"foxact": "0.2.43",
"jotai": "2.10.3",
"usehooks-ts": "3.1.0"
}

View File

@ -9,6 +9,6 @@
}
},
"dependencies": {
"electron-log": "5.2.3"
"electron-log": "5.2.4"
}
}

View File

@ -18,6 +18,6 @@
"@follow/shared": "workspace:*",
"@follow/types": "workspace:*",
"@follow/utils": "workspace:*",
"hono": "4.6.12"
"hono": "4.6.13"
}
}

View File

@ -33,13 +33,13 @@
"@electron-toolkit/tsconfig": "^1.0.1",
"@hono/node-server": "1.13.7",
"@t3-oss/env-core": "^0.11.1",
"better-auth": "1.0.7",
"drizzle-orm": "0.36.4",
"electron": "33.2.0",
"hono": "4.6.12",
"better-auth": "1.0.14",
"drizzle-orm": "0.37.0",
"electron": "33.2.1",
"hono": "4.6.13",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"sonner": "1.7.0",
"sonner": "1.7.1",
"zod": "3.23.8"
}
}

View File

@ -29,10 +29,10 @@
"@follow/shared": "workspace:*",
"@follow/types": "workspace:*",
"clsx": "2.1.1",
"framer-motion": "11.12.0",
"framer-motion": "11.13.1",
"nanoid": "5.0.9",
"tailwind-merge": "2.5.5",
"tldts": "6.1.65",
"tldts": "6.1.66",
"uniqolor": "1.1.1"
}
}

View File

@ -0,0 +1,14 @@
diff --git a/src/index.tsx b/src/index.tsx
index 3c4a4c987d2a383aba0d9ed85fe3ca1a427c6c39..c6079fd52a038a7bf97720f4ff1d3dcae80a111a 100644
--- a/src/index.tsx
+++ b/src/index.tsx
@@ -43,6 +43,9 @@ function useVirtualizerBase<
instance.setOptions(resolvedOptions)
React.useEffect(() => {
+ if (!instance.scrollElement) {
+ instance._willUpdate()
+ }
return instance._didMount()
}, [])

View File

@ -1,14 +0,0 @@
diff --git a/dist/esm/index.js b/dist/esm/index.js
index 13b1ae504e8b55efcd9d8cecd30df8ab234edc18..a8549c560b0d6b7a65b4dc58e8fb134d04dda037 100644
--- a/dist/esm/index.js
+++ b/dist/esm/index.js
@@ -22,6 +22,9 @@ function useVirtualizerBase(options) {
);
instance.setOptions(resolvedOptions);
React.useEffect(() => {
+ if (!instance.scrollElement) {
+ instance._willUpdate()
+ }
return instance._didMount();
}, []);
useIsomorphicLayoutEffect(() => {

File diff suppressed because it is too large Load Diff