diff --git a/package.json b/package.json index b6517ce5..386812e3 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,6 @@ "devDependencies": { "@capacitor/assets": "^3.0.5", "@eslint/js": "^9.37.0", - "@sentry/cli": "^2.56.1", "@sveltejs/kit": "^2.46.5", "@sveltejs/vite-plugin-svelte": "^4.0.4", "@types/eslint": "^9.6.1", @@ -55,7 +54,6 @@ "@getalby/sdk": "^5.1.2", "@pomade/core": "^0.0.12", "@poppanator/sveltekit-svg": "^4.2.1", - "@sentry/browser": "^8.55.0", "@sveltejs/adapter-static": "^3.0.10", "@tiptap/core": "^2.26.3", "@types/qrcode": "^1.5.5", @@ -90,7 +88,6 @@ }, "pnpm": { "ignoredBuiltDependencies": [ - "@sentry/cli", "esbuild" ], "onlyBuiltDependencies": [ diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index d5aace9a..122d9c64 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -56,9 +56,6 @@ importers: '@poppanator/sveltekit-svg': specifier: ^4.2.1 version: 4.2.1(rollup@2.79.2)(svelte@5.39.12)(svgo@3.3.2)(vite@5.4.20(@types/node@24.7.2)(terser@5.44.0)) - '@sentry/browser': - specifier: ^8.55.0 - version: 8.55.0 '@sveltejs/adapter-static': specifier: ^3.0.10 version: 3.0.10(@sveltejs/kit@2.46.5(@sveltejs/vite-plugin-svelte@4.0.4(svelte@5.39.12)(vite@5.4.20(@types/node@24.7.2)(terser@5.44.0)))(svelte@5.39.12)(vite@5.4.20(@types/node@24.7.2)(terser@5.44.0))) @@ -159,9 +156,6 @@ importers: '@eslint/js': specifier: ^9.37.0 version: 9.37.0 - '@sentry/cli': - specifier: ^2.56.1 - version: 2.56.1 '@sveltejs/kit': specifier: ^2.46.5 version: 2.46.5(@sveltejs/vite-plugin-svelte@4.0.4(svelte@5.39.12)(vite@5.4.20(@types/node@24.7.2)(terser@5.44.0)))(svelte@5.39.12)(vite@5.4.20(@types/node@24.7.2)(terser@5.44.0)) @@ -1364,82 +1358,6 @@ packages: '@scure/bip39@1.2.1': resolution: {integrity: sha512-Z3/Fsz1yr904dduJD0NpiyRHhRYHdcnyh73FZWiV+/qhWi83wNJ3NWolYqCEN+ZWsUz2TWwajJggcRE9r1zUYg==} - '@sentry-internal/browser-utils@8.55.0': - resolution: {integrity: sha512-ROgqtQfpH/82AQIpESPqPQe0UyWywKJsmVIqi3c5Fh+zkds5LUxnssTj3yNd1x+kxaPDVB023jAP+3ibNgeNDw==} - engines: {node: '>=14.18'} - - '@sentry-internal/feedback@8.55.0': - resolution: {integrity: sha512-cP3BD/Q6pquVQ+YL+rwCnorKuTXiS9KXW8HNKu4nmmBAyf7urjs+F6Hr1k9MXP5yQ8W3yK7jRWd09Yu6DHWOiw==} - engines: {node: '>=14.18'} - - '@sentry-internal/replay-canvas@8.55.0': - resolution: {integrity: sha512-nIkfgRWk1091zHdu4NbocQsxZF1rv1f7bbp3tTIlZYbrH62XVZosx5iHAuZG0Zc48AETLE7K4AX9VGjvQj8i9w==} - engines: {node: '>=14.18'} - - '@sentry-internal/replay@8.55.0': - resolution: {integrity: sha512-roCDEGkORwolxBn8xAKedybY+Jlefq3xYmgN2fr3BTnsXjSYOPC7D1/mYqINBat99nDtvgFvNfRcZPiwwZ1hSw==} - engines: {node: '>=14.18'} - - '@sentry/browser@8.55.0': - resolution: {integrity: sha512-1A31mCEWCjaMxJt6qGUK+aDnLDcK6AwLAZnqpSchNysGni1pSn1RWSmk9TBF8qyTds5FH8B31H480uxMPUJ7Cw==} - engines: {node: '>=14.18'} - - '@sentry/cli-darwin@2.56.1': - resolution: {integrity: sha512-zfhT8MrvB5x/xRdIVGwg+sG0Cx3i0G6RH2zCrdQ/moWn8TfkwsM0O1k/AxpwbpcRfAHCkVb04CU/yKciKwg2KA==} - engines: {node: '>=10'} - os: [darwin] - - '@sentry/cli-linux-arm64@2.56.1': - resolution: {integrity: sha512-AypXIwZvOMJb9RgjI/98hTAd06FcOjqjIm6G9IR0OI4pJCOcaAXz9NKXdJqxpZd7phSMJnD+Bx/8iYOUPeY73A==} - engines: {node: '>=10'} - cpu: [arm64] - os: [linux, freebsd, android] - - '@sentry/cli-linux-arm@2.56.1': - resolution: {integrity: sha512-fNB/Ng11HrkGOSEIDg+fc3zfTCV7q6kJddp6ndK3QlYFsCffRSnclaX1SMp+mqxdWkHqe1kkp85OY8G/x5uAWw==} - engines: {node: '>=10'} - cpu: [arm] - os: [linux, freebsd, android] - - '@sentry/cli-linux-i686@2.56.1': - resolution: {integrity: sha512-vnH+WJEsUq7Lf7xc9udzE/M4hoDXXsniFFYr/7BvdnXtCQlNNaWFMXHbEDYAql3baIlHkWoG8cEHWuB/YKyniw==} - engines: {node: '>=10'} - cpu: [x86, ia32] - os: [linux, freebsd, android] - - '@sentry/cli-linux-x64@2.56.1': - resolution: {integrity: sha512-3/BlKe5Vdnia36MeovghHJD8lbcum5TFIxLp+PSfH2sVb09+5Jo0L95oRTI2JkD8Fs+QNssvTqTxJj5eIo/n+A==} - engines: {node: '>=10'} - cpu: [x64] - os: [linux, freebsd, android] - - '@sentry/cli-win32-arm64@2.56.1': - resolution: {integrity: sha512-Gg8RV7CV7Tz4fiR1EN1Af5AVhJsnEXiZvfvfQXI4lp51MKAhcxZIMtEfg9HaWsn3Dm/wgwYBinyeywfWbTXYDg==} - engines: {node: '>=10'} - cpu: [arm64] - os: [win32] - - '@sentry/cli-win32-i686@2.56.1': - resolution: {integrity: sha512-6u6a060yC3i76Ze1apqgWr5luQSyhuD5ND84eWfh/UbddsEa42UHjoVHOiBwmpZqf/hvNZAtzLnE4NCvU4zOMg==} - engines: {node: '>=10'} - cpu: [x86, ia32] - os: [win32] - - '@sentry/cli-win32-x64@2.56.1': - resolution: {integrity: sha512-11cdflajBrDWlRZqI9MOu7ok2vnPzFjKmbU3YvBYWQapNE+HHAsWdsRL/u/P1RmU62vj7Y42iSUcj6x1SNrdPw==} - engines: {node: '>=10'} - cpu: [x64] - os: [win32] - - '@sentry/cli@2.56.1': - resolution: {integrity: sha512-VDAIg+gmjNtJS5VUZQMDSK9RaKC9hYQi3PoXpNa+owNfQNk60bCi8z8jkbWRcKbNGn3V51WqvrQAqLoNAdPc9w==} - engines: {node: '>= 10'} - hasBin: true - - '@sentry/core@8.55.0': - resolution: {integrity: sha512-6g7jpbefjHYs821Z+EBJ8r4Z7LT5h80YSWRJaylGS4nW5W5Z2KXzpdnyFarv37O7QjauzVC2E+PABmpkw5/JGA==} - engines: {node: '>=14.18'} - '@standard-schema/spec@1.0.0': resolution: {integrity: sha512-m2bOd0f2RT9k8QJx1JN85cZYyH1RqFBdlwtkSlf4tBDYLCiiZnv1fIIwacK6cqwXavOydf0NPToMQgpKq+dVlA==} @@ -1840,10 +1758,6 @@ packages: add-stream@1.0.0: resolution: {integrity: sha512-qQLMr+8o0WC4FZGQTcJiKBVC59JylcPSrTtk6usvmIDFUOCKegapy1VHQwRbFMOFyb/inzUVqHs+eMYKDM1YeQ==} - agent-base@6.0.2: - resolution: {integrity: sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==} - engines: {node: '>= 6.0.0'} - aggregate-error@3.1.0: resolution: {integrity: sha512-4I7Td01quW/RpocfNayFdFVk1qSuoh0E7JrbRJ16nH01HhKFQ88INq9Sd+nd72zqRySlr9BmDA8xlEJ6vJMrYA==} engines: {node: '>=8'} @@ -2964,10 +2878,6 @@ packages: resolution: {integrity: sha512-kyCuEOWjJqZuDbRHzL8V93NzQhwIB71oFWSyzVo+KPZI+pnQPPxucdkrOZvkLRnrf5URsQM+IJ09Dw29cRALIA==} engines: {node: '>=10'} - https-proxy-agent@5.0.1: - resolution: {integrity: sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==} - engines: {node: '>= 6'} - husky@9.1.7: resolution: {integrity: sha512-5gs5ytaNjBrh5Ow3zrvdUUY+0VxIuWVL4i9irt6friV+BqdCfmV11CQTWMiBYWHbXhco+J1kHfTOUkePhCDvMA==} engines: {node: '>=18'} @@ -3941,10 +3851,6 @@ packages: process-nextick-args@2.0.1: resolution: {integrity: sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==} - progress@2.0.3: - resolution: {integrity: sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==} - engines: {node: '>=0.4.0'} - prompts@2.4.2: resolution: {integrity: sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==} engines: {node: '>= 6'} @@ -4007,9 +3913,6 @@ packages: prosemirror-view@1.41.3: resolution: {integrity: sha512-SqMiYMUQNNBP9kfPhLO8WXEk/fon47vc52FQsUiJzTBuyjKgEcoAwMyF04eQ4WZ2ArMn7+ReypYL60aKngbACQ==} - proxy-from-env@1.1.0: - resolution: {integrity: sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==} - pump@3.0.3: resolution: {integrity: sha512-todwxLMY7/heScKmntwQG8CXVkWUOdYxIvY2s0VWAAMh/nd8SoYiRaKjlr7+iCs984f2P8zvrfWcDDYVb73NfA==} @@ -6335,78 +6238,6 @@ snapshots: '@noble/hashes': 1.3.2 '@scure/base': 1.1.1 - '@sentry-internal/browser-utils@8.55.0': - dependencies: - '@sentry/core': 8.55.0 - - '@sentry-internal/feedback@8.55.0': - dependencies: - '@sentry/core': 8.55.0 - - '@sentry-internal/replay-canvas@8.55.0': - dependencies: - '@sentry-internal/replay': 8.55.0 - '@sentry/core': 8.55.0 - - '@sentry-internal/replay@8.55.0': - dependencies: - '@sentry-internal/browser-utils': 8.55.0 - '@sentry/core': 8.55.0 - - '@sentry/browser@8.55.0': - dependencies: - '@sentry-internal/browser-utils': 8.55.0 - '@sentry-internal/feedback': 8.55.0 - '@sentry-internal/replay': 8.55.0 - '@sentry-internal/replay-canvas': 8.55.0 - '@sentry/core': 8.55.0 - - '@sentry/cli-darwin@2.56.1': - optional: true - - '@sentry/cli-linux-arm64@2.56.1': - optional: true - - '@sentry/cli-linux-arm@2.56.1': - optional: true - - '@sentry/cli-linux-i686@2.56.1': - optional: true - - '@sentry/cli-linux-x64@2.56.1': - optional: true - - '@sentry/cli-win32-arm64@2.56.1': - optional: true - - '@sentry/cli-win32-i686@2.56.1': - optional: true - - '@sentry/cli-win32-x64@2.56.1': - optional: true - - '@sentry/cli@2.56.1': - dependencies: - https-proxy-agent: 5.0.1 - node-fetch: 2.7.0 - progress: 2.0.3 - proxy-from-env: 1.1.0 - which: 2.0.2 - optionalDependencies: - '@sentry/cli-darwin': 2.56.1 - '@sentry/cli-linux-arm': 2.56.1 - '@sentry/cli-linux-arm64': 2.56.1 - '@sentry/cli-linux-i686': 2.56.1 - '@sentry/cli-linux-x64': 2.56.1 - '@sentry/cli-win32-arm64': 2.56.1 - '@sentry/cli-win32-i686': 2.56.1 - '@sentry/cli-win32-x64': 2.56.1 - transitivePeerDependencies: - - encoding - - supports-color - - '@sentry/core@8.55.0': {} - '@standard-schema/spec@1.0.0': {} '@surma/rollup-plugin-off-main-thread@2.2.3': @@ -6904,12 +6735,6 @@ snapshots: add-stream@1.0.0: {} - agent-base@6.0.2: - dependencies: - debug: 4.4.3 - transitivePeerDependencies: - - supports-color - aggregate-error@3.1.0: dependencies: clean-stack: 2.2.0 @@ -8180,13 +8005,6 @@ snapshots: dependencies: lru-cache: 6.0.0 - https-proxy-agent@5.0.1: - dependencies: - agent-base: 6.0.2 - debug: 4.4.3 - transitivePeerDependencies: - - supports-color - husky@9.1.7: {} ico-endec@0.1.6: {} @@ -9002,8 +8820,6 @@ snapshots: process-nextick-args@2.0.1: {} - progress@2.0.3: {} - prompts@2.4.2: dependencies: kleur: 3.0.3 @@ -9112,8 +8928,6 @@ snapshots: prosemirror-state: 1.4.3 prosemirror-transform: 1.10.4 - proxy-from-env@1.1.0: {} - pump@3.0.3: dependencies: end-of-stream: 1.4.5 diff --git a/sourcemaps.sh b/sourcemaps.sh deleted file mode 100755 index dcd258a6..00000000 --- a/sourcemaps.sh +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/bash - -hash=$(find build -type f -print0 | sort -z | xargs -0 sha1sum | sha1sum | awk '{print $1}') - -sentry-cli \ - --url https://glitchtip.coracle.social \ - --auth-token $GLITCHTIP_AUTH_TOKEN \ - --api-key $VITE_GLITCHTIP_API_KEY \ - sourcemaps \ - --org coracle \ - --project flotilla \ - --release $hash \ - upload \ - --url-prefix /_app/immutable/ \ - build/_app/immutable diff --git a/src/app/util/tracking.ts b/src/app/util/tracking.ts deleted file mode 100644 index 1fe479c5..00000000 --- a/src/app/util/tracking.ts +++ /dev/null @@ -1,23 +0,0 @@ -import {noop} from "@welshman/lib" -import * as Sentry from "@sentry/browser" -import {getSetting} from "@app/core/state" - -export const setupTracking = () => { - if (import.meta.env.VITE_GLITCHTIP_API_KEY) { - Sentry.init({ - dsn: import.meta.env.VITE_GLITCHTIP_API_KEY, - beforeSend(event: any) { - if (!getSetting("report_errors")) { - return null - } - - return event - }, - integrations(integrations) { - return integrations.filter(integration => integration.name !== "Breadcrumbs") - }, - }) - } - - return noop -} diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index 06590a88..5307c39a 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -24,7 +24,6 @@ import AppContainer from "@app/components/AppContainer.svelte" import ModalContainer from "@app/components/ModalContainer.svelte" import {setupHistory} from "@app/util/history" - import {setupTracking} from "@app/util/tracking" import {setupAnalytics} from "@app/util/analytics" import {authPolicy, blockPolicy, trustPolicy, mostlyRestrictedPolicy} from "@app/util/policies" import {kv, db} from "@app/core/storage" @@ -131,8 +130,8 @@ // Remove policies when we're done unsubscribers.push(() => defaultSocketPolicies.splice(-policies.length)) - // History, navigation, bug tracking, application data - unsubscribers.push(setupHistory(), setupAnalytics(), setupTracking(), syncApplicationData()) + // History, navigation, application data + unsubscribers.push(setupHistory(), setupAnalytics(), syncApplicationData()) // Subscribe to badge count for changes unsubscribers.push(notifications.badgeCount.subscribe(notifications.handleBadgeCountChanges))