@tarojs/taro 4.2.3-beta.0 → 4.3.0

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.2.3-beta.0",
3
+ "version": "4.3.0",
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.2.3-beta.0",
28
- "@tarojs/runtime": "4.2.3-beta.0"
27
+ "@tarojs/api": "4.3.0",
28
+ "@tarojs/runtime": "4.3.0"
29
29
  },
30
30
  "devDependencies": {
31
31
  "html-webpack-plugin": "^5.6.0",
@@ -33,9 +33,9 @@
33
33
  "webpack-chain": "^6.5.1",
34
34
  "webpack-dev-server": "^4.15.2",
35
35
  "rollup": "^3.29.4",
36
- "@tarojs/components": "4.2.3-beta.0",
37
- "@tarojs/shared": "4.2.3-beta.0",
38
- "@tarojs/helper": "4.2.3-beta.0"
36
+ "@tarojs/components": "4.3.0",
37
+ "@tarojs/shared": "4.3.0",
38
+ "@tarojs/helper": "4.3.0"
39
39
  },
40
40
  "peerDependencies": {
41
41
  "@types/react": "^18",
@@ -46,9 +46,9 @@
46
46
  "webpack": "^5",
47
47
  "webpack-chain": "^6",
48
48
  "webpack-dev-server": "^4",
49
- "@tarojs/shared": "4.2.3-beta.0",
50
- "@tarojs/helper": "4.2.3-beta.0",
51
- "@tarojs/components": "4.2.3-beta.0"
49
+ "@tarojs/components": "4.3.0",
50
+ "@tarojs/helper": "4.3.0",
51
+ "@tarojs/shared": "4.3.0"
52
52
  },
53
53
  "peerDependenciesMeta": {
54
54
  "@types/react": {
@@ -2,7 +2,7 @@ import Taro from '../../index'
2
2
 
3
3
  declare module '../../index' {
4
4
  namespace request {
5
- interface Option<T = any, U extends string | TaroGeneral.IAnyObject | ArrayBuffer = any | any> {
5
+ interface Option<T = any, U = any> {
6
6
  /** 开发者服务器接口地址 */
7
7
  url: string
8
8
  /** 请求的参数 */
@@ -150,8 +150,7 @@ declare module '../../index' {
150
150
  storeCheck?(): boolean
151
151
  }
152
152
 
153
- interface SuccessCallbackResult<T extends string | TaroGeneral.IAnyObject | ArrayBuffer = any | any>
154
- extends TaroGeneral.CallbackResult {
153
+ interface SuccessCallbackResult<T = any> extends TaroGeneral.CallbackResult {
155
154
  /** 开发者服务器返回的数据 */
156
155
  data: T
157
156
  /** 开发者服务器返回的 HTTP Response Header */
@@ -379,6 +378,11 @@ declare module '../../index' {
379
378
  }
380
379
  }
381
380
 
381
+ /** @ignore */
382
+ interface RequestParams<T = any> extends request.Option<T, any> {
383
+ [propName: string]: any
384
+ }
385
+
382
386
  /** @ignore */
383
387
  type interceptor = (chain: Chain) => any
384
388
 
@@ -31,7 +31,7 @@ declare module '../../index' {
31
31
  */
32
32
  enableQuic?: boolean
33
33
  /** 上传的文件名
34
- * @supported h5
34
+ * @supported h5, rn
35
35
  */
36
36
  fileName?: string
37
37
  /** 是否应使用传出凭据 (cookie) 发送此请求
@@ -517,7 +517,7 @@ declare module './index' {
517
517
  */
518
518
  subPackages?: SubPackage[]
519
519
  subpackages?: SubPackage[]
520
- /** 子分包独立模板配置(用于 newBlended 模式),支持多入口配置
520
+ /** 微信小程序子分包独立模板配置(用于 newBlended 模式),支持多入口配置;其他平台会忽略该配置
521
521
  * @example
522
522
  * ```js
523
523
  * subPackageIndie: [