From e4b9867107cfc6f040105e48aa7522d2b2fd2701 Mon Sep 17 00:00:00 2001 From: Daniel Tschinder <231804+danez@users.noreply.github.com> Date: Sun, 27 Nov 2022 12:11:51 +0000 Subject: [PATCH] feat!: Remove UMD build and drop support for older browsers 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. --- .babelrc.js | 1 + .browserslistrc | 6 ++ .gitignore | 1 - README.md | 37 ++-------- package.json | 14 +--- rollup.config.js | 55 --------------- yarn.lock | 180 +++++++++-------------------------------------- 7 files changed, 48 insertions(+), 246 deletions(-) create mode 100644 .browserslistrc delete mode 100644 rollup.config.js diff --git a/.babelrc.js b/.babelrc.js index b10eab046b..e7a3c19095 100644 --- a/.babelrc.js +++ b/.babelrc.js @@ -23,6 +23,7 @@ const options = { [ '@babel/env', { + bugfixes: true, loose: true, modules, targets, diff --git a/.browserslistrc b/.browserslistrc new file mode 100644 index 0000000000..55ae8fde69 --- /dev/null +++ b/.browserslistrc @@ -0,0 +1,6 @@ +> 0.3% +last 2 versions +Firefox ESR +not dead +not Android <5 +maintained node versions \ No newline at end of file diff --git a/.gitignore b/.gitignore index 8c4e7b6f3a..e1b3410040 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,5 @@ coverage/ node_modules/ npm-debug.log lib/ -dist/ esm/ yarn-error.log diff --git a/README.md b/README.md index 992e84b67f..dd785a6316 100644 --- a/README.md +++ b/README.md @@ -4,8 +4,8 @@ An accessible and easy tab component for ReactJS. https://reactcommunity.org/react-tabs/ -> Version 5 of `react-tabs` needs react version 18 or newer -> +> Version 5 or newer of `react-tabs` needs react version 18 or newer +> > Version 4 of `react-tabs` needs react version 16.8 or newer

react-tabs was tested on real mobile devices and browsers with
@@ -25,17 +25,6 @@ or npm install --save react-tabs ``` -You can also use react-tabs directly as UMD build in an HTML document by adding - -```html -