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: update x-components and related packages to vue 3 #1644

Merged
merged 42 commits into from
Oct 24, 2024
Merged

Conversation

diegopf
Copy link
Contributor

@diegopf diegopf commented Oct 24, 2024

This PR marks the culmination of months of effort to update x-components and related packages to Vue 3. The versions released from the release candidate branch have been successfully implemented in https://github.com/empathyco/x-archetype and other projects over the past month. For details on vue 2 compatible versions, please refer to the vue2-legacy branch.

victorcg88 and others added 30 commits July 23, 2024 17:05
* feat(x-installer): update to vue3 and adapt x-installer

* feat(x-installer): simplify internal createApp fn

* feat(scroll): fix import path

* feat(component): keep injector const export

* feat(mixins): removing deprecated mixins
BREAKING-CHANGE: refactors the GlobalXBus to use a prop to receive the listeners instead of relying on attributes.
This PR resolves several warnings when running the internal demo app:

- Initial warning about overwriting the store modules.
- Warnings about `v-on="listeners"` deprecation.
- Removal of `v-bind="attrs"` and `inheritAttrs=false`, because Vue3 implemented by default the attributes inheritance.
- Fixing warning on `attrs` inheritance in RenderlessFilter.
- Fixing some components that throw warnings because the render function was incorrect.
…rective and deprecated layouts (#1576)

* get rid of deprecated `MultiColumnMaxWidthLayout`

* Revert "get rid of deprecated `MultiColumnMaxWidthLayout`"

This reverts commit 7fd0374.

* fix(list-components): fix list components, migrate infinite-scroll directive and deprecated layouts

* fix(list-components): avoid injecting undefined default value since Vue does it
* refactor(animation-factory): fix Vue3 breaking changes

* refactor(animation-factory): await animation to load

* refactor(animation-factory): improve type infer

* refactor(animations): Vue3 transition class breaking change
* test(components): propsData is now props

* test(components): revert skip on test cases

* test(components): fix duplicated bus instance

* test(components): provide moved inside global property

* test(components): remove useless nextTick()

* test(components): update jsdoc for installNewXPlugin()
BREAKING CHANGE: @empathyco/x-archetype-utils is only compatible with vue 3
BREAKING CHANGE:

@empathyco/x-components v6 and @empathyco/x-archetype-utils v2 are only compatible with Vue 3 and if you are looking for the Vue 2 versions, take look at the main brach.
* test: fix experience-controls and tagging tests

* test: fix scroll module and clear-search-input tests

* test:fix related-tag test

* test: fix tests in search module

* test: fix tests in history-queries module

* test: fix x-modules tests

* tests: QueryPreview

* test: fix semantic queries test

* test: fix semantic query test

* test: fix x-modules tests

* test: query preview button test

* test: use queries preview composable

* test: queries preview getter

* fix e2e tests

* fix e2e tests

* test: rm unneeded reset in queries preview composable

* test: query preview actions test

* test: query preview utils test

* test: fix x-modules tests

* test: fix x-modules tests

* test: query preview list test

* test: fix facets module tests

* test: adjust some filters lists tests

* test: facets getter test

* test: use-filters-injection composable

* test: fix facets module tests

* test: test facets-service

* test: adapt some filters tests

* test: rm localVue from url module's utils

* test: fix tagging actions test

* test: fix pdp-add-to-cart service

* test: fix search button test

* test: fix semantics module tests

* test: fix experience-controls getter test

* test: adjust selected-filters-list test

* test: fix getters-proxy.spec.ts

* test: fix search input test

* test: fix search input placeholder test

* test: fix search box module actions test

* test: fix facets-provider.spec.ts

* test: adjust preselected-filters test

* test: fix base-event-button and use-x-bus test sheets

* test: fix test sheets of filter components

* test: fix highlight and result-variants-provider-and-selector tests

---------

Co-authored-by: Diego Pascual <[email protected]>
Co-authored-by: albertjcuac <[email protected]>
Co-authored-by: acondal <[email protected]>
Co-authored-by: Jose Antonio Cabañeros <[email protected]>
joseacabaneros and others added 12 commits September 16, 2024 11:37
BREAKING CHANGE: remove `change` event emission in favour of `update:modelValue` in `BaseSwitch` component.
* test: fix semantic queries test

* test: use queries preview composable

* fix e2e tests

* fix e2e tests

* test: rm unneeded reset in queries preview composable

* test: fix facets module tests

* test: fix semantics module tests

* test: wip

* test: preselected-filters in progress

* test: WIP stopped tests

* test: fix test sheets of filter components

* test: fix search-input test

* test: fix renderless-extra-params test

* test: fix clear-history-queries test sheet

* test: fix related-tags test sheets

* test: fix next-query test

* test: fix x-installer test sheet

* test: fix default-api test sheet

* test: fix test sheets related with vue-global-events third party dependency

* test: fix actions test sheet of related-tags module

* test: fix identifier-results test sheet

* test: fix results-list test sheet and forward slots in the component itself

* test: fix banners-list test sheet and forward slots in the component itself

* test: fix promoted-list test sheet and forward slots in the component itself

* test: fix next-queries test sheet

* test: fix selected-filters test sheet

* test: fix query-preview test sheet

* test: reactivate skipped test in history-query and clean up

* fix: PR comments

* test: fix search-input unit test

* test: fix next-queries-list test sheet

* test: fix minor issue with query-preview-list test sheet

* test: fix PR comments

---------

Co-authored-by: Diego Pascual <[email protected]>
Co-authored-by: acondal <[email protected]>
Co-authored-by: Laura Martinez Garcia <[email protected]>
Co-authored-by: albertjcuac <[email protected]>
@diegopf diegopf requested a review from a team as a code owner October 24, 2024 10:07
Copy link
Member

@joseacabaneros joseacabaneros left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's go! 🚀

@diegopf diegopf merged commit d590842 into main Oct 24, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants