@vue/compiler-sfc 3.5.7 → 3.5.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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/compiler-sfc v3.5.7
2
+ * @vue/compiler-sfc v3.5.9
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -1749,18 +1749,12 @@ function extractIdentifiers(ids, node) {
1749
1749
 
1750
1750
  const DEFAULT_FILENAME = "anonymous.vue";
1751
1751
  const parseCache$1 = createCache();
1752
- function genCacheKey(source, options) {
1753
- var _a;
1754
- return source + JSON.stringify(
1755
- {
1756
- ...options,
1757
- compiler: { parse: (_a = options.compiler) == null ? void 0 : _a.parse }
1758
- },
1759
- (_, val) => typeof val === "function" ? val.toString() : val
1760
- );
1761
- }
1762
1752
  function parse$2(source, options = {}) {
1763
- const sourceKey = genCacheKey(source, options);
1753
+ var _a;
1754
+ const sourceKey = shared.genCacheKey(source, {
1755
+ ...options,
1756
+ compiler: { parse: (_a = options.compiler) == null ? void 0 : _a.parse }
1757
+ });
1764
1758
  const cache = parseCache$1.get(sourceKey);
1765
1759
  if (cache) {
1766
1760
  return cache;
@@ -20906,7 +20900,7 @@ function isStaticNode(node) {
20906
20900
  return false;
20907
20901
  }
20908
20902
 
20909
- const version = "3.5.7";
20903
+ const version = "3.5.9";
20910
20904
  const parseCache = parseCache$1;
20911
20905
  const errorMessages = {
20912
20906
  ...CompilerDOM.errorMessages,
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/compiler-sfc v3.5.7
2
+ * @vue/compiler-sfc v3.5.9
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -67,6 +67,12 @@ const identRE = /^[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*$/;
67
67
  function genPropsAccessExp(name) {
68
68
  return identRE.test(name) ? `__props.${name}` : `__props[${JSON.stringify(name)}]`;
69
69
  }
70
+ function genCacheKey(source, options) {
71
+ return source + JSON.stringify(
72
+ options,
73
+ (_, val) => typeof val === "function" ? val.toString() : val
74
+ );
75
+ }
70
76
 
71
77
  const PatchFlagNames = {
72
78
  [1]: `TEXT`,
@@ -25919,17 +25925,11 @@ var __spreadValues$a = (a, b) => {
25919
25925
  var __spreadProps$9 = (a, b) => __defProps$9(a, __getOwnPropDescs$9(b));
25920
25926
  const DEFAULT_FILENAME = "anonymous.vue";
25921
25927
  const parseCache$1 = createCache();
25922
- function genCacheKey(source, options) {
25923
- var _a;
25924
- return source + JSON.stringify(
25925
- __spreadProps$9(__spreadValues$a({}, options), {
25926
- compiler: { parse: (_a = options.compiler) == null ? void 0 : _a.parse }
25927
- }),
25928
- (_, val) => typeof val === "function" ? val.toString() : val
25929
- );
25930
- }
25931
25928
  function parse$7(source, options = {}) {
25932
- const sourceKey = genCacheKey(source, options);
25929
+ var _a;
25930
+ const sourceKey = genCacheKey(source, __spreadProps$9(__spreadValues$a({}, options), {
25931
+ compiler: { parse: (_a = options.compiler) == null ? void 0 : _a.parse }
25932
+ }));
25933
25933
  const cache = parseCache$1.get(sourceKey);
25934
25934
  if (cache) {
25935
25935
  return cache;
@@ -51892,7 +51892,7 @@ var __spreadValues = (a, b) => {
51892
51892
  }
51893
51893
  return a;
51894
51894
  };
51895
- const version = "3.5.7";
51895
+ const version = "3.5.9";
51896
51896
  const parseCache = parseCache$1;
51897
51897
  const errorMessages = __spreadValues(__spreadValues({}, errorMessages$1), DOMErrorMessages);
51898
51898
  const walk = walk$2;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vue/compiler-sfc",
3
- "version": "3.5.7",
3
+ "version": "3.5.9",
4
4
  "description": "@vue/compiler-sfc",
5
5
  "main": "dist/compiler-sfc.cjs.js",
6
6
  "module": "dist/compiler-sfc.esm-browser.js",
@@ -47,10 +47,10 @@
47
47
  "magic-string": "^0.30.11",
48
48
  "postcss": "^8.4.47",
49
49
  "source-map-js": "^1.2.0",
50
- "@vue/compiler-core": "3.5.7",
51
- "@vue/compiler-dom": "3.5.7",
52
- "@vue/shared": "3.5.7",
53
- "@vue/compiler-ssr": "3.5.7"
50
+ "@vue/compiler-core": "3.5.9",
51
+ "@vue/compiler-ssr": "3.5.9",
52
+ "@vue/compiler-dom": "3.5.9",
53
+ "@vue/shared": "3.5.9"
54
54
  },
55
55
  "devDependencies": {
56
56
  "@babel/types": "^7.25.2",