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

BREAKING(package): update to React 16 #2880

Merged
merged 28 commits into from
Jun 29, 2018
Merged

BREAKING(package): update to React 16 #2880

merged 28 commits into from
Jun 29, 2018

Conversation

layershifter
Copy link
Member

@layershifter layershifter commented Jun 5, 2018

BREAKING CHANGES

Fixes #2747.
Fixes #2886.
Fixes #2910.

React 16 was released in September 2017, the update process is simple and I don't know any supported application that still uses React 15. It's time to say goodbye to React 15.

Please keep in mind, that in near future we will require React 16.3.


1. Requirement of React 16

Now SUIR requires react^16.0.0.

2. Breaking changes in Portal

See #2755 for detailed list of performed changes.

3. Add the triggerRef for Portal

See #2902 for more details.

4. Breaking changes in the shorthand API of Accordion

See #2904 for detailed list of performed changes.

* breaking(Portal): use createPortal() API

* test(Portal): rewrite tests

* test(Portal): rewrite tests

* fix(Portal): mixed fixes in tests

* fix(Portal): fix path of typings
@layershifter layershifter changed the title breaking(package): Update to React 16 BREAKING(package): Update to React 16 Jun 5, 2018
@layershifter layershifter changed the title BREAKING(package): Update to React 16 BREAKING(package): update to React 16 Jun 5, 2018
…React into react-16

Signed-off-by: Oleksandr Fediashov <[email protected]>

# Conflicts:
#	docs/app/Components/IconSearch/IconSearch.js
#	index.d.ts
#	src/addons/Portal/Portal.d.ts
#	src/addons/Portal/Portal.js
#	src/elements/Flag/Flag.js
#	src/elements/Icon/Icon.js
#	src/modules/Modal/Modal.js
Oleksandr Fediashov added 5 commits June 6, 2018 13:26
Signed-off-by: Oleksandr Fediashov <[email protected]>
Signed-off-by: Oleksandr Fediashov <[email protected]>
Signed-off-by: Oleksandr Fediashov <[email protected]>
Signed-off-by: Oleksandr Fediashov <[email protected]>
Signed-off-by: Oleksandr Fediashov <[email protected]>
…React into react-16

Signed-off-by: Oleksandr Fediashov <[email protected]>

# Conflicts:
#	docs/src/examples/modules/Modal/Variations/ModalExampleCloseConfig.js
layershifter and others added 2 commits June 12, 2018 10:59
* feat(Portal): add `triggerRef` prop

Signed-off-by: Oleksandr Fediashov <[email protected]>

* test(Portal): add test for `triggerRef` prop

Signed-off-by: Oleksandr Fediashov <[email protected]>
Signed-off-by: Oleksandr Fediashov <[email protected]>
@codecov-io
Copy link

codecov-io commented Jun 12, 2018

Codecov Report

❗ No coverage uploaded for pull request base (master@6484449). Click here to learn what that means.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master    #2880   +/-   ##
=========================================
  Coverage          ?   99.81%           
=========================================
  Files             ?      163           
  Lines             ?     2738           
  Branches          ?        0           
=========================================
  Hits              ?     2733           
  Misses            ?        5           
  Partials          ?        0
Impacted Files Coverage Δ
src/elements/Flag/Flag.js 100% <ø> (ø)
src/elements/Icon/Icon.js 100% <ø> (ø)
src/modules/Accordion/Accordion.js 100% <100%> (ø)
src/modules/Popup/Popup.js 100% <100%> (ø)
src/addons/Portal/PortalInner.js 100% <100%> (ø)
src/modules/Accordion/AccordionPanel.js 100% <100%> (ø)
src/addons/Portal/Portal.js 100% <100%> (ø)
src/modules/Modal/Modal.js 100% <100%> (ø)
src/modules/Accordion/AccordionAccordion.js 100% <100%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6484449...89c1b96. Read the comment docs.

@layershifter
Copy link
Member Author

layershifter commented Jun 18, 2018

@levithomason marked as ready for review.

I don't want to include there changes for Breadcrumb because they are very unclear. Changes for forwardRef I want include to future releases.

@ivosabev
Copy link

When is this scheduled to ship?

@layershifter
Copy link
Member Author

I hope on this or next week.

Oleksandr Fediashov added 2 commits June 25, 2018 12:47
…React into react-16

Signed-off-by: Oleksandr Fediashov <[email protected]>

# Conflicts:
#	index.d.ts
#	src/addons/Portal/Portal.d.ts
#	src/elements/Flag/Flag.d.ts
#	src/elements/Icon/Icon.d.ts
#	src/modules/Accordion/AccordionAccordion.d.ts
Signed-off-by: Oleksandr Fediashov <[email protected]>
@layershifter
Copy link
Member Author

Merged with masted and solved merge conflicts.

@levithomason
Copy link
Member

We have two failing tests here, I've run out of time for today:

Dropdown
     onOpen
      ✖ is called once when the icon is clicked with a search prop
     search
      ✖ filters the items based on custom search function

@mgandley
Copy link
Contributor

Waiting on this for the IE portal fix! Thanks for your work on it @layershifter!

Oleksandr Fediashov added 3 commits June 27, 2018 15:43
@layershifter
Copy link
Member Author

We have two failing tests here, I've run out of time for today:

@levithomason I hate the Dropdown component, I will refactor it fully someday

Oleksandr Fediashov and others added 2 commits June 27, 2018 18:48
@layershifter
Copy link
Member Author

layershifter commented Jun 27, 2018

I reverted updates in yarn.lock, tests are passed. It seems that we will have the surprise from minor updates in dependencies.

@layershifter
Copy link
Member Author

@levithomason I want to merge and release any solution for #2958 before this.

@levithomason
Copy link
Member

@layershifter I've merged #2958 released [email protected]. I'm good with this PR if and when you are. Feel free to merge after fixing conflicts and I'll release as 0.82.0.

…React into react-16

# Conflicts:
#	src/addons/Portal/Portal.d.ts
#	src/addons/Portal/Portal.js
@layershifter layershifter merged commit 1d795bc into master Jun 29, 2018
@layershifter
Copy link
Member Author

Solved merged conflicts and merged 👍

@levithomason
Copy link
Member

Released in [email protected].

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants