[RFC] Compatibility layer
還沒有人認領這個 Issue。
評估
- 難度
- 5/5
- 預估耗時
- 一週以上
- 新手友好度
- 20/100
- Issue 類型
- 功能
- 描述清晰度
- 需要釐清
- 活躍度
- 停滯
- 技術堆疊
- javascript
- 領域
- tooling
研究方向
Start by reading issue #582 and the discussion here about custom output formats, DEBUG_FORMAT, and compatibility with older debug versions. Determine whether a version-aware compatibility layer is feasible and define the expected behavior for users across library versions; the issue is done when that design has a clear decision and implementation scope.
由索引模型根據 Issue 內容生成。
描述
One problem we're going to be facing, now that I'm thinking about it:
We will be introducing the ability to specify a custom output format with #582.
This new output support (the env-var support) won't be available for older versions, which means debug will now be showing different output formats for old versions of the library, which is a problem since debug is almost as old as node.js IIRC.
That means users that set DEBUG_FORMAT will see inconsistent output formats for code that is any older than the new major version release.
Should there be a compatibility layer introduced in the newest version that sniffs out older versions of debug and patches them up, being version-aware in terms of the API?
- 主要語言
- JavaScript
- 星號
- 11.5k
- 分支
- 992
- PR 合併指標
- 30 天內沒有已合併 PR
貢獻指南
這個儲存庫沒有索引到貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
debug-js/debug 的其他 Issue
-
難度 1/5 1 小時以內 新手友好度 82/100
-
難度 4/5 3-5 天 新手友好度 25/100
-
Debug as JSON 未關閉
難度 5/5 一週以上 新手友好度 25/100
-
難度 3/5 1-2 天 新手友好度 35/100
-
難度 3/5 1-2 天 新手友好度 28/100
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 65/100
antfu-collective/icones#398 ·
-
ECmail.com 未關閉
難度 1/5 1 小時以內 新手友好度 90/100
wesbos/burner-email-providers#554 ·
-
難度 2/5 1-3 小時 新手友好度 65/100
radiantearth/stac-browser#1023 ·
-
難度 2/5 1-3 小時 新手友好度 75/100
-
難度 2/5 1-3 小時 新手友好度 75/100
components-web-app/docs#92 ·