MCPcopy
hub / github.com/vuejs/core / softAssertCompatEnabled

Function softAssertCompatEnabled

packages/runtime-core/src/compat/compatConfig.ts:609–618  ·  view source on GitHub ↗
(
  key: DeprecationTypes,
  instance: ComponentInternalInstance | null,
  ...args: any[]
)

Source from the content-addressed store, hash-verified

607 * lead to runtime error if compat is disabled. (warn in all cases)
608 */
609export function softAssertCompatEnabled(
610 key: DeprecationTypes,
611 instance: ComponentInternalInstance | null,
612 ...args: any[]
613): boolean {
614 if (__DEV__) {
615 warnDeprecation(key, instance, ...args)
616 }
617 return isCompatEnabled(key, instance)
618}
619
620/**
621 * Use this for features with the same syntax but with mutually exclusive

Callers 6

applyOptionsFunction · 0.90
setFullPropsFunction · 0.90
createCompatAppFunction · 0.90
convertLegacyComponentFunction · 0.90
mapCompatDirectiveHookFunction · 0.90
getFunction · 0.90

Calls 2

warnDeprecationFunction · 0.70
isCompatEnabledFunction · 0.70

Tested by

no test coverage detected