@casl/vue - Vue 3 support
See original GitHub issueIs your feature request related to a problem? Please describe. Our team is migrating our projects to Vue 3 and I would like to migrate @casl/vue to Vue 3 as well 😁.
Describe the solution you’d like There aren’t many changes that would need to be made, but they would break backwards compatibility:
- update plugin to use an application instance (detailed under Global API in migration guide)
- update can component to use
createComponent
(detailed under Vue 3 TypeScript support) - update lifecycle hooks, namely update
beforeCreate
tosetup
(detailed under lifecycle hooks) - any other unforseen issues that might arise while debugging the plugin
I’m thinking that we might need to create a new branch to support Vue 3 and maintain compatibility with Vue 2 and am open to ideas about how the project would best support this change.
Issue Analytics
- State:
- Created 3 years ago
- Comments:22 (12 by maintainers)
Top Results From Across the Web
CASL Vue
This package allows to integrate @casl/ability with Vue 3 application. So, you can show or hide UI elements based on user ability to...
Read more >@casl/vue - npm
Vue plugin for CASL which makes it easy to add permissions in any Vue application. Latest version: 2.2.1, last published: 10 days ago....
Read more >casl/vue: What should by ability.js file look like? - Stack Overflow
I'm trying to integrate @casl/vue with Vue 3, and I'm afraid I'm having problems. ... A practical example would really help me! Thanks!...
Read more >stalniy-casl/casl - Gitter
Check this repo https://github.com/stalniy/casl-vue-api-example for a reference ... (3) But writing 1 as I've done in 2 for READING users of course results ......
Read more >casl-vue-example - CodeSandbox
stalniy / casl-vue-example / master ... App.vue. main.js. static .babelrc .editorconfig .eslintignore .eslintrc.js .gitignore .postcssrc.js. LICENSE.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
🎉 This issue has been resolved in version 2.0.0 🎉
The release is available on:
Your semantic-release bot 📦🚀
I picked up the work in a separate branch and finalizing tests. So, very soon I’ll release a new version