![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
vue-class-migrator
Advanced tools
CLI tool to help migrating vue class components to vue 3 compatible components.
Vue Class Migrator is a utility designed to facilitate the migration of Vue and TypeScript files using the @component
decorator from vue-class-components
to the defineComponent
format. Under the hood, it employs ts-morph
for parsing and generating files.
You can install vue-class-migrator globally using npm:
npm install -g vue-class-migrator
Accepted options
npm run migrate -- -d <your_path>
The tool also migrates decorators from vuex-class and vue-property-decorator.
If the tool encounters unsupported code in your class, it will produce errors. Monitor the output and verify the generated file. In such cases, you can contribute to the migrator to add support or correct the file manually.
Initially, avoid using --sfc directly.
First, run the tool without it and compare the changes in the TS files using version control. If satisfied, discard the changes and rerun with --sfc.
In addition to migrating the class to the defineComponent format, vue-class-migrator also migrates the following libraries out of the box.
Decorator | Support |
---|---|
@State | ❌ Not yet |
@Getter | ✅ |
@namespace.Getter | ❌ Not yet |
@Action | ✅ |
@Mutation | ✅ |
Decorator | Support |
---|---|
@Prop | ✅ |
@PropSync | ✅ |
@Model | ✅ |
@ModelSync | ✅ |
@Watch | ✅ |
@Provide | ❌ Not yet |
@Inject | ❌ Not yet |
@ProvideReactive | ❌ Not yet |
@InjectReactive | ❌ Not yet |
@Emit | ❌ Not yet |
@Ref | ✅ |
@VModel | ❌ Not yet |
@Component | ✅ |
@Mixins | ✅ |
For security matters please contact security@getyourguide.com.
Copyright 2023 GetYourGuide GmbH.
vue-class-migrator is licensed under the Apache License, Version 2.0. See LICENSE for the full text.
FAQs
CLI tool to help migrating vue class components to vue 3 compatible components.
The npm package vue-class-migrator receives a total of 77 weekly downloads. As such, vue-class-migrator popularity was classified as not popular.
We found that vue-class-migrator demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.