@tarojs/taro 3.6.2-canary.0 → 3.6.2-canary.2

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.2-canary.0",
3
+ "version": "3.6.2-canary.2",
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.2-canary.0",
25
- "@tarojs/runtime": "3.6.2-canary.0"
24
+ "@tarojs/api": "3.6.2-canary.2",
25
+ "@tarojs/runtime": "3.6.2-canary.2"
26
26
  },
27
27
  "peerDependenciesMeta": {
28
28
  "@types/react": {
@@ -4,7 +4,7 @@ declare module '../../index' {
4
4
  namespace openEmbeddedMiniProgram {
5
5
  interface Option {
6
6
  /** 要打开的小程序 appId */
7
- appId: string
7
+ appId?: string
8
8
  /** 打开的页面路径,如果为空则打开首页。path 中 ? 后面的部分会成为 query,在小程序的 `App.onLaunch`、`App.onShow` 和 `Page.onLoad` 的回调函数或小游戏的 [Taro.onShow](#) 回调函数、[Taro.getLaunchOptionsSync](/docs/apis/base/weapp/life-cycle/getLaunchOptionsSync) 中可以获取到 query 数据。对于小游戏,可以只传入 query 部分,来实现传参效果,如:传入 "?foo=bar"。 */
9
9
  path?: string
10
10
  /** 需要传递给目标小程序的数据,目标小程序可在 `App.onLaunch`,`App.onShow` 中获取到这份数据。如果跳转的是小游戏,可以在 [Taro.onShow](#)、[Taro.getLaunchOptionsSync](/docs/apis/base/weapp/life-cycle/getLaunchOptionsSync) 中可以获取到这份数据数据。 */
@@ -45,7 +45,7 @@ declare module '../../index' {
45
45
  namespace navigateToMiniProgram {
46
46
  interface Option {
47
47
  /** 要打开的小程序 appId */
48
- appId: string
48
+ appId?: string
49
49
  /** 打开的页面路径,如果为空则打开首页。path 中 ? 后面的部分会成为 query,在小程序的 `App.onLaunch`、`App.onShow` 和 `Page.onLoad` 的回调函数或小游戏的 [Taro.onShow](#) 回调函数、[Taro.getLaunchOptionsSync](/docs/apis/base/weapp/life-cycle/getLaunchOptionsSync) 中可以获取到 query 数据。对于小游戏,可以只传入 query 部分,来实现传参效果,如:传入 "?foo=bar"。 */
50
50
  path?: string
51
51
  /** 需要传递给目标小程序的数据,目标小程序可在 `App.onLaunch`,`App.onShow` 中获取到这份数据。如果跳转的是小游戏,可以在 [Taro.onShow](#)、[Taro.getLaunchOptionsSync](/docs/apis/base/weapp/life-cycle/getLaunchOptionsSync) 中可以获取到这份数据数据。 */
@@ -150,6 +150,8 @@ declare module '../../index' {
150
150
  POST
151
151
  /** HTTP 请求 PUT */
152
152
  PUT
153
+ /** HTTP 请求 PATCH */
154
+ PATCH
153
155
  /** HTTP 请求 DELETE */
154
156
  DELETE
155
157
  /** HTTP 请求 TRACE */
@@ -19,7 +19,7 @@ interface IPrebundle {
19
19
 
20
20
  interface ICompiler {
21
21
  type: CompilerTypes
22
- prebundle: IPrebundle
22
+ prebundle?: IPrebundle
23
23
  }
24
24
 
25
25
  export type Compiler = CompilerTypes | ICompiler
package/types/global.d.ts CHANGED
@@ -410,13 +410,15 @@ declare namespace TaroGeneral {
410
410
  // ENV_TYPE
411
411
  enum ENV_TYPE {
412
412
  WEAPP = 'WEAPP',
413
- WEB = 'WEB',
414
- RN = 'RN',
415
413
  SWAN = 'SWAN',
416
414
  ALIPAY = 'ALIPAY',
417
415
  TT = 'TT',
418
416
  QQ = 'QQ',
419
- JD = 'JD'
417
+ JD = 'JD',
418
+ WEB = 'WEB',
419
+ RN = 'RN',
420
+ HARMONY = 'HARMONY',
421
+ QUICKAPP = 'QUICKAPP'
420
422
  }
421
423
 
422
424
  type TDeviceRatio = Record<string, number>