Beihai (Kraken) v0.11.0 released - support Flutter 2.8, add textarea tag

foreword

After 3 months of development, Beihai Kraken has released a brand new v0.11.0 version. If you don't know enough about Kraken , you can skip to the end of the article to read our previous articles to understand what Kraken is and what scenarios it solves.

In this version, we have carried out several major refactorings to give a more reasonable architecture design for the future. At the same time, Benchmark and automated CI tools have been added to measure above-the-fold performance and support for Textarea. In addition, the version of Flutter has also been officially upgraded to 2.8. The detailed change log can refer to CHANGELOG .

Here are some important updates for this release.

update content

Support textarea tags

In this update, Kraken supports the textarea tag, which allows users to edit multiple lines of plain text. If the business scenario needs to edit (submit) a large amount of plain text information, this tag can meet the needs.

textarea

Add automated Benchmark statistics and measure above-the-fold performance

The first screen performance is an important indicator to measure the engine performance. The first screen performance means the length of the white screen time, which has a great impact on the user experience. By using QuickJS as the default JS engine, Kraken can directly deliver files in ByteCode format to optimize the JS execution time of the application.

Kraken measures above-the-fold data based on Benchmark , which is a common product list page in actual business scenarios. Count the time from the completion of loading and start executing the entry file to the triggering of the load event on the window, so as to measure the time from when the actual user opens the page to when it is visible.

Kraken Performance Benchmark 会在当分支 merge 到 main 分支时自动采集以及上传 Kraken 与 Webview 之间的上述性能数据,多次采集后去除抖动并计算平均值。

具体的最新性能数据可以点击 Kraken 官网查看。

TSC 会议直播

我们期望通过 TSC 的机制来让社区的贡献者更多地参与共建,同时规划以及对设计的讨论能够更加透明,让每个关注 Kraken 的同学了解 Kraken 已经有什么能力,正在做什么功能以及未来要怎么样发展。基于此,我们在每两周例行的 TSC 会议上开始尝试直播,让大家能够了解到 Kraken 的一些讨论以及规划。

更详细的协作机制以及入群看直播的方式请移步 Github TSC 来了解更多。

重构事件机制

为了形成面向未来的架构设计,以及更好地解决目前已有手势交互及事件体系的复杂度,我们对事件机制进行了一次大的重构。重构后,开发者无论使用 Dart 还是 JavaScript 去监听事件做对应处理,体验上是完全一致的。未来,我们也会基于此在下个版本支持 HTMLView 以支持纯 Dart 的 Web 渲染,敬请期待。

规范发布规则

TSC 会议上我们明确了版本的迭代以及发布计划,后续我们将会采用更加规范化的发布规则,具体规则如下:

  • 增加例行 Patch 位版本发布时机:每周的周四, 采取搭火车的形式,将 main 分支上的内容发布 x.y.(z+1)。
  • 如遇紧急 Bugfix, maintainer 可以随时决定发布 x.y.z+(n+1) 的版本,如 0.10.2+1。此决策需至少 2 名 tsc 成员同意。
  • 增加每天的 nightly version (prerelease) 机器人自动化发布 例如 0.10.3-nightly.${commit-hash}。

Flutter 版本支持

0.11.0 版本,Kraken 继续升级所依赖的 Flutter 版本,目前我们已经将依赖的版本升至 2.8.1 。

此外,0.11.0 版本会继续支持 Flutter 2.5.3 的版本,直到 0.12.0 版本发布为止。

注:Kraken 0.11.0 只会发布支持 Flutter 2.8.1 版本的 release 包,支持 Flutter 2.5.3 版本的 release 包需要开发者在 Kraken 的 Github 上 checkout 对应分支 的源码下来自行编译。

Roadmap

此外,我们也明确了今年计划做的一些新的功能,把具体的一些目标确定了下来,详细细节可以查看Kraken Roadmap。我们的迭代计划可以直接从 Iteration-Plans 中查看。

其他更新

除了以上介绍的能力之外,我们也修复了大量的 bug,详细请见 CHANGELOG

关于北海 KRAKEN 更多的内容

社区协作机制

我们期望通过一种良好的社区协作机制,来与社区的众多开发者一起共建 Kraken 底层能力及生态。 Kraken 团队通过协作者的方式来参与 Kraken 功能迭代以及 issue 讨论等工作。同时,通过由一部分协作者组成的技术委员会(TSC) 来确定技术方向、发布以及定制标准等工作。

简单地说,只要向 Openkraken Group 提交一定质量和数量的代码即可成为协作者;对项目提交建设性的贡献后,TSC 成员有权提名协作者参与到 TSC 中。

The Kraken team hopes to enable developers in the community to better participate in the evolution of the project through a friendly and participatory collaboration mechanism, so that everyone's voice can be heard, and jointly promote the development of Kraken and Web standards. develop.

More detailed cooperation mechanisms can be moved to Github TSC .

Recommended articles in the past

Guess you like

Origin juejin.im/post/7085971006820450311