Problem
The SDK lists @sentry/types as a dependency in packages/core/package.json, but @sentry/types 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 in packages/core/src/ actually import from @sentry/types — the dependency appears to be unused.
Solution
- Remove
@sentry/types from dependencies in packages/core/package.json
- Remove
@sentry/types from the yalc:add:sentry-javascript script
- Verify no transitive consumers rely on
@sentry/types being hoisted from this package
Problem
The SDK lists
@sentry/typesas a dependency inpackages/core/package.json, but@sentry/typesis 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 in
packages/core/src/actually import from@sentry/types— the dependency appears to be unused.Solution
@sentry/typesfromdependenciesinpackages/core/package.json@sentry/typesfrom theyalc:add:sentry-javascriptscript@sentry/typesbeing hoisted from this package