-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Description
Description
We found that moving @sentry/types into @sentry/core would clean up some architecture, docs, and prevent footguns like diverging package versions.
This task involves:
- Moving the entire content of
@sentry/typesinto@sentry/coreand exporting everything that was exported from types also from core (this also means we don't have to depend on@sentry/typesin@sentry/core) - Removing the contents of types and re-exporting all the previously exported exports from
@sentry/core - Removing all references to
@sentry/typesfrom docs and replace with@sentry/core - Deprecating all the exports in
@sentry/types
ATTENTION: Because of #9840 which is also planned for v9, we do not want to export the Client type from @sentry/core. The same goes for the Scope type. Instead, we want to export Client as an alias for BaseClient as part of this task, and the Scope interface as we have it in @sentry/types should not make it into @sentry/core.
We don't want to delete @sentry/types in the v9 major, just deprecate. The friction for deletion would likely be too high.