Skip to content
This repository has been archived by the owner on Feb 25, 2024. It is now read-only.

Commit

Permalink
Remove Sentry and outdated extension recommendation
Browse files Browse the repository at this point in the history
  • Loading branch information
mellson committed Apr 18, 2023
1 parent bf83ab1 commit 1894954
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 103 deletions.
5 changes: 5 additions & 0 deletions .changeset/curly-bags-grab.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'xstate-viz-app': patch
---

Remove Sentry.
6 changes: 2 additions & 4 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
{
"recommendations": [
"graphql.vscode-graphql"
]
}
"recommendations": []
}
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
"@emotion/react": "^11",
"@emotion/styled": "^11",
"@monaco-editor/react": "^4.2.1",
"@sentry/react": "^6.10.0",
"@sentry/tracing": "^6.10.0",
"@supabase/supabase-js": "^1.22.5",
"@xstate/graph": "^1.3.0",
"@xstate/inspect": "^0.4.1",
Expand Down
25 changes: 4 additions & 21 deletions src/pages/_app.tsx
Original file line number Diff line number Diff line change
@@ -1,37 +1,20 @@
import * as Sentry from '@sentry/react';
import { Integrations } from '@sentry/tracing';
import { useInterpret } from '@xstate/react';
import type { AppProps } from 'next/app';
import { useRouter } from 'next/router';
import '../ActionViz.scss';
import { AuthProvider } from '../authContext';
import { createAuthMachine } from '../authMachine';
import '../base.scss';
import '../DelayViz.scss';
import '../EdgeViz.scss';
import '../EventTypeViz.scss';
import '../InvokeViz.scss';
import '../monacoPatch';
import '../StateNodeViz.scss';
import '../TransitionViz.scss';
import { AuthProvider } from '../authContext';
import { createAuthMachine } from '../authMachine';
import '../base.scss';
import '../monacoPatch';

// import { isOnClientSide } from '../isOnClientSide';

if (
process.env.NODE_ENV === 'production' &&
process.env.NEXT_PUBLIC_SENTRY_DSN
) {
Sentry.init({
dsn: process.env.NEXT_PUBLIC_SENTRY_DSN,
integrations: [new Integrations.BrowserTracing()],
/**
* This allows us to work out if a bug came
* from staging, dev or prod
*/
environment: process.env.NEXT_PUBLIC_DEPLOY_ENVIRONMENT,
});
}

