v12: Remove all `_INTERNAL_*` markers

Aberta
#26,670 2 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
5/5
Tempo estimado
Mais de uma semana
Facilidade para iniciantes
25/100
Tipo de issue
Refatoração
Clareza
Razoavelmente clara
Status de atividade
Ativa
Stack de tecnologia
node.js, typescript
Domínio
backend, devtools

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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.
Linguagem predominante
TypeScript
Estrelas
8.8k
Forks
1.9k
Merge médio
1d 8h
PRs com merge (30d)
744

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de getsentry/sentry-javascript

Todas as issues de getsentry/sentry-javascript

Issues semelhantes

Mais issues de TypeScript

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.