reactstrap
Advanced tools
Comparing version 1.3.1 to 1.3.2
@@ -0,1 +1,6 @@ | ||
<a name="1.3.2"></a> | ||
## [1.3.2](https://github.com/reactstrap/reactstrap/compare/1.3.1...v1.3.2) (2016-06-12) | ||
<a name="1.3.1"></a> | ||
@@ -2,0 +7,0 @@ ## [1.3.1](https://github.com/reactstrap/reactstrap/compare/1.3.0...v1.3.1) (2016-04-24) |
@@ -47,3 +47,3 @@ 'use strict'; | ||
value: function render() { | ||
var closeButton = undefined; | ||
var closeButton = void 0; | ||
var _props = this.props; | ||
@@ -50,0 +50,0 @@ var className = _props.className; |
@@ -0,1 +1,29 @@ | ||
## [v2.1.0] | ||
- Deprecate usage of `<base href>` as an automatic substitute for `basename` | ||
in `useBasename`. They have subtly different semantics ([#94]) | ||
[v2.1.0]: https://github.com/mjackson/history/compare/v2.0.2...v2.1.0 | ||
[#94]: https://github.com/mjackson/history/issues/94 | ||
## [v2.0.2] | ||
> Apr 14, 2016 | ||
- **Bugfix:** Fix usage of `hasOwnProperty` (thanks @taion) | ||
- **Bugfix:** Fix handling of `<base>` without `href` ([#262] thanks @taion) | ||
- **Bugfix:** Fix security error when frontend URL !== backend URL ([#267] thanks @slorber) | ||
[v2.0.2]: https://github.com/mjackson/history/compare/v2.0.1...v2.0.2 | ||
[#262]: https://github.com/mjackson/history/pull/262 | ||
[#267]: https://github.com/mjackson/history/pull/267 | ||
## [v2.0.1] | ||
> Mar 2, 2016 | ||
- **Bugfix:** Fix stack size growth with every `listenBefore` listener ([#225] thanks @threepointone, @taion) | ||
- Remove docs from npm package | ||
[v2.0.1]: https://github.com/mjackson/history/compare/v2.0.0...v2.0.1 | ||
[#225]: https://github.com/mjackson/history/issues/225 | ||
## [v2.0.0] | ||
@@ -7,5 +35,5 @@ > Feb 4, 2016 | ||
[v2.0.0]: https://github.com/reactjs/history/compare/v2.0.0-rc3...v2.0.0 | ||
[#221]: https://github.com/reactjs/history/issues/221 | ||
[#223]: https://github.com/reactjs/history/pull/223 | ||
[v2.0.0]: https://github.com/mjackson/history/compare/v2.0.0-rc3...v2.0.0 | ||
[#221]: https://github.com/mjackson/history/issues/221 | ||
[#223]: https://github.com/mjackson/history/pull/223 | ||
@@ -19,6 +47,6 @@ ## [v2.0.0-rc3] | ||
[v2.0.0-rc3]: https://github.com/reactjs/history/compare/v2.0.0-rc2...v2.0.0-rc3 | ||
[#179]: https://github.com/reactjs/history/pull/179 | ||
[#208]: https://github.com/reactjs/history/pull/208 | ||
[#200]: https://github.com/reactjs/history/pull/200 | ||
[v2.0.0-rc3]: https://github.com/mjackson/history/compare/v2.0.0-rc2...v2.0.0-rc3 | ||
[#179]: https://github.com/mjackson/history/pull/179 | ||
[#208]: https://github.com/mjackson/history/pull/208 | ||
[#200]: https://github.com/mjackson/history/pull/200 | ||
@@ -30,3 +58,3 @@ ## [v2.0.0-rc2] | ||
[v2.0.0-rc2]: https://github.com/reactjs/history/compare/v2.0.0-rc1...v2.0.0-rc2 | ||
[v2.0.0-rc2]: https://github.com/mjackson/history/compare/v2.0.0-rc1...v2.0.0-rc2 | ||
@@ -38,4 +66,4 @@ ## [v2.0.0-rc1] | ||
[v2.0.0-rc1]: https://github.com/reactjs/history/compare/v1.17.0...v2.0.0-rc1 | ||
[#177]: https://github.com/reactjs/history/pull/177 | ||
[v2.0.0-rc1]: https://github.com/mjackson/history/compare/v1.17.0...v2.0.0-rc1 | ||
[#177]: https://github.com/mjackson/history/pull/177 | ||
@@ -48,5 +76,5 @@ ## [v1.17.0] | ||
[v1.17.0]: https://github.com/reactjs/history/compare/v1.16.0...v1.17.0 | ||
[#170]: https://github.com/reactjs/history/pull/170 | ||
[#189]: https://github.com/reactjs/history/pull/189 | ||
[v1.17.0]: https://github.com/mjackson/history/compare/v1.16.0...v1.17.0 | ||
[#170]: https://github.com/mjackson/history/pull/170 | ||
[#189]: https://github.com/mjackson/history/pull/189 | ||
@@ -56,8 +84,8 @@ ## [v1.16.0] | ||
- **Bugfix:** Silence all warnings that were introduced since 1.13 (see [reactjs/react-router#2682]) | ||
- **Bugfix:** Silence all warnings that were introduced since 1.13 (see [mjackson/react-router#2682]) | ||
- **Deprecation:** Deprecate the `createLocation` method in the top-level exports | ||
- **Deprecation:** Deprecate the `state` arg to `history.createLocation` | ||
[v1.16.0]: https://github.com/reactjs/history/compare/v1.15.0...v1.16.0 | ||
[reactjs/react-router#2682]: https://github.com/reactjs/react-router/issues/2682 | ||
[v1.16.0]: https://github.com/mjackson/history/compare/v1.15.0...v1.16.0 | ||
[mjackson/react-router#2682]: https://github.com/mjackson/react-router/issues/2682 | ||
@@ -70,4 +98,4 @@ ## [v1.15.0] | ||
[v1.15.0]: https://github.com/reactjs/history/compare/v1.14.0...v1.15.0 | ||
[#173]: https://github.com/reactjs/history/pull/173 | ||
[v1.15.0]: https://github.com/mjackson/history/compare/v1.14.0...v1.15.0 | ||
[#173]: https://github.com/mjackson/history/pull/173 | ||
@@ -84,9 +112,9 @@ ## [v1.14.0] | ||
[v1.14.0]: https://github.com/reactjs/history/compare/v1.13.1...v1.14.0 | ||
[#121]: https://github.com/reactjs/history/issues/121 | ||
[#141]: https://github.com/reactjs/history/pull/141 | ||
[#146]: https://github.com/reactjs/history/pull/146 | ||
[#152]: https://github.com/reactjs/history/pull/152 | ||
[#167]: https://github.com/reactjs/history/pull/167 | ||
[#168]: https://github.com/reactjs/history/pull/168 | ||
[v1.14.0]: https://github.com/mjackson/history/compare/v1.13.1...v1.14.0 | ||
[#121]: https://github.com/mjackson/history/issues/121 | ||
[#141]: https://github.com/mjackson/history/pull/141 | ||
[#146]: https://github.com/mjackson/history/pull/146 | ||
[#152]: https://github.com/mjackson/history/pull/152 | ||
[#167]: https://github.com/mjackson/history/pull/167 | ||
[#168]: https://github.com/mjackson/history/pull/168 | ||
@@ -100,5 +128,5 @@ ## [v1.13.1] | ||
[v1.13.1]: https://github.com/reactjs/history/compare/v1.13.0...v1.13.1 | ||
[#43]: https://github.com/reactjs/history/pull/43 | ||
[#139]: https://github.com/reactjs/history/pull/139 | ||
[v1.13.1]: https://github.com/mjackson/history/compare/v1.13.0...v1.13.1 | ||
[#43]: https://github.com/mjackson/history/pull/43 | ||
[#139]: https://github.com/mjackson/history/pull/139 | ||
@@ -112,5 +140,5 @@ ## [v1.13.0] | ||
[v1.13.0]: https://github.com/reactjs/history/compare/v1.12.6...v1.13.0 | ||
[#108]: https://github.com/reactjs/history/pull/108 | ||
[#94]: https://github.com/reactjs/history/issues/94 | ||
[v1.13.0]: https://github.com/mjackson/history/compare/v1.12.6...v1.13.0 | ||
[#108]: https://github.com/mjackson/history/pull/108 | ||
[#94]: https://github.com/mjackson/history/issues/94 | ||
@@ -123,4 +151,4 @@ ## [v1.12.6] | ||
[v1.12.6]: https://github.com/reactjs/history/compare/v1.12.5...v1.12.6 | ||
[#95]: https://github.com/reactjs/history/issues/95 | ||
[v1.12.6]: https://github.com/mjackson/history/compare/v1.12.5...v1.12.6 | ||
[#95]: https://github.com/mjackson/history/issues/95 | ||
@@ -135,4 +163,4 @@ ## [v1.12.5] | ||
[v1.12.5]: https://github.com/reactjs/history/compare/v1.12.4...v1.12.5 | ||
[#93]: https://github.com/reactjs/history/issues/93 | ||
[v1.12.5]: https://github.com/mjackson/history/compare/v1.12.4...v1.12.5 | ||
[#93]: https://github.com/mjackson/history/issues/93 | ||
@@ -144,4 +172,4 @@ ## [v1.12.4] | ||
[v1.12.4]: https://github.com/reactjs/history/compare/v1.12.3...v1.12.4 | ||
[#62]: https://github.com/reactjs/history/issues/62 | ||
[v1.12.4]: https://github.com/mjackson/history/compare/v1.12.3...v1.12.4 | ||
[#62]: https://github.com/mjackson/history/issues/62 | ||
@@ -154,5 +182,5 @@ ## [v1.12.3] | ||
[v1.12.3]: https://github.com/reactjs/history/compare/v1.12.2...v1.12.3 | ||
[#71]: https://github.com/reactjs/history/issues/71 | ||
[#42]: https://github.com/reactjs/history/issues/42 | ||
[v1.12.3]: https://github.com/mjackson/history/compare/v1.12.2...v1.12.3 | ||
[#71]: https://github.com/mjackson/history/issues/71 | ||
[#42]: https://github.com/mjackson/history/issues/42 | ||
@@ -164,4 +192,4 @@ ## [v1.12.2] | ||
[v1.12.2]: https://github.com/reactjs/history/compare/v1.12.1...v1.12.2 | ||
[#51-comments]: https://github.com/reactjs/history/pull/51#issuecomment-143189672 | ||
[v1.12.2]: https://github.com/mjackson/history/compare/v1.12.1...v1.12.2 | ||
[#51-comments]: https://github.com/mjackson/history/pull/51#issuecomment-143189672 | ||
@@ -174,3 +202,3 @@ ## [v1.12.1] | ||
[v1.12.1]: https://github.com/reactjs/history/compare/v1.12.0...v1.12.1 | ||
[v1.12.1]: https://github.com/mjackson/history/compare/v1.12.0...v1.12.1 | ||
@@ -183,3 +211,3 @@ ## [v1.12.0] | ||
[v1.12.0]: https://github.com/reactjs/history/compare/v1.11.1...v1.12.0 | ||
[v1.12.0]: https://github.com/mjackson/history/compare/v1.11.1...v1.12.0 | ||
@@ -192,4 +220,4 @@ ## [v1.11.1] | ||
[v1.11.1]: https://github.com/reactjs/history/compare/v1.11.0...v1.11.1 | ||
[#68]: https://github.com/reactjs/history/issues/68 | ||
[v1.11.1]: https://github.com/mjackson/history/compare/v1.11.0...v1.11.1 | ||
[#68]: https://github.com/mjackson/history/issues/68 | ||
@@ -206,2 +234,2 @@ ## [v1.11.0] | ||
[v1.11.0]: https://github.com/reactjs/history/compare/v1.10.2...v1.11.0 | ||
[v1.11.0]: https://github.com/mjackson/history/compare/v1.10.2...v1.11.0 |
@@ -46,3 +46,3 @@ 'use strict'; | ||
if (isSupported) window.history.replaceState(_extends({}, historyState, { key: key }), null, path); | ||
if (isSupported) window.history.replaceState(_extends({}, historyState, { key: key }), null); | ||
} | ||
@@ -49,0 +49,0 @@ |
@@ -5,4 +5,5 @@ 'use strict'; | ||
import warning from 'warning'; | ||
import { canUseDOM } from './ExecutionEnvironment'; | ||
import { extractPath, parsePath } from './PathUtils'; | ||
import { parsePath } from './PathUtils'; | ||
import runTransitionHook from './runTransitionHook'; | ||
@@ -19,11 +20,28 @@ import deprecate from './deprecate'; | ||
// Automatically use the value of <base href> in HTML | ||
// documents as basename if it's not explicitly given. | ||
if (basename == null && canUseDOM) { | ||
var base = document.getElementsByTagName('base')[0]; | ||
var checkedBaseHref = false; | ||
if (base) basename = extractPath(base.href); | ||
function checkBaseHref() { | ||
if (checkedBaseHref) { | ||
return; | ||
} | ||
// Automatically use the value of <base href> in HTML | ||
// documents as basename if it's not explicitly given. | ||
if (basename == null && canUseDOM) { | ||
var base = document.getElementsByTagName('base')[0]; | ||
var baseHref = base && base.getAttribute('href'); | ||
if (baseHref != null) { | ||
basename = baseHref; | ||
process.env.NODE_ENV !== 'production' ? warning(false, 'Automatically setting basename using <base href> is deprecated and will ' + 'be removed in the next major release. The semantics of <base href> are ' + 'subtly different from basename. Please pass the basename explicitly in ' + 'the options to createHistory') : undefined; | ||
} | ||
} | ||
checkedBaseHref = true; | ||
} | ||
function addBasename(location) { | ||
checkBaseHref(); | ||
if (basename && location.basename == null) { | ||
@@ -44,2 +62,4 @@ if (location.pathname.indexOf(basename) === 0) { | ||
function prependBasename(location) { | ||
checkBaseHref(); | ||
if (!basename) return location; | ||
@@ -46,0 +66,0 @@ |
@@ -21,3 +21,3 @@ 'use strict'; | ||
for (var p in object) { | ||
if (object.hasOwnProperty(p) && typeof object[p] === 'object' && !Array.isArray(object[p]) && object[p] !== null) return true; | ||
if (Object.prototype.hasOwnProperty.call(object, p) && typeof object[p] === 'object' && !Array.isArray(object[p]) && object[p] !== null) return true; | ||
}return false; | ||
@@ -24,0 +24,0 @@ } |
@@ -60,3 +60,3 @@ 'use strict'; | ||
if (isSupported) window.history.replaceState(_extends({}, historyState, { key: key }), null, path); | ||
if (isSupported) window.history.replaceState(_extends({}, historyState, { key: key }), null); | ||
} | ||
@@ -63,0 +63,0 @@ |
@@ -9,2 +9,6 @@ 'use strict'; | ||
var _warning = require('warning'); | ||
var _warning2 = _interopRequireDefault(_warning); | ||
var _ExecutionEnvironment = require('./ExecutionEnvironment'); | ||
@@ -30,11 +34,28 @@ | ||
// Automatically use the value of <base href> in HTML | ||
// documents as basename if it's not explicitly given. | ||
if (basename == null && _ExecutionEnvironment.canUseDOM) { | ||
var base = document.getElementsByTagName('base')[0]; | ||
var checkedBaseHref = false; | ||
if (base) basename = _PathUtils.extractPath(base.href); | ||
function checkBaseHref() { | ||
if (checkedBaseHref) { | ||
return; | ||
} | ||
// Automatically use the value of <base href> in HTML | ||
// documents as basename if it's not explicitly given. | ||
if (basename == null && _ExecutionEnvironment.canUseDOM) { | ||
var base = document.getElementsByTagName('base')[0]; | ||
var baseHref = base && base.getAttribute('href'); | ||
if (baseHref != null) { | ||
basename = baseHref; | ||
process.env.NODE_ENV !== 'production' ? _warning2['default'](false, 'Automatically setting basename using <base href> is deprecated and will ' + 'be removed in the next major release. The semantics of <base href> are ' + 'subtly different from basename. Please pass the basename explicitly in ' + 'the options to createHistory') : undefined; | ||
} | ||
} | ||
checkedBaseHref = true; | ||
} | ||
function addBasename(location) { | ||
checkBaseHref(); | ||
if (basename && location.basename == null) { | ||
@@ -55,2 +76,4 @@ if (location.pathname.indexOf(basename) === 0) { | ||
function prependBasename(location) { | ||
checkBaseHref(); | ||
if (!basename) return location; | ||
@@ -57,0 +80,0 @@ |
@@ -35,3 +35,3 @@ 'use strict'; | ||
for (var p in object) { | ||
if (object.hasOwnProperty(p) && typeof object[p] === 'object' && !Array.isArray(object[p]) && object[p] !== null) return true; | ||
if (Object.prototype.hasOwnProperty.call(object, p) && typeof object[p] === 'object' && !Array.isArray(object[p]) && object[p] !== null) return true; | ||
}return false; | ||
@@ -38,0 +38,0 @@ } |
@@ -42,3 +42,3 @@ import invariant from 'invariant' | ||
if (isSupported) | ||
window.history.replaceState({ ...historyState, key }, null, path) | ||
window.history.replaceState({ ...historyState, key }, null) | ||
} | ||
@@ -45,0 +45,0 @@ |
@@ -0,3 +1,4 @@ | ||
import warning from 'warning' | ||
import { canUseDOM } from './ExecutionEnvironment' | ||
import { extractPath, parsePath } from './PathUtils' | ||
import { parsePath } from './PathUtils' | ||
import runTransitionHook from './runTransitionHook' | ||
@@ -12,12 +13,34 @@ import deprecate from './deprecate' | ||
// Automatically use the value of <base href> in HTML | ||
// documents as basename if it's not explicitly given. | ||
if (basename == null && canUseDOM) { | ||
const base = document.getElementsByTagName('base')[0] | ||
let checkedBaseHref = false | ||
if (base) | ||
basename = extractPath(base.href) | ||
function checkBaseHref() { | ||
if (checkedBaseHref) { | ||
return | ||
} | ||
// Automatically use the value of <base href> in HTML | ||
// documents as basename if it's not explicitly given. | ||
if (basename == null && canUseDOM) { | ||
const base = document.getElementsByTagName('base')[0] | ||
const baseHref = base && base.getAttribute('href') | ||
if (baseHref != null) { | ||
basename = baseHref | ||
warning( | ||
false, | ||
'Automatically setting basename using <base href> is deprecated and will ' + | ||
'be removed in the next major release. The semantics of <base href> are ' + | ||
'subtly different from basename. Please pass the basename explicitly in ' + | ||
'the options to createHistory' | ||
) | ||
} | ||
} | ||
checkedBaseHref = true | ||
} | ||
function addBasename(location) { | ||
checkBaseHref() | ||
if (basename && location.basename == null) { | ||
@@ -39,2 +62,4 @@ if (location.pathname.indexOf(basename) === 0) { | ||
function prependBasename(location) { | ||
checkBaseHref() | ||
if (!basename) | ||
@@ -41,0 +66,0 @@ return location |
@@ -17,3 +17,3 @@ import warning from 'warning' | ||
for (const p in object) | ||
if (object.hasOwnProperty(p) && | ||
if (Object.prototype.hasOwnProperty.call(object, p) && | ||
typeof object[p] === 'object' && | ||
@@ -20,0 +20,0 @@ !Array.isArray(object[p]) && |
@@ -5,14 +5,14 @@ { | ||
"history@^2.0.1", | ||
"/Users/eddywashere/Code/node/reactstrap" | ||
"/Users/eddy/Code/reactstrap" | ||
] | ||
], | ||
"_from": "history@>=2.0.1 <3.0.0", | ||
"_id": "history@2.0.1", | ||
"_id": "history@2.1.1", | ||
"_inCache": true, | ||
"_installable": true, | ||
"_location": "/history", | ||
"_nodeVersion": "5.3.0", | ||
"_nodeVersion": "5.9.1", | ||
"_npmOperationalInternal": { | ||
"host": "packages-13-west.internal.npmjs.com", | ||
"tmp": "tmp/history-2.0.1.tgz_1456978260388_0.6892792345024645" | ||
"host": "packages-12-west.internal.npmjs.com", | ||
"tmp": "tmp/history-2.1.1.tgz_1461769275780_0.1540935467928648" | ||
}, | ||
@@ -23,4 +23,6 @@ "_npmUser": { | ||
}, | ||
"_npmVersion": "3.3.12", | ||
"_phantomChildren": {}, | ||
"_npmVersion": "3.7.3", | ||
"_phantomChildren": { | ||
"strict-uri-encode": "1.1.0" | ||
}, | ||
"_requested": { | ||
@@ -38,7 +40,7 @@ "name": "history", | ||
], | ||
"_resolved": "https://registry.npmjs.org/history/-/history-2.0.1.tgz", | ||
"_shasum": "4a0b7f2b87b29f4da2d47910f0c86de0fad579f8", | ||
"_resolved": "https://registry.npmjs.org/history/-/history-2.1.1.tgz", | ||
"_shasum": "7490ff80c9d42e5b27f46898fcfc7311c6f685e3", | ||
"_shrinkwrap": null, | ||
"_spec": "history@^2.0.1", | ||
"_where": "/Users/eddywashere/Code/node/reactstrap", | ||
"_where": "/Users/eddy/Code/reactstrap", | ||
"authors": [ | ||
@@ -85,4 +87,4 @@ "Michael Jackson" | ||
"dist": { | ||
"shasum": "4a0b7f2b87b29f4da2d47910f0c86de0fad579f8", | ||
"tarball": "https://registry.npmjs.org/history/-/history-2.0.1.tgz" | ||
"shasum": "7490ff80c9d42e5b27f46898fcfc7311c6f685e3", | ||
"tarball": "https://registry.npmjs.org/history/-/history-2.1.1.tgz" | ||
}, | ||
@@ -95,3 +97,3 @@ "files": [ | ||
], | ||
"gitHead": "1b4003f91cfb09c47122831633226a657c5ea686", | ||
"gitHead": "909088007d64b88823341d485347c24deca4e1f0", | ||
"homepage": "https://github.com/mjackson/history#readme", | ||
@@ -134,3 +136,3 @@ "jsnext:main": "es6/index", | ||
], | ||
"version": "2.0.1" | ||
"version": "2.1.1" | ||
} |
{ | ||
"name": "reactstrap", | ||
"version": "1.3.1", | ||
"version": "1.3.2", | ||
"description": "React Bootstrap 4 components compatible with React 0.14.x and 15.x", | ||
@@ -73,4 +73,7 @@ "main": "lib/index.js", | ||
"enzyme": "^2.2.0", | ||
"eslint": "^2.7.0", | ||
"eslint-plugin-react": "^4.3.0", | ||
"eslint": "^2.9.0", | ||
"eslint-config-airbnb": "^9.0.0", | ||
"eslint-plugin-import": "^1.7.0", | ||
"eslint-plugin-jsx-a11y": "^1.2.0", | ||
"eslint-plugin-react": "^5.0.1", | ||
"eslint-plugin-standard": "^1.3.2", | ||
@@ -95,7 +98,7 @@ "extract-text-webpack-plugin": "^1.0.1", | ||
"raw-loader": "^0.5.1", | ||
"react": "^15.0.0", | ||
"react-addons-pure-render-mixin": "^15.0.0", | ||
"react-addons-test-utils": "^15.0.0", | ||
"react-addons-transition-group": "^15.0.0", | ||
"react-dom": "^15.0.0", | ||
"react": "^15.1.0", | ||
"react-addons-pure-render-mixin": "^15.1.0", | ||
"react-addons-test-utils": "^15.1.0", | ||
"react-addons-transition-group": "^15.1.0", | ||
"react-dom": "^15.1.0", | ||
"react-helmet": "^3.0.1", | ||
@@ -102,0 +105,0 @@ "react-highlight": "^0.7.0", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2083468
108
17805
53
75
50