Skip to content

Commit 3e3b550

Browse files
committed
chore(package): downgrade to Jest 21 until React's #11098 is fixed
1 parent 720254f commit 3e3b550

File tree

2 files changed

+106
-83
lines changed

2 files changed

+106
-83
lines changed

package.json

Lines changed: 29 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"@storybook/react": "^3.2.16",
1919
"babel-cli": "^6.24.1",
2020
"babel-eslint": "^8.0.2",
21-
"babel-jest": "^22.0.0",
21+
"babel-jest": "^21.0.0",
2222
"babel-polyfill": "^6.26.0",
2323
"conventional-github-releaser": "^2.0.0",
2424
"cross-env": "^5.1.1",
@@ -30,7 +30,7 @@
3030
"eslint-plugin-react": "^7.5.1",
3131
"husky": "^0.14.3",
3232
"intersection-observer": "^0.5.0",
33-
"jest": "^22.0.0",
33+
"jest": "^21.0.0",
3434
"lint-staged": "^6.0.0",
3535
"prettier": "^1.8.2",
3636
"raf": "^3.4.0",
@@ -45,13 +45,28 @@
4545
"typescript": "^2.6.2",
4646
"validate-commit-msg": "^2.14.0"
4747
},
48-
"files": ["lib", "types/index.d.ts"],
48+
"files": [
49+
"lib",
50+
"types/index.d.ts"
51+
],
4952
"types": "types/index.d.ts",
5053
"homepage": "https://github.com/researchgate/react-intersection-observer#readme",
51-
"keywords": ["Intersection", "Observer", "react", "component", "viewport", "visible", "invisible", "researchgate"],
54+
"keywords": [
55+
"Intersection",
56+
"Observer",
57+
"react",
58+
"component",
59+
"viewport",
60+
"visible",
61+
"invisible",
62+
"researchgate"
63+
],
5264
"license": "MIT",
5365
"lint-staged": {
54-
"{src,docs/docs}/**/*.js": ["eslint --fix", "git add"]
66+
"{src,docs/docs}/**/*.js": [
67+
"eslint --fix",
68+
"git add"
69+
]
5570
},
5671
"main": "lib/js/index.js",
5772
"module": "lib/es/index.js",
@@ -65,15 +80,17 @@
6580
},
6681
"jest": {
6782
"rootDir": "src",
68-
"testMatch": ["**/__tests__/**/*.spec.js"],
69-
"setupFiles": ["raf/polyfill"]
83+
"testMatch": [
84+
"**/__tests__/**/*.spec.js"
85+
],
86+
"setupFiles": [
87+
"raf/polyfill"
88+
]
7089
},
7190
"scripts": {
7291
"build": "yarn build:js && yarn build:es",
73-
"build:js":
74-
"cross-env BABEL_ENV=production BABEL_OUTPUT=cjs babel src --out-dir lib/js --ignore __tests__ --copy-files",
75-
"build:es":
76-
"cross-env BABEL_ENV=production BABEL_OUTPUT=esm babel src --out-dir lib/es --ignore __tests__ --copy-files",
92+
"build:js": "cross-env BABEL_ENV=production BABEL_OUTPUT=cjs babel src --out-dir lib/js --ignore __tests__ --copy-files",
93+
"build:es": "cross-env BABEL_ENV=production BABEL_OUTPUT=esm babel src --out-dir lib/es --ignore __tests__ --copy-files",
7794
"build:storybook": "build-storybook --output-dir docs",
7895
"clear": "rimraf ./lib",
7996
"commitmsg": "validate-commit-msg",
@@ -88,4 +105,4 @@
88105
"storybook": "start-storybook -p 9001 -c .storybook",
89106
"test": "jest"
90107
}
91-
}
108+
}

yarn.lock

Lines changed: 77 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -835,7 +835,7 @@ babel-helpers@^6.24.1:
835835
babel-runtime "^6.22.0"
836836
babel-template "^6.24.1"
837837

