a2ui-project / a2ui-project/a2ui
Align @a2ui/react markdown dependency architecture with v0.9 and release @a2ui/react@0.10.2
- 主要语言
- TypeScript
- 星标
- 16.4k
- 派生
- 1.3k
- 平均合并
- 3 天 15 小时
- 30 天内合并 PR
- 134
描述
Once `@a2ui/markdown-it@0.1.0` is released (see #1955), clean up `@a2ui/react`'s package dependency architecture to align with the v0.9 dependency injection model (matching `@a2ui/lit` and `@a2ui/angular`) and release `@a2ui/react@0.10.2`.
### Tasks
1. In `renderers/react/package.json`, move `@a2ui/markdown-it` from `"dependencies"` to optional `"peerDependencies"`:
```json
"peerDependencies": {
"@a2ui/markdown-it": "^0.1.0",
"react": "^19.2.7",
"react-dom": "^19.2.7"
},
"peerDependenciesMeta": {
"@a2ui/markdown-it": {
"optional": true
}
}
```
2. Remove standalone `"markdown-it"` (`^14.2.0`) from `@a2ui/react`'s `"dependencies"` since markdown parsing is handled within `@a2ui/markdown-it`.
3. Bump `@a2ui/react` to `0.10.2` via `./renderers/scripts/increment_version.mjs react 0.10.2`.
4. Run unit and integration tests (`yarn workspace @a2ui/react run test`).
5. Open PR and publish `@a2ui/react@0.10.2`.
贡献指南
调研方向
工作位于 `renderers/react/package.json` 文件中。首先检查当前的 dependencies 和 peerDependencies。使用提供的脚本 `./renderers/scripts/increment_version.mjs` 来提升版本号。使用 `yarn workspace @a2ui/react run test` 运行测试。确保更改符合 `@a2ui/lit` 和 `@a2ui/angular` 中使用的依赖注入模型。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- nodejs, react, typescript
- 领域
- build-system, release
- Issue 类型
- 重构
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 活跃度
- 冷清
- 描述清晰度
- 描述清楚
- 新手友好度
- 65/100