@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.
package/dist/vue.cjs.js CHANGED
@@ -1003,7 +1003,7 @@ const shallowSet = /*#__PURE__*/ createSetter(true);
1003
1003
  function createSetter(shallow = false) {
1004
1004
  return function set(target, key, value, receiver) {
1005
1005
  let oldValue = target[key];
1006
- if (isReadonly(oldValue) && isRef(oldValue)) {
1006
+ if (isReadonly(oldValue) && isRef(oldValue) && !isRef(value)) {
1007
1007
  return false;
1008
1008
  }
1009
1009
  if (!shallow && !isReadonly(value)) {
@@ -6190,7 +6190,7 @@ function createCompatVue(createApp, createSingletonApp) {
6190
6190
  return vm;
6191
6191
  }
6192
6192
  }
6193
- Vue.version = `2.6.14-compat:${"3.2.28"}`;
6193
+ Vue.version = `2.6.14-compat:${"3.2.29"}`;
6194
6194
  Vue.config = singletonApp.config;
6195
6195
  Vue.use = (p, ...options) => {
6196
6196
  if (p && isFunction(p.install)) {
@@ -11098,7 +11098,7 @@ function isMemoSame(cached, memo) {
11098
11098
  }
11099
11099
 
11100
11100
  // Core API ------------------------------------------------------------------
11101
- const version = "3.2.28";
11101
+ const version = "3.2.29";
11102
11102
  const _ssrUtils = {
11103
11103
  createComponentInstance,
11104
11104
  setupComponent,
@@ -11187,7 +11187,10 @@ const nodeOps = {
11187
11187
  insertStaticContent(content, parent, anchor, isSVG, start, end) {
11188
11188
  // <parent> before | first ... last | anchor </parent>
11189
11189
  const before = anchor ? anchor.previousSibling : parent.lastChild;
11190
- if (start && end) {
11190
+ // #5308 can only take cached path if:
11191
+ // - has a single root node
11192
+ // - nextSibling info is still available
11193
+ if (start && (start === end || start.nextSibling)) {
11191
11194
  // cached
11192
11195
  while (true) {
11193
11196
  parent.insertBefore(start.cloneNode(true), anchor);
@@ -906,7 +906,7 @@ const shallowSet = /*#__PURE__*/ createSetter(true);
906
906
  function createSetter(shallow = false) {
907
907
  return function set(target, key, value, receiver) {
908
908
  let oldValue = target[key];
909
- if (isReadonly(oldValue) && isRef(oldValue)) {
909
+ if (isReadonly(oldValue) && isRef(oldValue) && !isRef(value)) {
910
910
  return false;
911
911
  }
912
912
  if (!shallow && !isReadonly(value)) {
@@ -4895,7 +4895,7 @@ function createCompatVue(createApp, createSingletonApp) {
4895
4895
  return vm;
4896
4896
  }
4897
4897
  }
4898
- Vue.version = `2.6.14-compat:${"3.2.28"}`;
4898
+ Vue.version = `2.6.14-compat:${"3.2.29"}`;
4899
4899
  Vue.config = singletonApp.config;
4900
4900
  Vue.use = (p, ...options) => {
4901
4901
  if (p && isFunction(p.install)) {
@@ -9000,7 +9000,7 @@ function isMemoSame(cached, memo) {
9000
9000
  }
9001
9001
 
9002
9002
  // Core API ------------------------------------------------------------------
9003
- const version = "3.2.28";
9003
+ const version = "3.2.29";
9004
9004
  const _ssrUtils = {
9005
9005
  createComponentInstance,
9006
9006
  setupComponent,
@@ -9089,7 +9089,10 @@ const nodeOps = {
9089
9089
  insertStaticContent(content, parent, anchor, isSVG, start, end) {
9090
9090
  // <parent> before | first ... last | anchor </parent>
9091
9091
  const before = anchor ? anchor.previousSibling : parent.lastChild;
9092
- if (start && end) {
9092
+ // #5308 can only take cached path if:
9093
+ // - has a single root node
9094
+ // - nextSibling info is still available
9095
+ if (start && (start === end || start.nextSibling)) {
9093
9096
  // cached
9094
9097
  while (true) {
9095
9098
  parent.insertBefore(start.cloneNode(true), anchor);
@@ -866,7 +866,7 @@ const shallowSet = /*#__PURE__*/ createSetter(true);
866
866
  function createSetter(shallow = false) {
867
867
  return function set(target, key, value, receiver) {
868
868
  let oldValue = target[key];
869
- if (isReadonly(oldValue) && isRef(oldValue)) {
869
+ if (isReadonly(oldValue) && isRef(oldValue) && !isRef(value)) {
870
870
  return false;
871
871
  }
872
872
  if (!shallow && !isReadonly(value)) {
@@ -6036,7 +6036,7 @@ function createCompatVue(createApp, createSingletonApp) {
6036
6036
  return vm;
6037
6037
  }
6038
6038
  }
6039
- Vue.version = `2.6.14-compat:${"3.2.28"}`;
6039
+ Vue.version = `2.6.14-compat:${"3.2.29"}`;
6040
6040
  Vue.config = singletonApp.config;
6041
6041
  Vue.use = (p, ...options) => {
6042
6042
  if (p && isFunction(p.install)) {
@@ -10940,7 +10940,7 @@ function isMemoSame(cached, memo) {
10940
10940
  }
10941
10941
 
10942
10942
  // Core API ------------------------------------------------------------------
10943
- const version = "3.2.28";
10943
+ const version = "3.2.29";
10944
10944
  /**
10945
10945
  * SSR utils for \@vue/server-renderer. Only exposed in cjs builds.
10946
10946
  * @internal
@@ -11021,7 +11021,10 @@ const nodeOps = {
11021
11021
  insertStaticContent(content, parent, anchor, isSVG, start, end) {
11022
11022
  // <parent> before | first ... last | anchor </parent>
11023
11023
  const before = anchor ? anchor.previousSibling : parent.lastChild;
11024
- if (start && end) {
11024
+ // #5308 can only take cached path if:
11025
+ // - has a single root node
11026
+ // - nextSibling info is still available
11027
+ if (start && (start === end || start.nextSibling)) {
11025
11028
  // cached
11026
11029
  while (true) {
11027
11030
  parent.insertBefore(start.cloneNode(true), anchor);