Skip to content

Deprecate vue-class-component #4744

Closed
Closed
@Mikilll94

Description

@Mikilll94

What problem does this feature solve?

I am posting this in this repo because it seems that vue-class-component repo is dead.

vue-class-component (https://github.com/vuejs/vue-class-component) library made sense for Vue 2.x when the TypeScript support was really bad. Currently this library provides no additional benefits, it just modifies the syntax of a component. Additionally almost all users of vue-class-component are using vue-property-decorator library which also seems abandoned.

For 3.x the author of vue-class-component introduced a new way of declaring component vuejs/vue-class-component#465 which looks ugly and IMO most developers will not like it. This creates additional chaos because now you can use the new way of declaring props into class components or just install vue-property-decorator and use decorators like it was before.

In conclusion, my suggestion is to deprecate vue-class-component library and do not further suggest new developers using it.

There is no point to fragment the Vue ecosystem into class components and object components where class components provides gain to the standard Vue syntax.

What does the proposed API look like?

  • deprecate vue-class-component and vue-property-decorator
  • remove "class components" option from vue-cli

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions