@tarojs/taro 3.5.0-beta.1 → 3.5.0-beta.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.5.0-beta.1",
3
+ "version": "3.5.0-beta.2",
4
4
  "description": "Taro framework",
5
5
  "homepage": "https://github.com/nervjs/taro/tree/master/packages/taro#readme",
6
6
  "main": "index.js",
@@ -24,8 +24,8 @@
24
24
  "author": "O2Team",
25
25
  "license": "MIT",
26
26
  "dependencies": {
27
- "@tarojs/api": "3.5.0-beta.1",
28
- "@tarojs/runtime": "3.5.0-beta.1"
27
+ "@tarojs/api": "3.5.0-beta.2",
28
+ "@tarojs/runtime": "3.5.0-beta.2"
29
29
  },
30
30
  "peerDependenciesMeta": {
31
31
  "@types/react": {
@@ -41,5 +41,5 @@
41
41
  "optional": true
42
42
  }
43
43
  },
44
- "gitHead": "ba9d945ccebb86f06edb7f845110526d92dc7b00"
44
+ "gitHead": "c85adaa45959e6cafc15e6531f4735a7dfa2aab0"
45
45
  }
@@ -367,6 +367,10 @@ interface IPrebundle {
367
367
  force?: boolean
368
368
  include?: string[]
369
369
  exclude?: string[]
370
+ esbuild?: Record<string, any>
371
+ webpack?: {
372
+ provide?: any[]
373
+ }
370
374
  }
371
375
  interface ICompiler {
372
376
  type: CompilerTypes
@@ -52,6 +52,16 @@ declare module './index' {
52
52
  */
53
53
  useShareTimeline(callback: () => ShareTimelineReturnObject): void
54
54
 
55
+ /**
56
+ * 页面加载完成时的回调。
57
+ */
58
+ useLoad(callback: () => void): void
59
+
60
+ /**
61
+ * 页面卸载时的回调。
62
+ */
63
+ useUnload(callback: () => void): void
64
+
55
65
  /**
56
66
  * 页面初次渲染完成的回调。
57
67
  * 此时页面已经准备妥当,可以和视图层进行交互。