Skip to content
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(compat): add Vue 3 support via @vue/compat, round 2 (fixes #5196) #6905

Merged
merged 34 commits into from Oct 25, 2022

Commits on Oct 24, 2022

  1. chore(compat): introduce Vue3 testing infrastructure

    Add basic setup for running tests with vue3 compat
    xanf committed Oct 24, 2022
    Copy the full SHA
    2ce6672 View commit details
    Browse the repository at this point in the history
  2. chore(compat): replace providing components with getter functions

    Vue3 compat build fails so hard when you have a Vue component
    inside provide. To avoid this replace direct provides with
    combination of getter functions and computed
    xanf committed Oct 24, 2022
    Copy the full SHA
    7b02d33 View commit details
    Browse the repository at this point in the history
  3. chore(compat): replace parent/root access with wrappers

    Vue 3 compat does not allow to pass parent as parameter
    to new Vue instance, so we need to introduce a mixin
    to handle that. In future root mixin might be replaced
    with some tiny emitter like mitt
    xanf committed Oct 24, 2022
    Copy the full SHA
    c096e2d View commit details
    Browse the repository at this point in the history
  4. chore(compat): introduce vue3 compatibility wrapper

    * fixes vModel issues
    * fixes rendering problems for functional components
    * expose new helpers: isVue3, nextTick
    xanf committed Oct 24, 2022
    Copy the full SHA
    71b37ff View commit details
    Browse the repository at this point in the history
  5. Copy the full SHA
    f873121 View commit details
    Browse the repository at this point in the history
  6. chore(compat): implement component access from vnode for vue3

    Replace __vue__ with platform dependent access
    xanf committed Oct 24, 2022
    Copy the full SHA
    92db60b View commit details
    Browse the repository at this point in the history
  7. Copy the full SHA
    9726a64 View commit details
    Browse the repository at this point in the history
  8. chore(compat): delay first attempt to show image for nextTick

    It seems Vue 2 and Vue 3 are not consistent about when lifecycle
    hooks are called. Unify this behavior
    xanf committed Oct 24, 2022
    Copy the full SHA
    358ee9b View commit details
    Browse the repository at this point in the history
  9. feature(vue3): replace transporter implementation with teleport

    * Use built-in teleport in Vue3
    xanf committed Oct 24, 2022
    Copy the full SHA
    e65f802 View commit details
    Browse the repository at this point in the history
  10. chore(compat): disable tests related to has-listener in Vue 3

    There is no way to answer, if we have listeners for even when using
    Vue3 compat build with $on available. Disable these tests for now,
    these could be enabled later, when INSTANCE_EVENT_EMITTER flag will
    be disabled
    xanf committed Oct 24, 2022
    Copy the full SHA
    35c888e View commit details
    Browse the repository at this point in the history
  11. chore(compat): skip tbody-transition tests in Vue 3

    * @vue/test-utils v2 does not allow stub transitions ATM
    xanf committed Oct 24, 2022
    Copy the full SHA
    3f0a141 View commit details
    Browse the repository at this point in the history
  12. chore(compat): disable subset of config specs due to localVue

    localVue implementation provided by vue-test-utils-compat is
    limited and does not allow us to cover all use cases
    xanf committed Oct 24, 2022
    Copy the full SHA
    50afc56 View commit details
    Browse the repository at this point in the history
  13. chore(compat): unify access to component instance from directive

    Getting component instance from directive is different in
    Vue 2 and Vue 3. Introduce new util to solve this
    xanf committed Oct 24, 2022
    Copy the full SHA
    543b9f5 View commit details
    Browse the repository at this point in the history
  14. chore(compat): make tabs properly filter in Vue 3

    * correctly handle `null` inside children
    * fix test
    xanf committed Oct 24, 2022
    Copy the full SHA
    ea1269f View commit details
    Browse the repository at this point in the history
  15. Copy the full SHA
    2d6660f View commit details
    Browse the repository at this point in the history
  16. chore: fix warnings about accessing undefined fields in render

    * introduce "safe-vue-instance" helper
    xanf committed Oct 24, 2022
    Copy the full SHA
    b7e764a View commit details
    Browse the repository at this point in the history
  17. Copy the full SHA
    d035937 View commit details
    Browse the repository at this point in the history
  18. Copy the full SHA
    05db323 View commit details
    Browse the repository at this point in the history
  19. Copy the full SHA
    c7d1065 View commit details
    Browse the repository at this point in the history
  20. Copy the full SHA
    7e16f96 View commit details
    Browse the repository at this point in the history
  21. Copy the full SHA
    411e0e9 View commit details
    Browse the repository at this point in the history
  22. Copy the full SHA
    ae4bac8 View commit details
    Browse the repository at this point in the history
  23. Copy the full SHA
    779dd69 View commit details
    Browse the repository at this point in the history
  24. Copy the full SHA
    d8edafc View commit details
    Browse the repository at this point in the history
  25. Copy the full SHA
    fe13503 View commit details
    Browse the repository at this point in the history
  26. Copy the full SHA
    725d31b View commit details
    Browse the repository at this point in the history
  27. chore(vue3): avoid patching global Vue.extend

    * use own extend instead
    xanf committed Oct 24, 2022
    Copy the full SHA
    c7699c8 View commit details
    Browse the repository at this point in the history
  28. Copy the full SHA
    56cdff4 View commit details
    Browse the repository at this point in the history
  29. Copy the full SHA
    975e4de View commit details
    Browse the repository at this point in the history
  30. chore: bump version

    xanf committed Oct 24, 2022
    Copy the full SHA
    d9cd860 View commit details
    Browse the repository at this point in the history
  31. Copy the full SHA
    7462a49 View commit details
    Browse the repository at this point in the history
  32. Copy the full SHA
    b69b4c5 View commit details
    Browse the repository at this point in the history
  33. chore: remove unused vars

    xanf committed Oct 24, 2022
    Copy the full SHA
    b442471 View commit details
    Browse the repository at this point in the history
  34. chore: ignore vue3-specific code

    xanf committed Oct 24, 2022
    Copy the full SHA
    6ef2ba4 View commit details
    Browse the repository at this point in the history