838-
babel-jest@^21.2.0:
838+
babel-jest@^21.0.0, babel-jest@^21.2.0:
839839
version "21.2.0"
840840
resolved "https://registry.yarnpkg.com/babel-jest/-/babel-jest-21.2.0.tgz#2ce059519a9374a2c46f2455b6fbef5ad75d863e"
841841
dependencies:
@@ -2588,7 +2588,7 @@ dateformat@^3.0.0:
25882588
version "3.0.2"
25892589
resolved "https://registry.yarnpkg.com/dateformat/-/dateformat-3.0.2.tgz#9a4df4bff158ac2f34bc637abdb15471607e1659"
25902590

2591-
[email protected], debug@^2.2.0, debug@^2.6.3, debug@^2.6.8:
2591+
[email protected], debug@^2.2.0, debug@^2.6.8:
25922592
version "2.6.9"
25932593
resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f"
25942594
dependencies:
@@ -2600,6 +2600,12 @@ debug@^3.0.1:
26002600
dependencies:
26012601
ms "2.0.0"
26022602

2603+
debug@^3.1.0:
2604+
version "3.1.0"
2605+
resolved "https://registry.yarnpkg.com/debug/-/debug-3.1.0.tgz#5bb5a0672628b64149566ba16819e61518c67261"
2606+
dependencies:
2607+
ms "2.0.0"
2608+
26032609
decamelize@^1.0.0, decamelize@^1.1.1, decamelize@^1.1.2:
26042610
version "1.2.0"
26052611
resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-1.2.0.tgz#f6534d15148269b20352e7bee26f501f9a191290"
@@ -2799,12 +2805,18 @@ enhanced-resolve@^3.4.0:
27992805
object-assign "^4.0.1"
28002806
tapable "^0.2.7"
28012807

2802-
errno@^0.1.3, errno@^0.1.4:
2808+
errno@^0.1.3:
28032809
version "0.1.4"
28042810
resolved "https://registry.yarnpkg.com/errno/-/errno-0.1.4.tgz#b896e23a9e5e8ba33871fc996abd3635fc9a1c7d"
28052811
dependencies:
28062812
prr "~0.0.0"
28072813

2814+
errno@^0.1.4:
2815+
version "0.1.6"
2816+
resolved "https://registry.yarnpkg.com/errno/-/errno-0.1.6.tgz#c386ce8a6283f14fc09563b71560908c9bf53026"
2817+
dependencies:
2818+
prr "~1.0.1"
2819+
28082820
error-ex@^1.2.0, error-ex@^1.3.1:
28092821
version "1.3.1"
28102822
resolved "https://registry.yarnpkg.com/error-ex/-/error-ex-1.3.1.tgz#f855a86ce61adc4e8621c3cda21e7a7612c3a8dc"
@@ -3959,9 +3971,9 @@ interpret@^1.0.0:
39593971
version "1.0.4"
39603972
resolved "https://registry.yarnpkg.com/interpret/-/interpret-1.0.4.tgz#820cdd588b868ffb191a809506d6c9c8f212b1b0"
39613973

3962-
intersection-observer@^0.4.3:
3963-
version "0.4.3"
3964-
resolved "https://registry.yarnpkg.com/intersection-observer/-/intersection-observer-0.4.3.tgz#22ff07442269d8be694551a782e0b081ecd4adfd"
3974+
intersection-observer@^0.5.0:
3975+
version "0.5.0"
3976+
resolved "https://registry.yarnpkg.com/intersection-observer/-/intersection-observer-0.5.0.tgz#9fe8bee3953c755b1485c38efd9633d535775ea6"
39653977

39663978
invariant@^2.2.0, invariant@^2.2.2:
39673979
version "2.2.2"
@@ -4227,17 +4239,17 @@ isstream@~0.1.2:
42274239
resolved "https://registry.yarnpkg.com/isstream/-/isstream-0.1.2.tgz#47e63f7af55afa6f92e1500e690eb8b8529c099a"
42284240

