@vue/compiler-sfc 3.5.0-alpha.4 → 3.5.0-alpha.5

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.0-alpha.4
2
+ * @vue/compiler-sfc v3.5.0-alpha.5
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -4813,7 +4813,7 @@ types$1.UNIVERSAL = UNIVERSAL;
4813
4813
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
4814
4814
  function _interopRequireWildcard(obj, nodeInterop) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
4815
4815
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
4816
- function _createForOfIteratorHelperLoose(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (it) return (it = it.call(o)).next.bind(it); if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike ) { if (it) o = it; var i = 0; return function () { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
4816
+ function _createForOfIteratorHelperLoose(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (it) return (it = it.call(o)).next.bind(it); if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike) { if (it) o = it; var i = 0; return function () { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
4817
4817
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
4818
4818
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
4819
4819
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
@@ -20856,7 +20856,7 @@ function isStaticNode(node) {
20856
20856
  return false;
20857
20857
  }
20858
20858
 
20859
- const version = "3.5.0-alpha.4";
20859
+ const version = "3.5.0-alpha.5";
20860
20860
  const parseCache = parseCache$1;
20861
20861
  const errorMessages = {
20862
20862
  ...CompilerDOM.errorMessages,
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/compiler-sfc v3.5.0-alpha.4
2
+ * @vue/compiler-sfc v3.5.0-alpha.5
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -16769,7 +16769,7 @@ function isReferenced(node, parent, grandparent) {
16769
16769
  if (parent.key === node) {
16770
16770
  return !!parent.computed;
16771
16771
  }
16772
- return !grandparent ;
16772
+ return !grandparent;
16773
16773
  case "ClassProperty":
16774
16774
  if (parent.key === node) {
16775
16775
  return !!parent.computed;
@@ -34697,11 +34697,11 @@ function cleanSource(nodes) {
34697
34697
  })
34698
34698
  }
34699
34699
 
34700
- function markDirtyUp(node) {
34700
+ function markTreeDirty(node) {
34701
34701
  node[isClean$1] = false;
34702
34702
  if (node.proxyOf.nodes) {
34703
34703
  for (let i of node.proxyOf.nodes) {
34704
- markDirtyUp(i);
34704
+ markTreeDirty(i);
34705
34705
  }
34706
34706
  }
34707
34707
  }
@@ -34835,7 +34835,11 @@ let Container$7 = class Container extends Node$1 {
34835
34835
  insertBefore(exist, add) {
34836
34836
  let existIndex = this.index(exist);
34837
34837
  let type = existIndex === 0 ? 'prepend' : false;
34838
- let nodes = this.normalize(add, this.proxyOf.nodes[existIndex], type).reverse();
34838
+ let nodes = this.normalize(
34839
+ add,
34840
+ this.proxyOf.nodes[existIndex],
34841
+ type
34842
+ ).reverse();
34839
34843
  existIndex = this.index(exist);
34840
34844
  for (let node of nodes) this.proxyOf.nodes.splice(existIndex, 0, node);
34841
34845
 
@@ -34891,7 +34895,7 @@ let Container$7 = class Container extends Node$1 {
34891
34895
  if (!i[my$1]) Container.rebuild(i);
34892
34896
  i = i.proxyOf;
34893
34897
  if (i.parent) i.parent.removeChild(i);
34894
- if (i[isClean$1]) markDirtyUp(i);
34898
+ if (i[isClean$1]) markTreeDirty(i);
34895
34899
  if (typeof i.raws.before === 'undefined') {
34896
34900
  if (sample && typeof sample.raws.before !== 'undefined') {
34897
34901
  i.raws.before = sample.raws.before.replace(/\S/g, '');
@@ -36752,7 +36756,7 @@ let Root$2 = root$2;
36752
36756
 
36753
36757
  let Processor$1 = class Processor {
36754
36758
  constructor(plugins = []) {
36755
- this.version = '8.4.39';
36759
+ this.version = '8.4.40';
36756
36760
  this.plugins = this.normalize(plugins);
36757
36761
  }
36758
36762
 
@@ -37424,7 +37428,7 @@ types.UNIVERSAL = UNIVERSAL;
37424
37428
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
37425
37429
  function _interopRequireWildcard(obj, nodeInterop) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
37426
37430
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
37427
- function _createForOfIteratorHelperLoose(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (it) return (it = it.call(o)).next.bind(it); if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike ) { if (it) o = it; var i = 0; return function () { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
37431
+ function _createForOfIteratorHelperLoose(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (it) return (it = it.call(o)).next.bind(it); if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike) { if (it) o = it; var i = 0; return function () { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
37428
37432
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
37429
37433
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
37430
37434
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
@@ -48660,7 +48664,7 @@ var __spreadValues = (a, b) => {
48660
48664
  }
48661
48665
  return a;
48662
48666
  };
48663
- const version = "3.5.0-alpha.4";
48667
+ const version = "3.5.0-alpha.5";
48664
48668
  const parseCache = parseCache$1;
48665
48669
  const errorMessages = __spreadValues(__spreadValues({}, errorMessages$1), DOMErrorMessages);
48666
48670
  const walk = walk$2;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vue/compiler-sfc",
3
- "version": "3.5.0-alpha.4",
3
+ "version": "3.5.0-alpha.5",
4
4
  "description": "@vue/compiler-sfc",
5
5
  "main": "dist/compiler-sfc.cjs.js",
6
6
  "module": "dist/compiler-sfc.esm-browser.js",
@@ -45,12 +45,12 @@
45
45
  "@babel/parser": "^7.24.7",
46
46
  "estree-walker": "^2.0.2",
47
47
  "magic-string": "^0.30.10",
48
- "postcss": "^8.4.39",
48
+ "postcss": "^8.4.40",
49
49
  "source-map-js": "^1.2.0",
50
- "@vue/compiler-core": "3.5.0-alpha.4",
51
- "@vue/shared": "3.5.0-alpha.4",
52
- "@vue/compiler-ssr": "3.5.0-alpha.4",
53
- "@vue/compiler-dom": "3.5.0-alpha.4"
50
+ "@vue/compiler-dom": "3.5.0-alpha.5",
51
+ "@vue/shared": "3.5.0-alpha.5",
52
+ "@vue/compiler-core": "3.5.0-alpha.5",
53
+ "@vue/compiler-ssr": "3.5.0-alpha.5"
54
54
  },
55
55
  "devDependencies": {
56
56
  "@babel/types": "^7.24.7",
@@ -60,7 +60,7 @@
60
60
  "merge-source-map": "^1.1.0",
61
61
  "minimatch": "^9.0.5",
62
62
  "postcss-modules": "^6.0.0",
63
- "postcss-selector-parser": "^6.1.0",
63
+ "postcss-selector-parser": "^6.1.1",
64
64
  "pug": "^3.0.3",
65
65
  "sass": "^1.77.8"
66
66
  }