From 2e9c888dcd9bf1dbfe62282caa9cf35b91630d0a Mon Sep 17 00:00:00 2001 From: Dan Abramov Date: Fri, 11 Mar 2016 16:27:18 -0800 Subject: [PATCH] Update hot reloading dependencies MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Summary:These updates include important changes to correctness in the linked and underlying packages: * https://github.com/gaearon/babel-plugin-react-transform/releases/tag/v2.0.1 * https://github.com/gaearon/babel-plugin-react-transform/releases/tag/v2.0.2 * https://github.com/gaearon/react-proxy/releases/tag/v1.1.3 * https://github.com/gaearon/react-proxy/releases/tag/v1.1.4 * etc We need to include these if we want to ship hot reloading. Create a new project with those versions of packages. screen shot 2016-03-06 at 18 49 20 Verify hot reloading still works. ![](http://cl.ly/2J150y0Y3E1z/download/Screen%20Recording%202016-03-06%20at%2018.48.gif) martinbigio skevy I wasn’t sure whether to touch the shrinkwrap. Closes https://github.com/facebook/react-native/pull/6325 Reviewed By: yungsters Differential Revision: D3019470 Pulled By: martinbigio fb-gh-sync-id: 99bad390cd898f58aa7f74494066561a81eb40e6 shipit-source-id: 99bad390cd898f58aa7f74494066561a81eb40e6 --- babel-preset/package.json | 6 +- npm-shrinkwrap.json | 143 ++++++++++++++++++++------------------ package.json | 4 +- 3 files changed, 79 insertions(+), 74 deletions(-) diff --git a/babel-preset/package.json b/babel-preset/package.json index c664d8988..4c2904745 100644 --- a/babel-preset/package.json +++ b/babel-preset/package.json @@ -1,6 +1,6 @@ { "name": "babel-preset-react-native", - "version": "1.5.1", + "version": "1.5.2", "description": "Babel preset for React Native applications", "main": "index.js", "repository": "https://github.com/facebook/react-native/tree/master/babel-preset", @@ -15,7 +15,7 @@ }, "homepage": "https://github.com/facebook/react-native/tree/master/babel-preset/README.md", "dependencies": { - "babel-plugin-react-transform": "2.0.0-beta1", + "babel-plugin-react-transform": "2.0.2", "babel-plugin-syntax-async-functions": "^6.5.0", "babel-plugin-syntax-class-properties": "^6.5.0", "babel-plugin-syntax-flow": "^6.5.0", @@ -40,6 +40,6 @@ "babel-plugin-transform-react-display-name": "^6.5.0", "babel-plugin-transform-react-jsx": "^6.5.0", "babel-plugin-transform-regenerator": "^6.5.0", - "react-transform-hmr": "^1.0.2" + "react-transform-hmr": "^1.0.4" } } diff --git a/npm-shrinkwrap.json b/npm-shrinkwrap.json index b321fab57..f0b710f9d 100644 --- a/npm-shrinkwrap.json +++ b/npm-shrinkwrap.json @@ -142,15 +142,15 @@ "from": "https://registry.npmjs.org/js-tokens/-/js-tokens-1.0.1.tgz", "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-1.0.1.tgz" }, - "regenerator": { - "version": "0.8.40", - "from": "https://registry.npmjs.org/regenerator/-/regenerator-0.8.40.tgz", - "resolved": "https://registry.npmjs.org/regenerator/-/regenerator-0.8.40.tgz" - }, "recast": { "version": "0.10.33", "from": "https://registry.npmjs.org/recast/-/recast-0.10.33.tgz", "resolved": "https://registry.npmjs.org/recast/-/recast-0.10.33.tgz" + }, + "regenerator": { + "version": "0.8.40", + "from": "https://registry.npmjs.org/regenerator/-/regenerator-0.8.40.tgz", + "resolved": "https://registry.npmjs.org/regenerator/-/regenerator-0.8.40.tgz" } } }, @@ -406,19 +406,19 @@ } }, "babel-preset-react-native": { - "version": "1.5.1", - "from": "babel-preset-react-native@>=1.5.1 <2.0.0", - "resolved": "https://registry.npmjs.org/babel-preset-react-native/-/babel-preset-react-native-1.5.1.tgz", + "version": "1.5.2", + "from": "babel-preset-react-native@1.5.2", + "resolved": "https://registry.npmjs.org/babel-preset-react-native/-/babel-preset-react-native-1.5.2.tgz", "dependencies": { "babel-plugin-react-transform": { - "version": "2.0.0-beta1", - "from": "babel-plugin-react-transform@2.0.0-beta1", - "resolved": "https://registry.npmjs.org/babel-plugin-react-transform/-/babel-plugin-react-transform-2.0.0-beta1.tgz", + "version": "2.0.2", + "from": "babel-plugin-react-transform@2.0.2", + "resolved": "https://registry.npmjs.org/babel-plugin-react-transform/-/babel-plugin-react-transform-2.0.2.tgz", "dependencies": { - "array-find": { - "version": "1.0.0", - "from": "array-find@>=1.0.0 <2.0.0", - "resolved": "https://registry.npmjs.org/array-find/-/array-find-1.0.0.tgz" + "lodash": { + "version": "4.6.1", + "from": "lodash@>=4.6.1 <5.0.0", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.6.1.tgz" } } }, @@ -3550,6 +3550,16 @@ } } }, + "abbrev": { + "version": "1.0.7", + "from": "abbrev@1", + "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.0.7.tgz" + }, + "ansi": { + "version": "0.3.0", + "from": "ansi@~0.3.0", + "resolved": "https://registry.npmjs.org/ansi/-/ansi-0.3.0.tgz" + }, "ansi-regex": { "version": "2.0.0", "from": "ansi-regex@^2.0.0", @@ -3575,21 +3585,16 @@ "from": "assert-plus@^0.1.5", "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-0.1.5.tgz" }, - "ansi": { - "version": "0.3.0", - "from": "ansi@~0.3.0", - "resolved": "https://registry.npmjs.org/ansi/-/ansi-0.3.0.tgz" + "async": { + "version": "1.5.0", + "from": "async@^1.4.0", + "resolved": "https://registry.npmjs.org/async/-/async-1.5.0.tgz" }, "aws-sign2": { "version": "0.6.0", "from": "aws-sign2@~0.6.0", "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.6.0.tgz" }, - "async": { - "version": "1.5.0", - "from": "async@^1.4.0", - "resolved": "https://registry.npmjs.org/async/-/async-1.5.0.tgz" - }, "balanced-match": { "version": "0.2.1", "from": "balanced-match@>=0.2.0 <0.3.0", @@ -3670,26 +3675,26 @@ "from": "delegates@^0.1.0", "resolved": "https://registry.npmjs.org/delegates/-/delegates-0.1.0.tgz" }, - "extend": { - "version": "3.0.0", - "from": "extend@~3.0.0", - "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.0.tgz" - }, "escape-string-regexp": { "version": "1.0.3", "from": "escape-string-regexp@^1.0.2", "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.3.tgz" }, - "forever-agent": { - "version": "0.6.1", - "from": "forever-agent@~0.6.1", - "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz" + "extend": { + "version": "3.0.0", + "from": "extend@~3.0.0", + "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.0.tgz" }, "form-data": { "version": "1.0.0-rc3", "from": "form-data@~1.0.0-rc3", "resolved": "https://registry.npmjs.org/form-data/-/form-data-1.0.0-rc3.tgz" }, + "forever-agent": { + "version": "0.6.1", + "from": "forever-agent@~0.6.1", + "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz" + }, "fstream": { "version": "1.0.8", "from": "fstream@^1.0.2", @@ -3705,16 +3710,16 @@ "from": "generate-function@^2.0.0", "resolved": "https://registry.npmjs.org/generate-function/-/generate-function-2.0.0.tgz" }, - "graceful-fs": { - "version": "4.1.2", - "from": "graceful-fs@4.1", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.2.tgz" - }, "generate-object-property": { "version": "1.2.0", "from": "generate-object-property@^1.1.0", "resolved": "https://registry.npmjs.org/generate-object-property/-/generate-object-property-1.2.0.tgz" }, + "graceful-fs": { + "version": "4.1.2", + "from": "graceful-fs@4.1", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.2.tgz" + }, "graceful-readlink": { "version": "1.0.1", "from": "graceful-readlink@>= 1.0.0", @@ -3755,11 +3760,6 @@ "from": "inherits@*", "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.1.tgz" }, - "abbrev": { - "version": "1.0.7", - "from": "abbrev@1", - "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.0.7.tgz" - }, "ini": { "version": "1.3.4", "from": "ini@~1.3.0", @@ -3775,31 +3775,31 @@ "from": "is-property@^1.0.0", "resolved": "https://registry.npmjs.org/is-property/-/is-property-1.0.2.tgz" }, - "isstream": { - "version": "0.1.2", - "from": "isstream@~0.1.2", - "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz" - }, "isarray": { "version": "0.0.1", "from": "isarray@0.0.1", "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz" }, + "isstream": { + "version": "0.1.2", + "from": "isstream@~0.1.2", + "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz" + }, "json-stringify-safe": { "version": "5.0.1", "from": "json-stringify-safe@~5.0.1", "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz" }, - "lodash._basetostring": { - "version": "3.0.1", - "from": "lodash._basetostring@^3.0.0", - "resolved": "https://registry.npmjs.org/lodash._basetostring/-/lodash._basetostring-3.0.1.tgz" - }, "jsonpointer": { "version": "2.0.0", "from": "jsonpointer@2.0.0", "resolved": "https://registry.npmjs.org/jsonpointer/-/jsonpointer-2.0.0.tgz" }, + "lodash._basetostring": { + "version": "3.0.1", + "from": "lodash._basetostring@^3.0.0", + "resolved": "https://registry.npmjs.org/lodash._basetostring/-/lodash._basetostring-3.0.1.tgz" + }, "lodash._createpadding": { "version": "3.6.1", "from": "lodash._createpadding@^3.0.0", @@ -3810,16 +3810,16 @@ "from": "lodash.pad@^3.0.0", "resolved": "https://registry.npmjs.org/lodash.pad/-/lodash.pad-3.1.1.tgz" }, - "lodash.padright": { - "version": "3.1.1", - "from": "lodash.padright@^3.0.0", - "resolved": "https://registry.npmjs.org/lodash.padright/-/lodash.padright-3.1.1.tgz" - }, "lodash.padleft": { "version": "3.1.1", "from": "lodash.padleft@^3.0.0", "resolved": "https://registry.npmjs.org/lodash.padleft/-/lodash.padleft-3.1.1.tgz" }, + "lodash.padright": { + "version": "3.1.1", + "from": "lodash.padright@^3.0.0", + "resolved": "https://registry.npmjs.org/lodash.padright/-/lodash.padright-3.1.1.tgz" + }, "lodash.repeat": { "version": "3.0.1", "from": "lodash.repeat@^3.0.0", @@ -5913,42 +5913,47 @@ "resolved": "https://registry.npmjs.org/react-timer-mixin/-/react-timer-mixin-0.13.2.tgz" }, "react-transform-hmr": { - "version": "1.0.2", - "from": "https://registry.npmjs.org/react-transform-hmr/-/react-transform-hmr-1.0.2.tgz", - "resolved": "https://registry.npmjs.org/react-transform-hmr/-/react-transform-hmr-1.0.2.tgz", + "version": "1.0.4", + "from": "react-transform-hmr@1.0.4", + "resolved": "https://registry.npmjs.org/react-transform-hmr/-/react-transform-hmr-1.0.4.tgz", "dependencies": { "global": { "version": "4.3.0", - "from": "https://registry.npmjs.org/global/-/global-4.3.0.tgz", + "from": "global@>=4.3.0 <5.0.0", "resolved": "https://registry.npmjs.org/global/-/global-4.3.0.tgz", "dependencies": { "min-document": { "version": "2.18.0", - "from": "https://registry.npmjs.org/min-document/-/min-document-2.18.0.tgz", + "from": "min-document@>=2.6.1 <3.0.0", "resolved": "https://registry.npmjs.org/min-document/-/min-document-2.18.0.tgz", "dependencies": { "dom-walk": { "version": "0.1.1", - "from": "https://registry.npmjs.org/dom-walk/-/dom-walk-0.1.1.tgz", + "from": "dom-walk@>=0.1.0 <0.2.0", "resolved": "https://registry.npmjs.org/dom-walk/-/dom-walk-0.1.1.tgz" } } }, "process": { "version": "0.5.2", - "from": "https://registry.npmjs.org/process/-/process-0.5.2.tgz", + "from": "process@>=0.5.1 <0.6.0", "resolved": "https://registry.npmjs.org/process/-/process-0.5.2.tgz" } } }, "react-proxy": { - "version": "1.1.2", - "from": "https://registry.npmjs.org/react-proxy/-/react-proxy-1.1.2.tgz", - "resolved": "https://registry.npmjs.org/react-proxy/-/react-proxy-1.1.2.tgz", + "version": "1.1.8", + "from": "react-proxy@>=1.1.7 <2.0.0", + "resolved": "https://registry.npmjs.org/react-proxy/-/react-proxy-1.1.8.tgz", "dependencies": { + "lodash": { + "version": "4.6.1", + "from": "lodash@>=4.6.1 <5.0.0", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.6.1.tgz" + }, "react-deep-force-update": { "version": "1.0.1", - "from": "https://registry.npmjs.org/react-deep-force-update/-/react-deep-force-update-1.0.1.tgz", + "from": "react-deep-force-update@>=1.0.0 <2.0.0", "resolved": "https://registry.npmjs.org/react-deep-force-update/-/react-deep-force-update-1.0.1.tgz" } } diff --git a/package.json b/package.json index abe31667e..c15a3aa8b 100644 --- a/package.json +++ b/package.json @@ -132,7 +132,7 @@ "babel-core": "^6.6.4", "babel-plugin-external-helpers": "^6.5.0", "babel-polyfill": "^6.6.1", - "babel-preset-react-native": "^1.5.1", + "babel-preset-react-native": "^1.5.2", "babel-register": "^6.6.0", "babel-types": "^6.6.4", "babylon": "^6.6.4", @@ -161,7 +161,7 @@ "progress": "^1.1.8", "promise": "^7.1.1", "react-timer-mixin": "^0.13.2", - "react-transform-hmr": "^1.0.2", + "react-transform-hmr": "^1.0.4", "rebound": "^0.0.13", "regenerator": "^0.8.36", "sane": "^1.2.0",