From 5edbc9accf98a5fa7fd28240726d8d3de3fd33f7 Mon Sep 17 00:00:00 2001 From: afc163 Date: Thu, 1 Jul 2021 14:36:40 +0800 Subject: [PATCH] fix: dayjs and date-fns as deps with wide semver version range (#270) close https://github.com/ant-design/ant-design/issues/31096 close https://github.com/ant-design/ant-design/issues/23435 --- package.json | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 7481aa924..dca42d692 100644 --- a/package.json +++ b/package.json @@ -40,7 +40,8 @@ "dependencies": { "@babel/runtime": "^7.10.1", "classnames": "^2.2.1", - "date-fns": "^2.15.0", + "date-fns": "2.x", + "dayjs": "1.x", "moment": "^2.24.0", "rc-trigger": "^5.0.4", "rc-util": "^5.4.0", @@ -59,7 +60,6 @@ "@umijs/fabric": "^2.0.8", "coveralls": "^3.0.6", "cross-env": "^7.0.2", - "dayjs": "^1.8.30", "enzyme": "^3.0.0", "enzyme-adapter-react-16": "^1.0.1", "enzyme-to-json": "^3.4.0", @@ -85,7 +85,6 @@ "mode": "npm" }, "peerDependencies": { - "dayjs": "^1.8.30", "react": ">=16.9.0", "react-dom": ">=16.9.0" }