Vue 3.x Composition API use standard re-write
#1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What kind of change does this PR introduce?
Ground up re-write of the source from
index.jstoindex.tssuch that it now works / is aligned with the Vue 3.xuseSomeFunctionNamestandard.What is the new behavior?
Behaviour is identical as before. Except now there is included types for the creation function options.
Additional context
While this re-write may not be entirely "necessary", it may be of some benefit to eventually re-write this module to follow the new standard. Following from this, re-writing it in TypeScript offers a few benefits, including the plugin option types being included.
I have currently marked the package as a
2.x.xrelease as I feel that this re-write is primarily targeted towards Vue 3.x users, it may be best to keep it as a new major release? Though this can be changed back and instead changed to1.0.5If any other changes I have made are not to your liking, let me know and I will change them 🙂