microsoft / microsoft/BotFramework-DirectLineJS
Cannot use with new version of RxJS (7.8.0 vs 5.5.12, for new Angular projects)
还没有人认领这个 Issue。
- 主要语言
- TypeScript
- 星标
- 199
- 派生
- 133
- PR 合并指标
- 30 天内没有已合并 PR
描述
When trying to use this library you cannot use new RxJS operators, even simple ones like map.
Because the type of Observable does not match.
This forces many manual subscribes that could have been pipeline operators.
Minimal snippet (on new angular project with RxJS 7.8.0 and botframework-directlinejs 0.15.5):
return this.directLine.activity$.filter(x => x.type === 'message').pipe(map((x: Message): string => ''));
Possible solutions including making RxJS a peer dependency or upgrading it to a new version.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先检查 botframework-directlinejs 0.15.5 如何声明 RxJS,以及 activity$ 入口点的类型定义方式。使用 RxJS 7.8.0 和 map 运算符复现 Angular 项目示例,然后确定是否需要修改依赖声明或 RxJS 兼容性。当该库能够在不进行手动订阅的情况下使用更新的 RxJS 类型时,即视为完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- angular, typescript
- 领域
- api, web-dev
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100