v12: Remove all `_INTERNAL_*` markers

未关闭
#26,670 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
25/100
Issue 类型
重构
描述清晰度
基本清楚
活跃度
活跃
领域
backend, devtools

调研方向

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.

由索引模型根据 Issue 内容生成。

描述

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.
主要语言
TypeScript
星标
8.8k
派生
1.9k
平均合并
1 天 8 小时
30 天内合并 PR
744

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

getsentry/sentry-javascript 的其他 Issue

查看 getsentry/sentry-javascript 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。