@vue/compat 3.4.32 → 3.4.33

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
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/compat v3.4.32
2
+ * @vue/compat v3.4.33
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -5303,7 +5303,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
5303
5303
  return vm;
5304
5304
  }
5305
5305
  }
5306
- Vue.version = `2.6.14-compat:${"3.4.32"}`;
5306
+ Vue.version = `2.6.14-compat:${"3.4.33"}`;
5307
5307
  Vue.config = singletonApp.config;
5308
5308
  Vue.use = (plugin, ...options) => {
5309
5309
  if (plugin && isFunction(plugin.install)) {
@@ -10894,8 +10894,6 @@ function createComponentInstance(vnode, parent, suspense) {
10894
10894
  refs: EMPTY_OBJ,
10895
10895
  setupState: EMPTY_OBJ,
10896
10896
  setupContext: null,
10897
- attrsProxy: null,
10898
- slotsProxy: null,
10899
10897
  // suspense related
10900
10898
  suspense,
10901
10899
  suspenseId: suspense ? suspense.pendingId : 0,
@@ -11178,12 +11176,12 @@ const attrsProxyHandlers = {
11178
11176
  }
11179
11177
  } ;
11180
11178
  function getSlotsProxy(instance) {
11181
- return instance.slotsProxy || (instance.slotsProxy = new Proxy(instance.slots, {
11179
+ return new Proxy(instance.slots, {
11182
11180
  get(target, key) {
11183
11181
  track(instance, "get", "$slots");
11184
11182
  return target[key];
11185
11183
  }
11186
- }));
11184
+ });
11187
11185
  }
11188
11186
  function createSetupContext(instance) {
11189
11187
  const expose = (exposed) => {
@@ -11211,12 +11209,13 @@ function createSetupContext(instance) {
11211
11209
  };
11212
11210
  {
11213
11211
  let attrsProxy;
11212
+ let slotsProxy;
11214
11213
  return Object.freeze({
11215
11214
  get attrs() {
11216
11215
  return attrsProxy || (attrsProxy = new Proxy(instance.attrs, attrsProxyHandlers));
11217
11216
  },
11218
11217
  get slots() {
11219
- return getSlotsProxy(instance);
11218
+ return slotsProxy || (slotsProxy = getSlotsProxy(instance));
11220
11219
  },
11221
11220
  get emit() {
11222
11221
  return (event, ...args) => instance.emit(event, ...args);
@@ -11509,7 +11508,7 @@ function isMemoSame(cached, memo) {
11509
11508
  return true;
11510
11509
  }
11511
11510
 
11512
- const version = "3.4.32";
11511
+ const version = "3.4.33";
11513
11512
  const warn = warn$1 ;
11514
11513
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
11515
11514
  const devtools = devtools$1 ;
@@ -12127,7 +12126,7 @@ function compatCoerceAttr(el, key, value, instance = null) {
12127
12126
 
12128
12127
  function patchDOMProp(el, key, value, parentComponent) {
12129
12128
  if (key === "innerHTML" || key === "textContent") {
12130
- if (value === null) return;
12129
+ if (value == null) return;
12131
12130
  el[key] = value;
12132
12131
  return;
12133
12132
  }
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/compat v3.4.32
2
+ * @vue/compat v3.4.33
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -4151,7 +4151,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
4151
4151
  return vm;
4152
4152
  }
4153
4153
  }
4154
- Vue.version = `2.6.14-compat:${"3.4.32"}`;
4154
+ Vue.version = `2.6.14-compat:${"3.4.33"}`;
4155
4155
  Vue.config = singletonApp.config;
4156
4156
  Vue.use = (plugin, ...options) => {
4157
4157
  if (plugin && isFunction(plugin.install)) {
@@ -8872,8 +8872,6 @@ function createComponentInstance(vnode, parent, suspense) {
8872
8872
  refs: EMPTY_OBJ,
8873
8873
  setupState: EMPTY_OBJ,
8874
8874
  setupContext: null,
8875
- attrsProxy: null,
8876
- slotsProxy: null,
8877
8875
  // suspense related
8878
8876
  suspense,
8879
8877
  suspenseId: suspense ? suspense.pendingId : 0,
@@ -9169,7 +9167,7 @@ function isMemoSame(cached, memo) {
9169
9167
  return true;
9170
9168
  }
9171
9169
 
9172
- const version = "3.4.32";
9170
+ const version = "3.4.33";
9173
9171
  const warn$1 = NOOP;
9174
9172
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
9175
9173
  const devtools = void 0;
@@ -9773,7 +9771,7 @@ function compatCoerceAttr(el, key, value, instance = null) {
9773
9771
 
9774
9772
  function patchDOMProp(el, key, value, parentComponent) {
9775
9773
  if (key === "innerHTML" || key === "textContent") {
9776
- if (value === null) return;
9774
+ if (value == null) return;
9777
9775
  el[key] = value;
9778
9776
  return;
9779
9777
  }
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/compat v3.4.32
2
+ * @vue/compat v3.4.33
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -5246,7 +5246,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
5246
5246
  return vm;
5247
5247
  }
5248
5248
  }
5249
- Vue.version = `2.6.14-compat:${"3.4.32"}`;
5249
+ Vue.version = `2.6.14-compat:${"3.4.33"}`;
5250
5250
  Vue.config = singletonApp.config;
5251
5251
  Vue.use = (plugin, ...options) => {
5252
5252
  if (plugin && isFunction(plugin.install)) {
@@ -10817,8 +10817,6 @@ function createComponentInstance(vnode, parent, suspense) {
10817
10817
  refs: EMPTY_OBJ,
10818
10818
  setupState: EMPTY_OBJ,
10819
10819
  setupContext: null,
10820
- attrsProxy: null,
10821
- slotsProxy: null,
10822
10820
  // suspense related
10823
10821
  suspense,
10824
10822
  suspenseId: suspense ? suspense.pendingId : 0,
@@ -11087,12 +11085,12 @@ const attrsProxyHandlers = {
11087
11085
  }
11088
11086
  } ;
11089
11087
  function getSlotsProxy(instance) {
11090
- return instance.slotsProxy || (instance.slotsProxy = new Proxy(instance.slots, {
11088
+ return new Proxy(instance.slots, {
11091
11089
  get(target, key) {
11092
11090
  track(instance, "get", "$slots");
11093
11091
  return target[key];
11094
11092
  }
11095
- }));
11093
+ });
11096
11094
  }
11097
11095
  function createSetupContext(instance) {
11098
11096
  const expose = (exposed) => {
@@ -11120,12 +11118,13 @@ function createSetupContext(instance) {
11120
11118
  };
11121
11119
  {
11122
11120
  let attrsProxy;
11121
+ let slotsProxy;
11123
11122
  return Object.freeze({
11124
11123
  get attrs() {
11125
11124
  return attrsProxy || (attrsProxy = new Proxy(instance.attrs, attrsProxyHandlers));
11126
11125
  },
11127
11126
  get slots() {
11128
- return getSlotsProxy(instance);
11127
+ return slotsProxy || (slotsProxy = getSlotsProxy(instance));
11129
11128
  },
11130
11129
  get emit() {
11131
11130
  return (event, ...args) => instance.emit(event, ...args);
@@ -11418,7 +11417,7 @@ function isMemoSame(cached, memo) {
11418
11417
  return true;
11419
11418
  }
11420
11419
 
11421
- const version = "3.4.32";
11420
+ const version = "3.4.33";
11422
11421
  const warn = warn$1 ;
11423
11422
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
11424
11423
  const devtools = devtools$1 ;
@@ -12080,7 +12079,7 @@ function compatCoerceAttr(el, key, value, instance = null) {
12080
12079
 
12081
12080
  function patchDOMProp(el, key, value, parentComponent) {
12082
12081
  if (key === "innerHTML" || key === "textContent") {
12083
- if (value === null) return;
12082
+ if (value == null) return;
12084
12083
  el[key] = value;
12085
12084
  return;
12086
12085
  }