@tarojs/taro 3.6.0-beta.1 → 3.6.0-beta.3

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": "3.6.0-beta.1",
3
+ "version": "3.6.0-beta.3",
4
4
  "description": "Taro framework",
5
5
  "homepage": "https://github.com/nervjs/taro/tree/master/packages/taro#readme",
6
6
  "main": "index.js",
@@ -21,8 +21,8 @@
21
21
  "author": "O2Team",
22
22
  "license": "MIT",
23
23
  "dependencies": {
24
- "@tarojs/api": "3.6.0-beta.1",
25
- "@tarojs/runtime": "3.6.0-beta.1"
24
+ "@tarojs/api": "3.6.0-beta.3",
25
+ "@tarojs/runtime": "3.6.0-beta.3"
26
26
  },
27
27
  "peerDependenciesMeta": {
28
28
  "@types/react": {
@@ -8,8 +8,12 @@ declare module '../../index' {
8
8
  */
9
9
  env: {
10
10
  [key: string]: string | undefined
11
+ /** 框架 */
12
+ FRAMEWORK: 'react' | 'preact' | 'nerv' | 'vue' | 'vue3'
13
+ /** Taro 环境变量 */
14
+ TARO_ENV: 'weapp' | 'h5' | 'rn' | 'swan' | 'alipay' | 'tt' | 'qq' | 'jd' | 'quickapp'
11
15
  /** 文件系统中的用户目录路径 (本地路径) */
12
- USER_DATA_PATH: string
16
+ USER_DATA_PATH?: string
13
17
  }
14
18
  }
15
19
  }
@@ -355,6 +355,8 @@ declare module '../../index' {
355
355
  interface Result {
356
356
  /** 应用二进制接口类型(仅 Android 支持) */
357
357
  abi?: string
358
+ /** 设备二进制接口类型(仅 Android 支持) */
359
+ deviceAbi: string
358
360
  /** 设备性能等级(仅Android小游戏)。取值为:-2 或 0(该设备无法运行小游戏),-1(性能未知),>=1(设备性能值,该值越高,设备性能越好,目前最高不到50) */
359
361
  benchmarkLevel: number
360
362
  /** 设备品牌 */
@@ -365,6 +367,8 @@ declare module '../../index' {
365
367
  system: string
366
368
  /** 客户端平台 */
367
369
  platform: string
370
+ /** 设备 CPU 型号(仅 Android 支持) */
371
+ CPUType: string
368
372
  }
369
373
  }
370
374
 
@@ -87,7 +87,7 @@ declare module '../../index' {
87
87
  }
88
88
 
89
89
  type DownloadTaskPromise = Promise<downloadFile.FileSuccessCallbackResult> & DownloadTask & {
90
- headersReceive: DownloadTask['onHeadersReceived'],
90
+ headersReceive: DownloadTask['onHeadersReceived']
91
91
  progress: DownloadTask['onProgressUpdate']
92
92
  }
93
93
  }
@@ -86,7 +86,7 @@ declare module '../../index' {
86
86
  }
87
87
 
88
88
  type UploadTaskPromise = Promise<uploadFile.SuccessCallbackResult> & UploadTask & {
89
- headersReceive: UploadTask['onHeadersReceived'],
89
+ headersReceive: UploadTask['onHeadersReceived']
90
90
  progress: UploadTask['onProgressUpdate']
91
91
  }
92
92
  }
@@ -43,4 +43,9 @@ export interface IH5Config {
43
43
 
44
44
  postcss?: IPostcssOption
45
45
  htmlPluginOption?: HtmlWebpackPlugin.Options
46
+
47
+ compile?: {
48
+ exclude?: any[]
49
+ include?: any[]
50
+ }
46
51
  }
@@ -24,9 +24,9 @@ export interface IProjectBaseConfig {
24
24
  port?: number
25
25
  projectName?: string
26
26
  date?: string
27
- designWidth?: number
28
- watcher?: any[]
27
+ designWidth?: number | ((size: number) => number)
29
28
  deviceRatio?: TaroGeneral.TDeviceRatio
29
+ watcher?: any[]
30
30
  sourceRoot?: string
31
31
  outputRoot?: string
32
32
  env?: IOption
package/types/index.d.ts CHANGED
@@ -127,6 +127,12 @@
127
127
  /// <reference path="taro.hooks.d.ts" />
128
128
  /// <reference path="taro.lifecycle.d.ts" />
129
129
 
130
+ /// <reference types="@tarojs/plugin-platform-alipay/types/shims-alipay" />
131
+ /// <reference types="@tarojs/plugin-platform-jd/types/shims-jd" />
132
+ /// <reference types="@tarojs/plugin-platform-swan/types/shims-swan" />
133
+ /// <reference types="@tarojs/plugin-platform-tt/types/shims-tt" />
134
+ /// <reference types="@tarojs/plugin-platform-weapp/types/shims-weapp" />
135
+
130
136
  export = Taro
131
137
  export as namespace Taro
132
138