reactjs / react-tabs

An accessible and easy tab component for ReactJS.
https://reactcommunity.org/react-tabs/
MIT License
3.1k stars 447 forks source link

feat!: Remove UMD build and drop support for older browsers #505

Closed danez closed 2 years ago

danez commented 2 years ago

BREAKING CHANGE: The UMD build has been removed. BREAKING CHANGE: Older browsers are not supported anymore. In particulare Internet Explorer, the default browser on Android < 5.0 and iOS Safari < 12.2 BREAKING CHANGE: src folder is not included anymore in the package to reduce package size.

codecov-commenter commented 2 years ago

Codecov Report

Merging #505 (abb9187) into main (b3f77c7) will not change coverage. The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #505   +/-   ##
=======================================
  Coverage   99.08%   99.08%           
=======================================
  Files           9        9           
  Lines         328      328           
  Branches      104      104           
=======================================
  Hits          325      325           
  Misses          3        3           
Impacted Files Coverage Ξ”
src/components/Tabs.js 100.00% <0.00%> (ΓΈ)
src/components/UncontrolledTabs.js 99.40% <0.00%> (ΓΈ)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

github-actions[bot] commented 2 years ago

πŸ“Š Package size report   -70.1%↓

File Before (Size / Gzip) After (Size / Gzip)
dist/react-tabs.development.js 19.6 kB / 4.8 kB β€”
dist/react-tabs.production.min.js 7.4 kB / 2.7 kB β€”
esm/components/Tab.js 2.1 kB / 845 B -29.4%↓1.5 kB / -25.7%↓628 B
esm/components/TabList.js 1.1 kB / 497 B -36.2%↓671 B / -33.2%↓332 B
esm/components/TabPanel.js 1.5 kB / 651 B -34.1%↓989 B / -30.4%↓453 B
esm/components/Tabs.js 3.1 kB / 1.1 kB -8.47%↓2.9 kB / -4.5%↓1.0 kB
esm/components/UncontrolledTabs.js 7.3 kB / 2.1 kB -15.5%↓6.2 kB / -11.5%↓1.8 kB
esm/helpers/childrenDeepMap.js 877 B / 307 B -3.53%↓846 B / -2.61%↓299 B
esm/helpers/count.js 213 B / 157 B -3.76%↓205 B / 0.6%↑158 B
esm/helpers/elementTypes.js 254 B / 145 B -3.94%↓244 B / -2.07%↓142 B
esm/helpers/propTypes.js 2.6 kB / 921 B 0.2%↑2.6 kB / 0.7%↑927 B
lib/components/Tab.js 3.6 kB / 1.3 kB -19.9%↓2.9 kB / -16.7%↓1.0 kB
lib/components/TabList.js 1.4 kB / 585 B -29.3%↓1.0 kB / -27%↓427 B
lib/components/TabPanel.js 1.9 kB / 742 B -29.2%↓1.3 kB / -25.7%↓551 B
lib/components/Tabs.js 4.6 kB / 1.5 kB -7.68%↓4.3 kB / -2.87%↓1.5 kB
lib/components/UncontrolledTabs.js 9.0 kB / 2.5 kB -13.7%↓7.7 kB / -8.92%↓2.2 kB
lib/helpers/childrenDeepMap.js 1.1 kB / 353 B -2.92%↓1.0 kB / -2.55%↓344 B
lib/helpers/count.js 333 B / 195 B -2.4%↓325 B / -0.51%↓194 B
lib/helpers/elementTypes.js 406 B / 196 B -2.46%↓396 B / -0.51%↓195 B
lib/helpers/propTypes.js 2.8 kB / 973 B 0.2%↑2.8 kB / 0.7%↑980 B
lib/index.js 582 B / 220 B -2.41%↓568 B / -1.82%↓216 B
package.json 3.6 kB / 1.3 kB -9.01%↓3.2 kB / -6.16%↓1.2 kB
README.md 12.8 kB / 3.9 kB -5.56%↓12.1 kB / -6.71%↓3.6 kB
src/components/Tab.js 1.9 kB / 691 B β€”
src/components/TabList.js 670 B / 326 B β€”
src/components/TabPanel.js 1.1 kB / 491 B β€”
src/components/Tabs.js 4.2 kB / 1.5 kB β€”
src/components/UncontrolledTabs.js 11.1 kB / 3.0 kB β€”
src/helpers/childrenDeepMap.js 1.4 kB / 441 B β€”
src/helpers/count.js 250 B / 176 B β€”
src/helpers/elementTypes.js 269 B / 156 B β€”
src/helpers/propTypes.js 3.3 kB / 1.0 kB β€”
src/index.js 224 B / 100 B β€”
Total (Includes all files) 199.6 kB / 60.0 kB -70.1%↓59.7 kB / -65.5%↓20.7 kB
Tarball size 44.6 kB -71.7%↓12.6 kB
Unchanged files | File | Size (Size / Gzip) | | --------------------------------------------------------------------------------------------------- | -----------------: | | `esm/index.js` | `200 B` / `94 B` | | [`index.d.ts`](https://github.com/reactjs/react-tabs/blob/browser/index.d.ts) | `2.0 kB` / `540 B` | | [`LICENSE`](https://github.com/reactjs/react-tabs/blob/browser/LICENSE) | `1.1 kB` / `646 B` | | [`style/react-tabs.css`](https://github.com/reactjs/react-tabs/blob/browser/style/react-tabs.css) | `842 B` / `369 B` | | [`style/react-tabs.less`](https://github.com/reactjs/react-tabs/blob/browser/style/react-tabs.less) | `879 B` / `393 B` | | [`style/react-tabs.scss`](https://github.com/reactjs/react-tabs/blob/browser/style/react-tabs.scss) | `879 B` / `393 B` |
Hidden files | File | Before (Size / Gzip) | After (Size / Gzip) | | --------------------------------------- | --------------------: | ------------------: | | `dist/react-tabs.development.js.map` | `48.7 kB` / `12.3 kB` | β€” | | `dist/react-tabs.production.min.js.map` | `32.4 kB` / `9.6 kB` | β€” |

πŸ€– This report was automatically generated by pkg-size-action

github-actions[bot] commented 2 years ago

:tada: This PR is included in version 6.0.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: