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

Ouverte
#6,776 2 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

Personne n'a encore pris cette issue.

Évaluation

Difficulté
4/5
Temps estimé
3-5 jours
Accessibilité débutants
35/100
Type d'issue
Fonctionnalité
Clarté
Clairement spécifiée
Activité
Active
Stack technique
javascript, react-native, typescript

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

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
Langage dominant
TypeScript
Étoiles
1.8k
Forks
371
Merge moyen
22 h 3 min
PR mergées (30 j)
106

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de getsentry/sentry-react-native

Toutes les issues de getsentry/sentry-react-native

Issues similaires

Plus d'issues TypeScript

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.