Skip to content
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

feat: [taro-webpack5-runner MiniWebpackModule]非官方维护端平台插件,支持引入原生组件混写 #16309

Closed
wants to merge 1,905 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1905 commits
Select commit Hold shift + click to select a range
11ddfcd
fix: 修复合并4.x solid的问题 (#15840)
phy-lei Jun 4, 2024
15b4e7b
chore(release): publish 4.0.0-beta.85 --tag=beta
Jun 4, 2024
2e4a415
chore(components-rn): 移除冗余的依赖
koppthe Jun 5, 2024
dc543c7
feat(helper): 更新 @tarojs/* 包更新列表
koppthe Jun 5, 2024
0bd8dd3
fix: 在input设置value的时候转成string,兼容harmony的input number无效的bug
Jun 5, 2024
f8926e5
feat: 为request兼容ArrayBuffer数据
chenai02 Jun 5, 2024
89a8dcb
chore(rn): 调整 RN 依赖
koppthe Jun 5, 2024
c310d1e
chore(release): publish 4.0.0-beta.86 --tag=beta
koppthe Jun 5, 2024
c896200
fix: 修复 MethodHandler
Jun 6, 2024
ac20295
Merge branch '4.x' of github.com:NervJS/taro into 4.x
Jun 6, 2024
1a8693e
chore(release): publish 4.0.0-beta.87 --tag=beta
Jun 6, 2024
8868be6
fix: chooseMedia适配两种实现方式
heweishui Jun 6, 2024
0c74a9c
Merge pull request #15851 from heweishui/4.x
qican777 Jun 6, 2024
9fc049b
Merge pull request #15847 from chenai02/4.x
qican777 Jun 6, 2024
c6681c1
featL 增加wordBreak的支持
heiazu May 30, 2024
c9ba0b0
fix: 修复swiper返回尺寸之前未转换单位的问题
Jun 3, 2024
2e5b47d
fix(helper): 抽取部分公共常量
ZakaryCode Jun 3, 2024
d797223
fix(arkts): 修復在 win 上外部庫 externals 判斷問題
ZakaryCode Jun 3, 2024
c328a79
feat: 支持component第三方组件的刷新
Jun 4, 2024
8384d86
fix: 在input设置value的时候转成string,兼容harmony的input number无效的bug
Jun 5, 2024
3f36271
fix: 修复 MethodHandler
Jun 6, 2024
5a007d6
feat: 发布 harmony
Jun 6, 2024
72c0879
chore(release): publish 4.0.0-beta.88 --tag=beta
Jun 6, 2024
92a190c
feat(babel): 切换 metro-babel-preset
koppthe Jun 7, 2024
e229c4a
fix: 修复全局正则匹配的使用方式
koppthe Jun 7, 2024
f7b85cd
chore(release): publish 4.0.0-alpha.23 --tag=alpha
koppthe Jun 7, 2024
712384f
fix: [Harmony-Hybrid] createIntersectionObserver修改为独立实现,回调参数支持id和dataset
Jun 7, 2024
cf9dd49
Merge pull request #15856 from kongxiaojun/4.x-kxj
qican777 Jun 7, 2024
f829382
fix: 修复缓存应用时部分功能失效的问题
Jun 7, 2024
b827ef0
chore(release): publish 4.0.0-beta.89 --tag=beta
Jun 7, 2024
0065453
Revert "feat: 发布 harmony"
Jun 11, 2024
d75f792
fix: 解决依赖冲突
Jun 11, 2024
663c041
chore(release): publish 4.0.0-beta.90 --tag=beta
Jun 11, 2024
62afa18
listView 添加Reusable
Jun 11, 2024
467ba1e
Merge branch '4.x' of https://github.com/NervJS/taro into 4.x
Jun 11, 2024
2905352
chore(release): publish 4.0.0-canary.12 --tag=canary
Jun 11, 2024
1e0be27
fix: [harmony-hybrid]修复部分API调用原生报错问题
xiaoyan428820 Jun 11, 2024
812e97d
Merge pull request #15865 from xiaoyan428820/4.x
qican777 Jun 11, 2024
bfad929
listView 添加Reusable
Jun 11, 2024
c61893d
chore(release): publish 4.0.0-canary.13 --tag=canary
Jun 11, 2024
0165ded
feat: 删除navigateToMiniProgram相关实现
licunhao1 Jun 12, 2024
5a3b3cd
fix: 修复createLazyChildren
Jun 12, 2024
e9dbed1
chore(release): publish 4.0.0-beta.91 --tag=beta
Jun 12, 2024
5ba8a3e
Merge pull request #15873 from licunhao1/4.x
qican777 Jun 12, 2024
ee3b12b
feat: 添加scrollindex事件转发
Jun 13, 2024
11e5b80
Merge branch '4.x' of https://github.com/NervJS/taro into 4.x
Jun 13, 2024
29f3531
fix: 修复list-view冗余问题
heiazu Jun 13, 2024
9f1bfaf
fix: [harmony-hybrid]open-api相关接口实现修改
qcjxs Jun 13, 2024
b101c78
feat: ListView 添加 reusedId
Jun 13, 2024
ac4ecb3
chore(release): publish 4.0.0-beta.92 --tag=beta
Jun 13, 2024
b424e2d
Merge pull request #15883 from xiaoyan428820/4.x
qican777 Jun 13, 2024
33975d5
fix: 添加类型声明
Jun 14, 2024
9a9b458
chore(release): publish 4.0.0-beta.93 --tag=beta
Jun 14, 2024
a5816ee
feat: 添加scrollindex事件转发
Jun 13, 2024
f4e2f4b
Merge remote-tracking branch 'origin/4.x' into feat/harmony
ZakaryCode Jun 15, 2024
823df30
fix: 修复鸿蒙新版本编译不识别默认值的问题
Jun 15, 2024
482e094
Merge branch 'feat/harmony' of github.com:NervJS/taro into feat/harmony
Jun 15, 2024
6857cc2
chore(release): publish 4.0.0-beta.94 --tag=beta
Jun 15, 2024
e45de59
feat: 调整 render map 生成
ZakaryCode Jun 15, 2024
c7880a3
feat(vite): 支持修改 style 依赖插件
ZakaryCode Jun 15, 2024
a7d8f36
chore(release): publish 4.0.0-beta.95 --tag=beta
ZakaryCode Jun 15, 2024
4ad69af
fix: 修复 ets 报错
Jun 15, 2024
892c0c9
chore(release): publish 4.0.0-beta.96 --tag=beta
Jun 15, 2024
a0630a0
fix: 修复 ets 报错
Jun 15, 2024
27ef2db
feat: 调整 Id 类型
ZakaryCode Jun 15, 2024
3b68075
fix: 修复引用引入失效
Jun 15, 2024
2dc2251
Merge branch 'feat/harmony' of https://github.com/NervJS/taro into fe…
Jun 15, 2024
6bde3a3
chore(release): publish 4.0.0-beta.97 --tag=beta
Jun 15, 2024
dd79814
fix: 修复 ets 报错
Jun 15, 2024
65e8f9e
chore(release): publish 4.0.0-beta.98 --tag=beta
Jun 15, 2024
4c5b4b5
feat: 添加生成name的时候的判断
Jun 16, 2024
23c4eb6
feat: 加上丢了的逗号
Jun 16, 2024
5be8077
feat: 在generateComponentCreated方法添加namePrefix字段方便对变量名前缀进行控制
Jun 16, 2024
c26221d
fix: 修复 ets 报错
Jun 16, 2024
da28f5e
Merge branch 'feat/harmony' of github.com:NervJS/taro into feat/harmony
Jun 16, 2024
83b3ef8
fix: 修复 imagespan verticalAlign 不生效的问题
Jun 16, 2024
0b3736d
chore(release): publish 4.0.0-beta.99 --tag=beta
Jun 16, 2024
9742737
test: 更新 rust 测试用例
Jun 16, 2024
6c232a0
feat: 添加fullArgument字段支持对createChildItem方法调用参数的重写
Jun 16, 2024
c45780c
feat: 透传 text verticalAlign
Jun 16, 2024
ebc856f
fix: 修复fixed问题
heiazu Jun 16, 2024
e24e20f
feat: 给ListItem添加_nid
Jun 16, 2024
fff2471
Merge branch 'feat/harmony' of https://github.com/NervJS/taro into fe…
Jun 16, 2024
7c38089
fix: 修复 text.ets 错误
Jun 16, 2024
9cbab31
chore(release): publish 4.0.0-beta.100 --tag=beta
Jun 16, 2024
01d2bf2
fix: 修复格式
heiazu Jun 16, 2024
fc52002
fix: 修复input类型错误
heiazu Jun 16, 2024
062c7b0
feat: 修改reuseId的拼写
Jun 16, 2024
e6354b3
Merge branch 'feat/harmony' of https://github.com/NervJS/taro into fe…
Jun 16, 2024
cae5900
fix(vite): rollup watch error
ZakaryCode Jun 16, 2024
99d6349
fix(vite): 非核心库正则判断
ZakaryCode Jun 16, 2024
6adb3f8
feat: 支持修改input的placeholder文本尺寸
heiazu Jun 16, 2024
0d3c093
revert(runtime): 返回旧版本运行时打包逻辑
ZakaryCode Jun 16, 2024
3518b49
fix(harmony): 同步 app 模板变更
ZakaryCode Jun 16, 2024
9cf5ea2
fix: 禁用原生模块路径转换
ZakaryCode Jun 16, 2024
28b8918
fix(arkts): add return types
ZakaryCode Jun 17, 2024
29e396c
fix: 修复导航栏配置无效的问题
guoenxuan Jun 14, 2024
e43252d
fix: 修复getLaunchOptionsSync无返回数据的问题
guoenxuan Jun 17, 2024
cdf4579
feat: eventcenter 类型兜底
Jun 17, 2024
b0dbb49
chore(release): publish 4.0.0-beta.101 --tag=beta
Jun 17, 2024
c87d0e6
fix: 部分API修改同步main分支,新增previewImage等。
qcjxs Jun 18, 2024
72408eb
Merge pull request #15927 from xiaoyan428820/4.x
qican777 Jun 18, 2024
9afb28a
Merge pull request #15918 from guoenxuan/jd-4.x
qican777 Jun 18, 2024
6c73f57
fix: 修复动画异常
heiazu Jun 18, 2024
886524b
chore(release): publish 4.0.0-beta.102 --tag=beta
heiazu Jun 18, 2024
2fc0933
feat(cli): 支持更改 CLI 展示的模板名称
koppthe Jun 18, 2024
b050a9f
fix: 解决IntersectionObserver相关接口无效问题
heweishui Jun 18, 2024
8422355
Merge pull request #15930 from heweishui/4.x
qican777 Jun 19, 2024
c2355d0
fix: 部分API不支持,修改为继承h5
licunhao1 Jun 19, 2024
bbf7ced
Merge pull request #15933 from licunhao1/4.x
qican777 Jun 19, 2024
bf97454
fix: 修复动画
heiazu Jun 19, 2024
5b205bf
chore(release): publish 4.0.0-beta.103 --tag=beta
heiazu Jun 19, 2024
09fd4a5
feat: 为input添加enableKeyboardOnFocus属性
Jun 19, 2024
f6dc9a9
chore(release): publish 4.0.0-beta.104 --tag=beta
Jun 19, 2024
32f1f7e
fix: 修复类型错误
Jun 19, 2024
3f08bc7
feat: 修复fixed异常插入问题
heiazu Jun 19, 2024
eb643e3
chore(release): publish 4.0.0-beta.105 --tag=beta
heiazu Jun 19, 2024
878bb94
fix: 修复没有使用 react 18 mode 的问题
Jun 19, 2024
082085e
fix: 修复 element 引入 framework-react 路径不正确的问题
Jun 19, 2024
64115e7
fix: 修复页面还没加载完毕就跑入 render 函数的问题
Jun 20, 2024
5523154
fix: 修复 react-dom/client 没有被 alias 的问题,临时复原 native-page 的 render 方法
Jun 20, 2024
73289c8
chore(release): publish 4.0.0-beta.106 --tag=beta
Jun 20, 2024
55a662e
fix: 修复clearStorageSync报错的问题
guoenxuan Jun 20, 2024
ff0279b
Merge pull request #15945 from guoenxuan/jd-4.x
qican777 Jun 20, 2024
1c3f43c
fix: 修复dev模式下桥接到原生侧的同步API崩溃问题
guoenxuan Jun 21, 2024
2c946e7
Merge pull request #15952 from guoenxuan/jd-4.x
qican777 Jun 21, 2024
45a52a8
fix(harmony): 修复生产环境代码抖动问题
ZakaryCode Jun 24, 2024
53eb62f
Merge remote-tracking branch 'origin/feat/harmony' into 4.x
Jun 24, 2024
c62deb4
fix: 修复vite在h5 dev模式下resolveId 的bug
Jun 24, 2024
b1f2dc7
chore(release): publish 4.0.0-alpha.28 --tag=alpha
Jun 24, 2024
9a61406
feat: 复原 native-page 的 render 方法
Jun 24, 2024
1de88e5
chore(release): publish 4.0.0-beta.107 --tag=beta
Jun 24, 2024
26f00e8
feat: 添加solid为默认模版
Jun 24, 2024
1965b18
lint: 修改node模块的引入
Jun 24, 2024
5f4c410
lint: auto
Jun 24, 2024
a8ebbdc
Merge branch '4.x' into feat/harmony
Jun 24, 2024
93e4ff3
chore(release): publish 4.0.0-alpha.29 --tag=alpha
Jun 24, 2024
1857a38
feat: 修改instance为弱引用
heiazu Jun 24, 2024
289a0cd
fix: 修复WebkitLineClamp没有默认加ellipsis
heiazu Jun 25, 2024
28c59d2
chore(release): publish 4.0.0-beta.108 --tag=beta
Jun 25, 2024
3d16684
feat: 优化 native-page 初始化逻辑,改成初始化同步,后续异步
Jun 26, 2024
9f44666
chore(release): publish 4.0.0-beta.109 --tag=beta
Jun 26, 2024
4a9e41d
feat: 新增已编译文件 jsx-to-rn-style 编译逻辑 (#15838)
lyxuncle Jun 27, 2024
ade4706
feat: 支持bototm和right,修复background-position在style解析不出负的bug
heiazu Jun 27, 2024
d7f9818
feat: 支持bototm和right,修复background-position在style解析不出负的bug
heiazu Jun 27, 2024
1f7e2c4
chore(release): publish 4.0.0-beta.110 --tag=beta
heiazu Jun 27, 2024
e36cde4
fix: 修复 WeakRef 兜底问题
Jun 27, 2024
e0f55d0
chore(release): publish 4.0.0-beta.111 --tag=beta
Jun 27, 2024
f78909d
fix: 添加 getNormalAttributes 兜底
Jun 27, 2024
d5bb5a0
feat: 完善 harmony image 相关的 api
Jun 28, 2024
a1f0ad0
feat: 完善 chooseImage 相关的属性
Jun 28, 2024
dcfc9f5
chore(release): publish 4.0.0-beta.112 --tag=beta
Jun 28, 2024
6e59d53
feat: 调整 position 类型
Jun 28, 2024
33f40c9
feat: 再次完善 image 方法
Jun 29, 2024
c7c892c
fix: 修复错误属性名
Jun 29, 2024
b14c037
chore(release): publish 4.0.0-beta.113 --tag=beta
Jun 29, 2024
5e96dae
Merge branch 'feat/harmony' into 4.x
Jul 1, 2024
efc4082
feat: 为 react 组件包上 forwardRef,运行外部使用传递ref获取dom元素
Jul 1, 2024
9125ae4
fix: lint
Jul 1, 2024
b54131f
fix: lint
Jul 1, 2024
c70277c
chore(release): publish 4.0.0-alpha.30 --tag=alpha
Jul 1, 2024
3e871b5
feat: 删除权限请求, callTouchEventFnFromGesture 方法兜底
Jul 3, 2024
f70b2dd
chore(release): publish 4.0.0-beta.114 --tag=beta
Jul 3, 2024
41cc12a
feat: native-page 是否使用 react 18 处理成页面或者组件的配置项
Jul 3, 2024
67df878
chore(release): publish 4.0.0-beta.115 --tag=beta
Jul 3, 2024
d328921
fix(runner): 修复 css-loader 升级到 v7 后的 Breaking Changes 问题
koppthe Jul 3, 2024
1b4f85a
feat(rn-style-transformer): 新增样式变量编译插件 (#16035)
lyxuncle Jul 3, 2024
023249f
refactor: 删除cli的vue2和nerv框架
Jul 3, 2024
91a1a5e
refactor: react-component hooks分开打包
Jul 3, 2024
f80cbd5
feat(h5): 抽离全局样式,挂在到 .taro-app-wrap 下面,避免在单独打包成组件的时候造成全局样式污染
Jul 4, 2024
42457ee
feat: 补充上次提交
Jul 4, 2024
e0f8d51
Merge branch '4.x' of github.com:NervJS/taro into 4.x
Jul 4, 2024
fd584c8
fix: lint
Jul 4, 2024
1abebaf
chore(release): publish 4.0.0-alpha.31 --tag=alpha
Jul 4, 2024
d749aaa
feat: 把全局样式的类名挂载在document.body上
Jul 4, 2024
1725764
chore(release): publish 4.0.0-alpha.32 --tag=alpha
Jul 4, 2024
9b1be12
Merge branch 'main' into 4.x
Jul 4, 2024
35a711f
chore(release): publish 4.0.0-alpha.33 --tag=alpha
Jul 4, 2024
5cc0345
fix(cli): 修改 FrameworkType 类型
Jul 4, 2024
afe504b
chore(release): publish 4.0.0-alpha.34 --tag=alpha
Jul 4, 2024
5400d1f
fix(template): 修改模版
Jul 5, 2024
57552e3
chore(release): publish 4.0.0-alpha.35 --tag=alpha
Jul 5, 2024
94f910a
fix(template): 修改默认模版
Jul 5, 2024
1af2c9b
feat: 完善报错信息
Jul 5, 2024
4cd07ac
feat: 完善报错信息
Jul 5, 2024
0d8d3d8
chore(release): publish 4.0.0-beta.116 --tag=beta
Jul 5, 2024
f734151
fix(mini): 修复vite小程序打包报错
Jul 8, 2024
bca51a3
Merge branch 'harmony' into 4.x
Jul 8, 2024
10e719f
fix: lint
Jul 8, 2024
9aadd8a
Merge remote-tracking branch 'origin/main' into 4.x
Jul 8, 2024
c51d6c0
fix: 删除Nerv 相关信息
Jul 8, 2024
bebb2e0
chore(release): publish 4.0.0-alpha.36 --tag=alpha
Jul 8, 2024
32be494
chore(release): publish 4.0.0-alpha.37 --tag=alpha
Jul 8, 2024
41f3d8c
fix(template): 修改默认模版
Jul 8, 2024
9cb8fd5
Merge pull request #16076 from handsomeliuyang/fix-harmony-hybrid-mix…
qican777 Jul 9, 2024
f719166
fix: 修复raf文件在webpack项目里面的编译问题
Jul 9, 2024
0e0a992
Merge branch '4.x' of github.com:NervJS/taro into 4.x
Jul 9, 2024
07c9803
feat: 调整 PromptAction 从 uicontext 中获取
Jul 9, 2024
a4bc542
feat: 添加全局样式文件,使用loader中导入,并且cli build 添加--no-inject-global-style 命令,…
Jul 9, 2024
c2a360d
chore(release): publish 4.0.0-beta.117 --tag=beta
Jul 9, 2024
d07b76f
chore(release): publish 4.0.0-alpha.38 --tag=alpha
Jul 9, 2024
d241c08
fix(runner): 修复 css-loader 升级到 v7 后的 exportLocalsConvention 默认值问题
koppthe Jul 10, 2024
8716607
feat: 为 framework 添加新类型,方便其他平台做扩展时不使用内部 framework 插件,可以填 none 字段
Jul 10, 2024
a027beb
Merge branch '4.x' of github.com:NervJS/taro into 4.x
Jul 10, 2024
9948a4c
styles: 修改注释
Jul 10, 2024
c9b832c
chore(release): publish 4.0.0-alpha.39 --tag=alpha
Jul 10, 2024
84bb141
feat: vite 模式也引入全局的样式
Jul 11, 2024
3ca55ab
fix: 先暂时避免 vue 在小程序端Prebundle的报错
Jul 11, 2024
1e84415
fix: 添加 handleScrollerEvent 兜底
Jul 11, 2024
491eccf
chore(release): publish 4.0.0-beta.118 --tag=beta
Jul 11, 2024
d5a26ee
feat: createPage 命令添加framework 为 None 的枚举值
Jul 11, 2024
2b864fa
feat: 为taro create 添加 afterCreate 命令
Jul 11, 2024
5e1acf1
feat: 先暂时在cli屏蔽soild的vite编译
Jul 11, 2024
6af8c40
feat: 为build添加 no-check 参数
Jul 11, 2024
d2f982b
chore(release): publish 4.0.0-alpha.40 --tag=alpha
Jul 11, 2024
c3284e0
feat: 调整两个build的参数输入
Jul 11, 2024
cef8127
chore(release): publish 4.0.0-alpha.41 --tag=alpha
Jul 11, 2024
d3e160f
fix: 修复首次进入页面设置font-size的时,获取不到高度时的报错
Jul 12, 2024
adc8ba9
Merge branch 'main' into 4.x
Jul 12, 2024
5074e57
feat: 解决合并冲突
Jul 12, 2024
91365f9
feat: 删除多余的样式
Jul 12, 2024
785f921
chore(release): publish 4.0.0-alpha.42 --tag=alpha
Jul 12, 2024
350e765
fix(test): 修复cli的test
Jul 12, 2024
f8db3e1
Merge branch 'main' into 4.x
Jul 12, 2024
b4d83f9
fix: lint
Jul 12, 2024
f3229c8
feat(template): 修改默认模版
Jul 12, 2024
5622539
chore(release): publish 4.0.0-alpha.43 --tag=alpha
Jul 12, 2024
cea2045
fix: 修复因为lint导致的bug
Jul 12, 2024
1a3bb8e
Merge branch 'feat/harmony' into 4.x
Jul 12, 2024
a7fcf67
chore(release): publish 4.0.0 --tag=next
Jul 12, 2024
360752b
feat(vite): taro 相关的依赖在小程序端打包成taro chunk & 修改 getComputedStyle、URL、d…
ZEJIA-LIU Jul 15, 2024
1e3158e
fix: 修复cli报错 (#16102)
ZEJIA-LIU Jul 15, 2024
9c665f1
chore(release): publish 4.0.1 --tag=next (#16103)
ZEJIA-LIU Jul 15, 2024
8232e7c
fix: format .github/dependabot.yml (#16104)
ZEJIA-LIU Jul 15, 2024
bb36479
chore(release): publish 4.0.2 --tag=next
Jul 16, 2024
f53250b
Merge branch 'main' into 4.x
ZEJIA-LIU Jul 16, 2024
0970bf7
fix: [H5] video组件mute={true}时,静音按钮状态显示为非静音 (#16126)
kongxiaojun Jul 18, 2024
f22ddc4
feat(cli): taro init 命令新增 autoInstall 的配置支持 (#16129)
koppthe Jul 19, 2024
7c48afd
feat: vite 小程序端的 chunks 拆分 (#16140)
ZEJIA-LIU Jul 23, 2024
da11bdd
feat(cli): 增加私有化模板不展示的逻辑 (#16152)
koppthe Jul 24, 2024
e0bbb17
fix: 小程序 vite vue3 的拆 chunks 修复 (#16153)
ZEJIA-LIU Jul 24, 2024
4558798
fix(taro-vite-runner): 修复 vite h5 dev & build 路径未转 posix 导致的异常 (#16124)
weizs Jul 25, 2024
600af0f
feat(cli): 支持 create 传递framework,css和typescript并且调整 templateSource 的优…
ZEJIA-LIU Jul 25, 2024
1731295
feat(sync): merge harmony (#16161)
ZEJIA-LIU Jul 25, 2024
ea3bd24
chore(release): publish 4.0.3 (#16162)
liqinuo Jul 25, 2024
3ffe3b8
feat: 为jd小程序平台补充 editor 组件 (#16166)
ZEJIA-LIU Jul 26, 2024
c6a8514
feat: 为小程序默认添加taro组件路径: '@tarojs/componets/min',各个平台可以自行在插件里进行覆盖 (#16…
ZEJIA-LIU Jul 29, 2024
39fb4bf
fix: 修复 runtime 变量环境编译导致的bug (#16201)
ZEJIA-LIU Jul 29, 2024
39dd83e
chore(release): publish 4.0.4 (#16202)
ZEJIA-LIU Jul 29, 2024
5427fa8
feat: [taro-webpack5-runner MiniWebpackModule]非官方维护端平台插件,支持引入原生组件混写
Aug 14, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
11 changes: 4 additions & 7 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
dist
dist-h5
lib
!**/src/lib
node_modules
*.d.ts
*.ets
coverage
examples

Expand All @@ -14,14 +16,8 @@ packages/taro-components/loader
packages/taro-components/src/components
packages/taro-components-library-react/components.ts
packages/taro-components-library-vue3/components.ts
packages/taro-components-library-vue3/components.ts

packages/taro-components-library-solid/components.ts

packages/taro-webpack-runner/src/__tests__/__snapshots__
packages/taro-webpack-runner/src/__tests__/fixtures
packages/taro-mini-runner/src/__tests__/__snapshots__
packages/taro-mini-runner/src/__tests__/fixtures
packages/taro-mini-runner/src/quickapp
packages/taro-webpack5-runner/src/__tests__/__snapshots__
packages/taro-webpack5-runner/src/__tests__/fixtures
packages/taro-webpack5-runner/src/__tests__/bundled
Expand All @@ -31,6 +27,7 @@ packages/taro/types
packages/taro-router/__tests__

packages/taro-rn-style-transformer/src/transforms/StyleSheet
packages/taro-rn/src/lib/index.ts
packages/taro-rn/src/__tests__

packages/taro-runtime/src/polyfill
Expand Down
88 changes: 50 additions & 38 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ module.exports = {
'@typescript-eslint/explicit-function-return-type': 0,
'@typescript-eslint/explicit-module-boundary-types': 0,
'@typescript-eslint/indent': [2, 2],
'@typescript-eslint/member-delimiter-style': [1, { multiline: { delimiter: 'none' }, singleline: { delimiter: 'comma' } }],
'@typescript-eslint/member-delimiter-style': [
1,
{ multiline: { delimiter: 'none' }, singleline: { delimiter: 'comma' } },
],
'@typescript-eslint/no-empty-function': 0,
'@typescript-eslint/no-explicit-any': 0,
'@typescript-eslint/no-namespace': 0,
Expand All @@ -29,58 +32,67 @@ module.exports = {
'@typescript-eslint/no-use-before-define': [1, { functions: false, classes: false }],
'@typescript-eslint/no-var-requires': 0,
camelcase: 0,
'eol-last': 0,
'eol-last': 2,
'comma-dangle': 0,
'no-mixed-operators': 0,
'no-multiple-empty-lines': 0,
'import/first': 2,
'import/newline-after-import': 2,
'import/no-duplicates': 2,
indent: 'off',
'comma-spacing': 2,
'no-console': [2, { allow: ['warn', 'error'] }],
'no-empty': 1,
'no-multi-spaces': 2,
'no-multiple-empty-lines': 0,
'no-mixed-operators': 0,
'no-prototype-builtins': 0,
'no-unused-expressions': 0,
'no-unused-vars': 'off',
'no-use-before-define': 0,
'import/first': 2,
'import/newline-after-import': 2,
'import/no-duplicates': 2,
'import/no-named-default': 'off',
indent: 0,
'keyword-spacing': 2,
'object-curly-spacing': 2,
'no-empty': 1,
'operator-linebreak': [2, 'after', {
overrides: { '?': 'before', ':': 'before' },
}],
'prefer-spread': 0,
'prefer-rest-params': 0,
'react/jsx-uses-vars': 1,
'react/prop-types': 0,
'react/no-find-dom-node': 0,
'react/no-unknown-property': 0,
'import/no-named-default': 'off',
quotes: [2, 'single', { avoidEscape: true, allowTemplateLiterals: true }],
semi: [2, 'never'],
'simple-import-sort/imports': [2, {
groups: [
// Side effect imports.
['^\\u0000'],
// Node.js builtins prefixed with `node:`.
['^node:'],
// Packages.
// Things that start with a letter (or digit or underscore), or `@` followed by a letter.
['^@?\\w'],
// Absolute imports and other imports such as Vue-style `@/foo`.
// Anything not matched in another group.
['^'],
// Relative imports.
// Anything that starts with a dot.
['^\\.'],
// Types Group
['^node:.*\\u0000$', '^@?\\w.*\\u0000$', '(?<=\\u0000)$', '^\\..*\\u0000$'],
]
}],
'simple-import-sort/imports': [
2,
{
groups: [
// Side effect imports.
['^\\u0000'],
// Node.js builtins prefixed with `node:`.
['^node:'],
// Packages.
// Things that start with a letter (or digit or underscore), or `@` followed by a letter.
['^@?\\w'],
// Absolute imports and other imports such as Vue-style `@/foo`.
// Anything not matched in another group.
['^'],
// Relative imports.
// Anything that starts with a dot.
['^\\.'],
// Types Group
['^node:.*\\u0000$', '^@?\\w.*\\u0000$', '(?<=\\u0000)$', '^\\..*\\u0000$'],
],
},
],
'simple-import-sort/exports': 2,
'space-before-function-paren': [2, 'always'],
'standard/no-callback-literal': 0
'space-before-function-paren': 0,
'standard/no-callback-literal': 0,
},
env: {
'jest/globals': true,
browser: true,
node: true,
es6: true
es6: true,
},
globals: {
testRule: 'readonly',
Expand All @@ -94,16 +106,16 @@ module.exports = {
requirePlugin: 'readonly',
jd: 'readonly',
ks: 'readonly',
LOCATION_APIKEY: 'readonly'
LOCATION_APIKEY: 'readonly',
},
parserOptions: {
ecmaFeatures: {
jsx: true
}
jsx: true,
},
},
settings: {
react: {
version: 'detect'
}
}
version: 'detect',
},
},
}
7 changes: 7 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,10 @@ updates:
interval: daily
time: "21:00"
open-pull-requests-limit: 10
- package-ecosystem: "npm"
directory: "/examples"
schedule:
interval: daily
time: "21:00"
ignore:
- dependency-name: "*"
4 changes: 2 additions & 2 deletions .github/workflows/build-rust-binding.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node-version: [16.x]
node-version: [18.x]
settings:
- host: macos-12
target: x86_64-apple-darwin
Expand Down Expand Up @@ -48,7 +48,7 @@ jobs:
- name: Setup pnpm
uses: pnpm/action-setup@v3.0.0
with:
version: 7
version: 8
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
if: ${{ !matrix.settings.docker }}
Expand Down
56 changes: 37 additions & 19 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ env:
on:
push:
branches:
- 'chore/**'
- 'feat/**'
- 'fix/**'
- '1.x'
- '2.x'
- '3.x'
- '4.x'
- main
pull_request:
branches:
Expand All @@ -22,15 +29,16 @@ jobs:
uses: ./.github/workflows/build-rust-wasm.yml

