Closed
Description
openedon Nov 13, 2024
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/types
into@sentry/core
and exporting everything that was exported from types also from core (this also means we don't have to depend on@sentry/types
in@sentry/core
) - Removing the contents of types and re-exporting all the previously exported exports from
@sentry/core
- Removing all references to
@sentry/types
from 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.
Activity