From 6ce5bbdf7ef2ed9687fa33ba7999eceb9a33eee3 Mon Sep 17 00:00:00 2001 From: gpbl Date: Fri, 12 Feb 2021 20:13:37 -0500 Subject: [PATCH 1/3] Re-add transform-react-remove-prop-types to babelrc Should fix #919 --- .babelrc | 9 ++++++++- package.json | 1 + 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.babelrc b/.babelrc index 641307820a..60e2a65f31 100644 --- a/.babelrc +++ b/.babelrc @@ -3,6 +3,13 @@ "plugins": [ "transform-export-extensions", "transform-class-properties", - "transform-object-rest-spread" + "transform-object-rest-spread", + [ + "transform-react-remove-prop-types", + { + "removeImport": true, + }, + ], + ] } diff --git a/package.json b/package.json index cd2e374b57..91a2bb4d19 100644 --- a/package.json +++ b/package.json @@ -68,6 +68,7 @@ "babel-plugin-transform-class-properties": "^6.24.1", "babel-plugin-transform-export-extensions": "^6.22.0", "babel-plugin-transform-object-rest-spread": "^6.26.0", + "babel-plugin-transform-react-remove-prop-types": "^0.4.24", "babel-preset-env": "^1.7.0", "babel-preset-react": "^6.24.1", "babel-preset-stage-1": "^6.24.1", From d06e238d5e3daa4822ffbd39e3448acaeb2b5b30 Mon Sep 17 00:00:00 2001 From: gpbl Date: Fri, 12 Feb 2021 20:13:48 -0500 Subject: [PATCH 2/3] Add type definitions to eslintignore --- .eslintignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.eslintignore b/.eslintignore index 87b1ec7baf..4a867264e2 100644 --- a/.eslintignore +++ b/.eslintignore @@ -1 +1,2 @@ lib/**/*.js +*.d.ts From 6a1cb4df76bb5e8718282a84a54f3ad55d5f9ed3 Mon Sep 17 00:00:00 2001 From: gpbl Date: Fri, 12 Feb 2021 20:16:09 -0500 Subject: [PATCH 3/3] Bump 7.5.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 91a2bb4d19..60e08bb8c6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-day-picker", - "version": "7.4.8", + "version": "7.5.0", "description": "Flexible date picker component for React", "main": "lib/react-day-picker.min.js", "module": "build/index.js",