v12: Remove the deprecated `withSentry` root export from `@sentry/solidstart`

Aberta
#25,915 1 comentário 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
4/5
Tempo estimado
3-5 dias
Facilidade para iniciantes
45/100
Tipo de issue
Refatoração
Clareza
Claramente especificada
Status de atividade
Ativa
Stack de tecnologia
javascript, rollup, typescript, vite

Direção de pesquisa

Start at the @sentry/solidstart root entry and trace its withSentry export to identify the build-time types and runtime dependency path. Check the server runtime entry for imports of @sentry/bundler-plugins and the orchestrion Rollup transform. Update MIGRATION.md and the SolidStart guide at docs/platforms/javascript/guides/solidstart/index.mdx; done means the root export is removed, the documented import uses @sentry/solidstart/vite, and the runtime no longer pulls in build tooling.

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

Descrição

javascript

Problem

withSentry wraps the SolidStart config at build time. The root entry of @sentry/solidstart re-exports it. Because of this, the server runtime entry reaches @sentry/bundler-plugins and the orchestrion rollup transform. Any tool that traces or bundles the server entry then pulls in that build-time tooling.

getsentry/sentry-javascript#25725 adds withSentry to @sentry/solidstart/vite, next to the Vite plugin. The root export stays, deprecated, so existing app.config.ts files keep working until the next major version.

Proposal

In v12, remove withSentry (and its related build-time types) from the root entry of @sentry/solidstart. Users must import it from @sentry/solidstart/vite.

// before
import { withSentry } from "@sentry/solidstart";

// after
import { withSentry } from "@sentry/solidstart/vite";

Tasks

  • Remove the withSentry re-export from the root entry.
  • Confirm that the server runtime entry no longer imports @sentry/bundler-plugins or the orchestrion rollup transform.
  • Add the change to the v11 to v12 migration guide (sentry-javascript MIGRATION.md and sentry-docs).
  • In sentry-docs, remove the Alert in docs/platforms/javascript/guides/solidstart/index.mdxthat explains the old import path.

References

  • getsentry/sentry-javascript#25725
  • #25676
  • getsentry/sentry-javascript#25676
Linguagem predominante
TypeScript
Estrelas
8.8k
Forks
1.9k
Merge médio
1d 21h
PRs com merge (30d)
617

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.