v12: Remove all `_INTERNAL_*` markers

Offen
#26,670 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
5/5
Geschätzter Aufwand
Über eine Woche
Anfängerfreundlichkeit
25/100
Issue-Typ
Refactoring
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
node.js, typescript
Bereich
backend, devtools

Rechercherichtung

Start by searching the repository for _INTERNAL_ re-exports and reading the package README files and agent rules. Then trace exposed APIs across @sentry/node, @sentry/core, @sentry/server-utils, and @sentry/browser-utils to decide what belongs in each layer. Done means removing the marked re-exports, documenting the internal-only package stability policy, auditing misplaced internal APIs, and adding agent rules; the issue does not name specific files or tests.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

javascript

Currently, we have a lot of things that are being re-exported by @sentry/node from @sentry/core traditionally for use in higher-level SDKs. To prevent direct users of @sentry/node from relying on them, we mark them with the very scary _INTERNAL_... prefix.

This is an annoying and tedious bit of indirection, and now that we have core, server-utils, browser-utils, and bundler-plugins, all of which are sort of "internal" by definition, there should really be no need for such ceremony. Also, there are very few truly node-specific things, now that we've moved to the vision of supporting every framework on every runtime.

Let's clean it up.

Done when...

  • Get rid of all _INTERNAL_... marked re-exports.
  • Clearly indicate in the README.md and any other documentation (if it's not already) that @sentry/core, @sentry/server-utils, @sentry/browser-utils (and any others I'm forgetting) are internal-only, unsafe, should only be used at a known pinned version, and are subject to breaking changes even in patch or minor versions, in wanton flagrant disregard of SemVer decorum. THE SOFTWARE IS PROVIDED AS IS... etc.
  • Audit the codebase for things that should be internal, but are currently exposed, and move them to the appropriate layer. (For example, something internal being re-exported by @sentry/node that could live in @sentry/server-utils, etc.)
  • Create rules for agents that these marked-internal modules are the place for non-public API that must be shared across SDKs.
Vorherrschende Sprache
TypeScript
Sterne
8.8k
Forks
1.9k
Ø Merge
1 T. 8 Std.
Gemergte PRs (30 T.)
744

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-javascript

Alle Issues in getsentry/sentry-javascript

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

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