@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.
@@ -7029,7 +7029,7 @@ function createCompatVue(createApp, createSingletonApp) {
7029
7029
  return vm;
7030
7030
  }
7031
7031
  }
7032
- Vue.version = `2.6.14-compat:${"3.2.35"}`;
7032
+ Vue.version = `2.6.14-compat:${"3.2.36"}`;
7033
7033
  Vue.config = singletonApp.config;
7034
7034
  Vue.use = (p, ...options) => {
7035
7035
  if (p && isFunction(p.install)) {
@@ -7195,9 +7195,11 @@ function installLegacyAPIs(app) {
7195
7195
  });
7196
7196
  }
7197
7197
  function applySingletonAppMutations(app) {
7198
- ['mixins', 'components', 'directives', 'filters', 'deopt'].forEach(key => {
7198
+ // copy over asset registries and deopt flag
7199
+ app._context.mixins = [...singletonApp._context.mixins];
7200
+ ['components', 'directives', 'filters'].forEach(key => {
7199
7201
  // @ts-ignore
7200
- app._context[key] = singletonApp._context[key];
7202
+ app._context[key] = Object.create(singletonApp._context[key]);
7201
7203
  });
7202
7204
  // copy over global config mutations
7203
7205
  isCopyingConfig = true;
@@ -7210,7 +7212,7 @@ function applySingletonAppMutations(app) {
7210
7212
  }
7211
7213
  const val = singletonApp.config[key];
7212
7214
  // @ts-ignore
7213
- app.config[key] = val;
7215
+ app.config[key] = isObject(val) ? Object.create(val) : val;
7214
7216
  // compat for runtime ignoredElements -> isCustomElement
7215
7217
  if (key === 'ignoredElements' &&
7216
7218
  isCompatEnabled("CONFIG_IGNORED_ELEMENTS" /* CONFIG_IGNORED_ELEMENTS */, null) &&
@@ -11018,7 +11020,7 @@ function isMemoSame(cached, memo) {
11018
11020
  }
11019
11021
 
11020
11022
  // Core API ------------------------------------------------------------------
11021
- const version = "3.2.35";
11023
+ const version = "3.2.36";
11022
11024
  /**
11023
11025
  * SSR utils for \@vue/server-renderer. Only exposed in cjs builds.
11024
11026
  * @internal
@@ -11374,7 +11376,7 @@ const [_getNow, skipTimestampCheck] = /*#__PURE__*/ (() => {
11374
11376
  // if the low-res timestamp which is bigger than the event timestamp
11375
11377
  // (which is evaluated AFTER) it means the event is using a hi-res timestamp,
11376
11378
  // and we need to use the hi-res version for event listeners as well.
11377
- _getNow = () => performance.now();
11379
+ _getNow = performance.now.bind(performance);
11378
11380
  }
11379
11381
  // #3485: Firefox <= 53 has incorrect Event.timeStamp implementation
11380
11382
  // and does not fire microtasks in between event propagation, so safe to exclude.
@@ -11924,9 +11926,8 @@ function resolveTransitionProps(rawProps) {
11924
11926
  removeTransitionClass(el, isAppear ? appearActiveClass : enterActiveClass);
11925
11927
  done && done();
11926
11928
  };
11927
- let isLeaving = false;
11928
11929
  const finishLeave = (el, done) => {
11929
- isLeaving = false;
11930
+ el._isLeaving = false;
11930
11931
  removeTransitionClass(el, leaveFromClass);
11931
11932
  removeTransitionClass(el, leaveToClass);
11932
11933
  removeTransitionClass(el, leaveActiveClass);
@@ -11969,7 +11970,7 @@ function resolveTransitionProps(rawProps) {
11969
11970
  onEnter: makeEnterHook(false),
11970
11971
  onAppear: makeEnterHook(true),
11971
11972
  onLeave(el, done) {
11972
- isLeaving = true;
11973
+ el._isLeaving = true;
11973
11974
  const resolve = () => finishLeave(el, done);
11974
11975
  addTransitionClass(el, leaveFromClass);
11975
11976
  if (legacyClassEnabled) {
@@ -11979,7 +11980,7 @@ function resolveTransitionProps(rawProps) {
11979
11980
  forceReflow();
11980
11981
  addTransitionClass(el, leaveActiveClass);
11981
11982
  nextFrame(() => {
11982
- if (!isLeaving) {
11983
+ if (!el._isLeaving) {
11983
11984
  // cancelled
11984
11985
  return;
11985
11986
  }