Skip to content

chore(deps): Remove unused @sentry/types dependency#6207

Merged
antonis merged 1 commit into
mainfrom
antonis/remove-sentry-types-dep
May 22, 2026
Merged

chore(deps): Remove unused @sentry/types dependency#6207
antonis merged 1 commit into
mainfrom
antonis/remove-sentry-types-dep

Conversation

@antonis
Copy link
Copy Markdown
Contributor

@antonis antonis commented May 22, 2026

📢 Type of change

  • Bugfix
  • New feature
  • Enhancement
  • Refactoring

📜 Description

Removes the direct dependency on @sentry/types, which is deprecated and will be removed in the next major version of the JavaScript SDK. All types are now exported from @sentry/core.

No source files import from @sentry/types — it was an unused direct dependency. Also removes it from the yalc:add:sentry-javascript script.

💡 Motivation and Context

@sentry/types is deprecated in favor of @sentry/core, which re-exports all types. Other JS SDKs have already moved away from it.

Closes #6200

💚 How did you test it?

  • yarn build — passes
  • yarn test — all tests pass
  • yarn lint — no violations
  • yarn circularDepCheck — no circular dependencies
  • yarn api-report:check — API report unchanged

📝 Checklist

  • I added tests to verify changes
  • No new PII added or SDK only sends newly added PII if sendDefaultPII is enabled
  • I updated the docs if needed.
  • I updated the wizard if needed.
  • All tests passing
  • No breaking changes

🔮 Next steps

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 22, 2026

Semver Impact of This PR

None (no version bump detected)

📋 Changelog Preview

This is how your changes will appear in the changelog.
Entries from this PR are highlighted with a left border (blockquote style).


  • chore(deps): Remove unused @sentry/types dependency by antonis in #6207
  • chore(deps): bump @tootallnate/once from 2.0.0 to 2.0.1 by dependabot in #6206
  • chore(deps): update Sentry Android Gradle Plugin to v6.8.1 by github-actions in #6196
  • feat(core): Expose pauseAppHangTracking and resumeAppHangTracking APIs by antonis in #6192

🤖 This preview updates automatically when you update the PR.

@github-actions
Copy link
Copy Markdown
Contributor

Fails
🚫 Pull request is not ready for merge, please add the "ready-to-merge" label to the pull request

Generated by 🚫 dangerJS against 460f75d

@antonis antonis marked this pull request as ready for review May 22, 2026 08:03
@antonis antonis merged commit eb93136 into main May 22, 2026
66 of 72 checks passed
@antonis antonis deleted the antonis/remove-sentry-types-dep branch May 22, 2026 12:46
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.

Remove dependency on deprecated @sentry/types package

2 participants