vue 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.
@@ -5663,7 +5663,8 @@ var Vue = (function (exports) {
5663
5663
  // e.g. <option :value="obj">, <input type="checkbox" :true-value="1">
5664
5664
  const forcePatchValue = (type === 'input' && dirs) || type === 'option';
5665
5665
  // skip props & children if this is hoisted static nodes
5666
- if (forcePatchValue || patchFlag !== -1 /* HOISTED */) {
5666
+ // #5405 in dev, always hydrate children for HMR
5667
+ {
5667
5668
  if (dirs) {
5668
5669
  invokeDirectiveHook(vnode, null, parentComponent, 'created');
5669
5670
  }
@@ -8197,9 +8198,11 @@ var Vue = (function (exports) {
8197
8198
  const { data, setupState, ctx } = instance;
8198
8199
  if (setupState !== EMPTY_OBJ && hasOwn(setupState, key)) {
8199
8200
  setupState[key] = value;
8201
+ return true;
8200
8202
  }
8201
8203
  else if (data !== EMPTY_OBJ && hasOwn(data, key)) {
8202
8204
  data[key] = value;
8205
+ return true;
8203
8206
  }
8204
8207
  else if (hasOwn(instance.props, key)) {
8205
8208
  warn$1(`Attempting to mutate prop "${key}". Props are readonly.`, instance);
@@ -8233,6 +8236,15 @@ var Vue = (function (exports) {
8233
8236
  hasOwn(ctx, key) ||
8234
8237
  hasOwn(publicPropertiesMap, key) ||
8235
8238
  hasOwn(appContext.config.globalProperties, key));
8239
+ },
8240
+ defineProperty(target, key, descriptor) {
8241
+ if (descriptor.get != null) {
8242
+ this.set(target, key, descriptor.get(), null);
8243
+ }
8244
+ else if (descriptor.value != null) {
8245
+ this.set(target, key, descriptor.value, null);
8246
+ }
8247
+ return Reflect.defineProperty(target, key, descriptor);
8236
8248
  }
8237
8249
  };
8238
8250
  {
@@ -9103,7 +9115,7 @@ var Vue = (function (exports) {
9103
9115
  }
9104
9116
 
9105
9117
  // Core API ------------------------------------------------------------------
9106
- const version = "3.2.30";
9118
+ const version = "3.2.31";
9107
9119
  /**
9108
9120
  * SSR utils for \@vue/server-renderer. Only exposed in cjs builds.
9109
9121
  * @internal