Skip to content

Commit 923d757

Browse files
committed
Remove npm warning for >= 5.7.0, update to sdk 26
1 parent 6af5e8f commit 923d757

File tree

6 files changed

+78
-58
lines changed

6 files changed

+78
-58
lines changed

VERSIONS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,4 @@ Each version of these dependencies is only compatible with a narrow version rang
1919
| 0.50.x | 16.0.0 | 23.x.x | `"23.0.0"` |
2020
| 0.51.x | 16.0.0 | 24.x.x | `"24.0.0"` |
2121
| 0.52.x | 16.2.0 | 25.x.x | `"25.0.0"` |
22+
| 0.54.x | 16.3.0-alpha.1 | 26.x.x | `"26.0.0"` |

react-native-scripts/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-scripts",
3-
"version": "1.12.1",
3+
"version": "1.13.0",
44
"description": "Configuration and scripts for Create React Native App.",
55
"license": "BSD-3-Clause",
66
"keywords": [
@@ -39,7 +39,7 @@
3939
"progress": "^2.0.0",
4040
"qrcode-terminal": "^0.11.0",
4141
"rimraf": "^2.6.1",
42-
"xdl": "48.1.2"
42+
"xdl": "48.1.3"
4343
},
4444
"devDependencies": {
4545
"@taskr/babel": "^1.0.6",

react-native-scripts/src/scripts/init.js

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ import { hasYarn } from '../util/pm';
1212

1313
// UPDATE DEPENDENCY VERSIONS HERE
1414
const DEFAULT_DEPENDENCIES = {
15-
expo: '^25.0.0',
16-
react: '16.2.0',
17-
'react-native': '0.52.0',
15+
expo: '^26.0.0',
16+
react: '16.3.0-alpha.1',
17+
'react-native': '0.54.0',
1818
};
1919

2020
const WEB_DEFAULT_DEPENDENCIES = {
@@ -27,12 +27,12 @@ const WEB_DEFAULT_DEPENDENCIES = {
2727

2828
// TODO figure out how this interacts with ejection
2929
const DEFAULT_DEV_DEPENDENCIES = {
30-
'jest-expo': '25.0.0',
31-
'react-test-renderer': '16.2.0',
30+
'jest-expo': '26.0.0',
31+
'react-test-renderer': '16.3.0-alpha.1',
3232
};
3333

3434
const WEB_DEFAULT_DEV_DEPENDENCIES = {
35-
'react-native-scripts': 'next',
35+
'react-native-scripts': 'latest',
3636
'babel-loader': '^7.1.2',
3737
'babel-plugin-expo-web': '^0.0.5',
3838
'babel-plugin-react-native-web': '^0.4.0',
@@ -54,25 +54,24 @@ module.exports = async (appPath: string, appName: string, verbose: boolean, cwd:
5454
const useYarn: boolean = hasYarn(appPath);
5555
const npmOrYarn = useYarn ? 'yarn' : 'npm';
5656

57-
// FIXME(perry) remove when npm 5 is supported
5857
if (!useYarn) {
5958
let npmVersion = spawn.sync('npm', ['--version']).stdout.toString().trim();
59+
let npmVersionParts = npmVersion.split('.');
60+
let majorVersion = parseInt(npmVersion[0], 10);
61+
let minorVersion = parseInt(npmVersion[1], 10);
62+
let patchVersion = parseInt(npmVersion[2], 10);
6063

61-
if (npmVersion.match(/\d+/)[0] === '5') {
64+
if (majorVersion === 5 && minorVersion < 7) {
6265
console.log(
6366
chalk.yellow(
6467
`
6568
*******************************************************************************
66-
ERROR: npm 5 is not supported yet
69+
ERROR: npm >= 5.0.0 and < 5.7.0 are not supported
6770
*******************************************************************************
6871
69-
It looks like you're using npm 5 which was recently released.
72+
It looks like you're using a version of npm that is buggy with this tool.
7073
71-
Create React Native App doesn't work with npm 5 yet, unfortunately. We
72-
recommend using npm 4 or yarn until some bugs are resolved.
73-
74-
You can follow the known issues with npm 5 at:
75-
https://github.com/npm/npm/issues/16991
74+
We recommend using npm >= 5.7.0 or yarn.
7675
7776
*******************************************************************************
7877
`
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"expo": {
3-
"sdkVersion": "25.0.0"
3+
"sdkVersion": "26.0.0"
44
}
55
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"expo": {
3-
"sdkVersion": "25.0.0"
3+
"sdkVersion": "26.0.0"
44
}
55
}

react-native-scripts/yarn.lock

Lines changed: 59 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,8 @@
175175
resolved "https://registry.yarnpkg.com/@types/minimatch/-/minimatch-3.0.3.tgz#3dca0e3f33b200fc7d1139c0cd96c1268cadfd9d"
176176

177177
"@types/node@*":
178-
version "9.4.7"
179-
resolved "http://registry.npmjs.org/@types/node/-/node-9.4.7.tgz#57d81cd98719df2c9de118f2d5f3b1120dcd7275"
178+
version "9.6.1"
179+
resolved "https://registry.yarnpkg.com/@types/node/-/node-9.6.1.tgz#e2d374ef15b315b48e7efc308fa1a7cd51faa06c"
180180

181181
abbrev@1:
182182
version "1.1.1"
@@ -233,8 +233,8 @@ analytics-node@^2.1.0:
233233
superagent-retry "^0.6.0"
234234

235235
ansi-escapes@^3.0.0:
236-
version "3.0.0"
237-
resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-3.0.0.tgz#ec3e8b4e9f8064fc02c3ac9b65f1c275bda8ef92"
236+
version "3.1.0"
237+
resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-3.1.0.tgz#f73207bb81207d75fd6c83f125af26eea378ca30"
238238

239239
ansi-regex@^2.0.0:
240240
version "2.1.1"
@@ -1081,6 +1081,10 @@ [email protected]:
10811081
version "1.0.1"
10821082
resolved "https://registry.yarnpkg.com/buffer-equal-constant-time/-/buffer-equal-constant-time-1.0.1.tgz#f8e71132f7ffe6e01a5c9697a4c6f3e48d5cc819"
10831083

1084+
buffer-from@^1.0.0:
1085+
version "1.0.0"
1086+
resolved "https://registry.yarnpkg.com/buffer-from/-/buffer-from-1.0.0.tgz#4cb8832d23612589b0406e9e2956c17f06fdf531"
1087+
10841088
builtin-modules@^1.0.0:
10851089
version "1.1.1"
10861090
resolved "https://registry.yarnpkg.com/builtin-modules/-/builtin-modules-1.1.1.tgz#270f076c5a72c02f5b65a47df94c5fe3a278892f"
@@ -1185,8 +1189,8 @@ cli-width@^2.0.0:
11851189
resolved "https://registry.yarnpkg.com/cli-width/-/cli-width-2.2.0.tgz#ff19ede8a9a5e579324147b0c11f0fbcbabed639"
11861190

11871191
clone@^2.1.1:
1188-
version "2.1.1"
1189-
resolved "https://registry.yarnpkg.com/clone/-/clone-2.1.1.tgz#d217d1e961118e3ac9a4b8bba3285553bf647cdb"
1192+
version "2.1.2"
1193+
resolved "https://registry.yarnpkg.com/clone/-/clone-2.1.2.tgz#1b7f4b9f591f1e8f83670401600345a02887435f"
11901194

11911195
clor@^5.1.0:
11921196
version "5.2.0"
@@ -1217,8 +1221,8 @@ [email protected], combined-stream@^1.0.5, combined-stream@~1.0.5:
12171221
delayed-stream "~1.0.0"
12181222

12191223
commander@^2.9.0:
1220-
version "2.15.0"
1221-
resolved "https://registry.yarnpkg.com/commander/-/commander-2.15.0.tgz#ad2a23a1c3b036e392469b8012cec6b33b4c1322"
1224+
version "2.15.1"
1225+
resolved "https://registry.yarnpkg.com/commander/-/commander-2.15.1.tgz#df46e867d0fc2aec66a34662b406a9ccafff5b0f"
12221226

12231227
component-emitter@^1.2.0:
12241228
version "1.2.1"
@@ -1233,9 +1237,10 @@ [email protected]:
12331237
resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b"
12341238

12351239
concat-stream@^1.6.0:
1236-
version "1.6.1"
1237-
resolved "https://registry.yarnpkg.com/concat-stream/-/concat-stream-1.6.1.tgz#261b8f518301f1d834e36342b9fea095d2620a26"
1240+
version "1.6.2"
1241+
resolved "https://registry.yarnpkg.com/concat-stream/-/concat-stream-1.6.2.tgz#904bdf194cd3122fc675c77fc4ac3d4ff0fd1a34"
12381242
dependencies:
1243+
buffer-from "^1.0.0"
12391244
inherits "^2.0.3"
12401245
readable-stream "^2.2.2"
12411246
typedarray "^0.0.6"
@@ -1280,8 +1285,8 @@ core-js@^1.0.0:
12801285
resolved "https://registry.yarnpkg.com/core-js/-/core-js-1.2.7.tgz#652294c14651db28fa93bd2d5ff2983a4f08c636"
12811286

12821287
core-js@^2.4.0, core-js@^2.5.0:
1283-
version "2.5.3"
1284-
resolved "https://registry.yarnpkg.com/core-js/-/core-js-2.5.3.tgz#8acc38345824f16d8365b7c9b4259168e8ed603e"
1288+
version "2.5.4"
1289+
resolved "https://registry.yarnpkg.com/core-js/-/core-js-2.5.4.tgz#f2c8bf181f2a80b92f360121429ce63a2f0aeae0"
12851290

12861291
[email protected], core-util-is@~1.0.0:
12871292
version "1.0.2"
@@ -1462,8 +1467,8 @@ error-ex@^1.2.0:
14621467
is-arrayish "^0.2.1"
14631468

14641469
es-abstract@^1.5.1:
1465-
version "1.10.0"
1466-
resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.10.0.tgz#1ecb36c197842a00d8ee4c2dfd8646bb97d60864"
1470+
version "1.11.0"
1471+
resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.11.0.tgz#cce87d518f0496893b1a30cd8461835535480681"
14671472
dependencies:
14681473
es-to-primitive "^1.1.1"
14691474
function-bind "^1.1.1"
@@ -1740,8 +1745,8 @@ form-data@~2.1.1:
17401745
mime-types "^2.1.12"
17411746

17421747
formidable@^1.1.1:
1743-
version "1.2.0"
1744-
resolved "https://registry.yarnpkg.com/formidable/-/formidable-1.2.0.tgz#ce291bfec67c176e282f891ece2c37de0c83ae84"
1748+
version "1.2.1"
1749+
resolved "https://registry.yarnpkg.com/formidable/-/formidable-1.2.1.tgz#70fb7ca0290ee6ff961090415f4b3df3d2082659"
17451750

17461751
forwarded@~0.1.2:
17471752
version "0.1.2"
@@ -1771,7 +1776,7 @@ fs-extra@^4.0.2:
17711776
jsonfile "^4.0.0"
17721777
universalify "^0.1.0"
17731778

1774-
fs-minipass@^1.2.3:
1779+
fs-minipass@^1.2.5:
17751780
version "1.2.5"
17761781
resolved "https://registry.yarnpkg.com/fs-minipass/-/fs-minipass-1.2.5.tgz#06c277218454ec288df77ada54a03b8702aacb9d"
17771782
dependencies:
@@ -2025,7 +2030,7 @@ hosted-git-info@^2.1.4:
20252030
version "2.6.0"
20262031
resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-2.6.0.tgz#23235b29ab230c576aab0d4f13fc046b0b038222"
20272032

2028-
[email protected], http-errors@~1.6.2:
2033+
20292034
version "1.6.2"
20302035
resolved "https://registry.yarnpkg.com/http-errors/-/http-errors-1.6.2.tgz#0a002cc85707192a7e7946ceedc11155f60ec736"
20312036
dependencies:
@@ -2034,6 +2039,15 @@ [email protected], http-errors@~1.6.2:
20342039
setprototypeof "1.0.3"
20352040
statuses ">= 1.3.1 < 2"
20362041

2042+
http-errors@~1.6.2:
2043+
version "1.6.3"
2044+
resolved "https://registry.yarnpkg.com/http-errors/-/http-errors-1.6.3.tgz#8b55680bb4be283a0b5bf4ea2e38580be1d9320d"
2045+
dependencies:
2046+
depd "~1.1.2"
2047+
inherits "2.0.3"
2048+
setprototypeof "1.1.0"
2049+
statuses ">= 1.4.0 < 2"
2050+
20372051
http-proxy-agent@^1.0.0:
20382052
version "1.0.0"
20392053
resolved "https://registry.yarnpkg.com/http-proxy-agent/-/http-proxy-agent-1.0.0.tgz#cc1ce38e453bf984a0f7702d2dd59c73d081284a"
@@ -2491,8 +2505,8 @@ lock@^0.1.2, lock@~0.1.2:
24912505
resolved "https://registry.yarnpkg.com/lock/-/lock-0.1.4.tgz#fec7deaef17e7c3a0a55e1da042803e25d91745d"
24922506

24932507
lodash-es@^4.17.5, lodash-es@^4.2.1:
2494-
version "4.17.7"
2495-
resolved "https://registry.yarnpkg.com/lodash-es/-/lodash-es-4.17.7.tgz#db240a3252c3dd8360201ac9feef91ac977ea856"
2508+
version "4.17.8"
2509+
resolved "https://registry.yarnpkg.com/lodash-es/-/lodash-es-4.17.8.tgz#6fa8c8c5d337481df0bdf1c0d899d42473121e45"
24962510

24972511
lodash.once@^4.0.0:
24982512
version "4.1.1"
@@ -2531,8 +2545,8 @@ lower-case@^1.1.0, lower-case@^1.1.1, lower-case@^1.1.2:
25312545
resolved "https://registry.yarnpkg.com/lower-case/-/lower-case-1.1.4.tgz#9a2cabd1b9e8e0ae993a4bf7d5875c39c42e8eac"
25322546

25332547
lowercase-keys@^1.0.0:
2534-
version "1.0.0"
2535-
resolved "https://registry.yarnpkg.com/lowercase-keys/-/lowercase-keys-1.0.0.tgz#4e3366b39e7f5457e35f1324bdf6f88d0bfc7306"
2548+
version "1.0.1"
2549+
resolved "https://registry.yarnpkg.com/lowercase-keys/-/lowercase-keys-1.0.1.tgz#6f9e30b47084d971a7c820ff15a6c5167b74c26f"
25362550

25372551
lru-cache@^2.6.5:
25382552
version "2.7.3"
@@ -2645,10 +2659,11 @@ minimist@^1.2.0:
26452659
version "1.2.0"
26462660
resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.0.tgz#a35008b20f41383eec1fb914f4cd5df79a264284"
26472661

2648-
minipass@^2.2.1:
2649-
version "2.2.1"
2650-
resolved "https://registry.yarnpkg.com/minipass/-/minipass-2.2.1.tgz#5ada97538b1027b4cf7213432428578cb564011f"
2662+
minipass@^2.2.1, minipass@^2.2.4:
2663+
version "2.2.4"
2664+
resolved "https://registry.yarnpkg.com/minipass/-/minipass-2.2.4.tgz#03c824d84551ec38a8d1bb5bc350a5a30a354a40"
26512665
dependencies:
2666+
safe-buffer "^5.1.1"
26522667
yallist "^3.0.0"
26532668

26542669
minizlib@^1.1.0:
@@ -2710,8 +2725,8 @@ mz@^2.6.0:
27102725
thenify-all "^1.0.0"
27112726

27122727
nan@^2.3.0:
2713-
version "2.9.2"
2714-
resolved "https://registry.yarnpkg.com/nan/-/nan-2.9.2.tgz#f564d75f5f8f36a6d9456cca7a6c4fe488ab7866"
2728+
version "2.10.0"
2729+
resolved "https://registry.yarnpkg.com/nan/-/nan-2.10.0.tgz#96d0cd610ebd58d4b4de9cc0c6828cda99c7548f"
27152730

27162731
ncp@^2.0.0, ncp@~2.0.0:
27172732
version "2.0.0"
@@ -3124,8 +3139,8 @@ range-parser@~1.2.0:
31243139
resolved "https://registry.yarnpkg.com/range-parser/-/range-parser-1.2.0.tgz#f49be6b487894ddc40dcc94a322f611092e00d5e"
31253140

31263141
raven-js@^3.17.0:
3127-
version "3.23.3"
3128-
resolved "https://registry.yarnpkg.com/raven-js/-/raven-js-3.23.3.tgz#6174f506c7362eb8bb72b291af5f22edb44ef165"
3142+
version "3.24.0"
3143+
resolved "https://registry.yarnpkg.com/raven-js/-/raven-js-3.24.0.tgz#59464d8bc4b3812ae87a282e9bb98ecad5b4b047"
31293144

31303145
raven@^2.1.1:
31313146
version "2.4.2"
@@ -3167,8 +3182,8 @@ react-redux@^5.0.2:
31673182
prop-types "^15.6.0"
31683183

31693184
react@^16.0.0:
3170-
version "16.2.0"
3171-
resolved "https://registry.yarnpkg.com/react/-/react-16.2.0.tgz#a31bd2dab89bff65d42134fa187f24d054c273ba"
3185+
version "16.3.0"
3186+
resolved "https://registry.yarnpkg.com/react/-/react-16.3.0.tgz#fc5a01c68f91e9b38e92cf83f7b795ebdca8ddff"
31723187
dependencies:
31733188
fbjs "^0.8.16"
31743189
loose-envify "^1.1.0"
@@ -3648,7 +3663,11 @@ [email protected]:
36483663
version "0.0.9"
36493664
resolved "https://registry.yarnpkg.com/stack-trace/-/stack-trace-0.0.9.tgz#a8f6eaeca90674c333e7c43953f275b451510695"
36503665

3651-
"statuses@>= 1.3.1 < 2", statuses@~1.4.0:
3666+
"statuses@>= 1.3.1 < 2", "statuses@>= 1.4.0 < 2":
3667+
version "1.5.0"
3668+
resolved "https://registry.yarnpkg.com/statuses/-/statuses-1.5.0.tgz#161c7dac177659fd9811f43771fa99381478628c"
3669+
3670+
statuses@~1.4.0:
36523671
version "1.4.0"
36533672
resolved "https://registry.yarnpkg.com/statuses/-/statuses-1.4.0.tgz#bb73d446da2796106efcc1b601a253d6c46bd087"
36543673

@@ -3788,14 +3807,15 @@ tar@^2.2.1:
37883807
inherits "2"
37893808

37903809
tar@^4.0.2:
3791-
version "4.4.0"
3792-
resolved "https://registry.yarnpkg.com/tar/-/tar-4.4.0.tgz#3aaf8c29b6b800a8215f33efb4df1c95ce2ac2f5"
3810+
version "4.4.1"
3811+
resolved "https://registry.yarnpkg.com/tar/-/tar-4.4.1.tgz#b25d5a8470c976fd7a9a8a350f42c59e9fa81749"
37933812
dependencies:
37943813
chownr "^1.0.1"
3795-
fs-minipass "^1.2.3"
3796-
minipass "^2.2.1"
3814+
fs-minipass "^1.2.5"
3815+
minipass "^2.2.4"
37973816
minizlib "^1.1.0"
37983817
mkdirp "^0.5.0"
3818+
safe-buffer "^5.1.1"
37993819
yallist "^3.0.2"
38003820

38013821
taskr@^1.0.6:
@@ -4036,9 +4056,9 @@ wrappy@1:
40364056
version "1.0.2"
40374057
resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f"
40384058

4039-
4040-
version "48.1.2"
4041-
resolved "https://registry.npmjs.org/xdl/-/xdl-48.1.2.tgz#775382d0347393cbb3f6a8fc8e23ad359a401300"
4059+
4060+
version "48.1.3"
4061+
resolved "https://registry.yarnpkg.com/xdl/-/xdl-48.1.3.tgz#fbcdade1e381be723566a22f2ab7977ce182d26f"
40424062
dependencies:
40434063
"@expo/bunyan" "^1.8.10"
40444064
"@expo/json-file" "^5.3.0"

0 commit comments

Comments
 (0)