Aphrodite v2.0.0 Release Notes

Release Date: 2018-03-15 // about 3 years ago
    • ๐Ÿš€ 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 to true when process.env.NODE_ENV === 'production') (#291)
    • ๐Ÿ†• New TypeScript typings (#302)
    • ๐Ÿ†• New StyleSheetTestUtils.getBufferedStyles() (#294)
    • ๐Ÿ’… StyleSheetTestUtils will be minified out in production builds (i.e. when process.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)