UNPKG

5.59 kBMarkdownView Raw
1# 2.4.0
2
3- Allow already injected to be reset ([#380](https://github.com/Khan/aphrodite/pull/380))
4- Add TypeScript export for flushToStyleTag ([#379](https://github.com/Khan/aphrodite/pull/379))
5- Make parameter typings for StyleSheet.create more typed ([#375](https://github.com/Khan/aphrodite/pull/375))
6- Add a more explicit error message when someone tries to pass a plain object instead of a stylesheet into the css() method ([#349](https://github.com/Khan/aphrodite/pull/349))
7- Roll up inline-style-prefixer ([#364](https://github.com/Khan/aphrodite/pull/364))
8- Update inline-style-prefixer 5.0.4 → 5.1.0 ([#373](https://github.com/Khan/aphrodite/pull/373))
9- Fix examples ([#367](https://github.com/Khan/aphrodite/pull/367))
10
11# 2.3.1
12
13- Use deep import for inline-style-prefixer ([#363](https://github.com/Khan/aphrodite/pull/363))
14
15# 2.3.0
16
17- Bump inline-style-prefixer 4.0.2 -> 5.0.4 ([#358](https://github.com/Khan/aphrodite/pull/358))
18- Update rollup to v1.2.0 and babel to v7 ([#362](https://github.com/Khan/aphrodite/pull/362))
19
20# 2.2.3
21
22- Bump inline-style-prefixer 4.0.0 -> 4.0.2 ([#341](https://github.com/Khan/aphrodite/pull/341))
23
24# 2.2.2
25
26- Fix multiple `@font-face` of the same name ([#327](https://github.com/Khan/aphrodite/pull/327))
27- Fix typings to allow for extending ([#330](https://github.com/Khan/aphrodite/pull/330))
28
29# 2.2.1
30
31- Use code-splitting for default and no-important builds ([#325](https://github.com/Khan/aphrodite/pull/325))
32
33# 2.2.0
34
35- Expose `defaultSelectorHandlers` and `injectAndGetClassName` ([#320](https://github.com/Khan/aphrodite/pull/320))
36
37
38# 2.1.1
39
40- Add `minify` and `flushToStyleTag` to no-important ([#316](https://github.com/Khan/aphrodite/pull/316))
41
42# 2.1.0
43
44- Expose `flushToStyleTag` ([#310](https://github.com/Khan/aphrodite/pull/310))
45
46# 2.0.0
47
48- 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.
49- `insertRule` is now used to inject styles to the style element ([#240](https://github.com/Khan/aphrodite/pull/240))
50- New `minify()` controls the minification of style names (defaults to `true` when `process.env.NODE_ENV === 'production'`) ([#291](https://github.com/Khan/aphrodite/pull/291))
51- New TypeScript typings ([#302](https://github.com/Khan/aphrodite/pull/302))
52- New `StyleSheetTestUtils.getBufferedStyles()` ([#294](https://github.com/Khan/aphrodite/pull/294))
53- `StyleSheetTestUtils` will be minified out in production builds (i.e. when `process.env.NODE_ENV === 'production'`) ([#305](https://github.com/Khan/aphrodite/pull/305))
54- Reduce bundle size impact by building with rollup instead of webpack ([#281](https://github.com/Khan/aphrodite/pull/281))
55- Simplify output for more useful RunKit result ([#244](https://github.com/Khan/aphrodite/pull/244))
56- Update inline-style-prefixer dependency to v4 ([#297](https://github.com/Khan/aphrodite/pull/297))
57
58# 1.2.5
59
60- Allow overriding styles to re-order the styles they override ([#279](https://github.com/Khan/aphrodite/pull/279))
61
62# 1.2.4
63
64- Minify combined class names in production builds ([#248](https://github.com/Khan/aphrodite/pull/248))
65
66# 1.2.3
67
68- Revert make string handlers use `useImportant`([f162220e3](https://github.com/Khan/aphrodite/commit/f162220e3d7321c7ede0aefc189de9bb694e5107)
69
70# 1.2.2
71
72- Minify selectors when building with `process.env.NODE_ENV === 'production'` ([#246](https://github.com/Khan/aphrodite/pull/246))
73- Make string handlers use `useImportant` ([#256](https://github.com/Khan/aphrodite/pull/256))
74
75# 1.2.1
76
77- Fix bug that caused unexpected mutations of nested objects ([#231](https://github.com/Khan/aphrodite/issues/231))
78- More optimizations ([#233](https://github.com/Khan/aphrodite/pull/233), [#216](https://github.com/Khan/aphrodite/pull/216))
79
80# 1.2.0
81
82- Allow specifying styles as `Map`s to guarantee ordering ([#200](https://github.com/Khan/aphrodite/pull/200))
83- Replace murmur hash with djb2 hash. This changes all generated classNames. ([#203](https://github.com/Khan/aphrodite/pull/203))
84- Misc. optimizations ([#201](https://github.com/Khan/aphrodite/pull/201), [#202](https://github.com/Khan/aphrodite/pull/202), [#204](https://github.com/Khan/aphrodite/pull/204), [#205](https://github.com/Khan/aphrodite/pull/205), [#206](https://github.com/Khan/aphrodite/pull/206), [#207](https://github.com/Khan/aphrodite/pull/207), [#208](https://github.com/Khan/aphrodite/pull/208), [#213](https://github.com/Khan/aphrodite/pull/213))
85
86# 1.1.0
87
88- Animations now support multiple animations per style ([see section on Animations](https://github.com/Khan/aphrodite#animations)) ([PR #167](https://github.com/Khan/aphrodite/pull/167))
89
90# 1.0.0
91- Syntax extensions ([see section on Advanced extensions](https://github.com/Khan/aphrodite#advanced-extensions)) ([PR #95](https://github.com/Khan/aphrodite/pull/95))
92
93# 0.6.0
94- `css()` will now accept arbitrarily nested arrays. i.e. instead of `css(styles.a, styles.b)`, you can now do `css([styles.a, [styles.b, styles.c]])`. ([PR #154](https://github.com/Khan/aphrodite/pull/154))
95- Support for multiple font styles with the same font-family. ([PR #82](https://github.com/Khan/aphrodite/pull/82))