42294241
istanbul-api@^1.1.1:
4230-
version "1.1.14"
4231-
resolved "https://registry.yarnpkg.com/istanbul-api/-/istanbul-api-1.1.14.tgz#25bc5701f7c680c0ffff913de46e3619a3a6e680"
4242+
version "1.2.1"
4243+
resolved "https://registry.yarnpkg.com/istanbul-api/-/istanbul-api-1.2.1.tgz#0c60a0515eb11c7d65c6b50bba2c6e999acd8620"
42324244
dependencies:
42334245
async "^2.1.4"
42344246
fileset "^2.0.2"
42354247
istanbul-lib-coverage "^1.1.1"
4236-
istanbul-lib-hook "^1.0.7"
4237-
istanbul-lib-instrument "^1.8.0"
4238-
istanbul-lib-report "^1.1.1"
4239-
istanbul-lib-source-maps "^1.2.1"
4240-
istanbul-reports "^1.1.2"
4248+
istanbul-lib-hook "^1.1.0"
4249+
istanbul-lib-instrument "^1.9.1"
4250+
istanbul-lib-report "^1.1.2"
4251+
istanbul-lib-source-maps "^1.2.2"
4252+
istanbul-reports "^1.1.3"
42414253
js-yaml "^3.7.0"
42424254
mkdirp "^0.5.1"
42434255
once "^1.4.0"
@@ -4246,13 +4258,25 @@ istanbul-lib-coverage@^1.0.1, istanbul-lib-coverage@^1.1.1:
42464258
version "1.1.1"
42474259
resolved "https://registry.yarnpkg.com/istanbul-lib-coverage/-/istanbul-lib-coverage-1.1.1.tgz#73bfb998885299415c93d38a3e9adf784a77a9da"
42484260

4249-
istanbul-lib-hook@^1.0.7:
4250-
version "1.0.7"
4251-
resolved "https://registry.yarnpkg.com/istanbul-lib-hook/-/istanbul-lib-hook-1.0.7.tgz#dd6607f03076578fe7d6f2a630cf143b49bacddc"
4261+
istanbul-lib-hook@^1.1.0:
4262+
version "1.1.0"
4263+
resolved "https://registry.yarnpkg.com/istanbul-lib-hook/-/istanbul-lib-hook-1.1.0.tgz#8538d970372cb3716d53e55523dd54b557a8d89b"
42524264
dependencies:
42534265
append-transform "^0.4.0"
42544266

4255-
istanbul-lib-instrument@^1.4.2, istanbul-lib-instrument@^1.7.5, istanbul-lib-instrument@^1.8.0:
4267+
istanbul-lib-instrument@^1.4.2, istanbul-lib-instrument@^1.9.1:
4268+
version "1.9.1"
4269+
resolved "https://registry.yarnpkg.com/istanbul-lib-instrument/-/istanbul-lib-instrument-1.9.1.tgz#250b30b3531e5d3251299fdd64b0b2c9db6b558e"
4270+
dependencies:
4271+
babel-generator "^6.18.0"
4272+
babel-template "^6.16.0"
4273+
babel-traverse "^6.18.0"
4274+
babel-types "^6.18.0"
4275+
babylon "^6.18.0"
4276+
istanbul-lib-coverage "^1.1.1"
4277+
semver "^5.3.0"
4278+
4279+
istanbul-lib-instrument@^1.7.5:
42564280
version "1.8.0"
42574281
resolved "https://registry.yarnpkg.com/istanbul-lib-instrument/-/istanbul-lib-instrument-1.8.0.tgz#66f6c9421cc9ec4704f76f2db084ba9078a2b532"
42584282
dependencies:
@@ -4264,28 +4288,28 @@ istanbul-lib-instrument@^1.4.2, istanbul-lib-instrument@^1.7.5, istanbul-lib-ins
42644288
istanbul-lib-coverage "^1.1.1"
42654289
semver "^5.3.0"
42664290

