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