You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Upgrade the build-time TypeScript version from 4.9.5 to 5.x (targeting ~5.8 to align with sentry-javascript).
Motivation
Enable type-aware oxlint linting — After migrating to oxlint (RN-479 / chore: Migrate from ESLint to oxlint #5867), type-aware rules like no-floating-promises, unbound-method, and no-unsafe-member-access are configured but not enforced at runtime. Enabling --type-aware requires oxlint-tsgolint, which needs TypeScript 5.x+. With TS 4.9.5, the DANGEROUSLY_SUPPRESS_PROGRAM_DIAGNOSTICS workaround produces too many false positives.
Align with ecosystem — sentry-javascript uses TS ~5.8, React Native 0.80 ships with TS 5.0.4, Expo 55 uses TS ~5.9. The RN ecosystem is solidly on TS 5.x.
TS 4.9 is unmaintained — Released in Nov 2022, no longer receives patches.
Not a breaking change
The TypeScript version is a build-time devDependency. The emitted .d.ts types are downleveled to TS 3.8 via downlevel-dts, so users can consume the SDK with any TypeScript version >= 3.8. This does not require a major version bump.
Scope
Bump typescript from 4.9.5 to ~5.8.0 in packages/core/package.json
Fix any new type errors surfaced by TS 5.x (stricter checks)
Add oxlint-tsgolint and enable --type-aware flag in lint scripts
Summary
Upgrade the build-time TypeScript version from 4.9.5 to 5.x (targeting ~5.8 to align with sentry-javascript).
Motivation
no-floating-promises,unbound-method, andno-unsafe-member-accessare configured but not enforced at runtime. Enabling--type-awarerequiresoxlint-tsgolint, which needs TypeScript 5.x+. With TS 4.9.5, theDANGEROUSLY_SUPPRESS_PROGRAM_DIAGNOSTICSworkaround produces too many false positives.Not a breaking change
The TypeScript version is a build-time devDependency. The emitted
.d.tstypes are downleveled to TS 3.8 viadownlevel-dts, so users can consume the SDK with any TypeScript version >= 3.8. This does not require a major version bump.Scope
typescriptfrom4.9.5to~5.8.0inpackages/core/package.jsonoxlint-tsgolintand enable--type-awareflag in lint scriptsdownlevel-dtsstill produces valid TS 3.8 types (CI already checks this)Related