Skip to content

Commit

Permalink
Update polyfills to sync with latest RN (#414)
Browse files Browse the repository at this point in the history
* feat: better polyfills

* chore: updated Webpack

* chore: removed unused vendor folder

* test: updated tests for new polyfill approach

* refactor: use path.join instead literal

* refactor: reverted codestyle of package.json

* refactor: variables should be camelCased

* test: test that entries is an array

* chore: removed unused dep

* feat: throw error when rn-get-polyfills is not found

* feat: min RN version

* Bring back vendor polyfills but upgraded

* update snapshots

* Actually use vendor polyfills

* revert title change
  • Loading branch information
thymikee authored Apr 26, 2018
1 parent 95ade60 commit 9a1465a
Show file tree
Hide file tree
Showing 34 changed files with 1,025 additions and 1,079 deletions.
2 changes: 1 addition & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
flow-typed/**
coverage/**
vendor/**
src/vendor/**
fixtures/**
61 changes: 27 additions & 34 deletions fixtures/example-app/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2899,8 +2899,9 @@ haul@../..:
node-emoji "^1.8.1"
node-fetch "^2.0.0"
open-in-editor "^2.2.0"
opn "^4.0.2"
opn "^5.3.0"
ora "^1.2.0"
platform-select "^1.1.0"
react "^16.2.0"
react-deep-force-update "^2.0.1"
react-hot-loader "3.0.0-beta.7"
Expand All @@ -2912,9 +2913,8 @@ haul@../..:
source-map "^0.5.6"
strip-ansi "^3.0.1"
thread-loader "^1.1.1"
webpack "^4.1.0"
webpack-dev-middleware "^1.12.0"
webpack-hot-middleware "^2.19.1"
webpack "^4.6.0"
webpack-hot-middleware "^2.22.1"
ws "^2.2.2"
xpipe "^1.0.5"

Expand Down Expand Up @@ -3314,6 +3314,10 @@ is-windows@^1.0.2:
version "1.0.2"
resolved "https://registry.yarnpkg.com/is-windows/-/is-windows-1.0.2.tgz#d1850eb9791ecd18e6182ce12a30f396634bb19d"

is-wsl@^1.1.0:
version "1.1.0"
resolved "https://registry.yarnpkg.com/is-wsl/-/is-wsl-1.1.0.tgz#1f16e4aa22b04d1336b66188a66af3c600c3a66d"

[email protected]:
version "0.0.1"
resolved "https://registry.yarnpkg.com/isarray/-/isarray-0.0.1.tgz#8a18acfca9a8f4177e09abfc6038939b05d1eedf"
Expand Down Expand Up @@ -4249,7 +4253,7 @@ [email protected]:
version "1.4.1"
resolved "https://registry.yarnpkg.com/mime/-/mime-1.4.1.tgz#121f9ebc49e3766f311a76e1fa1c8003c4b03aa6"

mime@^1.3.4, mime@^1.4.1:
mime@^1.3.4:
version "1.5.0"
resolved "https://registry.yarnpkg.com/mime/-/mime-1.5.0.tgz#59c20e03ae116089edeb7d3b34a6788c5b3cccea"

Expand Down Expand Up @@ -4641,12 +4645,11 @@ opn@^3.0.2:
dependencies:
object-assign "^4.0.1"

opn@^4.0.2:
version "4.0.2"
resolved "https://registry.yarnpkg.com/opn/-/opn-4.0.2.tgz#7abc22e644dff63b0a96d5ab7f2790c0f01abc95"
opn@^5.3.0:
version "5.3.0"
resolved "https://registry.yarnpkg.com/opn/-/opn-5.3.0.tgz#64871565c863875f052cfdf53d3e3cb5adb53b1c"
dependencies:
object-assign "^4.0.1"
pinkie-promise "^2.0.0"
is-wsl "^1.1.0"

optimist@^0.6.1:
version "0.6.1"
Expand Down Expand Up @@ -4874,6 +4877,10 @@ pkg-dir@^2.0.0:
dependencies:
find-up "^2.1.0"

platform-select@^1.1.0:
version "1.1.2"
resolved "https://registry.yarnpkg.com/platform-select/-/platform-select-1.1.2.tgz#d5b5d67f7b7a4d25f70c72ab77e21cfaa63f720c"

[email protected]:
version "2.0.1"
resolved "https://registry.yarnpkg.com/plist/-/plist-2.0.1.tgz#0a32ca9481b1c364e92e18dc55c876de9d01da8b"
Expand Down Expand Up @@ -5064,14 +5071,14 @@ randomfill@^1.0.3:
randombytes "^2.0.5"
safe-buffer "^5.1.0"

range-parser@^1.0.3, range-parser@~1.2.0:
version "1.2.0"
resolved "https://registry.yarnpkg.com/range-parser/-/range-parser-1.2.0.tgz#f49be6b487894ddc40dcc94a322f611092e00d5e"

range-parser@~1.0.3:
version "1.0.3"
resolved "https://registry.yarnpkg.com/range-parser/-/range-parser-1.0.3.tgz#6872823535c692e2c2a0103826afd82c2e0ff175"

range-parser@~1.2.0:
version "1.2.0"
resolved "https://registry.yarnpkg.com/range-parser/-/range-parser-1.2.0.tgz#f49be6b487894ddc40dcc94a322f611092e00d5e"

[email protected]:
version "2.3.2"
resolved "https://registry.yarnpkg.com/raw-body/-/raw-body-2.3.2.tgz#bcd60c77d3eb93cde0050295c3f379389bc88f89"
Expand Down Expand Up @@ -6205,10 +6212,6 @@ time-stamp@^1.0.0:
version "1.1.0"
resolved "https://registry.yarnpkg.com/time-stamp/-/time-stamp-1.1.0.tgz#764a5a11af50561921b133f3b44e618687e0f5c3"

time-stamp@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/time-stamp/-/time-stamp-2.0.0.tgz#95c6a44530e15ba8d6f4a3ecb8c3a3fac46da357"

timers-browserify@^2.0.4:
version "2.0.4"
resolved "https://registry.yarnpkg.com/timers-browserify/-/timers-browserify-2.0.4.tgz#96ca53f4b794a5e7c0e1bd7cc88a372298fa01e6"
Expand Down Expand Up @@ -6338,8 +6341,8 @@ uglify-to-browserify@~1.0.0:
resolved "https://registry.yarnpkg.com/uglify-to-browserify/-/uglify-to-browserify-1.0.2.tgz#6e0924d6bda6b5afe349e39a6d632850a0f882b7"

uglifyjs-webpack-plugin@^1.2.4:
version "1.2.4"
resolved "https://registry.yarnpkg.com/uglifyjs-webpack-plugin/-/uglifyjs-webpack-plugin-1.2.4.tgz#5eec941b2e9b8538be0a20fc6eda25b14c7c1043"
version "1.2.5"
resolved "https://registry.yarnpkg.com/uglifyjs-webpack-plugin/-/uglifyjs-webpack-plugin-1.2.5.tgz#2ef8387c8f1a903ec5e44fa36f9f3cbdcea67641"
dependencies:
cacache "^10.0.4"
find-cache-dir "^1.0.0"
Expand Down Expand Up @@ -6538,19 +6541,9 @@ webidl-conversions@^4.0.1, webidl-conversions@^4.0.2:
version "4.0.2"
resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-4.0.2.tgz#a855980b1f0b6b359ba1d5d9fb39ae941faa63ad"

webpack-dev-middleware@^1.12.0:
version "1.12.1"
resolved "https://registry.yarnpkg.com/webpack-dev-middleware/-/webpack-dev-middleware-1.12.1.tgz#338be3ca930973be1c2ce07d84d275e997e1a25a"
dependencies:
memory-fs "~0.4.1"
mime "^1.4.1"
path-is-absolute "^1.0.0"
range-parser "^1.0.3"
time-stamp "^2.0.0"

webpack-hot-middleware@^2.19.1:
version "2.20.0"
resolved "https://registry.yarnpkg.com/webpack-hot-middleware/-/webpack-hot-middleware-2.20.0.tgz#cb896d837758b6408fe0afeeafdc0e5316b15319"
webpack-hot-middleware@^2.22.1:
version "2.22.1"
resolved "https://registry.yarnpkg.com/webpack-hot-middleware/-/webpack-hot-middleware-2.22.1.tgz#2ff865bfebc8e9937bd1619f0f48d6ab601bfea0"
dependencies:
ansi-html "0.0.7"
html-entities "^1.2.0"
Expand All @@ -6571,7 +6564,7 @@ webpack-sources@^1.1.0:
source-list-map "^2.0.0"
source-map "~0.6.1"

webpack@^4.1.0:
webpack@^4.6.0:
version "4.6.0"
resolved "https://registry.yarnpkg.com/webpack/-/webpack-4.6.0.tgz#363eafa733710eb0ed28c512b2b9b9f5fb01e69b"
dependencies:
Expand Down
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,8 @@
"source-map": "^0.5.6",
"strip-ansi": "^3.0.1",
"thread-loader": "^1.1.5",
"webpack": "^4.1.0",
"webpack-dev-middleware": "^1.12.0",
"webpack-hot-middleware": "^2.19.1",
"webpack": "^4.6.0",
"webpack-hot-middleware": "^2.22.1",
"ws": "^2.2.2",
"xpipe": "^1.0.5"
},
Expand Down
2 changes: 1 addition & 1 deletion src/compiler/TaskQueue.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* Copyright 2017-present, Callstack.
* All rights reserved.
*
*
* @flow
*/

Expand Down
Loading

0 comments on commit 9a1465a

Please sign in to comment.