babel-plugin-css-in-js
Advanced tools
Comparing version 1.5.0 to 1.5.1
@@ -12,2 +12,7 @@ # Changelog | ||
## v1.5.1 (January 22, 2016) | ||
- **Bug Fix** | ||
- Don't validate parent selectors | ||
## v1.5.0 (January 22, 2016) | ||
@@ -14,0 +19,0 @@ |
@@ -172,4 +172,8 @@ 'use strict'; | ||
function initStyleSpec(styles, name, parent) { | ||
(0, _assert2.default)(isValidStyleName.test(name), 'style name is invalid: ' + name); | ||
var checkValid = arguments.length <= 3 || arguments[3] === undefined ? true : arguments[3]; | ||
if (checkValid) { | ||
(0, _assert2.default)(isValidStyleName.test(name), 'style name is invalid: ' + name); | ||
} | ||
styles[name] = styles[name] || { rules: {}, selectors: {}, mediaQueries: {} }; | ||
@@ -180,3 +184,3 @@ | ||
return initStyleSpec(styles[name].parents, parent); | ||
return initStyleSpec(styles[name].parents, parent, null, false); | ||
} | ||
@@ -183,0 +187,0 @@ |
{ | ||
"name": "babel-plugin-css-in-js", | ||
"version": "1.5.0", | ||
"version": "1.5.1", | ||
"description": "A plugin for Babel v6 which transforms inline styles defined in JavaScript modules into class names so they become available to, e.g. the `className` prop of React elements. While transforming, the plugin processes all JavaScript style definitions found and bundles them up into a CSS file, ready to be requested from your web server.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
55467
775