react-router 4.3.0-rc.1 → 4.3.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.
@@ -0,0 +1,5 @@
1
+ import createReactContext from "create-react-context";
2
+
3
+ var RouterContext = createReactContext({});
4
+
5
+ export default RouterContext;
@@ -31,7 +31,7 @@ var generatePath = function generatePath() {
31
31
  return pattern;
32
32
  }
33
33
  var generator = compileGenerator(pattern);
34
- return generator(params);
34
+ return generator(params, { pretty: true });
35
35
  };
36
36
 
37
37
  export default generatePath;
package/generatePath.js CHANGED
@@ -39,7 +39,7 @@ var generatePath = function generatePath() {
39
39
  return pattern;
40
40
  }
41
41
  var generator = compileGenerator(pattern);
42
- return generator(params);
42
+ return generator(params, { pretty: true });
43
43
  };
44
44
 
45
45
  exports.default = generatePath;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-router",
3
- "version": "4.3.0-rc.1",
3
+ "version": "4.3.1",
4
4
  "description": "Declarative routing for React",
5
5
  "repository": "ReactTraining/react-router",
6
6
  "license": "MIT",
@@ -25,6 +25,7 @@
25
25
  ],
26
26
  "main": "index.js",
27
27
  "module": "es/index.js",
28
+ "sideEffects": false,
28
29
  "scripts": {
29
30
  "build": "node ./tools/build.js",
30
31
  "watch": "babel ./modules -d . --ignore __tests__ --watch",
@@ -38,37 +39,37 @@
38
39
  },
39
40
  "dependencies": {
40
41
  "history": "^4.7.2",
41
- "hoist-non-react-statics": "^2.3.1",
42
- "invariant": "^2.2.2",
42
+ "hoist-non-react-statics": "^2.5.0",
43
+ "invariant": "^2.2.4",
43
44
  "loose-envify": "^1.3.1",
44
45
  "path-to-regexp": "^1.7.0",
45
- "prop-types": "^15.6.0",
46
- "warning": "^3.0.0"
46
+ "prop-types": "^15.6.1",
47
+ "warning": "^4.0.1"
47
48
  },
48
49
  "devDependencies": {
49
50
  "babel-cli": "^6.26.0",
50
- "babel-eslint": "^8.2.1",
51
- "babel-jest": "^22.1.0",
51
+ "babel-eslint": "^8.2.3",
52
+ "babel-jest": "^23.0.1",
52
53
  "babel-plugin-dev-expression": "^0.2.1",
53
54
  "babel-plugin-external-helpers": "^6.22.0",
54
- "babel-plugin-transform-react-remove-prop-types": "^0.4.12",
55
+ "babel-plugin-transform-react-remove-prop-types": "^0.4.13",
55
56
  "babel-preset-es2015": "^6.14.0",
56
57
  "babel-preset-react": "^6.5.0",
57
58
  "babel-preset-stage-1": "^6.5.0",
58
- "eslint": "^4.16.0",
59
- "eslint-plugin-import": "^2.8.0",
60
- "eslint-plugin-react": "^7.6.0",
59
+ "eslint": "^4.19.1",
60
+ "eslint-plugin-import": "^2.12.0",
61
+ "eslint-plugin-react": "^7.9.1",
61
62
  "gzip-size": "^4.1.0",
62
- "jest": "^22.1.4",
63
- "pretty-bytes": "^4.0.2",
63
+ "jest": "^23.1.0",
64
+ "pretty-bytes": "^5.0.0",
64
65
  "raf": "^3.4.0",
65
- "react": "^16.2.0",
66
+ "react": "^16.4.0",
66
67
  "react-addons-test-utils": "^15.6.2",
67
- "react-dom": "^16.2.0",
68
- "rollup": "^0.50.1",
69
- "rollup-plugin-babel": "^3.0.3",
70
- "rollup-plugin-commonjs": "^8.2.6",
71
- "rollup-plugin-node-resolve": "^3.0.2",
68
+ "react-dom": "^16.4.0",
69
+ "rollup": "^0.60.0",
70
+ "rollup-plugin-babel": "^3.0.4",
71
+ "rollup-plugin-commonjs": "^9.1.3",
72
+ "rollup-plugin-node-resolve": "^3.3.0",
72
73
  "rollup-plugin-replace": "^2.0.0",
73
74
  "rollup-plugin-uglify": "^3.0.0"
74
75
  },