- Expose
flushToStyleTag
(#310)
- Selector handlers now must return an array of rules. Returning a string containing multiple rules is deprecated. The fallback behavior for selector handlers that still return strings is to use media queries, which are not supported in older browsers like Internet Explorer 8, which makes this a breaking change. If you find yourself seeing this warning, you need to update your custom selector handlers to return arrays of strings instead of plain strings. This fallback will be removed entirely in a future major release.
insertRule
is now used to inject styles to the style element (#240)- New
minify()
controls the minification of style names (defaults totrue
whenprocess.env.NODE_ENV === 'production'
) (#291) - New TypeScript typings (#302)
- New
StyleSheetTestUtils.getBufferedStyles()
(#294) StyleSheetTestUtils
will be minified out in production builds (i.e. whenprocess.env.NODE_ENV === 'production'
) (#305)- Reduce bundle size impact by building with rollup instead of webpack (#281)
- Simplify output for more useful RunKit result (#244)
- Update inline-style-prefixer dependency to v4 (#297)
- Allow overriding styles to re-order the styles they override (#279)
- Minify combined class names in production builds (#248)
- Revert make string handlers use
useImportant
(f162220e3
- Minify selectors when building with
process.env.NODE_ENV === 'production'
(#246) - Make string handlers use
useImportant
(#256)
- Allow specifying styles as
Map
s to guarantee ordering (#200) - Replace murmur hash with djb2 hash. This changes all generated classNames. (#203)
- Misc. optimizations (#201, #202, #204, #205, #206, #207, #208, #213)
- Animations now support multiple animations per style (see section on Animations) (PR #167)
- Syntax extensions (see section on Advanced extensions) (PR #95)