4267-
istanbul-lib-report@^1.1.1:
4268-
version "1.1.1"
4269-
resolved "https://registry.yarnpkg.com/istanbul-lib-report/-/istanbul-lib-report-1.1.1.tgz#f0e55f56655ffa34222080b7a0cd4760e1405fc9"
4291+
istanbul-lib-report@^1.1.2:
4292+
version "1.1.2"
4293+
resolved "https://registry.yarnpkg.com/istanbul-lib-report/-/istanbul-lib-report-1.1.2.tgz#922be27c13b9511b979bd1587359f69798c1d425"
42704294
dependencies:
42714295
istanbul-lib-coverage "^1.1.1"
42724296
mkdirp "^0.5.1"
42734297
path-parse "^1.0.5"
42744298
supports-color "^3.1.2"
42754299

4276-
istanbul-lib-source-maps@^1.1.0, istanbul-lib-source-maps@^1.2.1:
4277-
version "1.2.1"
4278-
resolved "https://registry.yarnpkg.com/istanbul-lib-source-maps/-/istanbul-lib-source-maps-1.2.1.tgz#a6fe1acba8ce08eebc638e572e294d267008aa0c"
4300+
istanbul-lib-source-maps@^1.1.0, istanbul-lib-source-maps@^1.2.2:
4301+
version "1.2.2"
4302+
resolved "https://registry.yarnpkg.com/istanbul-lib-source-maps/-/istanbul-lib-source-maps-1.2.2.tgz#750578602435f28a0c04ee6d7d9e0f2960e62c1c"
42794303
dependencies:
4280-
debug "^2.6.3"
4304+
debug "^3.1.0"
42814305
istanbul-lib-coverage "^1.1.1"
42824306
mkdirp "^0.5.1"
42834307
rimraf "^2.6.1"
42844308
source-map "^0.5.3"
42854309

4286-
istanbul-reports@^1.1.2:
4287-
version "1.1.2"
4288-
resolved "https://registry.yarnpkg.com/istanbul-reports/-/istanbul-reports-1.1.2.tgz#0fb2e3f6aa9922bd3ce45d05d8ab4d5e8e07bd4f"
4310+
istanbul-reports@^1.1.3:
4311+
version "1.1.3"
4312+
resolved "https://registry.yarnpkg.com/istanbul-reports/-/istanbul-reports-1.1.3.tgz#3b9e1e8defb6d18b1d425da8e8b32c5a163f2d10"
42894313
dependencies:
42904314
handlebars "^4.0.3"
42914315

@@ -4532,7 +4556,7 @@ jest-validate@^21.2.1:
45324556
leven "^2.1.0"
45334557
pretty-format "^21.2.1"
45344558

4535-
jest@^21.2.1:
4559+
jest@^21.0.0:
45364560
version "21.2.1"
45374561
resolved "https://registry.yarnpkg.com/jest/-/jest-21.2.1.tgz#c964e0b47383768a1438e3ccf3c3d470327604e1"
45384562
dependencies:
@@ -4690,14 +4714,15 @@ levn@^0.3.0, levn@~0.3.0:
46904714
prelude-ls "~1.1.2"
46914715
type-check "~0.3.2"
46924716

4693-
lint-staged@^5.0.0:
4694-
version "5.0.0"
4695-
resolved "https://registry.yarnpkg.com/lint-staged/-/lint-staged-5.0.0.tgz#f1c670e03e2fdf3f3d0eb81f72d3bcf658770e54"
4717+
lint-staged@^6.0.0:
4718+
version "6.0.0"
4719+
resolved "https://registry.yarnpkg.com/lint-staged/-/lint-staged-6.0.0.tgz#7ab7d345f2fe302ff196f1de6a005594ace03210"
46964720
dependencies:
46974721
app-root-path "^2.0.0"
46984722
chalk "^2.1.0"
46994723
commander "^2.11.0"
47004724
cosmiconfig "^3.1.0"
4725+
debug "^3.1.0"
47014726
dedent "^0.7.0"
47024727
execa "^0.8.0"
47034728
find-parent-dir "^0.3.0"
@@ -5174,13 +5199,13 @@ node-libs-browser@^2.0.0:
51745199
vm-browserify "0.0.4"
51755200

