|
|
|
|
@@ -238,8 +238,9 @@ export const deprecationData: Record<DeprecationTypes, DeprecationData> = {
|
|
|
|
|
|
|
|
|
|
[DeprecationTypes.INSTANCE_ATTRS_CLASS_STYLE]: {
|
|
|
|
|
message: componentName =>
|
|
|
|
|
`Component <${componentName ||
|
|
|
|
|
'Anonymous'}> has \`inheritAttrs: false\` but is ` +
|
|
|
|
|
`Component <${
|
|
|
|
|
componentName || 'Anonymous'
|
|
|
|
|
}> has \`inheritAttrs: false\` but is ` +
|
|
|
|
|
`relying on class/style fallthrough from parent. In Vue 3, class/style ` +
|
|
|
|
|
`are now included in $attrs and will no longer fallthrough when ` +
|
|
|
|
|
`inheritAttrs is false. If you are already using v-bind="$attrs" on ` +
|
|
|
|
|
@@ -317,9 +318,7 @@ export const deprecationData: Record<DeprecationTypes, DeprecationData> = {
|
|
|
|
|
`${name}="false" instead of removing it in Vue 3. To remove the attribute, ` +
|
|
|
|
|
`use \`null\` or \`undefined\` instead. If the usage is intended, ` +
|
|
|
|
|
`you can disable the compat behavior and suppress this warning with:` +
|
|
|
|
|
`\n\n configureCompat({ ${
|
|
|
|
|
DeprecationTypes.ATTR_FALSE_VALUE
|
|
|
|
|
}: false })\n`,
|
|
|
|
|
`\n\n configureCompat({ ${DeprecationTypes.ATTR_FALSE_VALUE}: false })\n`,
|
|
|
|
|
link: `https://v3.vuejs.org/guide/migration/attribute-coercion.html`
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
@@ -332,9 +331,7 @@ export const deprecationData: Record<DeprecationTypes, DeprecationData> = {
|
|
|
|
|
`Always use explicit "true" or "false" values for enumerated attributes. ` +
|
|
|
|
|
`If the usage is intended, ` +
|
|
|
|
|
`you can disable the compat behavior and suppress this warning with:` +
|
|
|
|
|
`\n\n configureCompat({ ${
|
|
|
|
|
DeprecationTypes.ATTR_ENUMERATED_COERCION
|
|
|
|
|
}: false })\n`,
|
|
|
|
|
`\n\n configureCompat({ ${DeprecationTypes.ATTR_ENUMERATED_COERCION}: false })\n`,
|
|
|
|
|
link: `https://v3.vuejs.org/guide/migration/attribute-coercion.html`
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
@@ -348,9 +345,7 @@ export const deprecationData: Record<DeprecationTypes, DeprecationData> = {
|
|
|
|
|
`default if no "tag" prop is specified. If you do not rely on the span ` +
|
|
|
|
|
`for styling, you can disable the compat behavior and suppress this ` +
|
|
|
|
|
`warning with:` +
|
|
|
|
|
`\n\n configureCompat({ ${
|
|
|
|
|
DeprecationTypes.TRANSITION_GROUP_ROOT
|
|
|
|
|
}: false })\n`,
|
|
|
|
|
`\n\n configureCompat({ ${DeprecationTypes.TRANSITION_GROUP_ROOT}: false })\n`,
|
|
|
|
|
link: `https://v3.vuejs.org/guide/migration/transition-group.html`
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
@@ -366,9 +361,7 @@ export const deprecationData: Record<DeprecationTypes, DeprecationData> = {
|
|
|
|
|
`usage and intend to use plain functions for functional components, ` +
|
|
|
|
|
`you can disable the compat behavior and suppress this ` +
|
|
|
|
|
`warning with:` +
|
|
|
|
|
`\n\n configureCompat({ ${
|
|
|
|
|
DeprecationTypes.COMPONENT_ASYNC
|
|
|
|
|
}: false })\n`
|
|
|
|
|
`\n\n configureCompat({ ${DeprecationTypes.COMPONENT_ASYNC}: false })\n`
|
|
|
|
|
)
|
|
|
|
|
},
|
|
|
|
|
link: `https://v3.vuejs.org/guide/migration/async-components.html`
|
|
|
|
|
@@ -394,9 +387,7 @@ export const deprecationData: Record<DeprecationTypes, DeprecationData> = {
|
|
|
|
|
message: (comp: ComponentOptions) => {
|
|
|
|
|
const configMsg =
|
|
|
|
|
`opt-in to ` +
|
|
|
|
|
`Vue 3 behavior on a per-component basis with \`compatConfig: { ${
|
|
|
|
|
DeprecationTypes.COMPONENT_V_MODEL
|
|
|
|
|
}: false }\`.`
|
|
|
|
|
`Vue 3 behavior on a per-component basis with \`compatConfig: { ${DeprecationTypes.COMPONENT_V_MODEL}: false }\`.`
|
|
|
|
|
if (
|
|
|
|
|
comp.props &&
|
|
|
|
|
(isArray(comp.props)
|
|
|
|
|
@@ -421,9 +412,7 @@ export const deprecationData: Record<DeprecationTypes, DeprecationData> = {
|
|
|
|
|
message:
|
|
|
|
|
`Vue 3's render function API has changed. ` +
|
|
|
|
|
`You can opt-in to the new API with:` +
|
|
|
|
|
`\n\n configureCompat({ ${
|
|
|
|
|
DeprecationTypes.RENDER_FUNCTION
|
|
|
|
|
}: false })\n` +
|
|
|
|
|
`\n\n configureCompat({ ${DeprecationTypes.RENDER_FUNCTION}: false })\n` +
|
|
|
|
|
`\n (This can also be done per-component via the "compatConfig" option.)`,
|
|
|
|
|
link: `https://v3.vuejs.org/guide/migration/render-function-api.html`
|
|
|
|
|
},
|
|
|
|
|
@@ -565,9 +554,7 @@ export function validateCompatConfig(
|
|
|
|
|
|
|
|
|
|
if (instance && config[DeprecationTypes.OPTIONS_DATA_MERGE] != null) {
|
|
|
|
|
warn(
|
|
|
|
|
`Deprecation config "${
|
|
|
|
|
DeprecationTypes.OPTIONS_DATA_MERGE
|
|
|
|
|
}" can only be configured globally.`
|
|
|
|
|
`Deprecation config "${DeprecationTypes.OPTIONS_DATA_MERGE}" can only be configured globally.`
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|