|
1 | 1 | # Changelog
|
| 2 | + |
2 | 3 | All notable changes to this project will be documented in this file.
|
3 | 4 |
|
4 | 5 | The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
|
5 | 6 | and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
6 | 7 |
|
| 8 | +## [7.0.0](https://github.com/styled-components/jest-styled-components/compare/v6.3.1...v7.0.0) |
| 9 | + |
| 10 | +- styled-components v5 support, drops support for s-c versions below v5 |
| 11 | +- ship `stylesheetSerializer` as a named export |
| 12 | + |
7 | 13 | ## [6.3.1](https://github.com/styled-components/jest-styled-components/compare/v6.3.0...v6.3.1) - 2018-11-11
|
| 14 | + |
8 | 15 | ### Fixed
|
| 16 | + |
9 | 17 | - [toHaveStyleRule] Fix `.not undefinded` edge-case introduced in [#206](https://github.com/styled-components/jest-styled-components/pull/206) (see [#210](https://github.com/styled-components/jest-styled-components/pull/210)).
|
10 | 18 |
|
11 | 19 | ## [6.3.0](https://github.com/styled-components/jest-styled-components/compare/v6.2.2...v6.3.0) - 2018-11-10
|
| 20 | + |
12 | 21 | ### Added
|
| 22 | + |
13 | 23 | - [toHaveStyleRule] Ability to avoid passing the expected value and use the `.not` modifier (see [#206](https://github.com/styled-components/jest-styled-components/pull/206)).
|
14 | 24 |
|
15 | 25 | ## [6.2.2](https://github.com/styled-components/jest-styled-components/compare/v6.2.1...v6.2.2) - 2018-10-21
|
| 26 | + |
16 | 27 | ### Fixed
|
| 28 | + |
17 | 29 | - Avoid using object spread to make this package compatible with Node <8.6 (see [#196](https://github.com/styled-components/jest-styled-components/pull/196)).
|
18 | 30 |
|
19 | 31 | ## [6.2.1](https://github.com/styled-components/jest-styled-components/compare/v6.2.0...v6.2.1) - 2018-09-22
|
| 32 | + |
20 | 33 | ### Fixed
|
| 34 | + |
21 | 35 | - [toHaveStyleRule] Do not fail when components have empty string as children (see [#189](https://github.com/styled-components/jest-styled-components/pull/189)).
|
22 | 36 |
|
23 | 37 | ## [6.2.0](https://github.com/styled-components/jest-styled-components/compare/v6.1.1...v6.2.0) - 2018-09-08
|
| 38 | + |
24 | 39 | ### Added
|
| 40 | + |
25 | 41 | - Ability to export serializer (see [#173](https://github.com/styled-components/jest-styled-components/pull/173)).
|
26 | 42 | - Support for v4 data attribute (see [#181](https://github.com/styled-components/jest-styled-components/pull/181)).
|
27 | 43 |
|
28 | 44 | ### Fixed
|
| 45 | + |
29 | 46 | - [toHaveStyleRule] Fix media regex to allow dots (see [#182](https://github.com/styled-components/jest-styled-components/pull/182)).
|
30 | 47 |
|
31 | 48 | ## [6.1.1](https://github.com/styled-components/jest-styled-components/compare/v6.1.0...v6.1.1) - 2018-08-22
|
| 49 | + |
32 | 50 | ### Fixed
|
| 51 | + |
33 | 52 | - [toHaveStyleRule] Fix regression with nested components.
|
34 | 53 | - [toHaveStyleRule] Avoid throwing on non existing Enzyme components.
|
35 | 54 |
|
36 | 55 | ## [6.1.0](https://github.com/styled-components/jest-styled-components/compare/v6.0.1...v6.1.0) - 2018-08-19
|
| 56 | + |
37 | 57 | ### Added
|
| 58 | + |
38 | 59 | - Support [react-testing-library](https://github.com/kentcdodds/react-testing-library).
|
39 | 60 |
|
40 | 61 | ## [6.0.1](https://github.com/styled-components/jest-styled-components/compare/v6.0.0...v6.0.1) - 2018-08-11
|
| 62 | + |
41 | 63 | ### Fixed
|
| 64 | + |
42 | 65 | - Fix `AsymmetricMatcher` TS definition.
|
43 | 66 |
|
44 | 67 | ## [6.0.0](https://github.com/styled-components/jest-styled-components/compare/v5.0.1...v6.0.0) - 2018-08-11
|
| 68 | + |
45 | 69 | ### Changed
|
| 70 | + |
46 | 71 | - [toHaveStyleRule] Added support for Jest asymmetric matchers and more (see [#148](https://github.com/styled-components/jest-styled-components/pull/148)).
|
47 | 72 |
|
48 | 73 | ### Fixed
|
| 74 | + |
49 | 75 | - [toHaveStyleRule] Support `&&` (see [#126](https://github.com/styled-components/jest-styled-components/pull/126)).
|
50 | 76 | - [toHaveStyleRule] Nested component classNames are serialized too(see [#162](https://github.com/styled-components/jest-styled-components/pull/162)).
|
51 | 77 |
|
52 | 78 | ## [5.0.1](https://github.com/styled-components/jest-styled-components/compare/v5.0.0...v5.0.1) - 2018-04-01
|
| 79 | + |
53 | 80 | ### Fixed
|
| 81 | + |
54 | 82 | - [toHaveStyleRule] Allow spaces or no spaces in media queries (see
|
55 | 83 | [#128](https://github.com/styled-components/jest-styled-components/pull/128)).
|
56 | 84 |
|
57 | 85 | ### Changed
|
| 86 | + |
58 | 87 | - Improve README (see
|
59 | 88 | [#127](https://github.com/styled-components/jest-styled-components/pull/127)
|
60 | 89 | [#131](https://github.com/styled-components/jest-styled-components/pull/131)
|
61 | 90 | [#132](https://github.com/styled-components/jest-styled-components/pull/132)).
|
62 | 91 |
|
63 | 92 | ## [5.0.0](https://github.com/styled-components/jest-styled-components/compare/v4.10.0...v5.0.0) - 2018-02-24
|
| 93 | + |
64 | 94 | ### Changed
|
| 95 | + |
65 | 96 | - [toHaveStyleRule] Improve support for complex modifiers.
|
66 | 97 |
|
67 | 98 | ### Removed
|
| 99 | + |
68 | 100 | - Drop support for Styled Components v1.
|
69 | 101 |
|
70 | 102 | ## [4.10.0](https://github.com/styled-components/jest-styled-components/compare/v4.9.0...v4.10.0) - 2018-01-14
|
| 103 | + |
71 | 104 | ### Added
|
| 105 | + |
72 | 106 | - [toHaveStyleRule] Support Preact.
|
73 | 107 |
|
74 | 108 | ## [4.9.0](https://github.com/styled-components/jest-styled-components/compare/v4.8.0...v4.9.0) - 2017-10-22
|
| 109 | + |
75 | 110 | ### Changed
|
| 111 | + |
76 | 112 | - [toHaveStyleRule (Native)] Full rewrite to support Styled Components v2.
|
77 | 113 | - Update dependencies.
|
78 | 114 | - Improve README.
|
79 | 115 |
|
80 | 116 | ### Fixed
|
| 117 | + |
81 | 118 | - [toHaveStyleRule (React)] Support styled components wrapped with `styled`.
|
82 | 119 |
|
83 | 120 | ## [4.8.0](https://github.com/styled-components/jest-styled-components/compare/v4.7.1...v4.8.0) - 2017-10-21
|
| 121 | + |
84 | 122 | ### Changed
|
| 123 | + |
85 | 124 | - [toMatchSnapshot] Support Preact.
|
86 | 125 |
|
87 | 126 | ## [4.7.1](https://github.com/styled-components/jest-styled-components/compare/v4.7.0...v4.7.1) - 2017-10-18
|
| 127 | + |
88 | 128 | ### Fixed
|
| 129 | + |
89 | 130 | - [toMatchSnapshot] Add the optional `options` parameter to the matcher type definition.
|
90 | 131 |
|
91 | 132 | ## [4.7.0](https://github.com/styled-components/jest-styled-components/compare/v4.6.0...v4.7.0) - 2017-09-30
|
| 133 | + |
92 | 134 | ### Changed
|
| 135 | + |
93 | 136 | - Support React 16.
|
94 | 137 | - Update dependencies.
|
95 | 138 |
|
96 | 139 | ## [4.6.0](https://github.com/styled-components/jest-styled-components/compare/v4.5.0...v4.6.0) - 2017-09-09
|
| 140 | + |
97 | 141 | ### Changed
|
| 142 | + |
98 | 143 | - [toMatchSnapshot] Make the matcher compatible with Jest v21.
|
99 | 144 |
|
100 | 145 | ## [4.5.0](https://github.com/styled-components/jest-styled-components/compare/v4.4.1...v4.5.0) - 2017-09-05
|
| 146 | + |
101 | 147 | ### Changed
|
| 148 | + |
102 | 149 | - [toHaveStyleRule (React)] Make the matcher compatible with Jest v21 (see https://github.com/facebook/jest/pull/3972).
|
103 | 150 |
|
104 | 151 | ## [4.4.1](https://github.com/styled-components/jest-styled-components/compare/v4.4.0...v4.4.1) - 2017-08-19
|
| 152 | + |
105 | 153 | ### Fixed
|
| 154 | + |
106 | 155 | - [toMatchSnapshot] Avoid using non-hashes class names when generating snapshots.
|
107 | 156 |
|
108 | 157 | ## [4.4.0](https://github.com/styled-components/jest-styled-components/compare/v4.3.0...v4.4.0) - 2017-08-11
|
| 158 | + |
109 | 159 | ### Added
|
| 160 | + |
110 | 161 | - [toMatchSnapshot] Add `modifier` option to search for pseudo classes and attributes.
|
111 | 162 |
|
112 | 163 | ## [4.3.0](https://github.com/styled-components/jest-styled-components/compare/v4.2.2...v4.3.0) - 2017-07-31
|
| 164 | + |
113 | 165 | ### Added
|
| 166 | + |
114 | 167 | - [toMatchSnapshot] Accept a third options parameter to search for rules nested within At-rules.
|
115 | 168 |
|
116 | 169 | ## [4.2.2](https://github.com/styled-components/jest-styled-components/compare/v4.2.1...v4.2.2) - 2017-07-24
|
| 170 | + |
117 | 171 | ### Fixed
|
| 172 | + |
118 | 173 | - [toMatchSnapshot] Handle non Styled Components class names with leading white spaces.
|
119 | 174 |
|
120 | 175 | ## [4.2.1](https://github.com/styled-components/jest-styled-components/compare/v4.2.0...v4.2.1) - 2017-07-23
|
| 176 | + |
121 | 177 | ### Fixed
|
| 178 | + |
122 | 179 | - [toMatchSnapshot] Handle class names with trailing white spaces.
|
123 | 180 |
|
124 | 181 | ## [4.2.0](https://github.com/styled-components/jest-styled-components/compare/v4.1.2...v4.2.0) - 2017-07-20
|
| 182 | + |
125 | 183 | ### Changed
|
| 184 | + |
126 | 185 | - [toHaveStyleRule (React)] Accept regular expressions as a second parameter.
|
127 | 186 |
|
128 | 187 | ## [4.1.2](https://github.com/styled-components/jest-styled-components/compare/v4.1.1...v4.1.2) - 2017-07-20
|
| 188 | + |
129 | 189 | ### Fixed
|
| 190 | + |
130 | 191 | - [toHaveStyleRule (React)] Avoid showing Enzyme errors when class names are not present in the tree.
|
131 | 192 |
|
132 | 193 | ## [4.1.1](https://github.com/styled-components/jest-styled-components/compare/v4.1.0...v4.1.1) - 2017-07-20
|
| 194 | + |
133 | 195 | ### Fixed
|
| 196 | + |
134 | 197 | - [toMatchSnapshot] Fix regression introduced in 4.1.0 which broke the support for Styled Components < 2.
|
135 | 198 |
|
136 | 199 | ## [4.1.0](https://github.com/styled-components/jest-styled-components/compare/v4.0.3...v4.1.0) - 2017-07-20
|
| 200 | + |
137 | 201 | ### Changed
|
| 202 | + |
138 | 203 | - [toMatchSnapshot] Preserve custom (i.e. not generated by Styled Components) class names.
|
139 | 204 |
|
140 | 205 | ## [4.0.3](https://github.com/styled-components/jest-styled-components/compare/v4.0.2...v4.0.3) - 2017-07-18
|
| 206 | + |
141 | 207 | ### Fixed
|
| 208 | + |
142 | 209 | - [toMatchSnapshot] Collect unique class names and avoid skipping indexes in placeholders.
|
143 | 210 | - [toHaveStyleRule (React)] Support `null` components.
|
144 | 211 |
|
145 | 212 | ## [4.0.2](https://github.com/styled-components/jest-styled-components/compare/v4.0.1...v4.0.2) - 2017-07-17
|
| 213 | + |
146 | 214 | ### Fixed
|
| 215 | + |
147 | 216 | - [toMatchSnapshot] Make the replace regular expression less greedy (i.e. stop at the first match).
|
148 | 217 |
|
149 | 218 | ## [4.0.1](https://github.com/styled-components/jest-styled-components/compare/v4.0.0...v4.0.1) - 2017-07-16
|
| 219 | + |
150 | 220 | ### Fixed
|
| 221 | + |
151 | 222 | - [toMatchSnapshot] Replace class names inside the `className` attribute only.
|
152 | 223 |
|
153 | 224 | ## [4.0.0](https://github.com/styled-components/jest-styled-components/compare/v3.3.2...v4.0.0) - 2017-07-15
|
| 225 | + |
154 | 226 | ### Added
|
| 227 | + |
155 | 228 | - [toMatchSnapshot] Replace class names generated by Styled Components with placeholders.
|
156 | 229 |
|
157 | 230 | ### Changed
|
| 231 | + |
158 | 232 | - Update dependencies.
|
159 | 233 | - Improve README.
|
160 | 234 | - Format code with Prettier.
|
161 | 235 | - Refactor folders and tests.
|
162 | 236 |
|
163 | 237 | ### Removed
|
| 238 | + |
164 | 239 | - Remove `toMatchStyledComponentsSnapshot` matcher.
|
0 commit comments