@cabloy/vue-runtime-core 3.4.25 → 3.4.27

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.
@@ -1,9 +1,9 @@
1
1
  /**
2
- * @cabloy/vue-runtime-core v3.4.23
2
+ * @cabloy/vue-runtime-core v3.4.25
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
6
- import { pauseTracking, resetTracking, isRef, toRaw, isShallow, isReactive, ReactiveEffect, getCurrentScope, ref, shallowReadonly, track, reactive, shallowReactive, trigger, isProxy, proxyRefs, markRaw, EffectScope, computed as computed$1, customRef, isReadonly } from '@vue/reactivity';
6
+ import { pauseTracking, resetTracking, isRef, toRaw, shallowReadonly, isShallow, isReactive, ReactiveEffect, getCurrentScope, ref, track, reactive, shallowReactive, trigger, isProxy, proxyRefs, markRaw, EffectScope, computed as computed$1, customRef, isReadonly } from '@vue/reactivity';
7
7
  export { EffectScope, ReactiveEffect, TrackOpTypes, TriggerOpTypes, customRef, effect, effectScope, getCurrentScope, isProxy, isReactive, isReadonly, isRef, isShallow, markRaw, onScopeDispose, proxyRefs, reactive, readonly, ref, shallowReactive, shallowReadonly, shallowRef, stop, toRaw, toRef, toRefs, toValue, triggerRef, unref } from '@vue/reactivity';
8
8
  import { isString, isFunction, isPromise, isArray, NOOP, getGlobalThis, extend, EMPTY_OBJ, toHandlerKey, looseToNumber, hyphenate, camelize, isObject, isOn, hasOwn, isModelListener, capitalize, toNumber, hasChanged, remove, isSet, isMap, isPlainObject, isBuiltInDirective, invokeArrayFns, isRegExp, isGloballyAllowed, NO, isReservedProp, EMPTY_ARR, toRawType, makeMap, def, normalizeClass, stringifyStyle, normalizeStyle, isKnownSvgAttr, isBooleanAttr, isKnownHtmlAttr, includeBooleanAttr, isRenderableAttrValue } from '@vue/shared';
9
9
  export { camelize, capitalize, normalizeClass, normalizeProps, normalizeStyle, toDisplayString, toHandlerKey } from '@vue/shared';
@@ -854,21 +854,21 @@ function renderComponentRoot(instance) {
854
854
  vnode,
855
855
  proxy,
856
856
  withProxy,
857
- props,
858
857
  propsOptions: [propsOptions],
859
858
  slots,
860
859
  attrs,
861
860
  emit,
862
861
  render,
863
862
  renderCache,
863
+ props,
864
864
  data,
865
865
  setupState,
866
866
  ctx,
867
867
  inheritAttrs
868
868
  } = instance;
869
+ const prev = setCurrentRenderingInstance(instance);
869
870
  let result;
870
871
  let fallthroughAttrs;
871
- const prev = setCurrentRenderingInstance(instance);
872
872
  if (!!(process.env.NODE_ENV !== "production")) {
873
873
  accessedAttrs = false;
874
874
  }
@@ -890,7 +890,7 @@ function renderComponentRoot(instance) {
890
890
  thisProxy,
891
891
  proxyToUse,
892
892
  renderCache,
893
- props,
893
+ !!(process.env.NODE_ENV !== "production") ? shallowReadonly(props) : props,
894
894
  setupState,
895
895
  data,
896
896
  ctx
@@ -904,7 +904,7 @@ function renderComponentRoot(instance) {
904
904
  }
905
905
  result = normalizeVNode(
906
906
  render2.length > 1 ? render2(
907
- props,
907
+ !!(process.env.NODE_ENV !== "production") ? shallowReadonly(props) : props,
908
908
  !!(process.env.NODE_ENV !== "production") ? {
909
909
  get attrs() {
910
910
  markAttrsAccessed();
@@ -914,9 +914,8 @@ function renderComponentRoot(instance) {
914
914
  emit
915
915
  } : { attrs, slots, emit }
916
916
  ) : render2(
917
- props,
917
+ !!(process.env.NODE_ENV !== "production") ? shallowReadonly(props) : props,
918
918
  null
919
- /* we know it doesn't need it */
920
919
  )
921
920
  );
922
921
  fallthroughAttrs = Component.props ? attrs : getFunctionalFallthrough(attrs);
@@ -2413,11 +2412,13 @@ function getKeepAliveChild(vnode) {
2413
2412
  return vnode.component.subTree;
2414
2413
  }
2415
2414
  const { shapeFlag, children } = vnode;
2416
- if (shapeFlag & 16) {
2417
- return children[0];
2418
- }
2419
- if (shapeFlag & 32 && isFunction(children.default)) {
2420
- return children.default();
2415
+ if (children) {
2416
+ if (shapeFlag & 16) {
2417
+ return children[0];
2418
+ }
2419
+ if (shapeFlag & 32 && isFunction(children.default)) {
2420
+ return children.default();
2421
+ }
2421
2422
  }
2422
2423
  }
2423
2424
  function setTransitionHooks(vnode, hooks) {
@@ -4027,7 +4028,7 @@ function hasInjectionContext() {
4027
4028
  return !!(currentInstance || currentRenderingInstance || currentApp);
4028
4029
  }
4029
4030
 
4030
- const internalObjectProto = /* @__PURE__ */ Object.create(null);
4031
+ const internalObjectProto = {};
4031
4032
  const createInternalObject = () => Object.create(internalObjectProto);
4032
4033
  const isInternalObject = (obj) => Object.getPrototypeOf(obj) === internalObjectProto;
4033
4034
 
@@ -8163,7 +8164,7 @@ function isMemoSame(cached, memo) {
8163
8164
  return true;
8164
8165
  }
8165
8166
 
8166
- const version = "3.4.23";
8167
+ const version = "3.4.25";
8167
8168
  const warn = !!(process.env.NODE_ENV !== "production") ? warn$1 : NOOP;
8168
8169
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
8169
8170
  const devtools = !!(process.env.NODE_ENV !== "production") || true ? devtools$1 : void 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cabloy/vue-runtime-core",
3
- "version": "3.4.25",
3
+ "version": "3.4.27",
4
4
  "description": "@vue/runtime-core",
5
5
  "main": "index.js",
6
6
  "module": "dist/runtime-core.esm-bundler.js",
@@ -46,7 +46,7 @@
46
46
  },
47
47
  "homepage": "https://github.com/vuejs/core/tree/main/packages/runtime-core#readme",
48
48
  "dependencies": {
49
- "@vue/shared": "3.4.23",
50
- "@vue/reactivity": "3.4.23"
49
+ "@vue/shared": "3.4.25",
50
+ "@vue/reactivity": "3.4.25"
51
51
  }
52
52
  }