@vue/compat 3.2.35 → 3.2.36

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.
@@ -7100,7 +7100,7 @@ function createCompatVue(createApp, createSingletonApp) {
7100
7100
  return vm;
7101
7101
  }
7102
7102
  }
7103
- Vue.version = `2.6.14-compat:${"3.2.35"}`;
7103
+ Vue.version = `2.6.14-compat:${"3.2.36"}`;
7104
7104
  Vue.config = singletonApp.config;
7105
7105
  Vue.use = (p, ...options) => {
7106
7106
  if (p && isFunction(p.install)) {
@@ -7267,9 +7267,11 @@ function installLegacyAPIs(app) {
7267
7267
  });
7268
7268
  }
7269
7269
  function applySingletonAppMutations(app) {
7270
- ['mixins', 'components', 'directives', 'filters', 'deopt'].forEach(key => {
7270
+ // copy over asset registries and deopt flag
7271
+ app._context.mixins = [...singletonApp._context.mixins];
7272
+ ['components', 'directives', 'filters'].forEach(key => {
7271
7273
  // @ts-ignore
7272
- app._context[key] = singletonApp._context[key];
7274
+ app._context[key] = Object.create(singletonApp._context[key]);
7273
7275
  });
7274
7276
  // copy over global config mutations
7275
7277
  isCopyingConfig = true;
@@ -7282,7 +7284,7 @@ function applySingletonAppMutations(app) {
7282
7284
  }
7283
7285
  const val = singletonApp.config[key];
7284
7286
  // @ts-ignore
7285
- app.config[key] = val;
7287
+ app.config[key] = isObject(val) ? Object.create(val) : val;
7286
7288
  // compat for runtime ignoredElements -> isCustomElement
7287
7289
  if (key === 'ignoredElements' &&
7288
7290
  isCompatEnabled("CONFIG_IGNORED_ELEMENTS" /* CONFIG_IGNORED_ELEMENTS */, null) &&
@@ -11171,7 +11173,7 @@ function isMemoSame(cached, memo) {
11171
11173
  }
11172
11174
 
11173
11175
  // Core API ------------------------------------------------------------------
11174
- const version = "3.2.35";
11176
+ const version = "3.2.36";
11175
11177
  const _ssrUtils = {
11176
11178
  createComponentInstance,
11177
11179
  setupComponent,
@@ -11536,7 +11538,7 @@ const [_getNow, skipTimestampCheck] = /*#__PURE__*/ (() => {
11536
11538
  // if the low-res timestamp which is bigger than the event timestamp
11537
11539
  // (which is evaluated AFTER) it means the event is using a hi-res timestamp,
11538
11540
  // and we need to use the hi-res version for event listeners as well.
11539
- _getNow = () => performance.now();
11541
+ _getNow = performance.now.bind(performance);
11540
11542
  }
11541
11543
  // #3485: Firefox <= 53 has incorrect Event.timeStamp implementation
11542
11544
  // and does not fire microtasks in between event propagation, so safe to exclude.
@@ -12088,9 +12090,8 @@ function resolveTransitionProps(rawProps) {
12088
12090
  removeTransitionClass(el, isAppear ? appearActiveClass : enterActiveClass);
12089
12091
  done && done();
12090
12092
  };
12091
- let isLeaving = false;
12092
12093
  const finishLeave = (el, done) => {
12093
- isLeaving = false;
12094
+ el._isLeaving = false;
12094
12095
  removeTransitionClass(el, leaveFromClass);
12095
12096
  removeTransitionClass(el, leaveToClass);
12096
12097
  removeTransitionClass(el, leaveActiveClass);
@@ -12133,7 +12134,7 @@ function resolveTransitionProps(rawProps) {
12133
12134
  onEnter: makeEnterHook(false),
12134
12135
  onAppear: makeEnterHook(true),
12135
12136
  onLeave(el, done) {
12136
- isLeaving = true;
12137
+ el._isLeaving = true;
12137
12138
  const resolve = () => finishLeave(el, done);
12138
12139
  addTransitionClass(el, leaveFromClass);
12139
12140
  if (legacyClassEnabled) {
@@ -12143,7 +12144,7 @@ function resolveTransitionProps(rawProps) {
12143
12144
  forceReflow();
12144
12145
  addTransitionClass(el, leaveActiveClass);
12145
12146
  nextFrame(() => {
12146
- if (!isLeaving) {
12147
+ if (!el._isLeaving) {
12147
12148
  // cancelled
12148
12149
  return;
12149
12150
  }
@@ -7032,7 +7032,7 @@ var Vue = (function () {
7032
7032
  return vm;
7033
7033
  }
7034
7034
  }
7035
- Vue.version = `2.6.14-compat:${"3.2.35"}`;
7035
+ Vue.version = `2.6.14-compat:${"3.2.36"}`;
7036
7036
  Vue.config = singletonApp.config;
7037
7037
  Vue.use = (p, ...options) => {
7038
7038
  if (p && isFunction(p.install)) {
@@ -7198,9 +7198,11 @@ var Vue = (function () {
7198
7198
  });
7199
7199
  }
7200
7200
  function applySingletonAppMutations(app) {
7201
- ['mixins', 'components', 'directives', 'filters', 'deopt'].forEach(key => {
7201
+ // copy over asset registries and deopt flag
7202
+ app._context.mixins = [...singletonApp._context.mixins];
7203
+ ['components', 'directives', 'filters'].forEach(key => {
7202
7204
  // @ts-ignore
7203
- app._context[key] = singletonApp._context[key];
7205
+ app._context[key] = Object.create(singletonApp._context[key]);
7204
7206
  });
7205
7207
  // copy over global config mutations
7206
7208
  isCopyingConfig = true;
@@ -7213,7 +7215,7 @@ var Vue = (function () {
7213
7215
  }
7214
7216
  const val = singletonApp.config[key];
7215
7217
  // @ts-ignore
7216
- app.config[key] = val;
7218
+ app.config[key] = isObject(val) ? Object.create(val) : val;
7217
7219
  // compat for runtime ignoredElements -> isCustomElement
7218
7220
  if (key === 'ignoredElements' &&
7219
7221
  isCompatEnabled("CONFIG_IGNORED_ELEMENTS" /* CONFIG_IGNORED_ELEMENTS */, null) &&
@@ -11016,7 +11018,7 @@ var Vue = (function () {
11016
11018
  }
11017
11019
 
11018
11020
  // Core API ------------------------------------------------------------------
11019
- const version = "3.2.35";
11021
+ const version = "3.2.36";
11020
11022
  /**
11021
11023
  * SSR utils for \@vue/server-renderer. Only exposed in cjs builds.
11022
11024
  * @internal
@@ -11372,7 +11374,7 @@ var Vue = (function () {
11372
11374
  // if the low-res timestamp which is bigger than the event timestamp
11373
11375
  // (which is evaluated AFTER) it means the event is using a hi-res timestamp,
11374
11376
  // and we need to use the hi-res version for event listeners as well.
11375
- _getNow = () => performance.now();
11377
+ _getNow = performance.now.bind(performance);
11376
11378
  }
11377
11379
  // #3485: Firefox <= 53 has incorrect Event.timeStamp implementation
11378
11380
  // and does not fire microtasks in between event propagation, so safe to exclude.
@@ -11910,9 +11912,8 @@ var Vue = (function () {
11910
11912
  removeTransitionClass(el, isAppear ? appearActiveClass : enterActiveClass);
11911
11913
  done && done();
11912
11914
  };
11913
- let isLeaving = false;
11914
11915
  const finishLeave = (el, done) => {
11915
- isLeaving = false;
11916
+ el._isLeaving = false;
11916
11917
  removeTransitionClass(el, leaveFromClass);
11917
11918
  removeTransitionClass(el, leaveToClass);
11918
11919
  removeTransitionClass(el, leaveActiveClass);
@@ -11955,7 +11956,7 @@ var Vue = (function () {
11955
11956
  onEnter: makeEnterHook(false),
11956
11957
  onAppear: makeEnterHook(true),
11957
11958
  onLeave(el, done) {
11958
- isLeaving = true;
11959
+ el._isLeaving = true;
11959
11960
  const resolve = () => finishLeave(el, done);
11960
11961
  addTransitionClass(el, leaveFromClass);
11961
11962
  if (legacyClassEnabled) {
@@ -11965,7 +11966,7 @@ var Vue = (function () {
11965
11966
  forceReflow();
11966
11967
  addTransitionClass(el, leaveActiveClass);
11967
11968
  nextFrame(() => {
11968
- if (!isLeaving) {
11969
+ if (!el._isLeaving) {
11969
11970
  // cancelled
11970
11971
  return;
11971
11972
  }