From a3d7c1b986c92419c27f29ce8a0670a6a179a61f Mon Sep 17 00:00:00 2001 From: tomymaritano Date: Mon, 8 Jun 2026 22:26:48 -0300 Subject: [PATCH] chore(knip): remove unused dependencies (phase 2) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Knip flagged 11 unused dependencies in #267. After per-dep verification (grep + transitive-dep audit), 6 are genuinely unused in scope. Removing them shrinks the lockfile by ~120 lines. apps/desktop production deps removed: - highlight.js — rehype-highlight uses lowlight, not highlight.js - pino-roll — logger.ts uses createWriteStream directly, no roll - react-resizable-panels — no imports anywhere - unist-util-visit — no imports anywhere apps/desktop dev deps removed: - @types/mdast — no imports anywhere - pino-pretty — logger.ts doesn't pipe through a transport packages/sync-core: drop @readied/core dependency - src/* has no imports of @readied/core; the workspace link was stale packages/wikilinks: drop unified - src/* uses unist-util-visit directly (kept) but never imports unified Skipped (apps/web — out of audit scope): - @radix-ui/react-separator - next-themes - tailwindcss-animate Validates: - pnpm install --ignore-scripts — succeeds; pre-existing peer warnings about electron-builder + electron-vite are unrelated - pnpm -r typecheck — green - pnpm test — 17/17 packages Co-Authored-By: Claude Opus 4.7 (1M context) --- apps/desktop/package.json | 6 -- packages/sync-core/package.json | 1 - packages/wikilinks/package.json | 1 - pnpm-lock.yaml | 119 -------------------------------- 4 files changed, 127 deletions(-) diff --git a/apps/desktop/package.json b/apps/desktop/package.json index b9089338..a91e9a3b 100644 --- a/apps/desktop/package.json +++ b/apps/desktop/package.json @@ -45,18 +45,14 @@ "cross-fetch": "^4.1.0", "diff": "^9.0.0", "electron-updater": "^6.8.3", - "highlight.js": "^11.11.1", "isomorphic-git": "^1.37.6", "lucide-react": "^1.14.0", "pino": "^10.3.1", - "pino-roll": "^4.0.0", "react-markdown": "^10.1.0", - "react-resizable-panels": "^4.11.0", "rehype-highlight": "^7.0.2", "remark-gfm": "^4.0.1", "turndown": "^7.2.4", "turndown-plugin-gfm": "^1.0.2", - "unist-util-visit": "^5.1.0", "zod": "^4.4.3", "zustand": "^5.0.13" }, @@ -74,7 +70,6 @@ "@readied/tasks": "workspace:*", "@readied/wikilinks": "workspace:*", "@types/better-sqlite3": "^7.6.12", - "@types/mdast": "^4.0.4", "@types/react": "^19.2.15", "@types/react-dom": "^19.2.3", "@types/turndown": "^5.0.6", @@ -84,7 +79,6 @@ "electron-builder": "^26.8.1", "electron-devtools-installer": "^4.0.0", "electron-vite": "^5.0.0", - "pino-pretty": "^13.1.3", "react": "^19.2.6", "react-dom": "^19.2.6", "react-force-graph-2d": "^1.29.1", diff --git a/packages/sync-core/package.json b/packages/sync-core/package.json index 1725f078..b98f2a7a 100644 --- a/packages/sync-core/package.json +++ b/packages/sync-core/package.json @@ -18,7 +18,6 @@ "typecheck": "tsc --noEmit" }, "dependencies": { - "@readied/core": "workspace:*", "zod": "^4.4.3" }, "devDependencies": { diff --git a/packages/wikilinks/package.json b/packages/wikilinks/package.json index f9f456c9..dc1cd0b4 100644 --- a/packages/wikilinks/package.json +++ b/packages/wikilinks/package.json @@ -23,7 +23,6 @@ "@codemirror/view": "^6.0.0" }, "dependencies": { - "unified": "^11.0.0", "unist-util-visit": "^5.1.0" }, "devDependencies": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 4be1a089..2e7af3cc 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -119,9 +119,6 @@ importers: electron-updater: specifier: ^6.8.3 version: 6.8.3 - highlight.js: - specifier: ^11.11.1 - version: 11.11.1 isomorphic-git: specifier: ^1.37.6 version: 1.37.6 @@ -131,15 +128,9 @@ importers: pino: specifier: ^10.3.1 version: 10.3.1 - pino-roll: - specifier: ^4.0.0 - version: 4.0.0 react-markdown: specifier: ^10.1.0 version: 10.1.0(@types/react@19.2.15)(react@19.2.6) - react-resizable-panels: - specifier: ^4.11.0 - version: 4.11.0(react-dom@19.2.6(react@19.2.6))(react@19.2.6) rehype-highlight: specifier: ^7.0.2 version: 7.0.2 @@ -152,9 +143,6 @@ importers: turndown-plugin-gfm: specifier: ^1.0.2 version: 1.0.2 - unist-util-visit: - specifier: ^5.1.0 - version: 5.1.0 zod: specifier: ^4.4.3 version: 4.4.3 @@ -204,9 +192,6 @@ importers: '@types/better-sqlite3': specifier: ^7.6.12 version: 7.6.13 - '@types/mdast': - specifier: ^4.0.4 - version: 4.0.4 '@types/react': specifier: ^19.2.15 version: 19.2.15 @@ -231,9 +216,6 @@ importers: electron-vite: specifier: ^5.0.0 version: 5.0.0(vite@8.0.11(@types/node@25.9.2)(esbuild@0.28.0)(jiti@2.7.0)(tsx@4.21.0)(yaml@2.8.4)) - pino-pretty: - specifier: ^13.1.3 - version: 13.1.3 react: specifier: ^19.2.6 version: 19.2.6 @@ -584,9 +566,6 @@ importers: packages/sync-core: dependencies: - '@readied/core': - specifier: workspace:* - version: link:../core zod: specifier: ^4.4.3 version: 4.4.3 @@ -609,9 +588,6 @@ importers: packages/wikilinks: dependencies: - unified: - specifier: ^11.0.0 - version: 11.0.5 unist-util-visit: specifier: ^5.1.0 version: 5.1.0 @@ -4218,9 +4194,6 @@ packages: color-name@1.1.4: resolution: {integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==} - colorette@2.0.20: - resolution: {integrity: sha512-IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w==} - combined-stream@1.0.8: resolution: {integrity: sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==} engines: {node: '>= 0.8'} @@ -4445,12 +4418,6 @@ packages: resolution: {integrity: sha512-b8AmV3kfQaqWAuacbPuNbL6vahnOJflOhexLzMMNLga62+/nh0JzvJ0aO/5a5MVgUFGS7Hu1P9P03o3fJkDCyw==} engines: {node: '>=12'} - date-fns@4.1.0: - resolution: {integrity: sha512-Ukq0owbQXxa/U3EGtsdVBkR1w7KOQ5gIBqdH2hkvknzZPYvBxb/aa6E8L7tmjFtkwZBu3UXBbjIgPo/Ez4xaNg==} - - dateformat@4.6.3: - resolution: {integrity: sha512-2P0p0pFGzHS5EMnhdxQi7aJN+iMheud0UhG4dlE1DLAlvL8JHjJJTX/CSm4JXwV0Ka5nGk3zC5mcb5bUQUxxMA==} - debug@4.4.3: resolution: {integrity: sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==} engines: {node: '>=6.0'} @@ -4997,9 +4964,6 @@ packages: fast-content-type-parse@3.0.0: resolution: {integrity: sha512-ZvLdcY8P+N8mGQJahJV5G4U88CSvT1rP8ApL6uETe88MBXrBHAkZlSEySdUlyztF7ccb+Znos3TFqaepHxdhBg==} - fast-copy@4.0.2: - resolution: {integrity: sha512-ybA6PDXIXOXivLJK/z9e+Otk7ve13I4ckBvGO5I2RRmBU1gMHLVDJYEuJYhGwez7YNlYji2M2DvVU+a9mSFDlw==} - fast-deep-equal@3.1.3: resolution: {integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==} @@ -5013,9 +4977,6 @@ packages: fast-levenshtein@2.0.6: resolution: {integrity: sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==} - fast-safe-stringify@2.1.1: - resolution: {integrity: sha512-W+KJc2dmILlPplD/H4K9l9LcAHAfPtP6BY84uVLXQ6Evcz9Lcg33Y2z1IVblT6xdY54PXYVHEv+0Wpq8Io6zkA==} - fast-uri@3.1.0: resolution: {integrity: sha512-iPeeDKJSWf4IEOasVVrknXpaBV0IApz/gp7S2bb7Z4Lljbl2MGJRqInZiUrQwV16cpzw/D3S5j5Julj/gT52AA==} @@ -5471,9 +5432,6 @@ packages: hastscript@9.0.1: resolution: {integrity: sha512-g7df9rMFX/SPi34tyGCyUBREQoKkapwdY/T04Qn9TDWfHhAYt4/I0gMVirzK5wEzeUqIjEB+LXC/ypb7Aqno5w==} - help-me@5.0.0: - resolution: {integrity: sha512-7xgomUX6ADmcYzFik0HzAxh/73YlKR9bmFzf51CZwR+b6YtzU2m0u49hQCqV6SvlqIqsaxovfwdvbnsw3b/zpg==} - highlight.js@10.7.3: resolution: {integrity: sha512-tzcUFauisWKNHaRkN4Wjl/ZA07gENAjFl3J/c480dprkGTg5EQstgaNFqBfUqCq54kZRIEcreTsAgF/m2quD7A==} @@ -5819,10 +5777,6 @@ packages: jose@6.2.3: resolution: {integrity: sha512-YYVDInQKFJfR/xa3ojUTl8c2KoTwiL1R5Wg9YCydwH0x0B9grbzlg5HC7mMjCtUJjbQ/YnGEZIhI5tCgfTb4Hw==} - joycon@3.1.1: - resolution: {integrity: sha512-34wB/Y7MW7bzjKRjUKTa46I2Z7eV62Rkhva+KkopW7Qvv/OSWBqvkSY7vusOPrNuZcUG3tApvdVgNB8POj3SPw==} - engines: {node: '>=10'} - js-base64@3.7.8: resolution: {integrity: sha512-hNngCeKxIUQiEUN3GPJOkz4wF/YvdUdbNL9hsBcMQTkKzboD7T/q3OYOuuPZLUE6dBxSGpwhk5mwuDud7JVAow==} @@ -6980,13 +6934,6 @@ packages: pino-abstract-transport@3.0.0: resolution: {integrity: sha512-wlfUczU+n7Hy/Ha5j9a/gZNy7We5+cXp8YL+X+PG8S0KXxw7n/JXA3c46Y0zQznIJ83URJiwy7Lh56WLokNuxg==} - pino-pretty@13.1.3: - resolution: {integrity: sha512-ttXRkkOz6WWC95KeY9+xxWL6AtImwbyMHrL1mSwqwW9u+vLp/WIElvHvCSDg0xO/Dzrggz1zv3rN5ovTRVowKg==} - hasBin: true - - pino-roll@4.0.0: - resolution: {integrity: sha512-axI1aQaIxXdw1F4OFFli1EDxIrdYNGLowkw/ZoZogX8oCSLHUghzwVVXUS8U+xD/Savwa5IXpiXmsSGKFX/7Sg==} - pino-std-serializers@7.1.0: resolution: {integrity: sha512-BndPH67/JxGExRgiX1dX0w1FvZck5Wa4aal9198SrRhZjH3GxKQUKIBnYJTdj2HDN3UQAS06HlfcSbQj2OHmaw==} @@ -7143,9 +7090,6 @@ packages: resolution: {integrity: sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==} engines: {node: '>= 0.10'} - pump@3.0.3: - resolution: {integrity: sha512-todwxLMY7/heScKmntwQG8CXVkWUOdYxIvY2s0VWAAMh/nd8SoYiRaKjlr7+iCs984f2P8zvrfWcDDYVb73NfA==} - pump@3.0.4: resolution: {integrity: sha512-VS7sjc6KR7e1ukRFhQSY5LM2uBWAUPiOPa/A3mkKmiMwSmRFUITt0xuj+/lesgnCv+dPIEYlkzrcyXgquIHMcA==} @@ -7225,12 +7169,6 @@ packages: '@types/react': optional: true - react-resizable-panels@4.11.0: - resolution: {integrity: sha512-LPk/AkFDGkg7SsbOyL93ojrE6E7lhrxxDwnYNjfmnSeI6BE7Sje6dB24PXgZk8DeugdeXNk1LO+ohRqIjhxiLw==} - peerDependencies: - react: ^18.0.0 || ^19.0.0 - react-dom: ^18.0.0 || ^19.0.0 - react-style-singleton@2.2.3: resolution: {integrity: sha512-b6jSvxvVnyptAiLjbkWLE/lOnR4lfTtDAl+eUC7RZy+QQWc6wRzIV2CE6xBuMmDxc2qIihtDCZD5NPOFl7fRBQ==} engines: {node: '>=10'} @@ -7442,9 +7380,6 @@ packages: scroll-into-view-if-needed@3.1.0: resolution: {integrity: sha512-49oNpRjWRvnU8NyGVmUaYG4jtTkNonFZI86MmGRDqBphEK2EXT9gdEUoQPZhuBM8yWHxCWbobltqYO5M4XrUvQ==} - secure-json-parse@4.1.0: - resolution: {integrity: sha512-l4KnYfEyqYJxDwlNVyRfO2E4NTHfMKAWdUuA8J0yve2Dz/E/PdBepY03RvyJpssIpRFwJoCD55wA+mEDs6ByWA==} - semantic-release@25.0.3: resolution: {integrity: sha512-WRgl5GcypwramYX4HV+eQGzUbD7UUbljVmS+5G1uMwX/wLgYuJAxGeerXJDMO2xshng4+FXqCgyB5QfClV6WjA==} engines: {node: ^22.14.0 || >= 24.10.0} @@ -7604,9 +7539,6 @@ packages: resolution: {integrity: sha512-LJhUYUvItdQ0LkJTmPeaEObWXAqFyfmP85x0tch/ez9cahmhlBBLbIqDFnvBnUJGagb0JbIQrkBs1wJ+yRYpEw==} engines: {node: '>= 10.0.0', npm: '>= 3.0.0'} - sonic-boom@4.2.0: - resolution: {integrity: sha512-INb7TM37/mAcsGmc9hyyI6+QR3rR1zVRu36B0NeGXKnOOLiZOfER5SA+N7X7k3yUYRzLWafduTDvJAfDswwEww==} - sonic-boom@4.2.1: resolution: {integrity: sha512-w6AxtubXa2wTXAUsZMMWERrsIRAdrK0Sc+FUytWvYAhBJLyuI4llrMIC1DtlNSdI99EI86KZum2MMq3EAZlF9Q==} @@ -12294,8 +12226,6 @@ snapshots: color-name@1.1.4: {} - colorette@2.0.20: {} - combined-stream@1.0.8: dependencies: delayed-stream: 1.0.0 @@ -12506,10 +12436,6 @@ snapshots: d3-selection: 3.0.0 d3-transition: 3.0.1(d3-selection@3.0.0) - date-fns@4.1.0: {} - - dateformat@4.6.3: {} - debug@4.4.3: dependencies: ms: 2.1.3 @@ -13201,8 +13127,6 @@ snapshots: fast-content-type-parse@3.0.0: {} - fast-copy@4.0.2: {} - fast-deep-equal@3.1.3: {} fast-glob@3.3.3: @@ -13217,8 +13141,6 @@ snapshots: fast-levenshtein@2.0.6: {} - fast-safe-stringify@2.1.1: {} - fast-uri@3.1.0: {} fast-uri@3.1.2: {} @@ -13810,8 +13732,6 @@ snapshots: property-information: 7.1.0 space-separated-tokens: 2.0.2 - help-me@5.0.0: {} - highlight.js@10.7.3: {} highlight.js@11.11.1: {} @@ -14117,8 +14037,6 @@ snapshots: jose@6.2.3: {} - joycon@3.1.1: {} - js-base64@3.7.8: {} js-tokens@10.0.0: {} @@ -15467,27 +15385,6 @@ snapshots: dependencies: split2: 4.2.0 - pino-pretty@13.1.3: - dependencies: - colorette: 2.0.20 - dateformat: 4.6.3 - fast-copy: 4.0.2 - fast-safe-stringify: 2.1.1 - help-me: 5.0.0 - joycon: 3.1.1 - minimist: 1.2.8 - on-exit-leak-free: 2.1.2 - pino-abstract-transport: 3.0.0 - pump: 3.0.3 - secure-json-parse: 4.1.0 - sonic-boom: 4.2.0 - strip-json-comments: 5.0.3 - - pino-roll@4.0.0: - dependencies: - date-fns: 4.1.0 - sonic-boom: 4.2.0 - pino-std-serializers@7.1.0: {} pino@10.3.1: @@ -15638,11 +15535,6 @@ snapshots: forwarded: 0.2.0 ipaddr.js: 1.9.1 - pump@3.0.3: - dependencies: - end-of-stream: 1.4.5 - once: 1.4.0 - pump@3.0.4: dependencies: end-of-stream: 1.4.5 @@ -15732,11 +15624,6 @@ snapshots: optionalDependencies: '@types/react': 19.2.15 - react-resizable-panels@4.11.0(react-dom@19.2.6(react@19.2.6))(react@19.2.6): - dependencies: - react: 19.2.6 - react-dom: 19.2.6(react@19.2.6) - react-style-singleton@2.2.3(@types/react@19.2.15)(react@19.2.6): dependencies: get-nonce: 1.0.1 @@ -16040,8 +15927,6 @@ snapshots: dependencies: compute-scroll-into-view: 3.1.1 - secure-json-parse@4.1.0: {} - semantic-release@25.0.3(typescript@6.0.3): dependencies: '@semantic-release/commit-analyzer': 13.0.1(semantic-release@25.0.3(typescript@6.0.3)) @@ -16283,10 +16168,6 @@ snapshots: ip-address: 10.2.0 smart-buffer: 4.2.0 - sonic-boom@4.2.0: - dependencies: - atomic-sleep: 1.0.0 - sonic-boom@4.2.1: dependencies: atomic-sleep: 1.0.0