|
1 | 1 | # Changelog |
2 | 2 |
|
3 | | -All notable changes to this project will be documented in this file. |
4 | | - |
5 | | -The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) |
6 | | -and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). |
7 | | - |
8 | | -## [7.0.7](https://github.com/styled-components/jest-styled-components/compare/v7.0.7...v7.0.7) - 2021-11-21 |
9 | | - |
10 | | -- Fix issue #317 (#319) |
11 | | - |
12 | | -After the first render the node are marked with KEY property and calling rerender function of react-testing-library the test function will return false preventing the print to work as expected |
13 | | - |
14 | | -- fix: incorrect negated assertion for rule existence check |
15 | | -- Fix native toHaveStyleRule to work with object style props (#337) |
16 | | -- Make the global installation [instructions] clearer (#323) |
17 | | -- minor dependency updates |
18 | | - |
19 | | -## [7.0.6](https://github.com/styled-components/jest-styled-components/compare/v7.0.5...v7.0.6) - 2021-11-09 |
20 | | - |
21 | | -- Fix false negative detection of some media queries by simplifying media query regex for stripping spaces (#379) |
22 | | -- Improve test and memory utilization by removing sc style nodes on cleanup (#382) |
23 | | -- Add snapshot options to customize what CSS is included in jest snapshots (#375) |
24 | | -- Fix type error when using css ttl with "modifier" option (#367) |
25 | | -- Add example of how to handle override styles to README.md (#372) |
26 | | - |
27 | | -## [7.0.5](https://github.com/styled-components/jest-styled-components/compare/v7.0.4...v7.0.5) - 2021-07-09 |
28 | | - |
29 | | -- Add setStyleSheetSerializerOptions to control snapshot output |
30 | | -- Strip styled components referenced in css by not used in the render (#351) |
31 | | -- Set minimum node engine version to v12 (current minimum maintenance version) |
32 | | - |
33 | | -## [7.0.4](https://github.com/styled-components/jest-styled-components/compare/v7.0.3...v7.0.4) - 2021-04-18 |
34 | | - |
35 | | -- support styled-components v6 |
36 | | - |
37 | | -## [7.0.3](https://github.com/styled-components/jest-styled-components/compare/v7.0.2...v7.0.3) - 2020-08-19 |
38 | | - |
39 | | -- Strip static class names from jest snapshot results (#320) thanks @blnoonan |
40 | | -- Fix get styled className from children components (#313) thanks @vxcamiloxv |
41 | | - |
42 | | -## [7.0.2](https://github.com/styled-components/jest-styled-components/compare/v7.0.1...v7.0.2) - 2020-04-09 |
43 | | - |
44 | | -Fix toHaveStyleRule support classes with displayName prefix (#302) thanks @vxcamiloxv |
45 | | - |
46 | | -## [7.0.1](https://github.com/styled-components/jest-styled-components/compare/v7.0.0...v7.0.1) - 2020-04-07 |
47 | | - |
48 | | -- Update Matchers interface (#269) thanks @tobilen |
49 | | - |
50 | | -- Extend global namespace with jest matcher (#308) thanks @tobilen |
51 | | - |
52 | | -- support shallow rendering when nesting styled components (#306) (#309) thanks @functionalDev |
53 | | - |
54 | | -- Remove object spread to continue Node LTS 10/12 support (#304) thanks @vxcamiloxv |
55 | | - |
56 | | -## [7.0.0](https://github.com/styled-components/jest-styled-components/compare/v6.3.1...v7.0.0) - 2020-01-13 |
57 | | - |
58 | | -- styled-components v5 support, drops support for s-c versions below v5 |
59 | | -- ship `stylesheetSerializer` as a named export |
60 | | - |
61 | | -## [6.3.1](https://github.com/styled-components/jest-styled-components/compare/v6.3.0...v6.3.1) - 2018-11-11 |
62 | | - |
63 | | -### Fixed |
64 | | - |
65 | | -- [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)). |
66 | | - |
67 | | -## [6.3.0](https://github.com/styled-components/jest-styled-components/compare/v6.2.2...v6.3.0) - 2018-11-10 |
68 | | - |
69 | | -### Added |
70 | | - |
71 | | -- [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)). |
72 | | - |
73 | | -## [6.2.2](https://github.com/styled-components/jest-styled-components/compare/v6.2.1...v6.2.2) - 2018-10-21 |
74 | | - |
75 | | -### Fixed |
76 | | - |
77 | | -- 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)). |
78 | | - |
79 | | -## [6.2.1](https://github.com/styled-components/jest-styled-components/compare/v6.2.0...v6.2.1) - 2018-09-22 |
80 | | - |
81 | | -### Fixed |
82 | | - |
83 | | -- [toHaveStyleRule] Do not fail when components have empty string as children (see [#189](https://github.com/styled-components/jest-styled-components/pull/189)). |
84 | | - |
85 | | -## [6.2.0](https://github.com/styled-components/jest-styled-components/compare/v6.1.1...v6.2.0) - 2018-09-08 |
86 | | - |
87 | | -### Added |
88 | | - |
89 | | -- Ability to export serializer (see [#173](https://github.com/styled-components/jest-styled-components/pull/173)). |
90 | | -- Support for v4 data attribute (see [#181](https://github.com/styled-components/jest-styled-components/pull/181)). |
91 | | - |
92 | | -### Fixed |
93 | | - |
94 | | -- [toHaveStyleRule] Fix media regex to allow dots (see [#182](https://github.com/styled-components/jest-styled-components/pull/182)). |
95 | | - |
96 | | -## [6.1.1](https://github.com/styled-components/jest-styled-components/compare/v6.1.0...v6.1.1) - 2018-08-22 |
97 | | - |
98 | | -### Fixed |
99 | | - |
100 | | -- [toHaveStyleRule] Fix regression with nested components. |
101 | | -- [toHaveStyleRule] Avoid throwing on non existing Enzyme components. |
102 | | - |
103 | | -## [6.1.0](https://github.com/styled-components/jest-styled-components/compare/v6.0.1...v6.1.0) - 2018-08-19 |
104 | | - |
105 | | -### Added |
106 | | - |
107 | | -- Support [react-testing-library](https://github.com/kentcdodds/react-testing-library). |
108 | | - |
109 | | -## [6.0.1](https://github.com/styled-components/jest-styled-components/compare/v6.0.0...v6.0.1) - 2018-08-11 |
110 | | - |
111 | | -### Fixed |
112 | | - |
113 | | -- Fix `AsymmetricMatcher` TS definition. |
114 | | - |
115 | | -## [6.0.0](https://github.com/styled-components/jest-styled-components/compare/v5.0.1...v6.0.0) - 2018-08-11 |
116 | | - |
117 | | -### Changed |
118 | | - |
119 | | -- [toHaveStyleRule] Added support for Jest asymmetric matchers and more (see [#148](https://github.com/styled-components/jest-styled-components/pull/148)). |
120 | | - |
121 | | -### Fixed |
122 | | - |
123 | | -- [toHaveStyleRule] Support `&&` (see [#126](https://github.com/styled-components/jest-styled-components/pull/126)). |
124 | | -- [toHaveStyleRule] Nested component classNames are serialized too(see [#162](https://github.com/styled-components/jest-styled-components/pull/162)). |
125 | | - |
126 | | -## [5.0.1](https://github.com/styled-components/jest-styled-components/compare/v5.0.0...v5.0.1) - 2018-04-01 |
127 | | - |
128 | | -### Fixed |
129 | | - |
130 | | -- [toHaveStyleRule] Allow spaces or no spaces in media queries (see |
131 | | - [#128](https://github.com/styled-components/jest-styled-components/pull/128)). |
132 | | - |
133 | | -### Changed |
134 | | - |
135 | | -- Improve README (see |
136 | | - [#127](https://github.com/styled-components/jest-styled-components/pull/127) |
137 | | - [#131](https://github.com/styled-components/jest-styled-components/pull/131) |
138 | | - [#132](https://github.com/styled-components/jest-styled-components/pull/132)). |
139 | | - |
140 | | -## [5.0.0](https://github.com/styled-components/jest-styled-components/compare/v4.10.0...v5.0.0) - 2018-02-24 |
141 | | - |
142 | | -### Changed |
143 | | - |
144 | | -- [toHaveStyleRule] Improve support for complex modifiers. |
145 | | - |
146 | | -### Removed |
147 | | - |
148 | | -- Drop support for Styled Components v1. |
149 | | - |
150 | | -## [4.10.0](https://github.com/styled-components/jest-styled-components/compare/v4.9.0...v4.10.0) - 2018-01-14 |
151 | | - |
152 | | -### Added |
153 | | - |
154 | | -- [toHaveStyleRule] Support Preact. |
155 | | - |
156 | | -## [4.9.0](https://github.com/styled-components/jest-styled-components/compare/v4.8.0...v4.9.0) - 2017-10-22 |
157 | | - |
158 | | -### Changed |
159 | | - |
160 | | -- [toHaveStyleRule (Native)] Full rewrite to support Styled Components v2. |
161 | | -- Update dependencies. |
162 | | -- Improve README. |
163 | | - |
164 | | -### Fixed |
165 | | - |
166 | | -- [toHaveStyleRule (React)] Support styled components wrapped with `styled`. |
167 | | - |
168 | | -## [4.8.0](https://github.com/styled-components/jest-styled-components/compare/v4.7.1...v4.8.0) - 2017-10-21 |
169 | | - |
170 | | -### Changed |
171 | | - |
172 | | -- [toMatchSnapshot] Support Preact. |
173 | | - |
174 | | -## [4.7.1](https://github.com/styled-components/jest-styled-components/compare/v4.7.0...v4.7.1) - 2017-10-18 |
175 | | - |
176 | | -### Fixed |
177 | | - |
178 | | -- [toMatchSnapshot] Add the optional `options` parameter to the matcher type definition. |
179 | | - |
180 | | -## [4.7.0](https://github.com/styled-components/jest-styled-components/compare/v4.6.0...v4.7.0) - 2017-09-30 |
181 | | - |
182 | | -### Changed |
183 | | - |
184 | | -- Support React 16. |
185 | | -- Update dependencies. |
186 | | - |
187 | | -## [4.6.0](https://github.com/styled-components/jest-styled-components/compare/v4.5.0...v4.6.0) - 2017-09-09 |
188 | | - |
189 | | -### Changed |
190 | | - |
191 | | -- [toMatchSnapshot] Make the matcher compatible with Jest v21. |
192 | | - |
193 | | -## [4.5.0](https://github.com/styled-components/jest-styled-components/compare/v4.4.1...v4.5.0) - 2017-09-05 |
194 | | - |
195 | | -### Changed |
196 | | - |
197 | | -- [toHaveStyleRule (React)] Make the matcher compatible with Jest v21 (see https://github.com/facebook/jest/pull/3972). |
198 | | - |
199 | | -## [4.4.1](https://github.com/styled-components/jest-styled-components/compare/v4.4.0...v4.4.1) - 2017-08-19 |
200 | | - |
201 | | -### Fixed |
202 | | - |
203 | | -- [toMatchSnapshot] Avoid using non-hashes class names when generating snapshots. |
204 | | - |
205 | | -## [4.4.0](https://github.com/styled-components/jest-styled-components/compare/v4.3.0...v4.4.0) - 2017-08-11 |
206 | | - |
207 | | -### Added |
208 | | - |
209 | | -- [toMatchSnapshot] Add `modifier` option to search for pseudo classes and attributes. |
210 | | - |
211 | | -## [4.3.0](https://github.com/styled-components/jest-styled-components/compare/v4.2.2...v4.3.0) - 2017-07-31 |
212 | | - |
213 | | -### Added |
214 | | - |
215 | | -- [toMatchSnapshot] Accept a third options parameter to search for rules nested within At-rules. |
216 | | - |
217 | | -## [4.2.2](https://github.com/styled-components/jest-styled-components/compare/v4.2.1...v4.2.2) - 2017-07-24 |
218 | | - |
219 | | -### Fixed |
220 | | - |
221 | | -- [toMatchSnapshot] Handle non Styled Components class names with leading white spaces. |
222 | | - |
223 | | -## [4.2.1](https://github.com/styled-components/jest-styled-components/compare/v4.2.0...v4.2.1) - 2017-07-23 |
224 | | - |
225 | | -### Fixed |
226 | | - |
227 | | -- [toMatchSnapshot] Handle class names with trailing white spaces. |
228 | | - |
229 | | -## [4.2.0](https://github.com/styled-components/jest-styled-components/compare/v4.1.2...v4.2.0) - 2017-07-20 |
230 | | - |
231 | | -### Changed |
232 | | - |
233 | | -- [toHaveStyleRule (React)] Accept regular expressions as a second parameter. |
234 | | - |
235 | | -## [4.1.2](https://github.com/styled-components/jest-styled-components/compare/v4.1.1...v4.1.2) - 2017-07-20 |
236 | | - |
237 | | -### Fixed |
238 | | - |
239 | | -- [toHaveStyleRule (React)] Avoid showing Enzyme errors when class names are not present in the tree. |
240 | | - |
241 | | -## [4.1.1](https://github.com/styled-components/jest-styled-components/compare/v4.1.0...v4.1.1) - 2017-07-20 |
242 | | - |
243 | | -### Fixed |
244 | | - |
245 | | -- [toMatchSnapshot] Fix regression introduced in 4.1.0 which broke the support for Styled Components < 2. |
246 | | - |
247 | | -## [4.1.0](https://github.com/styled-components/jest-styled-components/compare/v4.0.3...v4.1.0) - 2017-07-20 |
248 | | - |
249 | | -### Changed |
250 | | - |
251 | | -- [toMatchSnapshot] Preserve custom (i.e. not generated by Styled Components) class names. |
252 | | - |
253 | | -## [4.0.3](https://github.com/styled-components/jest-styled-components/compare/v4.0.2...v4.0.3) - 2017-07-18 |
254 | | - |
255 | | -### Fixed |
256 | | - |
257 | | -- [toMatchSnapshot] Collect unique class names and avoid skipping indexes in placeholders. |
258 | | -- [toHaveStyleRule (React)] Support `null` components. |
259 | | - |
260 | | -## [4.0.2](https://github.com/styled-components/jest-styled-components/compare/v4.0.1...v4.0.2) - 2017-07-17 |
261 | | - |
262 | | -### Fixed |
263 | | - |
264 | | -- [toMatchSnapshot] Make the replace regular expression less greedy (i.e. stop at the first match). |
265 | | - |
266 | | -## [4.0.1](https://github.com/styled-components/jest-styled-components/compare/v4.0.0...v4.0.1) - 2017-07-16 |
267 | | - |
268 | | -### Fixed |
269 | | - |
270 | | -- [toMatchSnapshot] Replace class names inside the `className` attribute only. |
271 | | - |
272 | | -## [4.0.0](https://github.com/styled-components/jest-styled-components/compare/v3.3.2...v4.0.0) - 2017-07-15 |
273 | | - |
274 | | -### Added |
275 | | - |
276 | | -- [toMatchSnapshot] Replace class names generated by Styled Components with placeholders. |
277 | | - |
278 | | -### Changed |
279 | | - |
280 | | -- Update dependencies. |
281 | | -- Improve README. |
282 | | -- Format code with Prettier. |
283 | | -- Refactor folders and tests. |
284 | | - |
285 | | -### Removed |
286 | | - |
287 | | -- Remove `toMatchStyledComponentsSnapshot` matcher. |
| 3 | +See [GitHub releases](https://github.com/styled-components/jest-styled-components/releases). |
0 commit comments