v12: Remove all `_INTERNAL_*` markers

未關閉
#26,670 2 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 1 天內回覆

還沒有人認領這個 Issue。

評估

難度
5/5
預估耗時
一週以上
新手友好度
25/100
Issue 類型
重構
描述清晰度
基本清楚
活躍度
活躍
技術堆疊
node.js, typescript
領域
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 摘要。