-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore(deps): update dependency @tarojs/taro to v3.2.4 #81
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Codecov Report
@@ Coverage Diff @@
## master #81 +/- ##
=======================================
Coverage 83.40% 83.40%
=======================================
Files 116 116
Lines 1693 1693
Branches 321 321
=======================================
Hits 1412 1412
Misses 273 273
Partials 8 8 Continue to review full report at Codecov.
|
renovate
bot
force-pushed
the
renovate/tarojs-taro-3.x
branch
4 times, most recently
from
March 22, 2021 19:59
0af464b
to
af428df
Compare
renovate
bot
force-pushed
the
renovate/tarojs-taro-3.x
branch
from
March 31, 2021 14:15
af428df
to
b84abef
Compare
renovate
bot
changed the title
chore(deps): update dependency @tarojs/taro to v3.1.4
chore(deps): update dependency @tarojs/taro to v3.1.5
Mar 31, 2021
renovate
bot
changed the title
chore(deps): update dependency @tarojs/taro to v3.1.5
chore(deps): update dependency @tarojs/taro to v3.1.5 - autoclosed
Apr 1, 2021
renovate
bot
changed the title
chore(deps): update dependency @tarojs/taro to v3.1.5 - autoclosed
chore(deps): update dependency @tarojs/taro to v3.1.5
Apr 1, 2021
renovate
bot
force-pushed
the
renovate/tarojs-taro-3.x
branch
from
April 1, 2021 10:38
b84abef
to
373a5e1
Compare
renovate
bot
changed the title
chore(deps): update dependency @tarojs/taro to v3.1.5
chore(deps): update dependency @tarojs/taro to v3.2.0
Apr 1, 2021
renovate
bot
force-pushed
the
renovate/tarojs-taro-3.x
branch
8 times, most recently
from
April 7, 2021 13:30
c25b5dc
to
00f7d4d
Compare
renovate
bot
changed the title
chore(deps): update dependency @tarojs/taro to v3.2.0
chore(deps): update dependency @tarojs/taro to v3.2.1
Apr 7, 2021
renovate
bot
force-pushed
the
renovate/tarojs-taro-3.x
branch
from
April 20, 2021 09:11
00f7d4d
to
fe79e92
Compare
renovate
bot
changed the title
chore(deps): update dependency @tarojs/taro to v3.2.1
chore(deps): update dependency @tarojs/taro to v3.2.2
Apr 20, 2021
renovate
bot
force-pushed
the
renovate/tarojs-taro-3.x
branch
4 times, most recently
from
April 22, 2021 03:24
a138e1d
to
360472c
Compare
renovate
bot
changed the title
chore(deps): update dependency @tarojs/taro to v3.2.2
chore(deps): update dependency @tarojs/taro to v3.2.3
Apr 22, 2021
renovate
bot
force-pushed
the
renovate/tarojs-taro-3.x
branch
from
April 22, 2021 05:26
360472c
to
a54c891
Compare
renovate
bot
changed the title
chore(deps): update dependency @tarojs/taro to v3.2.3
chore(deps): update dependency @tarojs/taro to v3.2.4
Apr 22, 2021
renovate
bot
force-pushed
the
renovate/tarojs-taro-3.x
branch
from
April 22, 2021 08:44
a54c891
to
faba5a0
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
3.1.5
->3.2.4
Release Notes
NervJS/taro
v3.2.4
Compare Source
特性
H5
v3.2.3
Compare Source
特性
H5
v3.2.2
Compare Source
修复
RN
H5
其它
v3.2.1
Compare Source
修复
小程序
slot
失效的问题,#9018 ,by @b2nilpage-container
组件,#8966project.tt.json
,避免字节小程序 IDE 打开项目失败H5
Input
组件的type
为undefined
时渲染报错的问题,by @CodeDaraWv3.2.0
Compare Source
Highlights
一、更快编译速度
Taro 3 React Native 对整个编译系统进行较大调整,不再生成中间代码,而是直接利用 Metro 生成
bundle
,通过运行时适配 Taro 3 标准,这种方式使得编译过程更简单,大大提升了编译速度。二、
source-map
支持Taro 3 对编译系统改造在提升编译速度的同时,也天然支持
source-map
,对于开发体验是一个巨大的提升,能够达到与开发原生 React Native 应用一致的体验。三、多 React Native 版本支持,拥抱最新版 0.64
Taro 3 对系统架构进行了全面升级,React Native 版本取决于开发者项目中的依赖,目前支持 0.60 以上的 React Native 版本,当然最新的 0.64 也是完全支持。
在 React Native 0.64 的版本中,iOS 端完成 了对 Hermes 引擎的支持,默认启用了内联引用,也支持 React 17 等等,想体验这些新特性的开发者只需升级对应依赖即可。
新项目升级
Taro 模板默认依赖 React 17、TypeScript 4,运行 React Native 端会自动安装 0.64 的版本,直接使用即可。
旧项目升级
如果是Taro 3 的旧项目,手动升级对应的依赖:
react: ^17.0.0
react-dom: ^17.0.0
typescript: ^4.1.0
@typescript-eslint/parser: ^4.15.1
@typescript-eslint/eslint-plugin: ^4.15.1
react-native:^0.64.0
设置 ESLint 配置:
四、更丰富API与组件
要真正做到一套代码,多端复用,非常重要的一点就是组件和 API 的覆盖度,在 Taro 3.2 之前,适配 React Native 已经实现了很多常用 API 和组件,但与小程序,H5 之间还存在较大的差距,需进一步完善。在新的版本中,我们进一步提升组件和 API 的覆盖度,共新增 45 个 API 与 8 个组件。
五、API与组件按需引入
在 Taro 3 中,我们也对打包后
bundle
大小进行了优化。在实际的业务场景中,可能并不会使用到 Taro 提供的所有组件和 API ,但仍然会将所有的组件与 API 及相关依赖打包到最终的bundle
中,这无疑会增加bundle
的大小。为了减少打包后的大小,我们对组件和 API 实现了按需引入的方式,比如:
特性
RN
升级指南
从 v3.x 升级的同学,首先需要安装 v3.2 的 CLI 工具:
然后进入项目,删除 node_modules、yarn.lock、package-lock.json。
最后把
package.json
文件中 Taro 相关依赖的版本修改为^3.2.0
,再重新安装依赖,至此升级结束。Configuration
📅 Schedule: At any time (no schedule defined).
🚦 Automerge: Enabled.
♻️ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by WhiteSource Renovate. View repository job log here.