Wizard: surface an RN-specific JS-11 migration link when React Native adopts JS 11

Offen
#6,776 2 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
35/100
Issue-Typ
Feature
Klarheit
Klar beschrieben
Aktivitätsstatus
Aktiv
Tech-Stack
javascript, react-native, typescript

Rechercherichtung

Start in getsentry/sentry-wizard with printSdkV11MigrationGuideIfOutdated and JS_SDK_V11_MIGRATION_GUIDE_SLUGS, then inspect the React Native wizard flow. Confirm the JS 11 adoption timing and whether RN needs a dedicated guide; done means the migration documentation and RN wizard behavior are coordinated only after that adoption.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

React-Native Wizard (CLI)
Summary

Follow-up to #6774. While verifying that @sentry/[email protected] doesn't break the React Native flow (RN stays on JS 10 for now), we found a gap to coordinate when RN moves to JS 11 in its next major.

Context

In @sentry/wizard v8, the shared helper printSdkV11MigrationGuideIfOutdated prints a v10→v11 migration link when it detects an already-installed SDK below v11. It picks the URL from a slug map, JS_SDK_V11_MIGRATION_GUIDE_SLUGS, which is keyed only to the seven JS-framework packages:

@sentry/angular, @sentry/cloudflare, @sentry/nextjs, @sentry/nuxt, @sentry/react-router, @sentry/remix, @sentry/sveltekit.

@sentry/react-native is not in that map, and the RN wizard flow doesn't call the helper at all today (correct while RN is on JS 10).

The gap

When the RN SDK bumps to JS 11 and the wizard starts installing/updating to that major, an RN user upgrading from an older SDK would either get no migration link or a fallback to the generic JS v10-to-v11 guide — not an RN-specific one.

Tasks (do when RN adopts JS 11)
  • Decide whether RN needs a dedicated v10-to-v11 (JS-11) migration guide, or the generic JS guide is acceptable.
  • If dedicated: add @sentry/react-native to JS_SDK_V11_MIGRATION_GUIDE_SLUGS in sentry-wizard and publish the RN migration doc.
  • Wire the migration-guide / node-version-warning behavior into the RN wizard flow only once RN is actually on JS 11 (so it doesn't fire prematurely).

[!NOTE]
The actual code change lives in getsentry/sentry-wizard, not this repo. This issue tracks the RN-side coordination for the JS-11 next major.

References
Vorherrschende Sprache
TypeScript
Sterne
1.8k
Forks
371
Ø Merge
22 Std. 3 Min.
Gemergte PRs (30 T.)
106

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus getsentry/sentry-react-native

Alle Issues in getsentry/sentry-react-native

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.