diff --git a/app/javascript/shared/track/sentry.ts b/app/javascript/shared/track/sentry.ts index 1cbb3053b..14d880625 100644 --- a/app/javascript/shared/track/sentry.ts +++ b/app/javascript/shared/track/sentry.ts @@ -23,10 +23,9 @@ if (enabled && key) { ] }); - Sentry.configureScope((scope) => { - scope.setUser(user); - scope.setExtra('browser', browser.modern ? 'modern' : 'legacy'); - }); + const scope = Sentry.getCurrentScope(); + scope.setUser(user); + scope.setExtra('browser', browser.modern ? 'modern' : 'legacy'); // Register a way to explicitely capture messages from a different bundle. addEventListener('sentry:capture-exception', (event) => { diff --git a/bun.lockb b/bun.lockb index e44c79009..9cc8b3bb3 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index 54142b700..8d5144609 100644 --- a/package.json +++ b/package.json @@ -4,9 +4,9 @@ "@coldwired/actions": "^0.11.2", "@coldwired/turbo-stream": "^0.11.1", "@coldwired/utils": "^0.11.4", - "@frsource/autoresize-textarea": "^2.0.53", + "@frsource/autoresize-textarea": "^2.0.75", "@gouvfr/dsfr": "^1.11.2", - "@graphiql/plugin-explorer": "^1.0.3", + "@graphiql/plugin-explorer": "^3.0.2", "@graphiql/toolkit": "^0.9.1", "@headlessui/react": "^1.6.6", "@heroicons/react": "^1.0.6", @@ -19,7 +19,7 @@ "@rails/ujs": "^7.1.3-2", "@reach/combobox": "^0.17.0", "@reach/slider": "^0.17.0", - "@sentry/browser": "7.107.0", + "@sentry/browser": "8.7.0", "@tiptap/core": "^2.2.4", "@tiptap/extension-bold": "^2.2.4", "@tiptap/extension-bullet-list": "^2.2.4", @@ -43,19 +43,19 @@ "@tiptap/suggestion": "^2.2.4", "@tmcw/togeojson": "^5.6.0", "chartkick": "^5.0.1", - "core-js": "^3.31.0", + "core-js": "^3.37.1", "date-fns": "^2.30.0", "debounce": "^1.2.1", "email-butler": "^1.0.13", "geojson": "^0.5.0", - "graphiql": "^3.1.1", + "graphiql": "^3.2.3", "graphql": "^16.8.1", "highcharts": "^10.3.3", "is-hotkey": "^0.2.0", "lightgallery": "^2.7.2", "maplibre-gl": "^1.15.2", "match-sorter": "^6.3.4", - "patch-package": "^7.0.0", + "patch-package": "^8.0.0", "react": "^18.2.0", "react-coordinate-input": "^1.0.0", "react-dom": "^18.2.0", @@ -63,7 +63,7 @@ "react-query": "^3.39.3", "spectaql": "^2.3.1", "stimulus-use": "^0.52.2", - "terser": "^5.29.2", + "terser": "^5.31.0", "tiny-invariant": "^1.3.3", "tippy.js": "^6.3.7", "trix": "^1.2.3", @@ -86,25 +86,25 @@ "@types/react": "^17.0.43", "@types/react-dom": "^17.0.14", "@types/sortablejs": "^1.15.8", - "@typescript-eslint/eslint-plugin": "^6.13.1", - "@typescript-eslint/parser": "^6.13.1", - "@vitejs/plugin-react": "^4.2.0", + "@typescript-eslint/eslint-plugin": "^7.11.0", + "@typescript-eslint/parser": "^7.11.0", + "@vitejs/plugin-react": "^4.3.0", "autoprefixer": "^10.4.19", "axe-core": "^4.8.4", "del-cli": "^5.1.0", "eslint": "^8.57.0", - "eslint-config-prettier": "^9.0.0", + "eslint-config-prettier": "^9.1.0", "eslint-plugin-prettier": "^5.1.3", - "eslint-plugin-react": "^7.34.1", - "eslint-plugin-react-hooks": "^4.6.0", + "eslint-plugin-react": "^7.34.2", + "eslint-plugin-react-hooks": "^4.6.2", "jsdom": "^22.1.0", "postcss": "^8.4.38", - "prettier": "^3.2.5", - "typescript": "^5.4.3", - "vite": "^5.0.12", + "prettier": "^3.3.0", + "typescript": "^5.4.5", + "vite": "^5.2.12", "vite-plugin-full-reload": "^1.1.0", "vite-plugin-ruby": "^5.0.0", - "vitest": "^1.3.1" + "vitest": "^1.6.0" }, "scripts": { "clean": "del tmp public/graphql && bin/vite clobber",