@vue/runtime-core 3.2.38 → 3.2.39

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.
@@ -299,7 +299,9 @@ function queuePostFlushCb(cb) {
299
299
  }
300
300
  queueFlush();
301
301
  }
302
- function flushPreFlushCbs(seen, i = flushIndex) {
302
+ function flushPreFlushCbs(seen,
303
+ // if currently flushing, skip the current job itself
304
+ i = isFlushing ? flushIndex + 1 : 0) {
303
305
  {
304
306
  seen = seen || new Map();
305
307
  }
@@ -7196,7 +7198,8 @@ function finishComponentSetup(instance, isSSR, skipOptions) {
7196
7198
  // only do on-the-fly compile if not in SSR - SSR on-the-fly compilation
7197
7199
  // is done by server-renderer
7198
7200
  if (!isSSR && compile && !Component.render) {
7199
- const template = Component.template;
7201
+ const template = Component.template ||
7202
+ resolveMergedOptions(instance).template;
7200
7203
  if (template) {
7201
7204
  {
7202
7205
  startMeasure(instance, `compile`);
@@ -7754,7 +7757,7 @@ function isMemoSame(cached, memo) {
7754
7757
  }
7755
7758
 
7756
7759
  // Core API ------------------------------------------------------------------
7757
- const version = "3.2.38";
7760
+ const version = "3.2.39";
7758
7761
  const _ssrUtils = {
7759
7762
  createComponentInstance,
7760
7763
  setupComponent,
@@ -247,7 +247,9 @@ function queuePostFlushCb(cb) {
247
247
  }
248
248
  queueFlush();
249
249
  }
250
- function flushPreFlushCbs(seen, i = flushIndex) {
250
+ function flushPreFlushCbs(seen,
251
+ // if currently flushing, skip the current job itself
252
+ i = isFlushing ? flushIndex + 1 : 0) {
251
253
  for (; i < queue.length; i++) {
252
254
  const cb = queue[i];
253
255
  if (cb && cb.pre) {
@@ -5874,7 +5876,8 @@ function finishComponentSetup(instance, isSSR, skipOptions) {
5874
5876
  // only do on-the-fly compile if not in SSR - SSR on-the-fly compilation
5875
5877
  // is done by server-renderer
5876
5878
  if (!isSSR && compile && !Component.render) {
5877
- const template = Component.template;
5879
+ const template = Component.template ||
5880
+ resolveMergedOptions(instance).template;
5878
5881
  if (template) {
5879
5882
  const { isCustomElement, compilerOptions } = instance.appContext.config;
5880
5883
  const { delimiters, compilerOptions: componentCompilerOptions } = Component;
@@ -6183,7 +6186,7 @@ function isMemoSame(cached, memo) {
6183
6186
  }
6184
6187
 
6185
6188
  // Core API ------------------------------------------------------------------
6186
- const version = "3.2.38";
6189
+ const version = "3.2.39";
6187
6190
  const _ssrUtils = {
6188
6191
  createComponentInstance,
6189
6192
  setupComponent,
@@ -1731,7 +1731,7 @@ export declare const Teleport: {
1731
1731
  declare const TeleportImpl: {
1732
1732
  __isTeleport: boolean;
1733
1733
  process(n1: TeleportVNode | null, n2: TeleportVNode, container: RendererElement, anchor: RendererNode | null, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, isSVG: boolean, slotScopeIds: string[] | null, optimized: boolean, internals: RendererInternals): void;
1734
- remove(vnode: VNode, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, optimized: boolean, { um: unmount, o: { remove: hostRemove } }: RendererInternals, doRemove: Boolean): void;
1734
+ remove(vnode: VNode, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, optimized: boolean, { um, o: { remove } }: RendererInternals, doRemove: Boolean): void;
1735
1735
  move: typeof moveTeleport;
1736
1736
  hydrate: typeof hydrateTeleport;
1737
1737
  };
@@ -1782,7 +1782,7 @@ export { TrackOpTypes }
1782
1782
  */
1783
1783
  export declare function transformVNodeArgs(transformer?: typeof vnodeArgsTransformer): void;
1784
1784
 
1785
- export declare interface TransitionHooks<HostElement extends RendererElement = RendererElement> {
1785
+ export declare interface TransitionHooks<HostElement = RendererElement> {
1786
1786
  mode: BaseTransitionProps['mode'];
1787
1787
  persisted: boolean;
1788
1788
  beforeEnter(el: HostElement): void;
@@ -301,7 +301,9 @@ function queuePostFlushCb(cb) {
301
301
  }
302
302
  queueFlush();
303
303
  }
304
- function flushPreFlushCbs(seen, i = flushIndex) {
304
+ function flushPreFlushCbs(seen,
305
+ // if currently flushing, skip the current job itself
306
+ i = isFlushing ? flushIndex + 1 : 0) {
305
307
  if ((process.env.NODE_ENV !== 'production')) {
306
308
  seen = seen || new Map();
307
309
  }
@@ -7275,7 +7277,8 @@ function finishComponentSetup(instance, isSSR, skipOptions) {
7275
7277
  // only do on-the-fly compile if not in SSR - SSR on-the-fly compilation
7276
7278
  // is done by server-renderer
7277
7279
  if (!isSSR && compile && !Component.render) {
7278
- const template = Component.template;
7280
+ const template = Component.template ||
7281
+ resolveMergedOptions(instance).template;
7279
7282
  if (template) {
7280
7283
  if ((process.env.NODE_ENV !== 'production')) {
7281
7284
  startMeasure(instance, `compile`);
@@ -7850,7 +7853,7 @@ function isMemoSame(cached, memo) {
7850
7853
  }
7851
7854
 
7852
7855
  // Core API ------------------------------------------------------------------
7853
- const version = "3.2.38";
7856
+ const version = "3.2.39";
7854
7857
  const _ssrUtils = {
7855
7858
  createComponentInstance,
7856
7859
  setupComponent,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vue/runtime-core",
3
- "version": "3.2.38",
3
+ "version": "3.2.39",
4
4
  "description": "@vue/runtime-core",
5
5
  "main": "index.js",
6
6
  "module": "dist/runtime-core.esm-bundler.js",
@@ -32,7 +32,7 @@
32
32
  },
33
33
  "homepage": "https://github.com/vuejs/core/tree/main/packages/runtime-core#readme",
34
34
  "dependencies": {
35
- "@vue/shared": "3.2.38",
36
- "@vue/reactivity": "3.2.38"
35
+ "@vue/shared": "3.2.39",
36
+ "@vue/reactivity": "3.2.39"
37
37
  }
38
38
  }