From 923f9f18206ddb39ba4de032257f31278855dada Mon Sep 17 00:00:00 2001 From: Claudia Date: Wed, 5 Feb 2020 15:18:42 -0500 Subject: [PATCH] Move draft-js as a peer dependency --- .gitignore | 1 + package.json | 3 ++- yarn.lock | 38 +++++++++++++++++++++++++++++++------- 3 files changed, 34 insertions(+), 8 deletions(-) diff --git a/.gitignore b/.gitignore index aababa19..9187b68d 100644 --- a/.gitignore +++ b/.gitignore @@ -56,6 +56,7 @@ build/Release # Dependency directory # https://docs.npmjs.com/misc/faq#should-i-check-my-node-modules-folder-into-git node_modules +package-lock.json .eslintcache dist/ hash.json diff --git a/package.json b/package.json index 6b2095bb..48c7ab16 100644 --- a/package.json +++ b/package.json @@ -29,12 +29,12 @@ "author": "Brijesh Bittu (http://bitwiser.in/)", "license": "MIT", "dependencies": { - "draft-js": "^0.10.0", "immutable": "^3.7.6", "react-transition-group": "^2.5.0" }, "peerDependencies": { "draft-convert": "^2.0.0", + "draft-js": "^0.11.4", "prop-types": "^15.6.2", "react": "^15.0.0 || ^16.0.0", "react-dom": "^15.0.0 || ^16.0.0" @@ -53,6 +53,7 @@ "chai": "^3.5.0", "css-loader": "^0.23.1", "draft-convert": "^2.0.0", + "draft-js": "^0.11.4", "enzyme": "^2.8.2", "eslint": "^4.8.2", "eslint-config-airbnb": "^10.0.1", diff --git a/yarn.lock b/yarn.lock index 1884850b..7f7bc474 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1699,6 +1699,11 @@ core-js@^2.4.0, core-js@^2.5.0: resolved "https://registry.yarnpkg.com/core-js/-/core-js-2.5.7.tgz#f972608ff0cead68b841a16a932d0b183791814e" integrity sha512-RszJCAxg/PP6uzXVXL6BsxSXx/B05oJAQ2vkJRjyjrEcNVycaqOmNb5OTxZPE3xa5gwZduqza6L9JOCenh/Ecw== +core-js@^2.4.1: + version "2.6.11" + resolved "https://registry.yarnpkg.com/core-js/-/core-js-2.6.11.tgz#38831469f9922bded8ee21c9dc46985e0399308c" + integrity sha512-5wjnpaT/3dV+XB4borEsnAYQchn00XSgTAWKDkEqv+K8KevjbzmofK6hfJ9TZIlpj2N0xQpazy7PiRQiWHqzWg== + core-util-is@1.0.2, core-util-is@~1.0.0: version "1.0.2" resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7" @@ -2214,14 +2219,14 @@ draft-convert@^2.0.0: immutable "~3.7.4" invariant "^2.2.1" -draft-js@^0.10.0: - version "0.10.5" - resolved "https://registry.yarnpkg.com/draft-js/-/draft-js-0.10.5.tgz#bfa9beb018fe0533dbb08d6675c371a6b08fa742" - integrity sha512-LE6jSCV9nkPhfVX2ggcRLA4FKs6zWq9ceuO/88BpXdNCS7mjRTgs0NsV6piUCJX9YxMsB9An33wnkMmU2sD2Zg== +draft-js@^0.11.4: + version "0.11.4" + resolved "https://registry.yarnpkg.com/draft-js/-/draft-js-0.11.4.tgz#e48782b96b90a5c14f2cb34c164c2a1a359d8a48" + integrity sha512-BLZ59s0vkDj/zI8UPo9Nit/hPsl11ztDejxDCQlVbvEXJSWrTXqO6ZYgdw3hXLtuojq/URqq3wTrpnb3dvzvLA== dependencies: - fbjs "^0.8.15" + fbjs "^1.0.0" immutable "~3.7.4" - object-assign "^4.1.0" + object-assign "^4.1.1" ecc-jsbn@~0.1.1: version "0.1.2" @@ -2817,7 +2822,12 @@ faye-websocket@~0.11.0: dependencies: websocket-driver ">=0.5.1" -fbjs@^0.8.15, fbjs@^0.8.9: +fbjs-css-vars@^1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/fbjs-css-vars/-/fbjs-css-vars-1.0.2.tgz#216551136ae02fe255932c3ec8775f18e2c078b8" + integrity sha512-b2XGFAFdWZWg0phtAWLHCk836A1Xann+I+Dgd3Gk64MHKZO44FfoD1KxyvbSh0qZsIoXQGGlVztIY+oitJPpRQ== + +fbjs@^0.8.9: version "0.8.17" resolved "https://registry.yarnpkg.com/fbjs/-/fbjs-0.8.17.tgz#c4d598ead6949112653d6588b01a5cdcd9f90fdd" integrity sha1-xNWY6taUkRJlPWWIsBpc3Nn5D90= @@ -2830,6 +2840,20 @@ fbjs@^0.8.15, fbjs@^0.8.9: setimmediate "^1.0.5" ua-parser-js "^0.7.18" +fbjs@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/fbjs/-/fbjs-1.0.0.tgz#52c215e0883a3c86af2a7a776ed51525ae8e0a5a" + integrity sha512-MUgcMEJaFhCaF1QtWGnmq9ZDRAzECTCRAF7O6UZIlAlkTs1SasiX9aP0Iw7wfD2mJ7wDTNfg2w7u5fSCwJk1OA== + dependencies: + core-js "^2.4.1" + fbjs-css-vars "^1.0.0" + isomorphic-fetch "^2.1.1" + loose-envify "^1.0.0" + object-assign "^4.1.0" + promise "^7.1.1" + setimmediate "^1.0.5" + ua-parser-js "^0.7.18" + figures@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/figures/-/figures-2.0.0.tgz#3ab1a2d2a62c8bfb431a0c94cb797a2fce27c962"