Skip to content

Commit

Permalink
fix: update dependencies
Browse files Browse the repository at this point in the history
1. make sure `preact-compat` is at a version which supports IE11

fixes https://github.com/algolia/algoliasearch-magento-2/issues/535

See for more information also preactjs/preact-compat#423, which is the original fix of the bug

2. make sure there's no duplicate dependency versions by using Yarn  resolutions

NOTE: you can only use Yarn now to build, not npm.
  • Loading branch information
Haroenv committed Aug 2, 2018
1 parent c9d056b commit 281fe2b
Show file tree
Hide file tree
Showing 2 changed files with 79 additions and 50 deletions.
15 changes: 12 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,17 @@
"author": "Algolia <support@algolia.com>",
"repository": "algolia/algoliasearch-extensions-bundle",
"license": "MIT",
"resolutions": {
"algoliasearch": "3.30.0",
"algoliasearch-helper": "2.26.1",
"events": "1.1.1",
"preact-compat": "3.18.2",
"lodash": "4.17.10",
"qs": "6.5.2"
},
"dependencies": {
"algoliasearch": "^3.24.9",
"algoliasearch-helper": "^2.23.2",
"algoliasearch": "^3.27.0",
"algoliasearch-helper": "^2.26.0",
"angular": "1.4.7",
"autocomplete.js": "^0.26.0",
"babel-core": "^6.11.4",
Expand All @@ -28,7 +36,8 @@
"babel-preset-stage-2": "^6.11.0",
"file-loader": "^0.10.1",
"hogan.js": "^3.0.2",
"instantsearch.js": "^2.4.0",
"instantsearch.js": "^2.9.0",
"preact-compat": "^3.18.2",
"jquery": "^2.2.0",
"jquery-ui": "1.10.5",
"json": "^9.0.4",
Expand Down
114 changes: 67 additions & 47 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,18 @@ ajv@^4.9.1:
co "^4.6.0"
json-stable-stringify "^1.0.1"

algoliasearch-helper@^2.23.0, algoliasearch-helper@^2.23.2:
version "2.23.2"
resolved "https://registry.yarnpkg.com/algoliasearch-helper/-/algoliasearch-helper-2.23.2.tgz#8a45db4338cf7d54ade4a54d704bef7559e13a6a"
algoliasearch-helper@2.26.0, algoliasearch-helper@2.26.1, algoliasearch-helper@^2.26.0:
version "2.26.1"
resolved "https://registry.yarnpkg.com/algoliasearch-helper/-/algoliasearch-helper-2.26.1.tgz#75bd34f095e852d1bda483b8ebfb83c3c6e2852c"
dependencies:
events "^1.1.0"
lodash "^4.13.1"
qs "^6.2.1"
events "^1.1.1"
lodash "^4.17.5"
qs "^6.5.1"
util "^0.10.3"

algoliasearch@^3.24.0, algoliasearch@^3.24.9:
version "3.24.9"
resolved "https://registry.yarnpkg.com/algoliasearch/-/algoliasearch-3.24.9.tgz#19063470efe5b6779ec081394b1f7aa400438273"
algoliasearch@3.27.0, algoliasearch@3.30.0, algoliasearch@^3.27.0:
version "3.30.0"
resolved "https://registry.yarnpkg.com/algoliasearch/-/algoliasearch-3.30.0.tgz#355585e49b672e5f71d45b9c2b371ecdff129cd1"
dependencies:
agentkeepalive "^2.2.0"
debug "^2.6.8"
Expand Down Expand Up @@ -929,7 +929,7 @@ chokidar@^1.0.0:
optionalDependencies:
fsevents "^1.0.0"

classnames@^2.2.5:
classnames@2.2.5:
version "2.2.5"
resolved "https://registry.yarnpkg.com/classnames/-/classnames-2.2.5.tgz#fb3801d453467649ef3603c7d61a02bd129bde6d"

Expand Down Expand Up @@ -1134,7 +1134,7 @@ esutils@^2.0.2:
version "2.0.2"
resolved "https://registry.yarnpkg.com/esutils/-/esutils-2.0.2.tgz#0abf4f1caa5bcb1f7a9d8acc6dea4faaa04bac9b"

events@^1.0.0, events@^1.1.0:
events@1.1.0, events@1.1.1, events@^1.0.0, events@^1.1.0, events@^1.1.1:
version "1.1.1"
resolved "https://registry.yarnpkg.com/events/-/events-1.1.1.tgz#9ebdb7635ad099c70dcc4c2a1f5004288e8bd924"

Expand Down Expand Up @@ -1180,6 +1180,18 @@ fbjs@^0.8.16:
setimmediate "^1.0.5"
ua-parser-js "^0.7.9"

fbjs@^0.8.9:
version "0.8.17"
resolved "https://registry.yarnpkg.com/fbjs/-/fbjs-0.8.17.tgz#c4d598ead6949112653d6588b01a5cdcd9f90fdd"
dependencies:
core-js "^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"

file-loader@^0.10.1:
version "0.10.1"
resolved "https://registry.yarnpkg.com/file-loader/-/file-loader-0.10.1.tgz#815034119891fc6441fb5a64c11bc93c22ddd842"
Expand Down Expand Up @@ -1377,7 +1389,7 @@ hoek@2.x.x:
version "2.16.3"
resolved "https://registry.yarnpkg.com/hoek/-/hoek-2.16.3.tgz#20bb7403d3cea398e91dc4710a8ff1b8274a25ed"

hogan.js@^3.0.2:
hogan.js@3.0.2, hogan.js@^3.0.2:
version "3.0.2"
resolved "https://registry.yarnpkg.com/hogan.js/-/hogan.js-3.0.2.tgz#4cd9e1abd4294146e7679e41d7898732b02c7bfd"
dependencies:
Expand Down Expand Up @@ -1454,21 +1466,22 @@ ini@~1.3.0:
version "1.3.5"
resolved "https://registry.yarnpkg.com/ini/-/ini-1.3.5.tgz#eee25f56db1c9ec6085e0c22778083f596abf927"

instantsearch.js@^2.4.0:
version "2.4.1"
resolved "https://registry.yarnpkg.com/instantsearch.js/-/instantsearch.js-2.4.1.tgz#75ee6e8078e532da4989ad653711c6f4c465fc2b"
dependencies:
algoliasearch "^3.24.0"
algoliasearch-helper "^2.23.0"
classnames "^2.2.5"
events "^1.1.0"
hogan.js "^3.0.2"
lodash "^4.17.4"
preact "^8.1.0"
preact-compat "^3.16.0"
preact-rheostat "^2.1.1"
prop-types "^15.5.10"
to-factory "^1.0.0"
instantsearch.js@^2.9.0:
version "2.9.0"
resolved "https://registry.yarnpkg.com/instantsearch.js/-/instantsearch.js-2.9.0.tgz#2b8119e9670cb6643475d810f87f0b801eabc2e5"
dependencies:
algoliasearch "3.27.0"
algoliasearch-helper "2.26.0"
classnames "2.2.5"
events "1.1.0"
hogan.js "3.0.2"
lodash "4.17.5"
preact "8.2.7"
preact-compat "3.18.0"
preact-rheostat "2.1.1"
prop-types "15.5.10"
qs "6.5.1"
to-factory "1.0.0"

interpret@^0.6.4:
version "0.6.6"
Expand Down Expand Up @@ -1699,9 +1712,9 @@ loader-utils@^1.0.2:
emojis-list "^2.0.0"
json5 "^0.5.0"

lodash@^4.13.1, lodash@^4.17.4:
version "4.17.4"
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.4.tgz#78203a4d1c328ae1d86dca6460e369b57f4055ae"
lodash@4.17.10, lodash@4.17.5, lodash@^4.17.4, lodash@^4.17.5:
version "4.17.10"
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.10.tgz#1b7793cf7259ea38fb3661d4d38b3260af8ae4e7"

longest@^1.0.1:
version "1.0.1"
Expand Down Expand Up @@ -2045,23 +2058,23 @@ pkg-dir@^1.0.0:
dependencies:
find-up "^1.0.0"

preact-compat@^3.16.0, preact-compat@^3.17.0:
version "3.17.0"
resolved "https://registry.yarnpkg.com/preact-compat/-/preact-compat-3.17.0.tgz#528cfdfc301190c1a0f47567336be1f4be0266b3"
preact-compat@3.18.0, preact-compat@3.18.2, preact-compat@^3.17.0, preact-compat@^3.18.2:
version "3.18.2"
resolved "https://registry.yarnpkg.com/preact-compat/-/preact-compat-3.18.2.tgz#dfae12f0c12edcd371a01c33773c3525899f6747"
dependencies:
immutability-helper "^2.1.2"
preact-render-to-string "^3.6.0"
preact-render-to-string "^3.7.2"
preact-transition-group "^1.1.0"
prop-types "^15.5.8"
standalone-react-addons-pure-render-mixin "^0.1.1"

preact-render-to-string@^3.6.0:
version "3.7.0"
resolved "https://registry.yarnpkg.com/preact-render-to-string/-/preact-render-to-string-3.7.0.tgz#7db4177454bc01395e0d01d6ac07bc5e838e31ee"
preact-render-to-string@^3.7.2:
version "3.8.0"
resolved "https://registry.yarnpkg.com/preact-render-to-string/-/preact-render-to-string-3.8.0.tgz#1c62e188dc136b50e5a273dcfaf3e4801c743069"
dependencies:
pretty-format "^3.5.1"

preact-rheostat@^2.1.1:
preact-rheostat@2.1.1:
version "2.1.1"
resolved "https://registry.yarnpkg.com/preact-rheostat/-/preact-rheostat-2.1.1.tgz#45fcb4c2f4f7beb6dbd5e0f18f744655fc16ac7c"
dependencies:
Expand All @@ -2074,7 +2087,7 @@ preact-transition-group@^1.1.0:
version "1.1.1"
resolved "https://registry.yarnpkg.com/preact-transition-group/-/preact-transition-group-1.1.1.tgz#f0a49327ea515ece34ea2be864c4a7d29e5d6e10"

preact@^8.1.0, preact@^8.2.5:
preact@8.2.7, preact@^8.2.5:
version "8.2.7"
resolved "https://registry.yarnpkg.com/preact/-/preact-8.2.7.tgz#316249fb678cd5e93e7cee63cea7bfb62dbd6814"

Expand Down Expand Up @@ -2116,6 +2129,13 @@ promise@^7.1.1:
dependencies:
asap "~2.0.3"

prop-types@15.5.10:
version "15.5.10"
resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.5.10.tgz#2797dfc3126182e3a95e3dfbb2e893ddd7456154"
dependencies:
fbjs "^0.8.9"
loose-envify "^1.3.1"

prop-types@^15.5.10, prop-types@^15.5.8:
version "15.6.0"
resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.6.0.tgz#ceaf083022fc46b4a35f69e13ef75aed0d639856"
Expand All @@ -2136,13 +2156,9 @@ punycode@^1.2.4, punycode@^1.4.1:
version "1.4.1"
resolved "https://registry.yarnpkg.com/punycode/-/punycode-1.4.1.tgz#c0d5a63b2718800ad8e1eb0fa5269c84dd41845e"

qs@^6.2.1:
version "6.5.1"
resolved "https://registry.yarnpkg.com/qs/-/qs-6.5.1.tgz#349cdf6eef89ec45c12d7d5eb3fc0c870343a6d8"

qs@~6.4.0:
version "6.4.0"
resolved "https://registry.yarnpkg.com/qs/-/qs-6.4.0.tgz#13e26d28ad6b0ffaa91312cd3bf708ed351e7233"
qs@6.5.1, qs@6.5.2, qs@^6.5.1, qs@~6.4.0:
version "6.5.2"
resolved "https://registry.yarnpkg.com/qs/-/qs-6.5.2.tgz#cb3ae806e8740444584ef154ce8ee98d403f3e36"

querystring-es3@^0.2.0, querystring-es3@^0.2.1:
version "0.2.1"
Expand Down Expand Up @@ -2524,7 +2540,7 @@ to-arraybuffer@^1.0.0:
version "1.0.1"
resolved "https://registry.yarnpkg.com/to-arraybuffer/-/to-arraybuffer-1.0.1.tgz#7d229b1fcc637e466ca081180836a7aabff83f43"

to-factory@^1.0.0:
to-factory@1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/to-factory/-/to-factory-1.0.0.tgz#8738af8bd97120ad1d4047972ada5563bf9479b1"

Expand Down Expand Up @@ -2560,6 +2576,10 @@ tweetnacl@^0.14.3, tweetnacl@~0.14.0:
version "0.14.5"
resolved "https://registry.yarnpkg.com/tweetnacl/-/tweetnacl-0.14.5.tgz#5ae68177f192d4456269d108afa93ff8743f4f64"

ua-parser-js@^0.7.18:
version "0.7.18"
resolved "https://registry.yarnpkg.com/ua-parser-js/-/ua-parser-js-0.7.18.tgz#a7bfd92f56edfb117083b69e31d2aa8882d4b1ed"

ua-parser-js@^0.7.9:
version "0.7.17"
resolved "https://registry.yarnpkg.com/ua-parser-js/-/ua-parser-js-0.7.17.tgz#e9ec5f9498b9ec910e7ae3ac626a805c4d09ecac"
Expand Down

0 comments on commit 281fe2b

Please sign in to comment.