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

[#321] Upgrade React to v18 #336

Merged
merged 18 commits into from
Apr 26, 2024
Merged

[#321] Upgrade React to v18 #336

merged 18 commits into from
Apr 26, 2024

Conversation

darkwebdev
Copy link
Collaborator

@darkwebdev darkwebdev commented Apr 5, 2024

  • React/ReactDOM + types v16 -> v18
  • improve event callbacks expectations (no more anySyntheticEvent)
  • replace toBeCalled/toBeCalledWith with toHaveBeenCalled/toHaveBeenCalledWith

Storybook

Published as @ebay/ui-core-react@6.2.2-rc.1

# Conflicts:
#	.storybook/preview.js
#	src/ebay-alert-dialog/__tests__/__snapshots__/index.spec.tsx.snap
#	src/ebay-alert-dialog/__tests__/index.stories.tsx
#	src/ebay-breadcrumbs/__tests__/__snapshots__/index.spec.tsx.snap
#	src/ebay-breadcrumbs/__tests__/index.stories.tsx
#	src/ebay-button/__tests__/__snapshots__/index.spec.tsx.snap
#	src/ebay-button/__tests__/index.stories.tsx
#	src/ebay-calendar/__tests__/__snapshots__/index.spec.tsx.snap
#	src/ebay-calendar/__tests__/index.stories.tsx
#	src/ebay-carousel/__tests__/__snapshots__/index.spec.tsx.snap
#	src/ebay-carousel/__tests__/index.stories.tsx
#	src/ebay-checkbox/__tests__/__snapshots__/index.spec.tsx.snap
#	src/ebay-checkbox/__tests__/index.stories.tsx
#	src/ebay-confirm-dialog/__tests__/__snapshots__/index.spec.tsx.snap
#	src/ebay-confirm-dialog/__tests__/index.stories.tsx
#	src/ebay-cta-button/__tests__/__snapshots__/index.spec.tsx.snap
#	src/ebay-cta-button/__tests__/index.stories.tsx
#	src/ebay-date-textbox/__tests__/__snapshots__/index.spec.tsx.snap
#	src/ebay-date-textbox/__tests__/index.stories.tsx
#	src/ebay-drawer-dialog/__tests__/__snapshots__/index.spec.tsx.snap
#	src/ebay-drawer-dialog/__tests__/index.stories.tsx
#	src/ebay-eek/__tests__/__snapshots__/index.spec.tsx.snap
#	src/ebay-eek/__tests__/index.stories.tsx
#	src/ebay-fake-menu-button/__tests__/index.stories.tsx
#	src/ebay-fake-menu/__tests__/index.stories.tsx
#	src/ebay-fake-tabs/__tests__/__snapshots__/index.spec.tsx.snap
#	src/ebay-fake-tabs/__tests__/index.stories.tsx
#	src/ebay-field/__tests__/__snapshots__/index.spec.tsx.snap
#	src/ebay-field/__tests__/index.stories.tsx
#	src/ebay-fullscreen-dialog/__tests__/__snapshots__/index.spec.tsx.snap
#	src/ebay-fullscreen-dialog/__tests__/index.stories.tsx
#	src/ebay-icon-button/__tests__/__snapshots__/index.spec.tsx.snap
#	src/ebay-icon-button/__tests__/index.stories.tsx
#	src/ebay-icon/__tests__/__snapshots__/index.spec.tsx.snap
#	src/ebay-icon/__tests__/index.stories.tsx
#	src/ebay-infotip/__tests__/__snapshots__/index.spec.tsx.snap
#	src/ebay-infotip/__tests__/index.stories.tsx
#	src/ebay-inline-notice/__tests__/__snapshots__/index.spec.tsx.snap
#	src/ebay-inline-notice/__tests__/index.stories.tsx
#	src/ebay-lightbox-dialog/__tests__/__snapshots__/index.spec.tsx.snap
#	src/ebay-lightbox-dialog/__tests__/index.stories.tsx
#	src/ebay-listbox-button/__tests__/__snapshots__/index.spec.tsx.snap
#	src/ebay-menu-button/__tests__/index.stories.tsx
#	src/ebay-menu/__tests__/index.stories.tsx
#	src/ebay-page-notice/__tests__/__snapshots__/index.spec.tsx.snap
#	src/ebay-pagination/__tests__/index.stories.tsx
#	src/ebay-panel-dialog/__tests__/__snapshots__/index.spec.tsx.snap
#	src/ebay-panel-dialog/__tests__/index.stories.tsx
#	src/ebay-progress-bar/__tests__/__snapshots__/index.spec.tsx.snap
#	src/ebay-progress-bar/__tests__/index.stories.tsx
#	src/ebay-progress-spinner/__tests__/__snapshots__/index.spec.tsx.snap
#	src/ebay-progress-spinner/__tests__/index.stories.tsx
#	src/ebay-progress-stepper/__tests__/__snapshots__/index.spec.tsx.snap
#	src/ebay-progress-stepper/__tests__/index.stories.tsx
#	src/ebay-radio/__tests__/index.stories.tsx
#	src/ebay-section-notice/__tests__/__snapshots__/index.spec.tsx.snap
#	src/ebay-section-notice/__tests__/index.stories.tsx
#	src/ebay-section-title/__tests__/__snapshots__/index.spec.tsx.snap
#	src/ebay-section-title/__tests__/index.stories.tsx
#	src/ebay-select/__tests__/__snapshots__/index.spec.tsx.snap
#	src/ebay-select/__tests__/index.stories.tsx
#	src/ebay-signal/__tests__/index.stories.tsx
#	src/ebay-snackbar-dialog/__tests__/index.stories.tsx
#	src/ebay-split-button/__tests__/__snapshots__/index.spec.tsx.snap
#	src/ebay-split-button/__tests__/index.stories.tsx
#	src/ebay-star-rating-select/__tests__/index.stories.tsx
#	src/ebay-star-rating/__tests__/index.stories.tsx
#	src/ebay-switch/__tests__/__snapshots__/index.spec.tsx.snap
#	src/ebay-switch/__tests__/index.stories.tsx
#	src/ebay-tabs/__tests__/__snapshots__/index.spec.tsx.snap
#	src/ebay-tabs/__tests__/index.stories.tsx
#	src/ebay-textbox/__tests__/__snapshots__/index.spec.tsx.snap
#	src/ebay-textbox/__tests__/index.stories.tsx
#	src/ebay-toast-dialog/__tests__/__snapshots__/index.spec.tsx.snap
#	src/ebay-toast-dialog/__tests__/index.stories.tsx
#	src/ebay-tooltip/__tests__/__snapshots__/index.spec.tsx.snap
#	src/ebay-tourtip/__tests__/__snapshots__/index.spec.tsx.snap
#	src/ebay-video/__tests__/__snapshots__/index.spec.tsx.snap
#	src/ebay-video/__tests__/index.stories.tsx
#	yarn.lock
# Conflicts:
#	package.json
#	src/ebay-alert-dialog/__tests__/index.spec.tsx
#	src/ebay-breadcrumbs/__tests__/index.spec.tsx
#	src/ebay-button/__tests__/index.spec.tsx
#	src/ebay-calendar/__tests__/index.spec.tsx
#	src/ebay-calendar/__tests__/render.spec.tsx
#	src/ebay-checkbox/__tests__/index.spec.tsx
#	src/ebay-fake-menu-button/__tests__/index.spec.tsx
#	src/ebay-fake-menu/__tests__/index.spec.tsx
#	src/ebay-icon-button/__tests__/index.spec.tsx
#	src/ebay-listbox-button/__tests__/index.spec.tsx
#	src/ebay-page-notice/__tests__/index.spec.tsx
#	src/ebay-pagination/__tests__/index.spec.tsx
#	src/ebay-radio/__tests__/index.spec.tsx
#	src/ebay-section-notice/__tests__/index.spec.tsx
#	src/ebay-select/__tests__/index.spec.tsx
#	src/ebay-split-button/__tests__/index.spec.tsx
#	src/ebay-star-rating-select/__tests__/index.spec.tsx
#	src/ebay-switch/__tests__/index.spec.tsx
#	src/ebay-textbox/__tests__/index.spec.tsx
#	yarn.lock
@darkwebdev darkwebdev marked this pull request as ready for review April 5, 2024 14:39
src/ebay-calendar/__tests__/render.spec.tsx Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
@HenriqueLimas HenriqueLimas merged commit 30f18ec into main Apr 26, 2024
5 checks passed
@HenriqueLimas HenriqueLimas deleted the react-18 branch April 26, 2024 17:11
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.

None yet

2 participants