@tarojs/taro 4.1.8-beta.2 → 4.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tarojs/taro",
|
|
3
|
-
"version": "4.1.8
|
|
3
|
+
"version": "4.1.8",
|
|
4
4
|
"description": "Taro framework",
|
|
5
5
|
"author": "O2Team",
|
|
6
6
|
"license": "MIT",
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@types/postcss-url": "^10.0.4",
|
|
27
|
-
"@tarojs/api": "4.1.8
|
|
28
|
-
"@tarojs/runtime": "4.1.8
|
|
27
|
+
"@tarojs/api": "4.1.8",
|
|
28
|
+
"@tarojs/runtime": "4.1.8"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"html-webpack-plugin": "^5.6.0",
|
|
@@ -34,9 +34,9 @@
|
|
|
34
34
|
"webpack-chain": "^6.5.1",
|
|
35
35
|
"webpack-dev-server": "^4.15.2",
|
|
36
36
|
"rollup": "^3.29.4",
|
|
37
|
-
"@tarojs/components": "4.1.8
|
|
38
|
-
"@tarojs/
|
|
39
|
-
"@tarojs/
|
|
37
|
+
"@tarojs/components": "4.1.8",
|
|
38
|
+
"@tarojs/helper": "4.1.8",
|
|
39
|
+
"@tarojs/shared": "4.1.8"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
42
|
"@types/react": "^18",
|
|
@@ -47,9 +47,9 @@
|
|
|
47
47
|
"webpack": "^5",
|
|
48
48
|
"webpack-chain": "^6",
|
|
49
49
|
"webpack-dev-server": "^4",
|
|
50
|
-
"@tarojs/
|
|
51
|
-
"@tarojs/
|
|
52
|
-
"@tarojs/
|
|
50
|
+
"@tarojs/helper": "4.1.8",
|
|
51
|
+
"@tarojs/shared": "4.1.8",
|
|
52
|
+
"@tarojs/components": "4.1.8"
|
|
53
53
|
},
|
|
54
54
|
"peerDependenciesMeta": {
|
|
55
55
|
"@types/react": {
|
|
@@ -132,6 +132,18 @@ declare module '../../index' {
|
|
|
132
132
|
deviceOrientation?: keyof DeviceOrientation
|
|
133
133
|
/** 小程序当前运行环境 */
|
|
134
134
|
environment?: string
|
|
135
|
+
/**
|
|
136
|
+
* 仅支付宝小程序生效
|
|
137
|
+
* screenHeight、screenWidth在 Android 上取值有误,建议使用 screen字段内的属性替代。
|
|
138
|
+
* https://opendocs.alipay.com/mini/api/gawhvz?pathHash=270f3253
|
|
139
|
+
* 单位: px
|
|
140
|
+
* */
|
|
141
|
+
screen?: {
|
|
142
|
+
/** 屏幕宽度 */
|
|
143
|
+
width: number
|
|
144
|
+
/** 屏幕高度 */
|
|
145
|
+
height: number
|
|
146
|
+
}
|
|
135
147
|
}
|
|
136
148
|
/** 系统主题合法值 */
|
|
137
149
|
interface Theme {
|
|
@@ -231,6 +243,18 @@ declare module '../../index' {
|
|
|
231
243
|
deviceOrientation?: keyof DeviceOrientation
|
|
232
244
|
/** 小程序当前运行环境 */
|
|
233
245
|
environment?: string
|
|
246
|
+
/**
|
|
247
|
+
* 仅支付宝小程序生效
|
|
248
|
+
* screenHeight、screenWidth在 Android 上取值有误,建议使用 screen字段内的属性替代。
|
|
249
|
+
* https://opendocs.alipay.com/mini/api/gawhvz?pathHash=270f3253
|
|
250
|
+
* 单位: px
|
|
251
|
+
* */
|
|
252
|
+
screen?: {
|
|
253
|
+
/** 屏幕宽度 */
|
|
254
|
+
width: number
|
|
255
|
+
/** 屏幕高度 */
|
|
256
|
+
height: number
|
|
257
|
+
}
|
|
234
258
|
}
|
|
235
259
|
/** 系统主题合法值 */
|
|
236
260
|
interface Theme {
|
|
@@ -330,6 +354,18 @@ declare module '../../index' {
|
|
|
330
354
|
deviceOrientation?: keyof DeviceOrientation
|
|
331
355
|
/** 小程序当前运行环境 */
|
|
332
356
|
environment?: string
|
|
357
|
+
/**
|
|
358
|
+
* 仅支付宝小程序生效
|
|
359
|
+
* screenHeight、screenWidth在 Android 上取值有误,建议使用 screen字段内的属性替代。
|
|
360
|
+
* https://opendocs.alipay.com/mini/api/gawhvz?pathHash=270f3253
|
|
361
|
+
* 单位: px
|
|
362
|
+
* */
|
|
363
|
+
screen?: {
|
|
364
|
+
/** 屏幕宽度 */
|
|
365
|
+
width: number
|
|
366
|
+
/** 屏幕高度 */
|
|
367
|
+
height: number
|
|
368
|
+
}
|
|
333
369
|
}
|
|
334
370
|
/** 系统主题合法值 */
|
|
335
371
|
interface Theme {
|
|
@@ -25,6 +25,11 @@ declare module '../../index' {
|
|
|
25
25
|
dataType?: keyof DataType | string
|
|
26
26
|
/** 响应的数据类型 */
|
|
27
27
|
responseType?: keyof ResponseType
|
|
28
|
+
/**
|
|
29
|
+
* 使用高性能模式。从基础库 v3.5.0 开始在 Android 端默认开启,其他端暂不生效。该模式下有更优的网络性能表现。
|
|
30
|
+
* @default true
|
|
31
|
+
* */
|
|
32
|
+
useHighPerformanceMode?: boolean
|
|
28
33
|
/** 开启 http2
|
|
29
34
|
* @default false
|
|
30
35
|
* @supported weapp
|