@vue/compat 3.2.28 → 3.2.29

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.
@@ -875,7 +875,7 @@ const shallowSet = /*#__PURE__*/ createSetter(true);
875
875
  function createSetter(shallow = false) {
876
876
  return function set(target, key, value, receiver) {
877
877
  let oldValue = target[key];
878
- if (isReadonly(oldValue) && isRef(oldValue)) {
878
+ if (isReadonly(oldValue) && isRef(oldValue) && !isRef(value)) {
879
879
  return false;
880
880
  }
881
881
  if (!shallow && !isReadonly(value)) {
@@ -6093,7 +6093,7 @@ function createCompatVue(createApp, createSingletonApp) {
6093
6093
  return vm;
6094
6094
  }
6095
6095
  }
6096
- Vue.version = `2.6.14-compat:${"3.2.28"}`;
6096
+ Vue.version = `2.6.14-compat:${"3.2.29"}`;
6097
6097
  Vue.config = singletonApp.config;
6098
6098
  Vue.use = (p, ...options) => {
6099
6099
  if (p && isFunction(p.install)) {
@@ -11081,7 +11081,7 @@ function isMemoSame(cached, memo) {
11081
11081
  }
11082
11082
 
11083
11083
  // Core API ------------------------------------------------------------------
11084
- const version = "3.2.28";
11084
+ const version = "3.2.29";
11085
11085
  const _ssrUtils = {
11086
11086
  createComponentInstance,
11087
11087
  setupComponent,
@@ -11170,7 +11170,10 @@ const nodeOps = {
11170
11170
  insertStaticContent(content, parent, anchor, isSVG, start, end) {
11171
11171
  // <parent> before | first ... last | anchor </parent>
11172
11172
  const before = anchor ? anchor.previousSibling : parent.lastChild;
11173
- if (start && end) {
11173
+ // #5308 can only take cached path if:
11174
+ // - has a single root node
11175
+ // - nextSibling info is still available
11176
+ if (start && (start === end || start.nextSibling)) {
11174
11177
  // cached
11175
11178
  while (true) {
11176
11179
  parent.insertBefore(start.cloneNode(true), anchor);
@@ -869,7 +869,7 @@ var Vue = (function () {
869
869
  function createSetter(shallow = false) {
870
870
  return function set(target, key, value, receiver) {
871
871
  let oldValue = target[key];
872
- if (isReadonly(oldValue) && isRef(oldValue)) {
872
+ if (isReadonly(oldValue) && isRef(oldValue) && !isRef(value)) {
873
873
  return false;
874
874
  }
875
875
  if (!shallow && !isReadonly(value)) {
@@ -6039,7 +6039,7 @@ var Vue = (function () {
6039
6039
  return vm;
6040
6040
  }
6041
6041
  }
6042
- Vue.version = `2.6.14-compat:${"3.2.28"}`;
6042
+ Vue.version = `2.6.14-compat:${"3.2.29"}`;
6043
6043
  Vue.config = singletonApp.config;
6044
6044
  Vue.use = (p, ...options) => {
6045
6045
  if (p && isFunction(p.install)) {
@@ -10938,7 +10938,7 @@ var Vue = (function () {
10938
10938
  }
10939
10939
 
10940
10940
  // Core API ------------------------------------------------------------------
10941
- const version = "3.2.28";
10941
+ const version = "3.2.29";
10942
10942
  /**
10943
10943
  * SSR utils for \@vue/server-renderer. Only exposed in cjs builds.
10944
10944
  * @internal
@@ -11019,7 +11019,10 @@ var Vue = (function () {
11019
11019
  insertStaticContent(content, parent, anchor, isSVG, start, end) {
11020
11020
  // <parent> before | first ... last | anchor </parent>
11021
11021
  const before = anchor ? anchor.previousSibling : parent.lastChild;
11022
- if (start && end) {
11022
+ // #5308 can only take cached path if:
11023
+ // - has a single root node
11024
+ // - nextSibling info is still available
11025
+ if (start && (start === end || start.nextSibling)) {
11023
11026
  // cached
11024
11027
  while (true) {
11025
11028
  parent.insertBefore(start.cloneNode(true), anchor);