@vue/compat 3.2.30 → 3.2.31

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.
@@ -6010,7 +6010,7 @@ function createCompatVue(createApp, createSingletonApp) {
6010
6010
  return vm;
6011
6011
  }
6012
6012
  }
6013
- Vue.version = `2.6.14-compat:${"3.2.30"}`;
6013
+ Vue.version = `2.6.14-compat:${"3.2.31"}`;
6014
6014
  Vue.config = singletonApp.config;
6015
6015
  Vue.use = (p, ...options) => {
6016
6016
  if (p && isFunction(p.install)) {
@@ -6841,7 +6841,8 @@ function createHydrationFunctions(rendererInternals) {
6841
6841
  // e.g. <option :value="obj">, <input type="checkbox" :true-value="1">
6842
6842
  const forcePatchValue = (type === 'input' && dirs) || type === 'option';
6843
6843
  // skip props & children if this is hoisted static nodes
6844
- if (forcePatchValue || patchFlag !== -1 /* HOISTED */) {
6844
+ // #5405 in dev, always hydrate children for HMR
6845
+ if ((process.env.NODE_ENV !== 'production') || forcePatchValue || patchFlag !== -1 /* HOISTED */) {
6845
6846
  if (dirs) {
6846
6847
  invokeDirectiveHook(vnode, null, parentComponent, 'created');
6847
6848
  }
@@ -10046,9 +10047,11 @@ const PublicInstanceProxyHandlers = {
10046
10047
  const { data, setupState, ctx } = instance;
10047
10048
  if (setupState !== EMPTY_OBJ && hasOwn(setupState, key)) {
10048
10049
  setupState[key] = value;
10050
+ return true;
10049
10051
  }
10050
10052
  else if (data !== EMPTY_OBJ && hasOwn(data, key)) {
10051
10053
  data[key] = value;
10054
+ return true;
10052
10055
  }
10053
10056
  else if (hasOwn(instance.props, key)) {
10054
10057
  (process.env.NODE_ENV !== 'production') &&
@@ -10084,6 +10087,15 @@ const PublicInstanceProxyHandlers = {
10084
10087
  hasOwn(ctx, key) ||
10085
10088
  hasOwn(publicPropertiesMap, key) ||
10086
10089
  hasOwn(appContext.config.globalProperties, key));
10090
+ },
10091
+ defineProperty(target, key, descriptor) {
10092
+ if (descriptor.get != null) {
10093
+ this.set(target, key, descriptor.get(), null);
10094
+ }
10095
+ else if (descriptor.value != null) {
10096
+ this.set(target, key, descriptor.value, null);
10097
+ }
10098
+ return Reflect.defineProperty(target, key, descriptor);
10087
10099
  }
10088
10100
  };
10089
10101
  if ((process.env.NODE_ENV !== 'production') && !false) {
@@ -10998,7 +11010,7 @@ function isMemoSame(cached, memo) {
10998
11010
  }
10999
11011
 
11000
11012
  // Core API ------------------------------------------------------------------
11001
- const version = "3.2.30";
11013
+ const version = "3.2.31";
11002
11014
  const _ssrUtils = {
11003
11015
  createComponentInstance,
11004
11016
  setupComponent,
@@ -5956,7 +5956,7 @@ var Vue = (function () {
5956
5956
  return vm;
5957
5957
  }
5958
5958
  }
5959
- Vue.version = `2.6.14-compat:${"3.2.30"}`;
5959
+ Vue.version = `2.6.14-compat:${"3.2.31"}`;
5960
5960
  Vue.config = singletonApp.config;
5961
5961
  Vue.use = (p, ...options) => {
5962
5962
  if (p && isFunction(p.install)) {
@@ -6780,7 +6780,8 @@ var Vue = (function () {
6780
6780
  // e.g. <option :value="obj">, <input type="checkbox" :true-value="1">
6781
6781
  const forcePatchValue = (type === 'input' && dirs) || type === 'option';
6782
6782
  // skip props & children if this is hoisted static nodes
6783
- if (forcePatchValue || patchFlag !== -1 /* HOISTED */) {
6783
+ // #5405 in dev, always hydrate children for HMR
6784
+ {
6784
6785
  if (dirs) {
6785
6786
  invokeDirectiveHook(vnode, null, parentComponent, 'created');
6786
6787
  }
@@ -9934,9 +9935,11 @@ var Vue = (function () {
9934
9935
  const { data, setupState, ctx } = instance;
9935
9936
  if (setupState !== EMPTY_OBJ && hasOwn(setupState, key)) {
9936
9937
  setupState[key] = value;
9938
+ return true;
9937
9939
  }
9938
9940
  else if (data !== EMPTY_OBJ && hasOwn(data, key)) {
9939
9941
  data[key] = value;
9942
+ return true;
9940
9943
  }
9941
9944
  else if (hasOwn(instance.props, key)) {
9942
9945
  warn$1(`Attempting to mutate prop "${key}". Props are readonly.`, instance);
@@ -9970,6 +9973,15 @@ var Vue = (function () {
9970
9973
  hasOwn(ctx, key) ||
9971
9974
  hasOwn(publicPropertiesMap, key) ||
9972
9975
  hasOwn(appContext.config.globalProperties, key));
9976
+ },
9977
+ defineProperty(target, key, descriptor) {
9978
+ if (descriptor.get != null) {
9979
+ this.set(target, key, descriptor.get(), null);
9980
+ }
9981
+ else if (descriptor.value != null) {
9982
+ this.set(target, key, descriptor.value, null);
9983
+ }
9984
+ return Reflect.defineProperty(target, key, descriptor);
9973
9985
  }
9974
9986
  };
9975
9987
  {
@@ -10855,7 +10867,7 @@ var Vue = (function () {
10855
10867
  }
10856
10868
 
10857
10869
  // Core API ------------------------------------------------------------------
10858
- const version = "3.2.30";
10870
+ const version = "3.2.31";
10859
10871
  /**
10860
10872
  * SSR utils for \@vue/server-renderer. Only exposed in cjs builds.
10861
10873
  * @internal