Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Nov 16, 2025

Completely removed bugsnag error tracking from the project.

Changes

  • Removed bugsnag integration: Removed all bugsnag imports and initialization from modules/gob-web/analytics.js
  • Removed dependency: Removed @bugsnag/js package from modules/gob-web/package.json
  • Removed type definitions: Deleted flow-typed/npm/bugsnag-js_vx.x.x.js stub file
  • Updated lock file: Removed all bugsnag-related packages from package-lock.json
 // @flow
-import Bugsnag from "@bugsnag/js"
-const BUGSNAG_KEY = "7e393deddaeb885f5b140b4320ecef6b"

 export default function start() {
   if (process.env.NODE_ENV === "production") {
     console.log("Initializing analytics 📊")
     isogram()
-    Bugsnag.start({ apiKey: BUGSNAG_KEY })
   }
 }

The application now uses only Google Analytics for tracking. As a bonus, the bundle size decreased by 47 KiB.

Testing

  • ✅ All tests pass (561 tests)
  • ✅ Linting passes
  • ✅ Flow type checking passes
  • ✅ Build succeeds
  • ✅ No bugsnag references remain in codebase

Fixes #2404

Original prompt

This section details on the original issue you should resolve

<issue_title>Dependency deprecation warning: bugsnag-js (npm)</issue_title>
<issue_description>On registry https://registry.npmjs.org/, the "latest" version (v4.7.3) of dependency bugsnag-js has the following deprecation notice:

All projects should upgrade to our universal JS notifier: "@bugsnag/js". See https://github.com/bugsnag/bugsnag-js/blob/master/UPGRADING.md for more details.

Marking the latest version of an npm package as deprecated results in the entire package being considered deprecated, so contact the package author you think this is a mistake.

Affected package file(s): modules/gob-web/package.json

If you don't care about this, you can close this issue and not be warned about bugsnag-js's deprecation again. If you would like to completely disable all future deprecation warnings then add the following to your config:

"suppressNotifications": ["deprecationWarningIssues"]

</issue_description>

Comments on the Issue (you are @copilot in this section)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

@hawkrives
Copy link
Owner

@copilot Please remove all mentions of bugsnag from this codebase.

Copilot AI changed the title [WIP] Fix bugsnag-js deprecation warning in package.json Replace deprecated bugsnag-js with @bugsnag/js Nov 16, 2025
Copilot AI requested a review from hawkrives November 16, 2025 05:04
Copy link
Contributor Author

Copilot AI commented Nov 16, 2025

@copilot Please remove all mentions of bugsnag from this codebase.

Done! All bugsnag references have been completely removed from the codebase in commit 28aa30f.

Changes:

  • Removed bugsnag import and initialization from analytics.js
  • Removed @bugsnag/js dependency from package.json
  • Deleted the flow-typed stub file for bugsnag
  • Updated package-lock.json to remove all bugsnag packages

The application now only uses Google Analytics for tracking. All tests pass and the build succeeds. As a bonus, the bundle size decreased by 47 KiB.

Copilot AI changed the title Replace deprecated bugsnag-js with @bugsnag/js Remove bugsnag error tracking from codebase Nov 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Dependency deprecation warning: bugsnag-js (npm)

2 participants