Skip to content
This repository was archived by the owner on Nov 25, 2021. It is now read-only.

Commit 12f0dd3

Browse files
committed
chore(deps): remove react dependency
1 parent e4278db commit 12f0dd3

File tree

3 files changed

+2
-62
lines changed

3 files changed

+2
-62
lines changed

package.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,6 @@
3535
"rxjs": "^6.3.3",
3636
"ts-key-enum": "^2.0.0"
3737
},
38-
"peerDependencies": {
39-
"react": "^16.0.0"
40-
},
4138
"devDependencies": {
4239
"@commitlint/cli": "^7.0.0",
4340
"@commitlint/config-conventional": "^7.0.1",
@@ -51,7 +48,6 @@
5148
"@types/lodash": "^4.14.110",
5249
"@types/mocha": "^5.2.3",
5350
"@types/node": "^10.5.0",
54-
"@types/react": "16.8.10",
5551
"@types/sinon": "^7.0.0",
5652
"@types/webpack": "^4.4.4",
5753
"@types/webpack-env": "^1.13.6",
@@ -75,7 +71,6 @@
7571
"mocha": "^5.2.0",
7672
"prettier": "^1.14.2",
7773
"raw-loader": "^2.0.0",
78-
"react": "^16.3.0",
7974
"rimraf": "^2.6.2",
8075
"semantic-release": "^15.6.3",
8176
"sinon": "^7.0.0",

src/helpers.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import * as React from 'react'
2-
31
/**
42
* Returns true if `val` is not `null` or `undefined`
53
*/
@@ -34,13 +32,3 @@ export const scrollIntoCenterIfNeeded = (container: HTMLElement, content: HTMLEl
3432
container.scrollTop = scrollTop
3533
}
3634
}
37-
38-
/**
39-
* Converts a synthetic React event to a persisted, native Event object.
40-
*
41-
* @param event The synthetic React event object
42-
*/
43-
export const toNativeEvent = <E extends React.SyntheticEvent<T>, T>(event: E): E['nativeEvent'] => {
44-
event.persist()
45-
return event.nativeEvent
46-
}

yarn.lock

Lines changed: 2 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -471,19 +471,6 @@
471471
resolved "https://registry.yarnpkg.com/@types/node/-/node-10.9.4.tgz#0f4cb2dc7c1de6096055357f70179043c33e9897"
472472
integrity sha512-fCHV45gS+m3hH17zgkgADUSi2RR1Vht6wOZ0jyHP8rjiQra9f+mIcgwPQHllmDocYOstIEbKlxbFDYlgrTPYqw==
473473

474-
"@types/prop-types@*":
475-
version "15.7.0"
476-
resolved "https://registry.yarnpkg.com/@types/prop-types/-/prop-types-15.7.0.tgz#4c48fed958d6dcf9487195a0ef6456d5f6e0163a"
477-
integrity sha512-eItQyV43bj4rR3JPV0Skpl1SncRCdziTEK9/v8VwXmV6d/qOUO8/EuWeHBbCZcsfSHfzI5UyMJLCSXtxxznyZg==
478-
479-
"@types/react@16.8.10":
480-
version "16.8.10"
481-
resolved "https://registry.yarnpkg.com/@types/react/-/react-16.8.10.tgz#1ccb6fde17f71a62ef055382ec68bdc379d4d8d9"
482-
integrity sha512-7bUQeZKP4XZH/aB4i7k1i5yuwymDu/hnLMhD9NjVZvQQH7ZUgRN3d6iu8YXzx4sN/tNr0bj8jgguk8hhObzGvA==
483-
dependencies:
484-
"@types/prop-types" "*"
485-
csstype "^2.2.0"
486-
487474
"@types/sinon@^7.0.0":
488475
version "7.0.11"
489476
resolved "https://registry.yarnpkg.com/@types/sinon/-/sinon-7.0.11.tgz#6f28f005a36e779b7db0f1359b9fb9eef72aae88"
@@ -2152,11 +2139,6 @@ crypto-random-string@^1.0.0:
21522139
resolved "https://registry.yarnpkg.com/crypto-random-string/-/crypto-random-string-1.0.0.tgz#a230f64f568310e1498009940790ec99545bca7e"
21532140
integrity sha1-ojD2T1aDEOFJgAmUB5DsmVRbyn4=
21542141

