@tarojs/runtime 3.5.7-alpha.7 → 3.5.7-alpha.9

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.
@@ -0,0 +1,12 @@
1
+ /**
2
+ * 一个小型缓存池,用于在切换页面时,存储一些上下文信息
3
+ */
4
+ export declare class RuntimeCache<T> {
5
+ name: string;
6
+ cache: Map<string, T>;
7
+ constructor(name: string);
8
+ has(identifier: string): boolean;
9
+ set(identifier: string, ctx: T): void;
10
+ get(identifier: string): T | undefined;
11
+ delete(identifier: string): void;
12
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tarojs/runtime",
3
- "version": "3.5.7-alpha.7",
3
+ "version": "3.5.7-alpha.9",
4
4
  "description": "taro runtime for mini apps.",
5
5
  "main": "dist/runtime.esm.js",
6
6
  "module": "dist/runtime.esm.js",
@@ -18,9 +18,12 @@
18
18
  "access": "public"
19
19
  },
20
20
  "dependencies": {
21
- "@tarojs/shared": "3.5.7-alpha.7",
21
+ "@tarojs/shared": "3.5.7-alpha.9",
22
22
  "lodash-es": "4.17.21"
23
23
  },
24
+ "devDependencies": {
25
+ "tslib": "^2.4.0"
26
+ },
24
27
  "scripts": {
25
28
  "build": "rimraf ./dist && tsc -emitDeclarationOnly && rollup -c",
26
29
  "dev": "rollup -c -w",