Skip to content

Latest commit

 

History

History
42 lines (27 loc) · 1.1 KB

CHANGELOG.md

File metadata and controls

42 lines (27 loc) · 1.1 KB

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog and this project adheres to Semantic Versioning.

[Unreleased]

[2.1.0] - 2018-03-19

Added

StyleRegistry now optionally accepts transformFn

Example:

const styleRegistry = new StyleRegistry(style => style.replace(/\s/g, ''));
   
styleRegistry.registerStyles('body { color: red; }')

console.log(styleRegistry.getCriticalCSS())  //-> body{color: red;}
// ...

Changed

Components don't throw any errors now.

[2.0.0] - 2017-08-19

Changed

  • withStyles - throws an error when styles are not passed or when value's type is not string
  • StyleRegistry.prototype.registerStyles - throws an error when styles are not passed or when value's type is not string
  • StyleRegistry.prototype.getCriticalCSS - returns string joined with '' (empty string) instead of '\n' (metacharacter of new line)

[1.0.0] - 2017-08-17

Added

  • CriticalCSSProvider
  • withStyles
  • StyleRegistry