terra-base
Advanced tools
Comparing version 2.7.0 to 2.8.0
@@ -7,2 +7,7 @@ Changelog | ||
2.8.0 - (November 28, 2017) | ||
------------------ | ||
### Changed | ||
* componentWillReceiveProps will now compare locale instead of props. | ||
2.7.0 - (November 16, 2017) | ||
@@ -9,0 +14,0 @@ ------------------ |
@@ -8,3 +8,3 @@ # Dependency Information | ||
| prop-types | ^15.5.8 | -- | Runtime type checking for React props and similar objects. | | ||
| terra-i18n | ^1.10.1 | ^15.4.2 | The terra-i18n component provides the internationalization to the React component. Terra supports the following locales: 'de' 'es' 'en' 'en-US' 'en-GB', 'fi-FI', 'fr', 'pt'. All locales related files are loading on demand. | | ||
| terra-i18n | ^1.11.0 | ^15.4.2 | The terra-i18n component provides the internationalization to the React component. Terra supports the following locales: 'de' 'es' 'en' 'en-US' 'en-GB', 'fi-FI', 'fr', 'pt'. All locales related files are loading on demand. | | ||
| terra-mixins | ^1.11.1 | -- | terra-mixins | | ||
@@ -11,0 +11,0 @@ |
@@ -90,4 +90,3 @@ 'use strict'; | ||
value: function componentWillReceiveProps(nextProps) { | ||
if (this.props === nextProps) return; | ||
if (nextProps.locale !== undefined) { | ||
if (nextProps.locale !== undefined && nextProps.locale !== this.props.locale) { | ||
(0, _terraI18n.i18nLoader)(nextProps.locale, this.setState, this); | ||
@@ -133,5 +132,4 @@ } | ||
Base.propTypes = propTypes; | ||
Base.defaultProps = defaultProps; | ||
exports.default = Base; |
{ | ||
"name": "terra-base", | ||
"main": "lib/Base.js", | ||
"version": "2.7.0", | ||
"version": "2.8.0", | ||
"description": "The base component sets minimal global styles for an application.", | ||
@@ -34,3 +34,3 @@ "repository": { | ||
"prop-types": "^15.5.8", | ||
"terra-i18n": "^1.11.0", | ||
"terra-i18n": "^1.12.0", | ||
"terra-mixins": "^1.11.1" | ||
@@ -37,0 +37,0 @@ }, |
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
42146
14
116
Updatedterra-i18n@^1.12.0