@tarojs/taro 4.2.1-beta.1 → 4.2.1-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": "4.2.1-beta.1",
3
+ "version": "4.2.1-beta.3",
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/runtime": "4.2.1-beta.1",
28
- "@tarojs/api": "4.2.1-beta.1"
27
+ "@tarojs/api": "4.2.1-beta.3",
28
+ "@tarojs/runtime": "4.2.1-beta.3"
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.1-beta.1",
37
- "@tarojs/helper": "4.2.1-beta.1",
38
- "@tarojs/shared": "4.2.1-beta.1"
36
+ "@tarojs/components": "4.2.1-beta.3",
37
+ "@tarojs/helper": "4.2.1-beta.3",
38
+ "@tarojs/shared": "4.2.1-beta.3"
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/components": "4.2.1-beta.1",
50
- "@tarojs/shared": "4.2.1-beta.1",
51
- "@tarojs/helper": "4.2.1-beta.1"
49
+ "@tarojs/components": "4.2.1-beta.3",
50
+ "@tarojs/helper": "4.2.1-beta.3",
51
+ "@tarojs/shared": "4.2.1-beta.3"
52
52
  },
53
53
  "peerDependenciesMeta": {
54
54
  "@types/react": {
@@ -11,11 +11,6 @@ declare module '../../index' {
11
11
  interface Option {
12
12
  /** 剪贴板的内容 */
13
13
  data: string
14
- /** 其他配置项 */
15
- options?: {
16
- /** 隐藏默认的 “内容已复制” message */
17
- hideDefaultMessage: boolean
18
- }
19
14
  /** 接口调用结束的回调函数(调用成功、失败都会执行) */
20
15
  complete?: (res: TaroGeneral.CallbackResult) => void
21
16
  /** 接口调用失败的回调函数 */
@@ -15,21 +15,6 @@ declare module '../../index' {
15
15
  formData?: TaroGeneral.IAnyObject
16
16
  /** 超时时间,单位为毫秒 */
17
17
  timeout?: number
18
- /** 是否开启 profile。开启后可在接口回调的 res.profile 中查看性能调试信息
19
- * @default true
20
- * @supported weapp
21
- */
22
- enableProfile?: boolean
23
- /** 是否开启 http2
24
- * @default false
25
- * @supported weapp
26
- */
27
- enableHttp2?: boolean
28
- /** 是否开启 Quic/h3 协议
29
- * @default false
30
- * @supported weapp
31
- */
32
- enableQuic?: boolean
33
18
  /** 上传的文件名
34
19
  * @supported h5
35
20
  */
@@ -67,11 +52,6 @@ declare module '../../index' {
67
52
  * @weapp 非官方文档标注属性
68
53
  */
69
54
  cookies?: string[]
70
- /** 网络请求过程中一些调试信息
71
- * @supported weapp
72
- * @see https://developers.weixin.qq.com/miniprogram/dev/framework/performance/network.html
73
- */
74
- profile?: TaroGeneral.IAnyObject
75
55
  }
76
56
  }
77
57
 
@@ -106,19 +106,6 @@ declare module '../../index' {
106
106
  }
107
107
  }
108
108
 
109
- namespace batchSetStorageSync {
110
- interface Option {
111
- /** [{ key, value }] */
112
- kvList: kv[]
113
- }
114
- interface kv {
115
- /** key 本地缓存中指定的 key */
116
- key: string
117
- /** data 需要存储的内容。只支持原生类型、Date、及能够通过JSON.stringify序列化的对象。*/
118
- value: any
119
- }
120
- }
121
-
122
109
  namespace batchSetStorage {
123
110
  interface Option {
124
111
  /** [{ key, value }] */
@@ -348,7 +335,12 @@ declare module '../../index' {
348
335
  * ```
349
336
  * @see https://developers.weixin.qq.com/miniprogram/dev/api/storage/wx.batchGetStorageSync.html
350
337
  */
351
- batchSetStorageSync(option: batchSetStorageSync.Option): void
338
+ batchSetStorageSync(option: {
339
+ /** key 本地缓存中指定的 key */
340
+ key: string
341
+ /** data 需要存储的内容。只支持原生类型、Date、及能够通过JSON.stringify序列化的对象。*/
342
+ value: any
343
+ }[]): void
352
344
 
353
345
  /** 将数据批量存储在本地缓存中指定的 key 中。会覆盖掉原来该 key 对应的内容。
354
346
  * 除非用户主动删除或因存储空间原因被系统清理,否则数据都一直可用。
@@ -6,7 +6,6 @@ export interface IComponentConfig {
6
6
  exclude: Set<string>
7
7
  thirdPartyComponents: Map<Tagname, Attrs>
8
8
  includeAll: boolean
9
- scopedIncludes: Map<string, Set<string>>
10
9
  }
11
10
 
12
11
  export interface IModifyChainData {
@@ -246,12 +246,6 @@ declare module './index' {
246
246
  * shared 表示页面 wxss 样式将影响到自定义组件,自定义组件 wxss 中指定的样式也会影响页面和其他设置了 apply-shared 或 shared 的自定义组件。(这个选项在插件中不可用。)
247
247
  */
248
248
  styleIsolation?: 'isolated' | 'apply-shared' | 'shared'
249
- /**
250
- * 构建期是否为递归壳 comp 开启额外实例绑定;同一编译 root 内任一页为 true 则该 root 的 comp 生效。
251
- * 不会写入小程序页面 json。
252
- * @default false
253
- */
254
- forceCustomWrapper?: boolean
255
249
  /**
256
250
  * 设置导航栏额外图标,目前支持设置属性 icon,值为图标 url(以 https/http 开头)或 base64 字符串,大小建议 30*30 px
257
251
  *
@@ -337,27 +331,6 @@ declare module './index' {
337
331
  plugins?: Plugins
338
332
  }
339
333
 
340
- /** 子分包独立模板 root 配置项,可以是路径字符串或包含额外选项的对象 */
341
- type SubPackageIndieRootConfig = string | {
342
- /** 分包根路径(相对于 sourceDir) */
343
- path: string
344
- /**
345
- * 是否禁用递归组件(comp/custom-wrapper/recursive-component)的生成。
346
- * 设为 true 时,该 root 下不会生成 comp.*、custom-wrapper.*、recursive-component.js,
347
- * base.wxml 最后一层的 container template 也不会引用 <comp>,超出 baseLevel 的节点将被静默截断。
348
- * @default false
349
- */
350
- disableRecursiveComponent?: boolean
351
- }
352
-
353
- /** 子分包独立模板配置项 */
354
- interface SubPackageIndieConfig {
355
- /** 主入口分包根路径(相对于 sourceDir),runtime chunks 将生成到此目录 */
356
- mainPackageRoot: SubPackageIndieRootConfig
357
- /** 子组件分包根路径列表,只生成独立的模板文件 */
358
- subPackageRoots?: SubPackageIndieRootConfig[]
359
- }
360
-
361
334
  interface Plugins {
362
335
  [key: string]: {
363
336
  version: string
@@ -497,23 +470,6 @@ declare module './index' {
497
470
  */
498
471
  subPackages?: SubPackage[]
499
472
  subpackages?: SubPackage[]
500
- /** 子分包独立模板配置(用于 newBlended 模式),支持多入口配置
501
- * @example
502
- * ```js
503
- * subPackageIndie: [
504
- * {
505
- * mainPackageRoot: 'pages/order/index',
506
- * subPackageRoots: ['pages/order/list', 'pages/order/detail']
507
- * },
508
- * {
509
- * mainPackageRoot: 'pages/user/index',
510
- * subPackageRoots: ['pages/user/profile']
511
- * }
512
- * ]
513
- * ```
514
- * @since 4.1.x
515
- */
516
- subPackageIndie?: SubPackageIndieConfig[]
517
473
  /** Worker 代码放置的目录
518
474
  * 使用 Worker 处理多线程任务时,设置 Worker 代码放置的目录
519
475
  * @since 1.9.90