const MyApp = ({ pageProps, Component }: AppProps) => {
const router = useRouter();

Expand Down
77 changes: 1 addition & 76 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1683,81 +1683,6 @@
prop-types "^15.7.2"
tslib "^2.1.0"

"@sentry/browser@6.10.0":
version "6.10.0"
resolved "https://registry.yarnpkg.com/@sentry/browser/-/browser-6.10.0.tgz#92e72edca584d940fba80cf6477d4a54c6dea573"
integrity sha512-H0Blgp8f8bomebkkGWIgxHVjabtQAlsKJDiFXBg7gIc75YcarRxwH0R3hMog1/h8mmv4CGGUsy5ljYW6jsNnvA==
dependencies:
"@sentry/core" "6.10.0"
"@sentry/types" "6.10.0"
"@sentry/utils" "6.10.0"
tslib "^1.9.3"

"@sentry/core@6.10.0":
version "6.10.0"
resolved "https://registry.yarnpkg.com/@sentry/core/-/core-6.10.0.tgz#70af9dc72bb6a5b59062a31b7de023f7f1878357"
integrity sha512-5KlxHJlbD7AMo+b9pMGkjxUOfMILtsqCtGgI7DMvZNfEkdohO8QgUY+hPqr540kmwArFS91ipQYWhqzGaOhM3Q==
dependencies:
"@sentry/hub" "6.10.0"
"@sentry/minimal" "6.10.0"
"@sentry/types" "6.10.0"
"@sentry/utils" "6.10.0"
tslib "^1.9.3"

"@sentry/hub@6.10.0":
version "6.10.0"
resolved "https://registry.yarnpkg.com/@sentry/hub/-/hub-6.10.0.tgz#d59be18016426fd3a5e8d38712c2080466aafe3c"
integrity sha512-MV8wjhWiFAXZAhmj7Ef5QdBr2IF93u8xXiIo2J+dRZ7eVa4/ZszoUiDbhUcl/TPxczaw4oW2a6tINBNFLzXiig==
dependencies:
"@sentry/types" "6.10.0"
"@sentry/utils" "6.10.0"
tslib "^1.9.3"

"@sentry/minimal@6.10.0":
version "6.10.0"
resolved "https://registry.yarnpkg.com/@sentry/minimal/-/minimal-6.10.0.tgz#9404b93fae649b6c48e1da8f0991b87cf9999561"
integrity sha512-yarm046UgUFIBoxqnBan2+BEgaO9KZCrLzsIsmALiQvpfW92K1lHurSawl5W6SR7wCYBnNn7CPvPE/BHFdy4YA==
dependencies:
"@sentry/hub" "6.10.0"
"@sentry/types" "6.10.0"
tslib "^1.9.3"

"@sentry/react@^6.10.0":
version "6.10.0"
resolved "https://registry.yarnpkg.com/@sentry/react/-/react-6.10.0.tgz#4c2199f6e6565be42dc5d19d38d836c5f7da62e2"
integrity sha512-ICHAxMKaQ+3MimzsKQWKivjqJWCbc9ZJ071XoTkRgaOIBLFk8VAVWOldaxrLaWLQdPNT2OwVWnsZI7IvzQNW6w==
dependencies:
"@sentry/browser" "6.10.0"
"@sentry/minimal" "6.10.0"
"@sentry/types" "6.10.0"
"@sentry/utils" "6.10.0"
hoist-non-react-statics "^3.3.2"
tslib "^1.9.3"

"@sentry/tracing@^6.10.0":
version "6.10.0"
resolved "https://registry.yarnpkg.com/@sentry/tracing/-/tracing-6.10.0.tgz#8dcdc28cccfad976540a3c801acb6914b9c0802e"
integrity sha512-jZj6Aaf8kU5wgyNXbAJHosHn8OOFdK14lgwYPb/AIDsY35g9a9ncTOqIOBp8X3KkmSR8lcBzAEyiUzCxAis2jA==
dependencies:
"@sentry/hub" "6.10.0"
"@sentry/minimal" "6.10.0"
"@sentry/types" "6.10.0"
"@sentry/utils" "6.10.0"
tslib "^1.9.3"

"@sentry/types@6.10.0":
version "6.10.0"
resolved "https://registry.yarnpkg.com/@sentry/types/-/types-6.10.0.tgz#6b1f44e5ed4dbc2710bead24d1b32fb08daf04e1"
integrity sha512-M7s0JFgG7/6/yNVYoPUbxzaXDhnzyIQYRRJJKRaTD77YO4MHvi4Ke8alBWqD5fer0cPIfcSkBqa9BLdqRqcMWw==

"@sentry/utils@6.10.0":
version "6.10.0"
resolved "https://registry.yarnpkg.com/@sentry/utils/-/utils-6.10.0.tgz#839a099fa0a1f0ca0893c7ce8c55ba0608c1d80f"
integrity sha512-F9OczOcZMFtazYVZ6LfRIe65/eOfQbiAedIKS0li4npuMz0jKYRbxrjd/U7oLiNQkPAp4/BujU4m1ZIwq6a+tg==
dependencies:
"@sentry/types" "6.10.0"
tslib "^1.9.3"

"@sinonjs/commons@^1.7.0":
version "1.8.3"
resolved "https://registry.yarnpkg.com/@sinonjs/commons/-/commons-1.8.3.tgz#3802ddd21a50a949b6721ddd72da36e67e7f1b2d"
Expand Down Expand Up @@ -4233,7 +4158,7 @@ hmac-drbg@^1.0.1:
minimalistic-assert "^1.0.0"
minimalistic-crypto-utils "^1.0.1"

hoist-non-react-statics@^3.3.1, hoist-non-react-statics@^3.3.2:
hoist-non-react-statics@^3.3.1:
version "3.3.2"
resolved "https://registry.yarnpkg.com/hoist-non-react-statics/-/hoist-non-react-statics-3.3.2.tgz#ece0acaf71d62c2969c2ec59feff42a4b1a85b45"
integrity sha512-/gGivxi8JPKWNm/W0jSmzcMPpfpPLc3dY/6GxhX2hQ9iGj3aDfklV4ET7NjKpSinLpJ5vafa9iiGIEZg10SfBw==
Expand Down

0 comments on commit 1894954

Please sign in to comment.