react-router-dom 4.4.0-beta.6 → 5.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -12,12 +12,12 @@ Then with a module bundler like [webpack](https://webpack.github.io/), use as yo
12
12
 
13
13
  ```js
14
14
  // using ES6 modules
15
- import { BrowserRouter, Route, Link } from 'react-router-dom'
15
+ import { BrowserRouter, Route, Link } from "react-router-dom";
16
16
 
17
17
  // using CommonJS modules
18
- const BrowserRouter = require('react-router-dom').BrowserRouter
19
- const Route = require('react-router-dom').Route
20
- const Link = require('react-router-dom').Link
18
+ const BrowserRouter = require("react-router-dom").BrowserRouter;
19
+ const Route = require("react-router-dom").Route;
20
+ const Link = require("react-router-dom").Link;
21
21
  ```
22
22
 
23
23
  The UMD build is also available on [unpkg](https://unpkg.com):
@@ -1,7 +1,5 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
3
  function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
6
4
 
7
5
  var React = _interopDefault(require('react'));
@@ -162,8 +160,13 @@ function (_React$Component) {
162
160
 
163
161
  var _proto = Link.prototype;
164
162
 
165
- _proto.handleClick = function handleClick(event, context) {
166
- if (this.props.onClick) this.props.onClick(event);
163
+ _proto.handleClick = function handleClick(event, history$$1) {
164
+ try {
165
+ if (this.props.onClick) this.props.onClick(event);
166
+ } catch (ex) {
167
+ event.preventDefault();
168
+ throw ex;
169
+ }
167
170
 
168
171
  if (!event.defaultPrevented && // onClick prevented default
169
172
  event.button === 0 && ( // ignore everything but left clicks
@@ -171,7 +174,7 @@ function (_React$Component) {
171
174
  !isModifiedEvent(event) // ignore clicks with modifier keys
172
175
  ) {
173
176
  event.preventDefault();
174
- var method = this.props.replace ? context.history.replace : context.history.push;
177
+ var method = this.props.replace ? history$$1.replace : history$$1.push;
175
178
  method(this.props.to);
176
179
  }
177
180
  };
@@ -192,7 +195,7 @@ function (_React$Component) {
192
195
  var href = location ? context.history.createHref(location) : "";
193
196
  return React.createElement("a", _extends({}, rest, {
194
197
  onClick: function onClick(event) {
195
- return _this.handleClick(event, context);
198
+ return _this.handleClick(event, context.history);
196
199
  },
197
200
  href: href,
198
201
  ref: innerRef
@@ -203,13 +206,11 @@ function (_React$Component) {
203
206
  return Link;
204
207
  }(React.Component);
205
208
 
206
- Link.defaultProps = {
207
- replace: false
208
- };
209
-
210
209
  {
211
210
  var toType = PropTypes.oneOfType([PropTypes.string, PropTypes.object]);
212
- var innerRefType = PropTypes.oneOfType([PropTypes.string, PropTypes.func]);
211
+ var innerRefType = PropTypes.oneOfType([PropTypes.string, PropTypes.func, PropTypes.shape({
212
+ current: PropTypes.any
213
+ })]);
213
214
  Link.propTypes = {
214
215
  innerRef: innerRefType,
215
216
  onClick: PropTypes.func,
@@ -234,13 +235,15 @@ function joinClassnames() {
234
235
 
235
236
 
236
237
  function NavLink(_ref) {
237
- var ariaCurrent = _ref["aria-current"],
238
- activeClassName = _ref.activeClassName,
238
+ var _ref$ariaCurrent = _ref["aria-current"],
239
+ ariaCurrent = _ref$ariaCurrent === void 0 ? "page" : _ref$ariaCurrent,
240
+ _ref$activeClassName = _ref.activeClassName,
241
+ activeClassName = _ref$activeClassName === void 0 ? "active" : _ref$activeClassName,
239
242
  activeStyle = _ref.activeStyle,
240
243
  classNameProp = _ref.className,
241
244
  exact = _ref.exact,
242
245
  isActiveProp = _ref.isActive,
243
- location = _ref.location,
246
+ locationProp = _ref.location,
244
247
  strict = _ref.strict,
245
248
  styleProp = _ref.style,
246
249
  to = _ref.to,
@@ -249,46 +252,39 @@ function NavLink(_ref) {
249
252
  var path = typeof to === "object" ? to.pathname : to; // Regex taken from: https://github.com/pillarjs/path-to-regexp/blob/master/index.js#L202
250
253
 
251
254
  var escapedPath = path && path.replace(/([.+*?=^!:${}()[\]|/\\])/g, "\\$1");
252
- return React.createElement(reactRouter.Route, {
253
- path: escapedPath,
254
- exact: exact,
255
- strict: strict,
256
- location: location,
257
- children: function children(_ref2) {
258
- var location = _ref2.location,
259
- match = _ref2.match;
260
- var isActive = !!(isActiveProp ? isActiveProp(match, location) : match);
261
- var className = isActive ? joinClassnames(classNameProp, activeClassName) : classNameProp;
262
- var style = isActive ? _extends({}, styleProp, activeStyle) : styleProp;
263
- return React.createElement(Link, _extends({
264
- "aria-current": isActive && ariaCurrent || null,
265
- className: className,
266
- style: style,
267
- to: to
268
- }, rest));
269
- }
255
+ return React.createElement(reactRouter.__RouterContext.Consumer, null, function (context) {
256
+ !context ? invariant(false, "You should not use <NavLink> outside a <Router>") : void 0;
257
+ var pathToMatch = locationProp ? locationProp.pathname : context.location.pathname;
258
+ var match = escapedPath ? reactRouter.matchPath(pathToMatch, {
259
+ path: escapedPath,
260
+ exact: exact,
261
+ strict: strict
262
+ }) : null;
263
+ var isActive = !!(isActiveProp ? isActiveProp(match, context.location) : match);
264
+ var className = isActive ? joinClassnames(classNameProp, activeClassName) : classNameProp;
265
+ var style = isActive ? _extends({}, styleProp, activeStyle) : styleProp;
266
+ return React.createElement(Link, _extends({
267
+ "aria-current": isActive && ariaCurrent || null,
268
+ className: className,
269
+ style: style,
270
+ to: to
271
+ }, rest));
270
272
  });
271
273
  }
272
274
 
273
- NavLink.defaultProps = {
274
- "aria-current": "page",
275
- activeClassName: "active"
276
- };
277
-
278
275
  {
279
276
  var ariaCurrentType = PropTypes.oneOf(["page", "step", "location", "date", "time", "true"]);
280
- NavLink.propTypes = {
277
+ NavLink.propTypes = _extends({}, Link.propTypes, {
281
278
  "aria-current": ariaCurrentType,
282
279
  activeClassName: PropTypes.string,
283
280
  activeStyle: PropTypes.object,
284
281
  className: PropTypes.string,
285
- exact: reactRouter.Route.propTypes.exact,
282
+ exact: PropTypes.bool,
286
283
  isActive: PropTypes.func,
287
284
  location: PropTypes.object,
288
- strict: reactRouter.Route.propTypes.strict,
289
- style: PropTypes.object,
290
- to: Link.propTypes.to
291
- };
285
+ strict: PropTypes.bool,
286
+ style: PropTypes.object
287
+ });
292
288
  }
293
289
 
294
290
  Object.keys(reactRouter).forEach(function (key) { exports[key] = reactRouter[key]; });
@@ -1 +1 @@
1
- "use strict";function _interopDefault(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var React=_interopDefault(require("react")),reactRouter=require("react-router"),history=require("history");require("prop-types"),require("tiny-warning");var invariant=_interopDefault(require("tiny-invariant"));function _extends(){return(_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e}).apply(this,arguments)}function _inheritsLoose(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t}function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var r,o,n={},i=Object.keys(e);for(o=0;o<i.length;o++)r=i[o],0<=t.indexOf(r)||(n[r]=e[r]);return n}var BrowserRouter=function(n){function e(){for(var e,t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))||this).history=history.createBrowserHistory(e.props),e}return _inheritsLoose(e,n),e.prototype.render=function(){return React.createElement(reactRouter.Router,{history:this.history,children:this.props.children})},e}(React.Component),HashRouter=function(n){function e(){for(var e,t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))||this).history=history.createHashHistory(e.props),e}return _inheritsLoose(e,n),e.prototype.render=function(){return React.createElement(reactRouter.Router,{history:this.history,children:this.props.children})},e}(React.Component);function isModifiedEvent(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}var Link=function(e){function t(){return e.apply(this,arguments)||this}_inheritsLoose(t,e);var r=t.prototype;return r.handleClick=function(e,t){(this.props.onClick&&this.props.onClick(e),e.defaultPrevented||0!==e.button||this.props.target&&"_self"!==this.props.target||isModifiedEvent(e))||(e.preventDefault(),(this.props.replace?t.history.replace:t.history.push)(this.props.to))},r.render=function(){var o=this,e=this.props,n=e.innerRef,i=(e.replace,e.to),a=_objectWithoutPropertiesLoose(e,["innerRef","replace","to"]);return React.createElement(reactRouter.__RouterContext.Consumer,null,function(t){t||invariant(!1);var e="string"==typeof i?history.createLocation(i,null,null,t.location):i,r=e?t.history.createHref(e):"";return React.createElement("a",_extends({},a,{onClick:function(e){return o.handleClick(e,t)},href:r,ref:n}))})},t}(React.Component);function joinClassnames(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.filter(function(e){return e}).join(" ")}function NavLink(e){var a=e["aria-current"],s=e.activeClassName,c=e.activeStyle,u=e.className,t=e.exact,l=e.isActive,r=e.location,o=e.strict,p=e.style,h=e.to,f=_objectWithoutPropertiesLoose(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","strict","style","to"]),n="object"==typeof h?h.pathname:h,i=n&&n.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1");return React.createElement(reactRouter.Route,{path:i,exact:t,strict:o,location:r,children:function(e){var t=e.location,r=e.match,o=!!(l?l(r,t):r),n=o?joinClassnames(u,s):u,i=o?_extends({},p,c):p;return React.createElement(Link,_extends({"aria-current":o&&a||null,className:n,style:i,to:h},f))}})}Link.defaultProps={replace:!1},NavLink.defaultProps={"aria-current":"page",activeClassName:"active"},Object.keys(reactRouter).forEach(function(e){exports[e]=reactRouter[e]}),exports.BrowserRouter=BrowserRouter,exports.HashRouter=HashRouter,exports.Link=Link,exports.NavLink=NavLink;
1
+ "use strict";function _interopDefault(t){return t&&"object"==typeof t&&"default"in t?t.default:t}Object.defineProperty(exports,"__esModule",{value:!0});var React=_interopDefault(require("react")),reactRouter=require("react-router"),history=require("history");require("prop-types"),require("tiny-warning");var invariant=_interopDefault(require("tiny-invariant"));function _extends(){return(_extends=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t}).apply(this,arguments)}function _inheritsLoose(t,e){t.prototype=Object.create(e.prototype),(t.prototype.constructor=t).__proto__=e}function _objectWithoutPropertiesLoose(t,e){if(null==t)return{};var r,o,n={},i=Object.keys(t);for(o=0;o<i.length;o++)r=i[o],0<=e.indexOf(r)||(n[r]=t[r]);return n}var BrowserRouter=function(n){function t(){for(var t,e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return(t=n.call.apply(n,[this].concat(r))||this).history=history.createBrowserHistory(t.props),t}return _inheritsLoose(t,n),t.prototype.render=function(){return React.createElement(reactRouter.Router,{history:this.history,children:this.props.children})},t}(React.Component),HashRouter=function(n){function t(){for(var t,e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return(t=n.call.apply(n,[this].concat(r))||this).history=history.createHashHistory(t.props),t}return _inheritsLoose(t,n),t.prototype.render=function(){return React.createElement(reactRouter.Router,{history:this.history,children:this.props.children})},t}(React.Component);function isModifiedEvent(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}var Link=function(t){function e(){return t.apply(this,arguments)||this}_inheritsLoose(e,t);var r=e.prototype;return r.handleClick=function(e,t){try{this.props.onClick&&this.props.onClick(e)}catch(t){throw e.preventDefault(),t}e.defaultPrevented||0!==e.button||this.props.target&&"_self"!==this.props.target||isModifiedEvent(e)||(e.preventDefault(),(this.props.replace?t.replace:t.push)(this.props.to))},r.render=function(){var o=this,t=this.props,n=t.innerRef,i=(t.replace,t.to),a=_objectWithoutPropertiesLoose(t,["innerRef","replace","to"]);return React.createElement(reactRouter.__RouterContext.Consumer,null,function(e){e||invariant(!1);var t="string"==typeof i?history.createLocation(i,null,null,e.location):i,r=t?e.history.createHref(t):"";return React.createElement("a",_extends({},a,{onClick:function(t){return o.handleClick(t,e.history)},href:r,ref:n}))})},e}(React.Component);function joinClassnames(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return e.filter(function(t){return t}).join(" ")}function NavLink(t){var e=t["aria-current"],a=void 0===e?"page":e,r=t.activeClassName,s=void 0===r?"active":r,c=t.activeStyle,u=t.className,l=t.exact,p=t.isActive,h=t.location,f=t.strict,y=t.style,v=t.to,R=_objectWithoutPropertiesLoose(t,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","strict","style","to"]),o="object"==typeof v?v.pathname:v,d=o&&o.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1");return React.createElement(reactRouter.__RouterContext.Consumer,null,function(t){t||invariant(!1);var e=h?h.pathname:t.location.pathname,r=d?reactRouter.matchPath(e,{path:d,exact:l,strict:f}):null,o=!!(p?p(r,t.location):r),n=o?joinClassnames(u,s):u,i=o?_extends({},y,c):y;return React.createElement(Link,_extends({"aria-current":o&&a||null,className:n,style:i,to:v},R))})}Object.keys(reactRouter).forEach(function(t){exports[t]=reactRouter[t]}),exports.BrowserRouter=BrowserRouter,exports.HashRouter=HashRouter,exports.Link=Link,exports.NavLink=NavLink;
@@ -1,6 +1,6 @@
1
1
  import _inheritsLoose from '@babel/runtime/helpers/esm/inheritsLoose';
2
2
  import React from 'react';
3
- import { Router, __RouterContext, Route } from 'react-router';
3
+ import { Router, __RouterContext, matchPath } from 'react-router';
4
4
  export * from 'react-router';
5
5
  import { createBrowserHistory, createHashHistory, createLocation } from 'history';
6
6
  import PropTypes from 'prop-types';
@@ -121,8 +121,13 @@ function (_React$Component) {
121
121
 
122
122
  var _proto = Link.prototype;
123
123
 
124
- _proto.handleClick = function handleClick(event, context) {
125
- if (this.props.onClick) this.props.onClick(event);
124
+ _proto.handleClick = function handleClick(event, history) {
125
+ try {
126
+ if (this.props.onClick) this.props.onClick(event);
127
+ } catch (ex) {
128
+ event.preventDefault();
129
+ throw ex;
130
+ }
126
131
 
127
132
  if (!event.defaultPrevented && // onClick prevented default
128
133
  event.button === 0 && ( // ignore everything but left clicks
@@ -130,7 +135,7 @@ function (_React$Component) {
130
135
  !isModifiedEvent(event) // ignore clicks with modifier keys
131
136
  ) {
132
137
  event.preventDefault();
133
- var method = this.props.replace ? context.history.replace : context.history.push;
138
+ var method = this.props.replace ? history.replace : history.push;
134
139
  method(this.props.to);
135
140
  }
136
141
  };
@@ -151,7 +156,7 @@ function (_React$Component) {
151
156
  var href = location ? context.history.createHref(location) : "";
152
157
  return React.createElement("a", _extends({}, rest, {
153
158
  onClick: function onClick(event) {
154
- return _this.handleClick(event, context);
159
+ return _this.handleClick(event, context.history);
155
160
  },
156
161
  href: href,
157
162
  ref: innerRef
@@ -162,13 +167,11 @@ function (_React$Component) {
162
167
  return Link;
163
168
  }(React.Component);
164
169
 
165
- Link.defaultProps = {
166
- replace: false
167
- };
168
-
169
170
  if (process.env.NODE_ENV !== "production") {
170
171
  var toType = PropTypes.oneOfType([PropTypes.string, PropTypes.object]);
171
- var innerRefType = PropTypes.oneOfType([PropTypes.string, PropTypes.func]);
172
+ var innerRefType = PropTypes.oneOfType([PropTypes.string, PropTypes.func, PropTypes.shape({
173
+ current: PropTypes.any
174
+ })]);
172
175
  Link.propTypes = {
173
176
  innerRef: innerRefType,
174
177
  onClick: PropTypes.func,
@@ -193,13 +196,15 @@ function joinClassnames() {
193
196
 
194
197
 
195
198
  function NavLink(_ref) {
196
- var ariaCurrent = _ref["aria-current"],
197
- activeClassName = _ref.activeClassName,
199
+ var _ref$ariaCurrent = _ref["aria-current"],
200
+ ariaCurrent = _ref$ariaCurrent === void 0 ? "page" : _ref$ariaCurrent,
201
+ _ref$activeClassName = _ref.activeClassName,
202
+ activeClassName = _ref$activeClassName === void 0 ? "active" : _ref$activeClassName,
198
203
  activeStyle = _ref.activeStyle,
199
204
  classNameProp = _ref.className,
200
205
  exact = _ref.exact,
201
206
  isActiveProp = _ref.isActive,
202
- location = _ref.location,
207
+ locationProp = _ref.location,
203
208
  strict = _ref.strict,
204
209
  styleProp = _ref.style,
205
210
  to = _ref.to,
@@ -208,46 +213,39 @@ function NavLink(_ref) {
208
213
  var path = typeof to === "object" ? to.pathname : to; // Regex taken from: https://github.com/pillarjs/path-to-regexp/blob/master/index.js#L202
209
214
 
210
215
  var escapedPath = path && path.replace(/([.+*?=^!:${}()[\]|/\\])/g, "\\$1");
211
- return React.createElement(Route, {
212
- path: escapedPath,
213
- exact: exact,
214
- strict: strict,
215
- location: location,
216
- children: function children(_ref2) {
217
- var location = _ref2.location,
218
- match = _ref2.match;
219
- var isActive = !!(isActiveProp ? isActiveProp(match, location) : match);
220
- var className = isActive ? joinClassnames(classNameProp, activeClassName) : classNameProp;
221
- var style = isActive ? _extends({}, styleProp, activeStyle) : styleProp;
222
- return React.createElement(Link, _extends({
223
- "aria-current": isActive && ariaCurrent || null,
224
- className: className,
225
- style: style,
226
- to: to
227
- }, rest));
228
- }
216
+ return React.createElement(__RouterContext.Consumer, null, function (context) {
217
+ !context ? process.env.NODE_ENV !== "production" ? invariant(false, "You should not use <NavLink> outside a <Router>") : invariant(false) : void 0;
218
+ var pathToMatch = locationProp ? locationProp.pathname : context.location.pathname;
219
+ var match = escapedPath ? matchPath(pathToMatch, {
220
+ path: escapedPath,
221
+ exact: exact,
222
+ strict: strict
223
+ }) : null;
224
+ var isActive = !!(isActiveProp ? isActiveProp(match, context.location) : match);
225
+ var className = isActive ? joinClassnames(classNameProp, activeClassName) : classNameProp;
226
+ var style = isActive ? _extends({}, styleProp, activeStyle) : styleProp;
227
+ return React.createElement(Link, _extends({
228
+ "aria-current": isActive && ariaCurrent || null,
229
+ className: className,
230
+ style: style,
231
+ to: to
232
+ }, rest));
229
233
  });
230
234
  }
231
235
 
232
- NavLink.defaultProps = {
233
- "aria-current": "page",
234
- activeClassName: "active"
235
- };
236
-
237
236
  if (process.env.NODE_ENV !== "production") {
238
237
  var ariaCurrentType = PropTypes.oneOf(["page", "step", "location", "date", "time", "true"]);
239
- NavLink.propTypes = {
238
+ NavLink.propTypes = _extends({}, Link.propTypes, {
240
239
  "aria-current": ariaCurrentType,
241
240
  activeClassName: PropTypes.string,
242
241
  activeStyle: PropTypes.object,
243
242
  className: PropTypes.string,
244
- exact: Route.propTypes.exact,
243
+ exact: PropTypes.bool,
245
244
  isActive: PropTypes.func,
246
245
  location: PropTypes.object,
247
- strict: Route.propTypes.strict,
248
- style: PropTypes.object,
249
- to: Link.propTypes.to
250
- };
246
+ strict: PropTypes.bool,
247
+ style: PropTypes.object
248
+ });
251
249
  }
252
250
 
253
251
  export { BrowserRouter, HashRouter, Link, NavLink };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-router-dom",
3
- "version": "4.4.0-beta.6",
3
+ "version": "5.0.1",
4
4
  "description": "DOM bindings for React Router",
5
5
  "repository": "ReactTraining/react-router",
6
6
  "license": "MIT",
@@ -34,9 +34,9 @@
34
34
  "module": "esm/react-router-dom.js",
35
35
  "sideEffects": false,
36
36
  "scripts": {
37
- "build": "del cjs esm umd && rollup -c",
38
- "prepublishOnly": "del cjs esm umd && rollup -c",
37
+ "build": "rollup -c",
39
38
  "lint": "eslint modules",
39
+ "prepublishOnly": "npm run build",
40
40
  "test": "jest"
41
41
  },
42
42
  "peerDependencies": {
@@ -44,10 +44,10 @@
44
44
  },
45
45
  "dependencies": {
46
46
  "@babel/runtime": "^7.1.2",
47
- "history": "^4.8.0-beta.0",
47
+ "history": "^4.9.0",
48
48
  "loose-envify": "^1.3.1",
49
49
  "prop-types": "^15.6.2",
50
- "react-router": "^4.4.0-beta.6",
50
+ "react-router": "5.0.1",
51
51
  "tiny-invariant": "^1.0.2",
52
52
  "tiny-warning": "^1.0.0"
53
53
  },
@@ -57,26 +57,24 @@
57
57
  "@babel/plugin-transform-runtime": "^7.1.0",
58
58
  "@babel/preset-env": "^7.1.0",
59
59
  "@babel/preset-react": "^7.0.0",
60
- "babel-core": "^7.0.0-bridge.0",
61
60
  "babel-eslint": "^10.0.1",
62
- "babel-jest": "^23.6.0",
61
+ "babel-jest": "^24.8.0",
63
62
  "babel-plugin-dev-expression": "^0.2.1",
64
- "del-cli": "^1.1.0",
65
- "eslint": "^5.7.0",
66
- "eslint-plugin-import": "^2.12.0",
63
+ "eslint": "^5.16.0",
64
+ "eslint-plugin-import": "^2.17.0",
67
65
  "eslint-plugin-react": "^7.9.1",
68
- "jest": "^23.6.0",
69
- "jest-circus": "^23.6.0",
70
- "raf": "^3.4.0",
66
+ "jest": "^24.8.0",
67
+ "jest-circus": "^24.8.0",
68
+ "raf": "^3.4.1",
71
69
  "react": "^16.5.2",
72
70
  "react-dom": "^16.5.2",
73
71
  "rollup": "^0.66.6",
74
- "rollup-plugin-babel": "^4.0.3",
75
- "rollup-plugin-commonjs": "^9.1.3",
76
- "rollup-plugin-node-resolve": "^3.3.0",
77
- "rollup-plugin-replace": "^2.0.0",
78
- "rollup-plugin-size-snapshot": "^0.7.0",
79
- "rollup-plugin-uglify": "^6.0.0"
72
+ "rollup-plugin-babel": "^4.3.2",
73
+ "rollup-plugin-commonjs": "^9.3.4",
74
+ "rollup-plugin-node-resolve": "^3.4.0",
75
+ "rollup-plugin-replace": "^2.2.0",
76
+ "rollup-plugin-size-snapshot": "0.7.0",
77
+ "rollup-plugin-uglify": "^6.0.2"
80
78
  },
81
79
  "browserify": {
82
80
  "transform": [
@@ -91,5 +89,5 @@
91
89
  "history",
92
90
  "link"
93
91
  ],
94
- "gitHead": "5ccb241cd59eae7a15de31c7babff6619378be39"
92
+ "gitHead": "0c9a10d9807b879912f2dff2fbebffe0aa7048ed"
95
93
  }