51765201
node-notifier@^5.0.2:
5177-
version "5.1.2"
5178-
resolved "https://registry.yarnpkg.com/node-notifier/-/node-notifier-5.1.2.tgz#2fa9e12605fa10009d44549d6fcd8a63dde0e4ff"
5202+
version "5.2.1"
5203+
resolved "https://registry.yarnpkg.com/node-notifier/-/node-notifier-5.2.1.tgz#fa313dd08f5517db0e2502e5758d664ac69f9dea"
51795204
dependencies:
51805205
growly "^1.3.0"
5181-
semver "^5.3.0"
5182-
shellwords "^0.1.0"
5183-
which "^1.2.12"
5206+
semver "^5.4.1"
5207+
shellwords "^0.1.1"
5208+
which "^1.3.0"
51845209

51855210
node-pre-gyp@^0.6.36:
51865211
version "0.6.38"
@@ -5278,8 +5303,8 @@ number-is-nan@^1.0.0:
52785303
resolved "https://registry.yarnpkg.com/number-is-nan/-/number-is-nan-1.0.1.tgz#097b602b53422a522c1afb8790318336941a011d"
52795304

52805305
"nwmatcher@>= 1.3.9 < 2.0.0":
5281-
version "1.4.1"
5282-
resolved "https://registry.yarnpkg.com/nwmatcher/-/nwmatcher-1.4.1.tgz#7ae9b07b0ea804db7e25f05cb5fe4097d4e4949f"
5306+
version "1.4.3"
5307+
resolved "https://registry.yarnpkg.com/nwmatcher/-/nwmatcher-1.4.3.tgz#64348e3b3d80f035b40ac11563d278f8b72db89c"
52835308

52845309
oauth-sign@~0.8.1, oauth-sign@~0.8.2:
52855310
version "0.8.2"
@@ -5979,6 +6004,10 @@ prr@~0.0.0:
59796004
version "0.0.0"
59806005
resolved "https://registry.yarnpkg.com/prr/-/prr-0.0.0.tgz#1a84b85908325501411853d0081ee3fa86e2926a"
59816006

6007+
prr@~1.0.1:
6008+
version "1.0.1"
6009+
resolved "https://registry.yarnpkg.com/prr/-/prr-1.0.1.tgz#d3fc114ba06995a45ec6893f484ceb1d78f5f476"
6010+
59826011
pseudomap@^1.0.2:
59836012
version "1.0.2"
59846013
resolved "https://registry.yarnpkg.com/pseudomap/-/pseudomap-1.0.2.tgz#f052a28da70e618917ef0a8ac34c1ae5a68286b3"
@@ -6425,34 +6454,7 @@ [email protected]:
64256454
tunnel-agent "^0.6.0"
64266455
uuid "^3.0.0"
64276456

6428-
request@^2.79.0:
6429-
version "2.82.0"
6430-
resolved "https://registry.yarnpkg.com/request/-/request-2.82.0.tgz#2ba8a92cd7ac45660ea2b10a53ae67cd247516ea"
6431-
dependencies:
6432-
aws-sign2 "~0.7.0"
6433-
aws4 "^1.6.0"
6434-
caseless "~0.12.0"
6435-
combined-stream "~1.0.5"
6436-
extend "~3.0.1"
6437-
forever-agent "~0.6.1"
6438-
form-data "~2.3.1"
6439-
har-validator "~5.0.3"
6440-
hawk "~6.0.2"
6441-
http-signature "~1.2.0"
6442-
is-typedarray "~1.0.0"
6443-
isstream "~0.1.2"
6444-
json-stringify-safe "~5.0.1"
6445-
mime-types "~2.1.17"
6446-
oauth-sign "~0.8.2"
6447-
performance-now "^2.1.0"
6448-
qs "~6.5.1"
6449-
safe-buffer "^5.1.1"
6450-
stringstream "~0.0.5"
6451-
tough-cookie "~2.3.2"
6452-
tunnel-agent "^0.6.0"
6453-
uuid "^3.1.0"
6454-
6455-
request@^2.83.0:
6457+
request@^2.79.0, request@^2.83.0:
64566458
version "2.83.0"
64576459
resolved "https://registry.yarnpkg.com/request/-/request-2.83.0.tgz#ca0b65da02ed62935887808e6f510381034e3356"
64586460
dependencies:
@@ -6611,6 +6613,10 @@ [email protected], semver-regex@^1.0.0:
66116613
version "5.4.1"
66126614
resolved "https://registry.yarnpkg.com/semver/-/semver-5.4.1.tgz#e059c09d8571f0540823733433505d3a2f00b18e"
66136615

