From 1d17831454f51d264ca0f4c7fcda83c8a2c49d84 Mon Sep 17 00:00:00 2001 From: Jesse Wierzbinski Date: Wed, 16 Apr 2025 17:31:34 +0200 Subject: [PATCH] chore: :heavy_minus_sign: Remove unused dependencies --- app.ts | 4 -- bun.lock | 10 ----- nix/package.nix | 2 +- package.json | 2 - pnpm-lock.yaml | 110 ++++++++++++++++++++++++------------------------ 5 files changed, 55 insertions(+), 73 deletions(-) diff --git a/app.ts b/app.ts index 4d2f6f86..7afdca5a 100644 --- a/app.ts +++ b/app.ts @@ -1,5 +1,3 @@ -/* import { prometheus } from "@hono/prometheus"; */ - import { resolve } from "node:path"; import { getLogger } from "@logtape/logtape"; import { Scalar } from "@scalar/hono-api-reference"; @@ -98,8 +96,6 @@ export const appFactory = async (): Promise> => { app.use("/api/v1/timelines/*", rateLimit(40)); app.use("/api/v1/push/*", rateLimit(10)); - /* app.use("*", registerMetrics); - app.get("/metrics", printMetrics); */ // Disabled as federation now checks for this // app.use(urlCheck); diff --git a/bun.lock b/bun.lock index c33d7c9e..8d1ab7a6 100644 --- a/bun.lock +++ b/bun.lock @@ -12,7 +12,6 @@ "@clerc/plugin-not-found": "^0.44.0", "@clerc/plugin-version": "^0.44.0", "@hackmd/markdown-it-task-lists": "^2.1.4", - "@hono/prometheus": "^1.0.1", "@hono/zod-validator": "^0.4.3", "@inquirer/confirm": "^5.1.9", "@logtape/file": "^0.9.0", @@ -74,7 +73,6 @@ "@types/web-push": "^3.6.4", "drizzle-kit": "^0.31.0", "markdown-it-image-figures": "^2.1.1", - "markdown-it-mathjax3": "^4.3.2", "ts-prune": "^0.10.3", "typescript": "^5.8.3", "vitepress": "^1.6.3", @@ -282,8 +280,6 @@ "@hackmd/markdown-it-task-lists": ["@hackmd/markdown-it-task-lists@2.1.4", "", {}, "sha512-njMloWVihC7a7N4zxczv547bgNxPVG3GBzh6Z6f2xnO8/92JaxTmQuMV7YvaKKkOyhh2RW4RT84uSgax8u4qfQ=="], - "@hono/prometheus": ["@hono/prometheus@1.0.1", "", { "peerDependencies": { "hono": ">=3.*", "prom-client": "^15.0.0" } }, "sha512-PjMbjAppCgbvRP2aLxqJc1XJLxfmg4dLsS5R5ITt7qCf9Ab/xSRul/LHNVvYK2/ECi3BOPprSnlSizksBJmXBQ=="], - "@hono/zod-validator": ["@hono/zod-validator@0.4.3", "", { "peerDependencies": { "hono": ">=3.9.0", "zod": "^3.19.1" } }, "sha512-xIgMYXDyJ4Hj6ekm9T9Y27s080Nl9NXHcJkOvkXPhubOLj8hZkOL8pDnnXfvCf5xEE8Q4oMFenQUZZREUY2gqQ=="], "@iconify-json/simple-icons": ["@iconify-json/simple-icons@1.2.29", "", { "dependencies": { "@iconify/types": "*" } }, "sha512-KYrxmxtRz6iOAulRiUsIBMUuXek+H+Evwf8UvYPIkbQ+KDoOqTegHx3q/w3GDDVC0qJYB+D3hXPMZcpm78qIuA=="], @@ -646,8 +642,6 @@ "balanced-match": ["balanced-match@1.0.2", "", {}, "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw=="], - "bintrees": ["bintrees@1.0.2", "", {}, "sha512-VOMgTMwjAaUG580SXn3LacVgjurrbMme7ZZNYGSSV7mmtY6QQRh0Eg3pwIcntQ77DErK1L0NxkbetjcoXzVwKw=="], - "birpc": ["birpc@0.2.19", "", {}, "sha512-5WeXXAvTmitV1RqJFppT5QtUiz2p1mRSYU000Jkft5ZUCLJIk4uQriYNO50HknxKwM6jd8utNc66K1qGIwwWBQ=="], "blurhash": ["blurhash@2.0.5", "", {}, "sha512-cRygWd7kGBQO3VEhPiTgq4Wc43ctsM+o46urrmPOiuAe+07fzlSB9OJVdpgDL0jPqXUVQ9ht7aq7kxOeJHRK+w=="], @@ -1136,8 +1130,6 @@ "preact": ["preact@10.26.4", "", {}, "sha512-KJhO7LBFTjP71d83trW+Ilnjbo+ySsaAgCfXOXUlmGzJ4ygYPWmysm77yg4emwfmoz3b22yvH5IsVFHbhUaH5w=="], - "prom-client": ["prom-client@15.1.3", "", { "dependencies": { "@opentelemetry/api": "^1.4.0", "tdigest": "^0.1.1" } }, "sha512-6ZiOBfCywsD4k1BN9IX0uZhF+tJkV8q8llP64G5Hajs4JOeVLPCwpPVcpXy3BwYiUGgyJzsJJQeOIv7+hDSq8g=="], - "property-information": ["property-information@7.0.0", "", {}, "sha512-7D/qOz/+Y4X/rzSB6jKxKUsQnphO046ei8qxG59mtM3RG3DHgTK81HrxrmoDVINJb8NKT5ZsRbwHvQ6B68Iyhg=="], "punycode.js": ["punycode.js@2.3.1", "", {}, "sha512-uxFIHU0YlHYhDQtV4R9J6a52SLx28BCjT+4ieh7IGbgwVJWO+km431c4yRlREUAsAmt/uMjQUyQHNEPf0M39CA=="], @@ -1264,8 +1256,6 @@ "tabbable": ["tabbable@6.2.0", "", {}, "sha512-Cat63mxsVJlzYvN51JmVXIgNoUokrIaT2zLclCXjRd8boZ0004U4KCs/sToJ75C6sdlByWxpYnb5Boif1VSFew=="], - "tdigest": ["tdigest@0.1.2", "", { "dependencies": { "bintrees": "1.0.2" } }, "sha512-+G0LLgjjo9BZX2MfdvPfH+MKLCrxlXSYec5DaPYP1fe6Iyhf0/fSmJ0bFiZ1F8BT6cGXl2LpltQptzjXKWEkKA=="], - "text-table": ["text-table@0.2.0", "", {}, "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw=="], "to-regex-range": ["to-regex-range@5.0.1", "", { "dependencies": { "is-number": "^7.0.0" } }, "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ=="], diff --git a/nix/package.nix b/nix/package.nix index c74f96fb..905d385c 100644 --- a/nix/package.nix +++ b/nix/package.nix @@ -22,7 +22,7 @@ in pnpmDeps = pnpm.fetchDeps { inherit (finalAttrs) pname version src pnpmInstallFlags; - hash = "sha256-vV3Zc9XrHdNhkMU9EhVBI01BKnK8f9VMxPFLDsRm8eM="; + hash = "sha256-miwjCxel9mgLcJ8Gwzyr7dLZe18yKZ8PeMlIvduJYwk="; }; nativeBuildInputs = [ diff --git a/package.json b/package.json index a3e8ea7e..2d6a4268 100644 --- a/package.json +++ b/package.json @@ -70,7 +70,6 @@ "@types/web-push": "^3.6.4", "drizzle-kit": "^0.31.0", "markdown-it-image-figures": "^2.1.1", - "markdown-it-mathjax3": "^4.3.2", "ts-prune": "^0.10.3", "typescript": "^5.8.3", "vitepress": "^1.6.3", @@ -91,7 +90,6 @@ "@clerc/plugin-not-found": "^0.44.0", "@clerc/plugin-version": "^0.44.0", "@hackmd/markdown-it-task-lists": "^2.1.4", - "@hono/prometheus": "^1.0.1", "@hono/zod-validator": "^0.4.3", "@inquirer/confirm": "^5.1.9", "@logtape/file": "^0.9.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 28e21a06..7eb7b0e4 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -32,9 +32,6 @@ importers: '@hackmd/markdown-it-task-lists': specifier: ^2.1.4 version: 2.1.4 - '@hono/prometheus': - specifier: ^1.0.1 - version: 1.0.1(hono@4.7.7)(prom-client@15.1.3) '@hono/zod-validator': specifier: ^0.4.3 version: 0.4.3(hono@4.7.7)(zod@3.24.2) @@ -213,9 +210,6 @@ importers: markdown-it-image-figures: specifier: ^2.1.1 version: 2.1.1(markdown-it@14.1.0) - markdown-it-mathjax3: - specifier: ^4.3.2 - version: 4.3.2 ts-prune: specifier: ^0.10.3 version: 0.10.3 @@ -955,12 +949,6 @@ packages: '@hackmd/markdown-it-task-lists@2.1.4': resolution: {integrity: sha512-njMloWVihC7a7N4zxczv547bgNxPVG3GBzh6Z6f2xnO8/92JaxTmQuMV7YvaKKkOyhh2RW4RT84uSgax8u4qfQ==} - '@hono/prometheus@1.0.1': - resolution: {integrity: sha512-PjMbjAppCgbvRP2aLxqJc1XJLxfmg4dLsS5R5ITt7qCf9Ab/xSRul/LHNVvYK2/ECi3BOPprSnlSizksBJmXBQ==} - peerDependencies: - hono: '>=3.*' - prom-client: ^15.0.0 - '@hono/zod-validator@0.4.3': resolution: {integrity: sha512-xIgMYXDyJ4Hj6ekm9T9Y27s080Nl9NXHcJkOvkXPhubOLj8hZkOL8pDnnXfvCf5xEE8Q4oMFenQUZZREUY2gqQ==} peerDependencies: @@ -1813,9 +1801,6 @@ packages: balanced-match@1.0.2: resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==} - bintrees@1.0.2: - resolution: {integrity: sha512-VOMgTMwjAaUG580SXn3LacVgjurrbMme7ZZNYGSSV7mmtY6QQRh0Eg3pwIcntQ77DErK1L0NxkbetjcoXzVwKw==} - birpc@0.2.19: resolution: {integrity: sha512-5WeXXAvTmitV1RqJFppT5QtUiz2p1mRSYU000Jkft5ZUCLJIk4uQriYNO50HknxKwM6jd8utNc66K1qGIwwWBQ==} @@ -2947,10 +2932,6 @@ packages: preact@10.26.5: resolution: {integrity: sha512-fmpDkgfGU6JYux9teDWLhj9mKN55tyepwYbxHgQuIxbWQzgFg5vk7Mrrtfx7xRxq798ynkY4DDDxZr235Kk+4w==} - prom-client@15.1.3: - resolution: {integrity: sha512-6ZiOBfCywsD4k1BN9IX0uZhF+tJkV8q8llP64G5Hajs4JOeVLPCwpPVcpXy3BwYiUGgyJzsJJQeOIv7+hDSq8g==} - engines: {node: ^16 || ^18 || >=20} - property-information@7.0.0: resolution: {integrity: sha512-7D/qOz/+Y4X/rzSB6jKxKUsQnphO046ei8qxG59mtM3RG3DHgTK81HrxrmoDVINJb8NKT5ZsRbwHvQ6B68Iyhg==} @@ -3194,9 +3175,6 @@ packages: tabbable@6.2.0: resolution: {integrity: sha512-Cat63mxsVJlzYvN51JmVXIgNoUokrIaT2zLclCXjRd8boZ0004U4KCs/sToJ75C6sdlByWxpYnb5Boif1VSFew==} - tdigest@0.1.2: - resolution: {integrity: sha512-+G0LLgjjo9BZX2MfdvPfH+MKLCrxlXSYec5DaPYP1fe6Iyhf0/fSmJ0bFiZ1F8BT6cGXl2LpltQptzjXKWEkKA==} - text-table@0.2.0: resolution: {integrity: sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==} @@ -3937,11 +3915,6 @@ snapshots: '@hackmd/markdown-it-task-lists@2.1.4': {} - '@hono/prometheus@1.0.1(hono@4.7.7)(prom-client@15.1.3)': - dependencies: - hono: 4.7.7 - prom-client: 15.1.3 - '@hono/zod-validator@0.4.3(hono@4.7.7)(zod@3.24.2)': dependencies: hono: 4.7.7 @@ -4780,7 +4753,8 @@ snapshots: transitivePeerDependencies: - typescript - '@xmldom/xmldom@0.9.7': {} + '@xmldom/xmldom@0.9.7': + optional: true acorn-import-attributes@1.9.5(acorn@8.14.1): dependencies: @@ -4808,7 +4782,8 @@ snapshots: altcha-lib@1.2.0: {} - ansi-colors@4.1.3: {} + ansi-colors@4.1.3: + optional: true ansi-escapes@4.3.2: dependencies: @@ -4841,15 +4816,14 @@ snapshots: balanced-match@1.0.2: {} - bintrees@1.0.2: {} - birpc@0.2.19: {} blurhash@2.0.5: {} bn.js@4.12.1: {} - boolbase@1.0.0: {} + boolbase@1.0.0: + optional: true brace-expansion@1.1.11: dependencies: @@ -4917,6 +4891,7 @@ snapshots: domelementtype: 2.3.0 domhandler: 4.3.1 domutils: 2.8.0 + optional: true cheerio@1.0.0-rc.10: dependencies: @@ -4927,6 +4902,7 @@ snapshots: parse5: 6.0.1 parse5-htmlparser2-tree-adapter: 6.0.1 tslib: 2.8.1 + optional: true cjs-module-lexer@1.4.3: {} @@ -4972,7 +4948,8 @@ snapshots: comma-separated-tokens@2.0.3: {} - commander@13.1.0: {} + commander@13.1.0: + optional: true commander@2.20.3: {} @@ -5015,8 +4992,10 @@ snapshots: domhandler: 4.3.1 domutils: 2.8.0 nth-check: 2.1.1 + optional: true - css-what@6.1.0: {} + css-what@6.1.0: + optional: true cssfilter@0.0.10: {} @@ -5051,6 +5030,7 @@ snapshots: domelementtype: 2.3.0 domhandler: 4.3.1 entities: 2.2.0 + optional: true dom-serializer@2.0.0: dependencies: @@ -5063,10 +5043,12 @@ snapshots: domhandler@3.3.0: dependencies: domelementtype: 2.3.0 + optional: true domhandler@4.3.1: dependencies: domelementtype: 2.3.0 + optional: true domhandler@5.0.3: dependencies: @@ -5077,6 +5059,7 @@ snapshots: dom-serializer: 1.4.1 domelementtype: 2.3.0 domhandler: 4.3.1 + optional: true domutils@3.2.2: dependencies: @@ -5125,7 +5108,8 @@ snapshots: emoji-regex@9.2.2: {} - entities@2.2.0: {} + entities@2.2.0: + optional: true entities@4.5.0: {} @@ -5232,11 +5216,13 @@ snapshots: '@esbuild/win32-ia32': 0.25.2 '@esbuild/win32-x64': 0.25.2 - escape-goat@3.0.0: {} + escape-goat@3.0.0: + optional: true escape-string-regexp@5.0.0: {} - esm@3.2.25: {} + esm@3.2.25: + optional: true esprima@4.0.1: {} @@ -5410,6 +5396,7 @@ snapshots: domhandler: 3.3.0 domutils: 2.8.0 entities: 2.2.0 + optional: true htmlparser2@6.1.0: dependencies: @@ -5417,6 +5404,7 @@ snapshots: domhandler: 4.3.1 domutils: 2.8.0 entities: 2.2.0 + optional: true htmlparser2@8.0.2: dependencies: @@ -5545,6 +5533,7 @@ snapshots: web-resource-inliner: 6.0.1 transitivePeerDependencies: - encoding + optional: true jwa@2.0.0: dependencies: @@ -5636,6 +5625,7 @@ snapshots: mathjax-full: 3.2.2 transitivePeerDependencies: - encoding + optional: true markdown-it-toc-done-right@4.2.0: {} @@ -5656,6 +5646,7 @@ snapshots: mhchemparser: 4.2.1 mj-context-menu: 0.6.1 speech-rule-engine: 4.1.0 + optional: true mdast-util-to-hast@13.2.0: dependencies: @@ -5671,11 +5662,13 @@ snapshots: mdurl@2.0.0: {} - mensch@0.3.4: {} + mensch@0.3.4: + optional: true merge2@1.4.1: {} - mhchemparser@4.2.1: {} + mhchemparser@4.2.1: + optional: true micromark-util-character@2.1.1: dependencies: @@ -5705,7 +5698,8 @@ snapshots: dependencies: mime-db: 1.54.0 - mime@2.6.0: {} + mime@2.6.0: + optional: true mimic-function@5.0.1: {} @@ -5733,7 +5727,8 @@ snapshots: mitt@3.0.1: {} - mj-context-menu@0.6.1: {} + mj-context-menu@0.6.1: + optional: true mkdirp@1.0.4: {} @@ -5775,6 +5770,7 @@ snapshots: node-fetch@2.7.0: dependencies: whatwg-url: 5.0.0 + optional: true node-gyp-build-optional-packages@5.2.2: dependencies: @@ -5784,6 +5780,7 @@ snapshots: nth-check@2.1.1: dependencies: boolbase: 1.0.0 + optional: true oauth4webapi@3.5.0: {} @@ -5829,8 +5826,10 @@ snapshots: parse5-htmlparser2-tree-adapter@6.0.1: dependencies: parse5: 6.0.1 + optional: true - parse5@6.0.1: {} + parse5@6.0.1: + optional: true parseley@0.12.1: dependencies: @@ -5945,11 +5944,6 @@ snapshots: preact@10.26.5: {} - prom-client@15.1.3: - dependencies: - '@opentelemetry/api': 1.9.0 - tdigest: 0.1.2 - property-information@7.0.0: {} punycode.js@2.3.1: {} @@ -6143,7 +6137,8 @@ snapshots: dependencies: is-arrayish: 0.3.2 - slick@1.12.2: {} + slick@1.12.2: + optional: true sonic-channel@1.3.1: {} @@ -6165,6 +6160,7 @@ snapshots: '@xmldom/xmldom': 0.9.7 commander: 13.1.0 wicked-good-xpath: 1.3.0 + optional: true split2@4.2.0: {} @@ -6229,17 +6225,14 @@ snapshots: tabbable@6.2.0: {} - tdigest@0.1.2: - dependencies: - bintrees: 1.0.2 - text-table@0.2.0: {} to-regex-range@5.0.1: dependencies: is-number: 7.0.0 - tr46@0.0.3: {} + tr46@0.0.3: + optional: true trim-lines@3.0.1: {} @@ -6310,7 +6303,8 @@ snapshots: uuid@9.0.1: {} - valid-data-url@3.0.1: {} + valid-data-url@3.0.1: + optional: true vfile-message@4.0.2: dependencies: @@ -6422,8 +6416,10 @@ snapshots: valid-data-url: 3.0.1 transitivePeerDependencies: - encoding + optional: true - webidl-conversions@3.0.1: {} + webidl-conversions@3.0.1: + optional: true webpack-virtual-modules@0.6.2: {} @@ -6431,6 +6427,7 @@ snapshots: dependencies: tr46: 0.0.3 webidl-conversions: 3.0.1 + optional: true which@2.0.2: dependencies: @@ -6441,7 +6438,8 @@ snapshots: isexe: 3.1.1 optional: true - wicked-good-xpath@1.3.0: {} + wicked-good-xpath@1.3.0: + optional: true wrap-ansi@6.2.0: dependencies: