-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(@aws-amplify/ui-vue): Use @aws-amplify/ui-components
for Vue 3
#7634
Conversation
@aws-amplify/ui-components
for Vue 3
Codecov Report
@@ Coverage Diff @@
## main #7634 +/- ##
=======================================
Coverage 74.10% 74.10%
=======================================
Files 214 214
Lines 13405 13405
Branches 2626 2626
=======================================
Hits 9934 9934
Misses 3272 3272
Partials 199 199 Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🌮
…aws-amplify#7634) * Add Vue 3 Integration tests * Add warning message for Vue 2 * Try adding peer dependency * throw error instead * Fix whitespace Co-authored-by: Sam Martinez <samlmar@amazon.com>
This pull request has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs. Looking for a help forum? We recommend joining the Amplify Community Discord server |
Issue #, if available: #6756, #7456
Description of changes: We will now use
@aws-amplify/ui-components
to support Vue 3 and onwards. Vue 2 users can keep using@aws-amplify/ui-vue
. This PR creates warning mechanisms whenever user tries to useui-vue
with Vue 3.Background
Vue 3 brings major API changes such that it's hard to configure both Vue 2 and Vue 3 inside the same package:
Vue
is now deprecated.ignoredElement
is renamed toisCustomElement
and can no longer be configured from library side.ui-vue
package will be harder to maintain as we to adapt to future versions of Vue.For these reasons, we'll instruct the customers to use
@aws-amplify/ui-components
instead. Documentation updates are tracked in aws-amplify/docs#2880PR Changes
This PR creates warning mechanisms for using
ui-vue
on Vue 3 app:import '@aws-amplify/ui-vue'
"Vue": "2.x.x"
to@aws-amplify/ui-vue
In addition, we run integration tests for vue 3 samples we are adding in https://github.com/aws-amplify/amplify-js-samples-staging/pull/192.
Screenshots
On yarn and npm 6
Installing
ui-vue
on Vue 3 gives a warning:If customer serves that app, this will show an error on console:
On npm 7
Installing
ui-vue
on Vue 3 fails (which is really nice!).By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.