Skip to content

Commit 6afc8ce

Browse files
committed
发布 Fair 3.1.0 版本
1 parent 1dd72d0 commit 6afc8ce

File tree

5 files changed

+70
-9
lines changed

5 files changed

+70
-9
lines changed

README-zh.md

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
![social preview](social-dark.png)
22

33
<p align="center">
4-
<a href="https://pub.dev/packages/fair"><img src="https://img.shields.io/badge/pub-3.0.0-orange" alt="pub"></a>
4+
<a href="https://pub.dev/packages/fair"><img src="https://img.shields.io/badge/pub-3.1.0-orange" alt="pub"></a>
55
<a href="https://github.com/wuba/fair"><img src="https://img.shields.io/badge/platform-flutter-blue.svg" alt="github"></a>
66
<a href="https://fair.58.com/"><img src="https://img.shields.io/badge/doc-fair.58.com-green.svg" alt="doc"></a>
77
<a href="https://github.com/wuba/fair/LICENSE"><img src="https://img.shields.io/badge/license-BSD-green.svg" alt="license"></a>
@@ -58,7 +58,7 @@ git clone https://github.com/wuba/fair.git
5858
```yaml
5959
# add Fair dependency
6060
dependencies:
61-
fair: 3.0.0
61+
fair: 3.1.0
6262

6363
# add build_runner and compiler dependency
6464
dev_dependencies:
@@ -175,6 +175,27 @@ Fair-Online 是面向Flutter 开发者,提供从Flutter 在线开发,到实
175175

176176
## 🔨最近版本
177177

178+
### 3.1.0
179+
更新时间:2023.03.14
180+
181+
- 升级 analyzer 库到 5.5.0 版本;
182+
- Dart 函数转 JS 支持参数传递;
183+
- JS Object 取值兼容;
184+
- 删除 fair/android 中 kotlin 依赖;
185+
- 添加 IconData 的自定义解析;
186+
- 可选位置参数的生成修改为 pa 获取;
187+
- 修复 OptionalPositional 参数默认值丢失问题;
188+
- 去除 generated.fair.dart 注释中的生成时间;
189+
- 增加 ignore unnecessary_import 操作;
190+
- 修复 Sugar.switchCase key 和 defaultValue 赋值错误问题;
191+
- binding 修改为 SplayTreeMap,增加搜索效率,特别是对于列表,短时间会搜索重复 tag;
192+
- 暴露出 specialBinding 以便用户能重载某个值;
193+
- provider 添加到 _binding 中的时候以用户设置的为准,方便用户快速修正;
194+
- 修复 loadCoreJs package 拼接问题;
195+
- 降低 minSdkVersion 版本到 16;
196+
- runApplication 支持指定 JS 所在的 package;
197+
- 修复 _reload 方法中调用 context 报错问题。
198+
178199
### 3.0.0
179200
更新时间:2022.11.17
180201

README.md

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
![social preview](social-dark.png)
22
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
33
<p align="center">
4-
<a href="https://pub.dev/packages/fair"><img src="https://img.shields.io/badge/pub-3.0.0-orange" alt="pub"></a>
4+
<a href="https://pub.dev/packages/fair"><img src="https://img.shields.io/badge/pub-3.1.0-orange" alt="pub"></a>
55
<a href="https://github.com/wuba/fair"><img src="https://img.shields.io/badge/platform-flutter-blue.svg" alt="github"></a>
66
<a href="https://fair.58.com/"><img src="https://img.shields.io/badge/doc-fair.58.com-green.svg" alt="doc"></a>
77
<a href="https://github.com/wuba/fair/LICENSE"><img src="https://img.shields.io/badge/license-BSD-green.svg" alt="license"></a>
@@ -50,7 +50,7 @@ Assuming that the fair project and your own project are in the same folder:
5050
```yaml
5151
# add Fair dependency
5252
dependencies:
53-
fair: 3.0.0
53+
fair: 3.1.0
5454