nodejs-tesing:
name: Testing on Node.js ${{ matrix.node-version }} (${{ matrix.settings.host }})
name: Testing on Node.js ${{ matrix.node-version }} (${{ matrix.host }})
needs:
- build-rust-binding
- build-rust-wasm
strategy:
fail-fast: false
matrix:
node-version: [16.x]
settings:
node-version: [18.x, 20.x]
host: [macos-12, windows-latest, ubuntu-latest]
include:
- host: macos-12
target: x86_64-apple-darwin
- host: windows-latest
Expand All @@ -39,14 +47,24 @@ jobs:
target: x86_64-unknown-linux-gnu
- host: ubuntu-latest
target: x86_64-unknown-linux-musl
runs-on: ${{ matrix.settings.host }}
exclude:
- node-version: 18.x
host: macos-12
- node-version: 18.x
host: windows-latest
- node-version: 20.x
host: macos-12
- node-version: 20.x
host: windows-latest

runs-on: ${{ matrix.host }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v3.0.0
with:
version: 7
version: 8
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
Expand All @@ -67,75 +85,75 @@ jobs:
run: pnpm -r install --frozen-lockfile
- name: Lint
run: pnpm lint
- name: Download artifact bindings-${{ matrix.settings.target }}
- name: Download artifact bindings-${{ matrix.target }}
uses: actions/download-artifact@v4
with:
name: bindings-${{ matrix.settings.target }}
name: bindings-${{ matrix.target }}
path: crates/native_binding
- name: Test bindings
run: pnpm test:binding
if: ${{ matrix.settings.target != 'x86_64-unknown-linux-gnu' && matrix.settings.target != 'x86_64-unknown-linux-musl'}}
if: ${{ matrix.host != 'ubuntu-latest' }}
- name: Test bindings with docker
if: ${{ matrix.settings.target == 'x86_64-unknown-linux-gnu' || matrix.settings.target == 'x86_64-unknown-linux-musl'}}
if: ${{ matrix.host == 'ubuntu-latest' }}
# 暂时使用了一个第三方的 docker 镜像
run: docker run --rm -v $(pwd):/build -w /build chf007/pnpm pnpm test:binding
# 以下的测试流程应该在所有平台都执行,但 windows 好像还有些问题,因此目前只在 ubuntu-latest 执行
- name: Download all artifacts
uses: actions/download-artifact@v4
if: ${{ matrix.settings.host == 'ubuntu-latest' }}
with:
path: crates/native_binding/artifacts
- name: List Package crates/native_binding
run: ls -R ./crates/native_binding
shell: bash
- name: Move artifacts
run: pnpm artifacts
if: ${{ matrix.settings.host == 'ubuntu-latest' }}
- name: build
run: pnpm build
if: ${{ matrix.settings.host == 'ubuntu-latest' }}
- name: test
run: pnpm test
if: ${{ matrix.settings.host == 'ubuntu-latest' }}
env:
CI: true
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

# 以下 coverage 流程通过 artifact 拆分文件作为单独 job 上传时间损耗过长,因此在在 node test 后直接继续执行
- name: Upload [taro-cli] coverage to Codecov
uses: codecov/codecov-action@v4
if: ${{ matrix.settings.host == 'ubuntu-latest' }}
if: ${{ matrix.host == 'ubuntu-latest' }}
with:
move_coverage_to_trash: true
flags: taro-cli
files: ./packages/taro-cli/coverage/clover.xml
token: ${{ secrets.CODECOV_TOKEN }}
- name: Upload runner coverage to Codecov
uses: codecov/codecov-action@v4
if: ${{ matrix.settings.host == 'ubuntu-latest' }}
if: ${{ matrix.host == 'ubuntu-latest' }}
with:
move_coverage_to_trash: true
flags: taro-runner
files: ./packages/taro-webpack5-runner/coverage/clover.xml,./packages/taro-webpack-runner/coverage/clover.xml,./packages/taro-mini-runner/coverage/clover.xml
files: ./packages/taro-webpack5-runner/coverage/clover.xml
token: ${{ secrets.CODECOV_TOKEN }}
- name: Upload [taro-runtime] coverage to Codecov
uses: codecov/codecov-action@v4
if: ${{ matrix.settings.host == 'ubuntu-latest' }}
if: ${{ matrix.host == 'ubuntu-latest' }}
with:
move_coverage_to_trash: true
flags: taro-runtime
files: ./packages/taro-runtime/coverage/clover.xml
token: ${{ secrets.CODECOV_TOKEN }}
- name: Upload [taro-web] coverage to Codecov
uses: codecov/codecov-action@v4
if: ${{ matrix.settings.host == 'ubuntu-latest' }}
if: ${{ matrix.host == 'ubuntu-latest' }}
with:
move_coverage_to_trash: true
flags: taro-web
files: ./packages/taro-components/coverage/clover.xml,./packages/taro-h5/coverage/clover.xml,./packages/taro-router/coverage/clover.xml
token: ${{ secrets.CODECOV_TOKEN }}
- name: Upload rest coverage to Codecov
uses: codecov/codecov-action@v4
if: ${{ matrix.settings.host == 'ubuntu-latest' }}
if: ${{ matrix.host == 'ubuntu-latest' }}
with:
token: ${{ secrets.CODECOV_TOKEN }}

Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ on:
- 'chore/**'
- 'feat/**'
- 'fix/**'
- '1.x'
- '2.x'
- '3.x'
- '4.x'
# When Release Pull Request is merged
pull_request:
branches:
Expand Down Expand Up @@ -84,11 +88,11 @@ jobs:
- name: Setup pnpm
uses: pnpm/action-setup@v3.0.0
with:
version: 7
- name: Setup Node 16
version: 8
- name: Setup Node 18
uses: actions/setup-node@v4
with:
node-version: 16
node-version: 18
cache: 'pnpm'
registry-url: 'https://registry.npmjs.org' # Don't touch!
- name: Git Identity
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/sync-components-types.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,16 @@ jobs:
- name: install
uses: pnpm/action-setup@v3.0.0
with:
version: 7
version: 8
run_install: |
- recursive: true
args: [--frozen-lockfile, --strict-peer-dependencies]
- args: [--filter @tarojs/components, -D, miniapp-types@latest]
# Note: 当前同步脚本使用 ts-node 与 node20 存在兼容问题,修复后解除版本限制
- name: Setup Node 16
- name: Setup Node 18
uses: actions/setup-node@v4
with:
node-version: 16
node-version: 18
cache: 'pnpm'
registry-url: 'https://registry.npmjs.org' # Don't touch!

Expand Down
Loading