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

Aperta
#6,776 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
javascript, react-native, typescript

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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
Lingua principale
TypeScript
Stelle
1.8k
Fork
371
Merge medio
22h 3m
PR unite (30g)
106

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di getsentry/sentry-react-native

Tutte le issue di getsentry/sentry-react-native

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.