@cabloy/vue-runtime-core 3.5.15 → 3.5.16

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.
@@ -4049,6 +4049,13 @@ function hasInjectionContext() {
4049
4049
  return !!(currentInstance || currentRenderingInstance || currentApp);
4050
4050
  }
4051
4051
 
4052
+ function shouldSkipAttrPatch(key, instance) {
4053
+ if (["slots", "controllerRef"].includes(key)) {
4054
+ return true;
4055
+ }
4056
+ return false;
4057
+ }
4058
+
4052
4059
  const internalObjectProto = {};
4053
4060
  const createInternalObject = () => Object.create(internalObjectProto);
4054
4061
  const isInternalObject = (obj) => Object.getPrototypeOf(obj) === internalObjectProto;
@@ -4124,6 +4131,7 @@ function updateProps(instance, rawProps, rawPrevProps, optimized) {
4124
4131
  );
4125
4132
  }
4126
4133
  } else {
4134
+ if (shouldSkipAttrPatch(key)) continue;
4127
4135
  if (value !== attrs[key]) {
4128
4136
  attrs[key] = value;
4129
4137
  hasAttrsChanged = true;
@@ -4193,6 +4201,7 @@ function setFullProps(instance, rawProps, props, attrs) {
4193
4201
  (rawCastValues || (rawCastValues = {}))[camelKey] = value;
4194
4202
  }
4195
4203
  } else if (!isEmitListener(instance.emitsOptions, key)) {
4204
+ if (shouldSkipAttrPatch(key)) continue;
4196
4205
  if (!(key in attrs) || value !== attrs[key]) {
4197
4206
  attrs[key] = value;
4198
4207
  hasAttrsChanged = true;
@@ -3082,6 +3082,13 @@ function hasInjectionContext() {
3082
3082
  return !!(currentInstance || currentRenderingInstance || currentApp);
3083
3083
  }
3084
3084
 
3085
+ function shouldSkipAttrPatch(key, instance) {
3086
+ if (["slots", "controllerRef"].includes(key)) {
3087
+ return true;
3088
+ }
3089
+ return false;
3090
+ }
3091
+
3085
3092
  const internalObjectProto = {};
3086
3093
  const createInternalObject = () => Object.create(internalObjectProto);
3087
3094
  const isInternalObject = (obj) => Object.getPrototypeOf(obj) === internalObjectProto;
@@ -3148,6 +3155,7 @@ function updateProps(instance, rawProps, rawPrevProps, optimized) {
3148
3155
  );
3149
3156
  }
3150
3157
  } else {
3158
+ if (shouldSkipAttrPatch(key)) continue;
3151
3159
  if (value !== attrs[key]) {
3152
3160
  attrs[key] = value;
3153
3161
  hasAttrsChanged = true;
@@ -3214,6 +3222,7 @@ function setFullProps(instance, rawProps, props, attrs) {
3214
3222
  (rawCastValues || (rawCastValues = {}))[camelKey] = value;
3215
3223
  }
3216
3224
  } else if (!isEmitListener(instance.emitsOptions, key)) {
3225
+ if (shouldSkipAttrPatch(key)) continue;
3217
3226
  if (!(key in attrs) || value !== attrs[key]) {
3218
3227
  attrs[key] = value;
3219
3228
  hasAttrsChanged = true;
@@ -4068,6 +4068,13 @@ function hasInjectionContext() {
4068
4068
  return !!(currentInstance || currentRenderingInstance || currentApp);
4069
4069
  }
4070
4070
 
4071
+ function shouldSkipAttrPatch(key, instance) {
4072
+ if (["slots", "controllerRef"].includes(key)) {
4073
+ return true;
4074
+ }
4075
+ return false;
4076
+ }
4077
+
4071
4078
  const internalObjectProto = {};
4072
4079
  const createInternalObject = () => Object.create(internalObjectProto);
4073
4080
  const isInternalObject = (obj) => Object.getPrototypeOf(obj) === internalObjectProto;
@@ -4143,6 +4150,7 @@ function updateProps(instance, rawProps, rawPrevProps, optimized) {
4143
4150
  );
4144
4151
  }
4145
4152
  } else {
4153
+ if (shouldSkipAttrPatch(key)) continue;
4146
4154
  if (value !== attrs[key]) {
4147
4155
  attrs[key] = value;
4148
4156
  hasAttrsChanged = true;
@@ -4212,6 +4220,7 @@ function setFullProps(instance, rawProps, props, attrs) {
4212
4220
  (rawCastValues || (rawCastValues = {}))[camelKey] = value;
4213
4221
  }
4214
4222
  } else if (!isEmitListener(instance.emitsOptions, key)) {
4223
+ if (shouldSkipAttrPatch(key)) continue;
4215
4224
  if (!(key in attrs) || value !== attrs[key]) {
4216
4225
  attrs[key] = value;
4217
4226
  hasAttrsChanged = true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cabloy/vue-runtime-core",
3
- "version": "3.5.15",
3
+ "version": "3.5.16",
4
4
  "description": "@vue/runtime-core",
5
5
  "main": "index.js",
6
6
  "module": "dist/runtime-core.esm-bundler.js",