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