5555
# add build_runner and compiler dependency
5656
dev_dependencies:
@@ -173,6 +173,27 @@ Hot update platform: [FAIR PUSHY](https://github.com/wuba/FairPushy)
173173

174174
## versions
175175

176+
### 3.1.0
177+
updateDate:2023.03.14
178+
179+
- Upgrade analyzer library to 5.5.0;
180+
- Dart function to JS supports parameter passing;
181+
- JS Object value compatibility;
182+
- Remove kotlin dependencies from fair/android;
183+
- Add custom parsing for IconData;
184+
- The generation of optional positional parameters is modified to obtain pa;
185+
- Fixed missing OptionalPositional default values;
186+
- Remove the generation time from the generation.fair. dart comment;
187+
- Added the ignore unnecessary_import operation;
188+
- Fixed incorrect assignment of Sugar.switchCase key and defaultValue;
189+
- binding was changed to SplayTreeMap to increase search efficiency, especially for lists, where duplicate tags are searched for a short time;
190+
- Exposing specialBinding so that users can override a value;
191+
- When the provider is added to the _binding, the Settings set by the user prevail for quick modification;
192+
- Fixed the loadCoreJs package splicing problem;
193+
- Reduced minSdkVersion to 16;
194+
- runApplication supports specifying the package in which the JS resides;
195+
- Fixed error in calling context in the _reload method.
196+
176197
### 3.0.0
177198
updateDate:2022.11.17
178199

fair/CHANGELOG.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
## [3.1.0]
2+
* Upgrade analyzer library to 5.5.0;
3+
* Dart function to JS supports parameter passing;
4+
* JS Object value compatibility;
5+
* Remove kotlin dependencies from fair/android;
6+
* Add custom parsing for IconData.
7+
* The generation of optional positional parameters is modified to obtain pa;
8+
* Fixed missing OptionalPositional default values
9+
* Remove the generation time from the generation.fair. dart comment.
10+
* Added the ignore unnecessary_import operation.
11+
* Fixed incorrect assignment of Sugar.switchCase key and defaultValue.
12+
* binding was changed to SplayTreeMap to increase search efficiency, especially for lists, where duplicate tags are searched for a short time.
13+
* Exposing specialBinding so that users can override a value;
14+
* When the provider is added to the _binding, the Settings set by the user prevail for quick modification.
15+
* Fixed the loadCoreJs package splicing problem.
16+
* Reduced minSdkVersion to 16;
17+
* runApplication supports specifying the package in which the JS resides;
18+
* Fixed error in calling context in the _reload method.
19+
120
## [3.0.0]
221
* Fix class constructor parsing exception.
322
* Fair Compatible Web.

fair/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<img src="https://fair.58.com/logo.png">
33
</p>
44
<p align="center">
5-
<a href="https://pub.dev/packages/fair"><img src="https://img.shields.io/badge/pub-3.0.0-orange" alt="pub"></a>
5+
<a href="https://pub.dev/packages/fair"><img src="https://img.shields.io/badge/pub-3.1.0-orange" alt="pub"></a>
66
<a href="https://github.com/wuba/fair"><img src="https://img.shields.io/badge/platform-flutter-blue.svg" alt="github"></a>
77
<a href="https://fair.58.com/"><img src="https://img.shields.io/badge/doc-fair.58.com-green.svg" alt="doc"></a>
88
<a href="https://github.com/wuba/fair/LICENSE"><img src="https://img.shields.io/badge/license-BSD-green.svg" alt="license"></a>
@@ -19,7 +19,7 @@ We create Fair so we can dispatch UI changes to users as bundle(s), the way simi
1919
Use Flutter Fair require few steps. Add dependency inside `pubspec.yaml`.
2020
```yaml
2121
dependencies:
22-
fair: ^3.0.0
22+
fair: ^3.1.0
2323
```
2424
2525
Wrap your app with FairApp Widget.

fair/pubspec.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: fair
22
description: Flutter Fair is a package used to update widget dynamically.
3-
version: 3.0.0
3+
version: 3.1.0
44
homepage: https://fair.58.com/
55

66
environment:
@@ -30,8 +30,8 @@ dev_dependencies:
3030
pedantic: ^1.11.1
3131

3232

33-
dependency_overrides:
34-
collection: 1.17.0
33+
#dependency_overrides:
34+
# collection: 1.17.0
3535
# For information on the generic Dart part of this file, see the
3636
# following page: https://dart.dev/tools/pub/pubspec
3737

0 commit comments

Comments
 (0)