@vue/compiler-sfc 3.4.0-alpha.2 → 3.4.0-alpha.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/dist/compiler-sfc.cjs.js
CHANGED
|
@@ -1040,6 +1040,37 @@ class LRUCache {
|
|
|
1040
1040
|
}
|
|
1041
1041
|
return deleted;
|
|
1042
1042
|
}
|
|
1043
|
+
/**
|
|
1044
|
+
* Get the extended info about a given entry, to get its value, size, and
|
|
1045
|
+
* TTL info simultaneously. Like {@link LRUCache#dump}, but just for a
|
|
1046
|
+
* single key. Always returns stale values, if their info is found in the
|
|
1047
|
+
* cache, so be sure to check for expired TTLs if relevant.
|
|
1048
|
+
*/
|
|
1049
|
+
info(key) {
|
|
1050
|
+
const i = this.#keyMap.get(key);
|
|
1051
|
+
if (i === undefined)
|
|
1052
|
+
return undefined;
|
|
1053
|
+
const v = this.#valList[i];
|
|
1054
|
+
const value = this.#isBackgroundFetch(v)
|
|
1055
|
+
? v.__staleWhileFetching
|
|
1056
|
+
: v;
|
|
1057
|
+
if (value === undefined)
|
|
1058
|
+
return undefined;
|
|
1059
|
+
const entry = { value };
|
|
1060
|
+
if (this.#ttls && this.#starts) {
|
|
1061
|
+
const ttl = this.#ttls[i];
|
|
1062
|
+
const start = this.#starts[i];
|
|
1063
|
+
if (ttl && start) {
|
|
1064
|
+
const remain = ttl - (perf.now() - start);
|
|
1065
|
+
entry.ttl = remain;
|
|
1066
|
+
entry.start = Date.now();
|
|
1067
|
+
}
|
|
1068
|
+
}
|
|
1069
|
+
if (this.#sizes) {
|
|
1070
|
+
entry.size = this.#sizes[i];
|
|
1071
|
+
}
|
|
1072
|
+
return entry;
|
|
1073
|
+
}
|
|
1043
1074
|
/**
|
|
1044
1075
|
* Return an array of [key, {@link LRUCache.Entry}] tuples which can be
|
|
1045
1076
|
* passed to cache.load()
|
|
@@ -20419,7 +20450,7 @@ function isStaticNode(node) {
|
|
|
20419
20450
|
return false;
|
|
20420
20451
|
}
|
|
20421
20452
|
|
|
20422
|
-
const version = "3.4.0-alpha.
|
|
20453
|
+
const version = "3.4.0-alpha.3";
|
|
20423
20454
|
const parseCache = parseCache$1;
|
|
20424
20455
|
const walk = estreeWalker.walk;
|
|
20425
20456
|
const shouldTransformRef = () => false;
|
|
@@ -17065,6 +17065,8 @@ const tokenizer$2 = new Tokenizer$1(stack, {
|
|
|
17065
17065
|
}
|
|
17066
17066
|
},
|
|
17067
17067
|
ondirarg(start, end) {
|
|
17068
|
+
if (start === end)
|
|
17069
|
+
return;
|
|
17068
17070
|
const arg = getSlice(start, end);
|
|
17069
17071
|
if (inVPre) {
|
|
17070
17072
|
currentProp.name += arg;
|
|
@@ -48131,7 +48133,7 @@ function isStaticNode(node) {
|
|
|
48131
48133
|
return false;
|
|
48132
48134
|
}
|
|
48133
48135
|
|
|
48134
|
-
const version = "3.4.0-alpha.
|
|
48136
|
+
const version = "3.4.0-alpha.3";
|
|
48135
48137
|
const parseCache = parseCache$1;
|
|
48136
48138
|
const walk = walk$1;
|
|
48137
48139
|
const shouldTransformRef = () => false;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vue/compiler-sfc",
|
|
3
|
-
"version": "3.4.0-alpha.
|
|
3
|
+
"version": "3.4.0-alpha.3",
|
|
4
4
|
"description": "@vue/compiler-sfc",
|
|
5
5
|
"main": "dist/compiler-sfc.cjs.js",
|
|
6
6
|
"module": "dist/compiler-sfc.esm-browser.js",
|
|
@@ -32,21 +32,21 @@
|
|
|
32
32
|
},
|
|
33
33
|
"homepage": "https://github.com/vuejs/core/tree/main/packages/compiler-sfc#readme",
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@babel/parser": "^7.23.
|
|
35
|
+
"@babel/parser": "^7.23.4",
|
|
36
36
|
"estree-walker": "^2.0.2",
|
|
37
37
|
"magic-string": "^0.30.5",
|
|
38
38
|
"postcss": "^8.4.31",
|
|
39
39
|
"source-map-js": "^1.0.2",
|
|
40
|
-
"@vue/compiler-core": "3.4.0-alpha.
|
|
41
|
-
"@vue/
|
|
42
|
-
"@vue/
|
|
43
|
-
"@vue/compiler-
|
|
40
|
+
"@vue/compiler-core": "3.4.0-alpha.3",
|
|
41
|
+
"@vue/shared": "3.4.0-alpha.3",
|
|
42
|
+
"@vue/compiler-dom": "3.4.0-alpha.3",
|
|
43
|
+
"@vue/compiler-ssr": "3.4.0-alpha.3"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@babel/types": "^7.23.
|
|
46
|
+
"@babel/types": "^7.23.4",
|
|
47
47
|
"@vue/consolidate": "^0.17.3",
|
|
48
48
|
"hash-sum": "^2.0.0",
|
|
49
|
-
"lru-cache": "^10.0
|
|
49
|
+
"lru-cache": "^10.1.0",
|
|
50
50
|
"merge-source-map": "^1.1.0",
|
|
51
51
|
"minimatch": "^9.0.3",
|
|
52
52
|
"postcss-modules": "^4.3.1",
|