LinusU / LinusU/node-jsonlines
Avoid use transform directly
未关闭
还没有人认领这个 Issue。
- 主要语言
- JavaScript
- 星标
- 25
- 派生
- 2
- PR 合并指标
- 30 天内没有已合并 PR
描述
Hey,
I'm seeing you are using Transform directly from Node API.
Event this is currently working, could be don't work if the next Node version change the node version.
Then your module will be broken.
A better approach is use Transform as dependency using through2
In fact, it was created exactly for this reason, I recommend you read this author blog post:
https://r.va.gg/2014/06/why-i-dont-use-nodes-core-stream-module.html
PS: Could be a good opportunity to use it and ship v1.0.0 😄
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先,定位模块中对 Node's Transform API 的直接使用,并检查包清单中的依赖约定。将该用法替换为 through2,然后验证 JSON Lines 解析仍然有效,并确认该包已准备好进行拟议的 v1.0.0 发布。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- node.js
- 领域
- backend
- Issue 类型
- 重构
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100