Skip to content

Commit 84fe6b6

Browse files
committed
update changelog
1 parent e27a36a commit 84fe6b6

File tree

1 file changed

+75
-0
lines changed

1 file changed

+75
-0
lines changed

CHANGELOG.md

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,164 +1,239 @@
11
# Changelog
2+
23
All notable changes to this project will be documented in this file.
34

45
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
56
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
67

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+
713
## [6.3.1](https://github.com/styled-components/jest-styled-components/compare/v6.3.0...v6.3.1) - 2018-11-11
14+
815
### Fixed
16+
917
- [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)).
1018

1119
## [6.3.0](https://github.com/styled-components/jest-styled-components/compare/v6.2.2...v6.3.0) - 2018-11-10
20+
1221
### Added
22+
1323
- [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)).
1424

1525
## [6.2.2](https://github.com/styled-components/jest-styled-components/compare/v6.2.1...v6.2.2) - 2018-10-21
26+
1627
### Fixed
28+
1729
- 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)).
1830

1931
## [6.2.1](https://github.com/styled-components/jest-styled-components/compare/v6.2.0...v6.2.1) - 2018-09-22
32+
2033
### Fixed
34+
2135
- [toHaveStyleRule] Do not fail when components have empty string as children (see [#189](https://github.com/styled-components/jest-styled-components/pull/189)).
2236

2337
## [6.2.0](https://github.com/styled-components/jest-styled-components/compare/v6.1.1...v6.2.0) - 2018-09-08
38+
2439
### Added
40+
2541
- Ability to export serializer (see [#173](https://github.com/styled-components/jest-styled-components/pull/173)).
2642
- Support for v4 data attribute (see [#181](https://github.com/styled-components/jest-styled-components/pull/181)).
2743

2844
### Fixed
45+
2946
- [toHaveStyleRule] Fix media regex to allow dots (see [#182](https://github.com/styled-components/jest-styled-components/pull/182)).
3047

3148
## [6.1.1](https://github.com/styled-components/jest-styled-components/compare/v6.1.0...v6.1.1) - 2018-08-22
49+
3250
### Fixed
51+
3352
- [toHaveStyleRule] Fix regression with nested components.
3453
- [toHaveStyleRule] Avoid throwing on non existing Enzyme components.
3554

3655
## [6.1.0](https://github.com/styled-components/jest-styled-components/compare/v6.0.1...v6.1.0) - 2018-08-19
56+
3757
### Added
58+
3859
- Support [react-testing-library](https://github.com/kentcdodds/react-testing-library).
3960

4061
## [6.0.1](https://github.com/styled-components/jest-styled-components/compare/v6.0.0...v6.0.1) - 2018-08-11
62+
4163
### Fixed
64+
4265
- Fix `AsymmetricMatcher` TS definition.
4366

4467
## [6.0.0](https://github.com/styled-components/jest-styled-components/compare/v5.0.1...v6.0.0) - 2018-08-11
68+
4569
### Changed
70+
4671
- [toHaveStyleRule] Added support for Jest asymmetric matchers and more (see [#148](https://github.com/styled-components/jest-styled-components/pull/148)).
4772

4873
### Fixed
74+
4975
- [toHaveStyleRule] Support `&&` (see [#126](https://github.com/styled-components/jest-styled-components/pull/126)).
5076
- [toHaveStyleRule] Nested component classNames are serialized too(see [#162](https://github.com/styled-components/jest-styled-components/pull/162)).
5177

5278
## [5.0.1](https://github.com/styled-components/jest-styled-components/compare/v5.0.0...v5.0.1) - 2018-04-01
79+
5380
### Fixed
81+
5482
- [toHaveStyleRule] Allow spaces or no spaces in media queries (see
5583
[#128](https://github.com/styled-components/jest-styled-components/pull/128)).
5684

5785
### Changed
86+
5887
- Improve README (see
5988
[#127](https://github.com/styled-components/jest-styled-components/pull/127)
6089
[#131](https://github.com/styled-components/jest-styled-components/pull/131)
6190
[#132](https://github.com/styled-components/jest-styled-components/pull/132)).
6291

6392
## [5.0.0](https://github.com/styled-components/jest-styled-components/compare/v4.10.0...v5.0.0) - 2018-02-24
93+
6494
### Changed
95+
6596
- [toHaveStyleRule] Improve support for complex modifiers.
6697

6798
### Removed
99+
68100
- Drop support for Styled Components v1.
69101

70102
## [4.10.0](https://github.com/styled-components/jest-styled-components/compare/v4.9.0...v4.10.0) - 2018-01-14
103+
71104
### Added
105+
72106
- [toHaveStyleRule] Support Preact.
73107

74108
## [4.9.0](https://github.com/styled-components/jest-styled-components/compare/v4.8.0...v4.9.0) - 2017-10-22
109+
75110
### Changed
111+
76112
- [toHaveStyleRule (Native)] Full rewrite to support Styled Components v2.
77113
- Update dependencies.
78114
- Improve README.
79115

80116
### Fixed
117+
81118
- [toHaveStyleRule (React)] Support styled components wrapped with `styled`.
82119

83120
## [4.8.0](https://github.com/styled-components/jest-styled-components/compare/v4.7.1...v4.8.0) - 2017-10-21
121+
84122
### Changed
123+
85124
- [toMatchSnapshot] Support Preact.
86125

87126
## [4.7.1](https://github.com/styled-components/jest-styled-components/compare/v4.7.0...v4.7.1) - 2017-10-18
127+
88128
### Fixed
129+
89130
- [toMatchSnapshot] Add the optional `options` parameter to the matcher type definition.
90131

91132
## [4.7.0](https://github.com/styled-components/jest-styled-components/compare/v4.6.0...v4.7.0) - 2017-09-30
133+
92134
### Changed
135+
93136
- Support React 16.
94137
- Update dependencies.
95138

96139
## [4.6.0](https://github.com/styled-components/jest-styled-components/compare/v4.5.0...v4.6.0) - 2017-09-09
140+
97141
### Changed
142+
98143
- [toMatchSnapshot] Make the matcher compatible with Jest v21.
99144

100145
## [4.5.0](https://github.com/styled-components/jest-styled-components/compare/v4.4.1...v4.5.0) - 2017-09-05
146+
101147
### Changed
148+
102149
- [toHaveStyleRule (React)] Make the matcher compatible with Jest v21 (see https://github.com/facebook/jest/pull/3972).
103150

104151
## [4.4.1](https://github.com/styled-components/jest-styled-components/compare/v4.4.0...v4.4.1) - 2017-08-19
152+
105153
### Fixed
154+
106155
- [toMatchSnapshot] Avoid using non-hashes class names when generating snapshots.
107156

108157
## [4.4.0](https://github.com/styled-components/jest-styled-components/compare/v4.3.0...v4.4.0) - 2017-08-11
158+
109159
### Added
160+
110161
- [toMatchSnapshot] Add `modifier` option to search for pseudo classes and attributes.
111162

112163
## [4.3.0](https://github.com/styled-components/jest-styled-components/compare/v4.2.2...v4.3.0) - 2017-07-31
164+
113165
### Added
166+
114167
- [toMatchSnapshot] Accept a third options parameter to search for rules nested within At-rules.
115168

116169
## [4.2.2](https://github.com/styled-components/jest-styled-components/compare/v4.2.1...v4.2.2) - 2017-07-24
170+
117171
### Fixed
172+
118173
- [toMatchSnapshot] Handle non Styled Components class names with leading white spaces.
119174

120175
## [4.2.1](https://github.com/styled-components/jest-styled-components/compare/v4.2.0...v4.2.1) - 2017-07-23
176+
121177
### Fixed
178+
122179
- [toMatchSnapshot] Handle class names with trailing white spaces.
123180

124181
## [4.2.0](https://github.com/styled-components/jest-styled-components/compare/v4.1.2...v4.2.0) - 2017-07-20
182+
125183
### Changed
184+
126185
- [toHaveStyleRule (React)] Accept regular expressions as a second parameter.
127186

128187
## [4.1.2](https://github.com/styled-components/jest-styled-components/compare/v4.1.1...v4.1.2) - 2017-07-20
188+
129189
### Fixed
190+
130191
- [toHaveStyleRule (React)] Avoid showing Enzyme errors when class names are not present in the tree.
131192

132193
## [4.1.1](https://github.com/styled-components/jest-styled-components/compare/v4.1.0...v4.1.1) - 2017-07-20
194+
133195
### Fixed
196+
134197
- [toMatchSnapshot] Fix regression introduced in 4.1.0 which broke the support for Styled Components < 2.
135198

136199
## [4.1.0](https://github.com/styled-components/jest-styled-components/compare/v4.0.3...v4.1.0) - 2017-07-20
200+
137201
### Changed
202+
138203
- [toMatchSnapshot] Preserve custom (i.e. not generated by Styled Components) class names.
139204

140205
## [4.0.3](https://github.com/styled-components/jest-styled-components/compare/v4.0.2...v4.0.3) - 2017-07-18
206+
141207
### Fixed
208+
142209
- [toMatchSnapshot] Collect unique class names and avoid skipping indexes in placeholders.
143210
- [toHaveStyleRule (React)] Support `null` components.
144211

145212
## [4.0.2](https://github.com/styled-components/jest-styled-components/compare/v4.0.1...v4.0.2) - 2017-07-17
213+
146214
### Fixed
215+
147216
- [toMatchSnapshot] Make the replace regular expression less greedy (i.e. stop at the first match).
148217

149218
## [4.0.1](https://github.com/styled-components/jest-styled-components/compare/v4.0.0...v4.0.1) - 2017-07-16
219+
150220
### Fixed
221+
151222
- [toMatchSnapshot] Replace class names inside the `className` attribute only.
152223

153224
## [4.0.0](https://github.com/styled-components/jest-styled-components/compare/v3.3.2...v4.0.0) - 2017-07-15
225+
154226
### Added
227+
155228
- [toMatchSnapshot] Replace class names generated by Styled Components with placeholders.
156229

157230
### Changed
231+
158232
- Update dependencies.
159233
- Improve README.
160234
- Format code with Prettier.
161235
- Refactor folders and tests.
162236

163237
### Removed
238+
164239
- Remove `toMatchStyledComponentsSnapshot` matcher.

0 commit comments

Comments
 (0)