6616+
semver@^5.4.1:
6617+
version "5.5.0"
6618+
resolved "https://registry.yarnpkg.com/semver/-/semver-5.5.0.tgz#dc4bbc7a6ca9d916dee5d43516f0092b58f7b8ab"
6619+
66146620
66156621
version "0.16.1"
66166622
resolved "https://registry.yarnpkg.com/send/-/send-0.16.1.tgz#a70e1ca21d1382c11d0d9f6231deb281080d7ab3"
@@ -6698,7 +6704,7 @@ shelljs@^0.7.8:
66986704
interpret "^1.0.0"
66996705
rechoir "^0.6.2"
67006706

6701-
shellwords@^0.1.0:
6707+
shellwords@^0.1.1:
67026708
version "0.1.1"
67036709
resolved "https://registry.yarnpkg.com/shellwords/-/shellwords-0.1.1.tgz#d6b9181c1a48d397324c84871efbcfc73fc0654b"
67046710

@@ -7141,7 +7147,7 @@ to-fast-properties@^2.0.0:
71417147
version "2.0.0"
71427148
resolved "https://registry.yarnpkg.com/to-fast-properties/-/to-fast-properties-2.0.0.tgz#dc5e698cbd079265bc73e0377681a4e4e83f616e"
71437149

7144-
tough-cookie@^2.3.2, tough-cookie@~2.3.0, tough-cookie@~2.3.2, tough-cookie@~2.3.3:
7150+
tough-cookie@^2.3.2, tough-cookie@~2.3.0, tough-cookie@~2.3.3:
71457151
version "2.3.3"
71467152
resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-2.3.3.tgz#0b618a5565b6dea90bf3425d04d55edc475a7561"
71477153
dependencies:
@@ -7477,7 +7483,7 @@ which-module@^2.0.0:
74777483
version "2.0.0"
74787484
resolved "https://registry.yarnpkg.com/which-module/-/which-module-2.0.0.tgz#d9ef07dce77b9902b8a3a8fa4b31c3e3f7e6e87a"
74797485

7480-
which@^1.2.10, which@^1.2.12, which@^1.2.9:
7486+
which@^1.2.10, which@^1.2.12, which@^1.2.9, which@^1.3.0:
74817487
version "1.3.0"
74827488
resolved "https://registry.yarnpkg.com/which/-/which-1.3.0.tgz#ff04bdfc010ee547d780bec38e1ac1c2777d253a"
74837489
dependencies:
@@ -7506,8 +7512,8 @@ wordwrap@~1.0.0:
75067512
resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-1.0.0.tgz#27584810891456a4171c8d0226441ade90cbcaeb"
75077513

75087514
worker-farm@^1.3.1:
7509-
version "1.5.0"
7510-
resolved "https://registry.yarnpkg.com/worker-farm/-/worker-farm-1.5.0.tgz#adfdf0cd40581465ed0a1f648f9735722afd5c8d"
7515+
version "1.5.2"
7516+
resolved "https://registry.yarnpkg.com/worker-farm/-/worker-farm-1.5.2.tgz#32b312e5dc3d5d45d79ef44acc2587491cd729ae"
75117517
dependencies:
75127518
errno "^0.1.4"
75137519
xtend "^4.0.1"

0 commit comments

Comments
 (0)