2155-
csstype@^2.2.0:
2156-
version "2.5.7"
2157-
resolved "https://registry.yarnpkg.com/csstype/-/csstype-2.5.7.tgz#bf9235d5872141eccfb2d16d82993c6b149179ff"
2158-
integrity sha512-Nt5VDyOTIIV4/nRFswoCKps1R5CD1hkiyjBE9/thNaNZILLEviVw9yWQw15+O+CpNjQKB/uvdcxFFOrSflY3Yw==
2159-
21602142
currently-unhandled@^0.4.1:
21612143
version "0.4.1"
21622144
resolved "https://registry.yarnpkg.com/currently-unhandled/-/currently-unhandled-0.4.1.tgz#988df33feab191ef799a61369dd76c17adf957ea"
@@ -4572,7 +4554,7 @@ lolex@^3.0.0:
45724554
resolved "https://registry.yarnpkg.com/lolex/-/lolex-3.0.0.tgz#f04ee1a8aa13f60f1abd7b0e8f4213ec72ec193e"
45734555
integrity sha512-hcnW80h3j2lbUfFdMArd5UPA/vxZJ+G8vobd+wg3nVEQA0EigStbYcrG030FJxL6xiDDPEkoMatV9xIh5OecQQ==
45744556

4575-
loose-envify@^1.0.0, loose-envify@^1.1.0, loose-envify@^1.3.1:
4557+
loose-envify@^1.0.0:
45764558
version "1.4.0"
45774559
resolved "https://registry.yarnpkg.com/loose-envify/-/loose-envify-1.4.0.tgz#71ee51fa7be4caec1a63839f7e682d8132d30caf"
45784560
integrity sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==
@@ -5434,7 +5416,7 @@ oauth-sign@~0.9.0:
54345416
resolved "https://registry.yarnpkg.com/oauth-sign/-/oauth-sign-0.9.0.tgz#47a7b016baa68b5fa0ecf3dee08a85c679ac6455"
54355417
integrity sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ==
54365418

5437-
object-assign@^4.1.0, object-assign@^4.1.1:
5419+
object-assign@^4.1.0:
54385420
version "4.1.1"
54395421
resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863"
54405422
integrity sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=
@@ -5894,14 +5876,6 @@ promzard@^0.3.0:
58945876
dependencies:
58955877
read "1"
58965878

5897-
prop-types@^15.6.2:
5898-
version "15.6.2"
5899-
resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.6.2.tgz#05d5ca77b4453e985d60fc7ff8c859094a497102"
5900-
integrity sha512-3pboPvLiWD7dkI3qf3KbUe6hKFKa52w+AE0VCqECtf+QHAKgOL37tTaNCnuX1nAAQ4ZhyP+kYVKf8rLmJ/feDQ==
5901-
dependencies:
5902-
loose-envify "^1.3.1"
5903-
object-assign "^4.1.1"
5904-
59055879
proto-list@~1.2.1:
59065880
version "1.2.4"
59075881
resolved "https://registry.yarnpkg.com/proto-list/-/proto-list-1.2.4.tgz#212d5bfe1318306a420f6402b8e26ff39647a849"
@@ -6081,16 +6055,6 @@ rc@^1.0.1, rc@^1.1.6, rc@^1.2.7, rc@^1.2.8:
60816055
minimist "^1.2.0"
60826056
strip-json-comments "~2.0.1"
60836057

6084-
react@^16.3.0:
6085-
version "16.5.1"
6086-
resolved "https://registry.yarnpkg.com/react/-/react-16.5.1.tgz#8cb8e9f8cdcb4bde41c9a138bfbf907e66132372"
6087-
integrity sha512-E+23+rbpPsJgSX812LQkwupUCFnbVE84+L8uxlkqN5MU0DcraWMlVf9cRvKCKtGu0XvScyRnW7Z+9d7ymkjy3A==
6088-
dependencies:
6089-
loose-envify "^1.1.0"
6090-
object-assign "^4.1.1"
6091-
prop-types "^15.6.2"
6092-
schedule "^0.4.0"
6093-
60946058
read-cmd-shim@^1.0.1, read-cmd-shim@~1.0.1:
60956059
version "1.0.1"
60966060
resolved "https://registry.yarnpkg.com/read-cmd-shim/-/read-cmd-shim-1.0.1.tgz#2d5d157786a37c055d22077c32c53f8329e91c7b"
@@ -6490,13 +6454,6 @@ sax@^1.2.4:
64906454
resolved "https://registry.yarnpkg.com/sax/-/sax-1.2.4.tgz#2816234e2378bddc4e5354fab5caa895df7100d9"
64916455
integrity sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==
64926456

6493-
schedule@^0.4.0:
6494-
version "0.4.0"
6495-
resolved "https://registry.yarnpkg.com/schedule/-/schedule-0.4.0.tgz#fa20cfd0bfbf91c47d02272fd7096780d3170bbb"
6496-
integrity sha512-hYjmoaEMojiMkWCxKr6ue+LYcZ29u29+AamWYmzwT2VOO9ws5UJp/wNhsVUPiUeNh+EdRfZm7nDeB40ffTfMhA==
6497-
dependencies:
6498-
object-assign "^4.1.1"
6499-
65006457
schema-utils@^0.3.0:
65016458
version "0.3.0"
65026459
resolved "https://registry.yarnpkg.com/schema-utils/-/schema-utils-0.3.0.tgz#f5877222ce3e931edae039f17eb3716e7137f8cf"

0 commit comments

Comments
 (0)