a2ui-project / a2ui-project/a2ui

fix(dart): Widen preact_signals dependency constraint in a2ui_core to support ^7.0.0

未关闭 适合新手
#2,643 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
status: needs-triage
主要语言
TypeScript
星标
16.4k
派生
1.3k
平均合并
2 天 13 小时
30 天内合并 PR
134

描述

### Description
Currently, `dart/a2ui_core/pubspec.yaml` pins `preact_signals` to:
```yaml
dependencies:
preact_signals: ^1.9.4
```

When integrating `a2ui_core` with modern signal-based architectures and Flutter packages that depend on `preact_signals: ^7.0.0` (such as `signals_core` 7.x or `bloc_signals`), Dart pub version solving fails:
```text
Because bloc_signals >=0.2.4 depends on preact_signals ^7.0.0 and a2ui_core >=0.0.1-dev002 depends on preact_signals ^1.9.4, bloc_signals >=0.2.4 is incompatible with a2ui_core >=0.0.1-dev002.
```

### Proposed Solution
Widen the dependency constraint in `dart/a2ui_core/pubspec.yaml` to:
```yaml
dependencies:
preact_signals: ">=1.9.4 <8.0.0"
# or: ^1.9.4 || ^7.0.0
```

The reactive signal primitives used by `a2ui_core` (`signal`, `computed`, `batch`) maintain full API compatibility across 1.9.x and 7.x.

Would the maintainers be open to a pull request with this change?

贡献指南

打开贡献指南

调研方向

The file to edit is `dart/a2ui_core/pubspec.yaml`. Look for the `preact_signals` dependency line and change the version constraint to `>=1.9.4 <8.0.0` or `^1.9.4 || ^7.0.0`. Verify the change by running `dart pub get` in that directory to ensure it resolves. Done when the pubspec.yaml file is updated and the dependency constraint is widened.

由索引模型根据 Issue 内容生成。

评估

技术栈
dart
领域
build-system
Issue 类型
缺陷
难度
1/5
预计耗时
1 小时以内
活跃度
活跃
描述清晰度
描述清楚
新手友好度
85/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。