Skip to content

Commit 0ea74e7

Browse files
committed
v6.3.4
1 parent ee8a43a commit 0ea74e7

File tree

2 files changed

+77
-1
lines changed

2 files changed

+77
-1
lines changed

CHANGELOG.md

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,164 +1,240 @@
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+
## [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+
714
## [6.3.1](https://github.com/styled-components/jest-styled-components/compare/v6.3.0...v6.3.1) - 2018-11-11
15+
816
### Fixed
17+
918
- [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)).
1019

1120
## [6.3.0](https://github.com/styled-components/jest-styled-components/compare/v6.2.2...v6.3.0) - 2018-11-10
21+
1222
### Added
23+
1324
- [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)).
1425

1526
## [6.2.2](https://github.com/styled-components/jest-styled-components/compare/v6.2.1...v6.2.2) - 2018-10-21
27+
1628
### Fixed
29+
1730
- 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)).
1831

1932
## [6.2.1](https://github.com/styled-components/jest-styled-components/compare/v6.2.0...v6.2.1) - 2018-09-22
33+
2034
### Fixed
35+
2136
- [toHaveStyleRule] Do not fail when components have empty string as children (see [#189](https://github.com/styled-components/jest-styled-components/pull/189)).
2237

2338
## [6.2.0](https://github.com/styled-components/jest-styled-components/compare/v6.1.1...v6.2.0) - 2018-09-08
39+
2440
### Added
41+
2542
- Ability to export serializer (see [#173](https://github.com/styled-components/jest-styled-components/pull/173)).
2643
- Support for v4 data attribute (see [#181](https://github.com/styled-components/jest-styled-components/pull/181)).
2744

2845
### Fixed
46+
2947
- [toHaveStyleRule] Fix media regex to allow dots (see [#182](https://github.com/styled-components/jest-styled-components/pull/182)).
3048

3149
## [6.1.1](https://github.com/styled-components/jest-styled-components/compare/v6.1.0...v6.1.1) - 2018-08-22
50+
3251
### Fixed
52+
3353
- [toHaveStyleRule] Fix regression with nested components.
3454
- [toHaveStyleRule] Avoid throwing on non existing Enzyme components.
3555

3656
## [6.1.0](https://github.com/styled-components/jest-styled-components/compare/v6.0.1...v6.1.0) - 2018-08-19
57+
3758
### Added
59+
3860
- Support [react-testing-library](https://github.com/kentcdodds/react-testing-library).
3961

4062
## [6.0.1](https://github.com/styled-components/jest-styled-components/compare/v6.0.0...v6.0.1) - 2018-08-11
63+
4164
### Fixed
65+
4266
- Fix `AsymmetricMatcher` TS definition.
4367

4468
## [6.0.0](https://github.com/styled-components/jest-styled-components/compare/v5.0.1...v6.0.0) - 2018-08-11
69+
4570
### Changed
71+
4672
- [toHaveStyleRule] Added support for Jest asymmetric matchers and more (see [#148](https://github.com/styled-components/jest-styled-components/pull/148)).
4773

4874
### Fixed
75+
4976
- [toHaveStyleRule] Support `&&` (see [#126](https://github.com/styled-components/jest-styled-components/pull/126)).
5077
- [toHaveStyleRule] Nested component classNames are serialized too(see [#162](https://github.com/styled-components/jest-styled-components/pull/162)).
5178

5279
## [5.0.1](https://github.com/styled-components/jest-styled-components/compare/v5.0.0...v5.0.1) - 2018-04-01
80+
5381
### Fixed
82+
5483
- [toHaveStyleRule] Allow spaces or no spaces in media queries (see
5584
[#128](https://github.com/styled-components/jest-styled-components/pull/128)).
5685

5786
### Changed
87+
5888
- Improve README (see
5989
[#127](https://github.com/styled-components/jest-styled-components/pull/127)
6090
[#131](https://github.com/styled-components/jest-styled-components/pull/131)
6191
[#132](https://github.com/styled-components/jest-styled-components/pull/132)).
6292

6393
## [5.0.0](https://github.com/styled-components/jest-styled-components/compare/v4.10.0...v5.0.0) - 2018-02-24
94+
6495
### Changed
96+
6597
- [toHaveStyleRule] Improve support for complex modifiers.
6698

6799
### Removed
100+
68101
- Drop support for Styled Components v1.
69102

70103
## [4.10.0](https://github.com/styled-components/jest-styled-components/compare/v4.9.0...v4.10.0) - 2018-01-14
104+
71105
### Added
106+
72107
- [toHaveStyleRule] Support Preact.
73108

74109
## [4.9.0](https://github.com/styled-components/jest-styled-components/compare/v4.8.0...v4.9.0) - 2017-10-22
110+
75111
### Changed
112+
76113
- [toHaveStyleRule (Native)] Full rewrite to support Styled Components v2.
77114
- Update dependencies.
78115
- Improve README.
79116

80117
### Fixed
118+
81119
- [toHaveStyleRule (React)] Support styled components wrapped with `styled`.
82120

83121
## [4.8.0](https://github.com/styled-components/jest-styled-components/compare/v4.7.1...v4.8.0) - 2017-10-21
122+
84123
### Changed
124+
85125
- [toMatchSnapshot] Support Preact.
86126

87127
## [4.7.1](https://github.com/styled-components/jest-styled-components/compare/v4.7.0...v4.7.1) - 2017-10-18
128+
88129
### Fixed
130+
89131
- [toMatchSnapshot] Add the optional `options` parameter to the matcher type definition.
90132

91133
## [4.7.0](https://github.com/styled-components/jest-styled-components/compare/v4.6.0...v4.7.0) - 2017-09-30
134+
92135
### Changed
136+
93137
- Support React 16.
94138
- Update dependencies.
95139

96140
## [4.6.0](https://github.com/styled-components/jest-styled-components/compare/v4.5.0...v4.6.0) - 2017-09-09
141+
97142
### Changed
143+
98144
- [toMatchSnapshot] Make the matcher compatible with Jest v21.
99145

100146
## [4.5.0](https://github.com/styled-components/jest-styled-components/compare/v4.4.1...v4.5.0) - 2017-09-05
147+
101148
### Changed
149+
102150
- [toHaveStyleRule (React)] Make the matcher compatible with Jest v21 (see https://github.com/facebook/jest/pull/3972).
103151

104152
## [4.4.1](https://github.com/styled-components/jest-styled-components/compare/v4.4.0...v4.4.1) - 2017-08-19
153+
105154
### Fixed
155+
106156
- [toMatchSnapshot] Avoid using non-hashes class names when generating snapshots.
107157

108158
## [4.4.0](https://github.com/styled-components/jest-styled-components/compare/v4.3.0...v4.4.0) - 2017-08-11
159+
109160
### Added
161+
110162
- [toMatchSnapshot] Add `modifier` option to search for pseudo classes and attributes.
111163

112164
## [4.3.0](https://github.com/styled-components/jest-styled-components/compare/v4.2.2...v4.3.0) - 2017-07-31
165+
113166
### Added
167+
114168
- [toMatchSnapshot] Accept a third options parameter to search for rules nested within At-rules.
115169

116170
## [4.2.2](https://github.com/styled-components/jest-styled-components/compare/v4.2.1...v4.2.2) - 2017-07-24
171+
117172
### Fixed
173+
118174
- [toMatchSnapshot] Handle non Styled Components class names with leading white spaces.
119175

120176
## [4.2.1](https://github.com/styled-components/jest-styled-components/compare/v4.2.0...v4.2.1) - 2017-07-23
177+
121178
### Fixed
179+
122180
- [toMatchSnapshot] Handle class names with trailing white spaces.
123181

124182
## [4.2.0](https://github.com/styled-components/jest-styled-components/compare/v4.1.2...v4.2.0) - 2017-07-20
183+
125184
### Changed
185+
126186
- [toHaveStyleRule (React)] Accept regular expressions as a second parameter.
127187

128188
## [4.1.2](https://github.com/styled-components/jest-styled-components/compare/v4.1.1...v4.1.2) - 2017-07-20
189+
129190
### Fixed
191+
130192
- [toHaveStyleRule (React)] Avoid showing Enzyme errors when class names are not present in the tree.
131193

132194
## [4.1.1](https://github.com/styled-components/jest-styled-components/compare/v4.1.0...v4.1.1) - 2017-07-20
195+
133196
### Fixed
197+
134198
- [toMatchSnapshot] Fix regression introduced in 4.1.0 which broke the support for Styled Components < 2.
135199

136200
## [4.1.0](https://github.com/styled-components/jest-styled-components/compare/v4.0.3...v4.1.0) - 2017-07-20
201+
137202
### Changed
203+
138204
- [toMatchSnapshot] Preserve custom (i.e. not generated by Styled Components) class names.
139205

140206
## [4.0.3](https://github.com/styled-components/jest-styled-components/compare/v4.0.2...v4.0.3) - 2017-07-18
207+
141208
### Fixed
209+
142210
- [toMatchSnapshot] Collect unique class names and avoid skipping indexes in placeholders.
143211
- [toHaveStyleRule (React)] Support `null` components.
144212

145213
## [4.0.2](https://github.com/styled-components/jest-styled-components/compare/v4.0.1...v4.0.2) - 2017-07-17
214+
146215
### Fixed
216+
147217
- [toMatchSnapshot] Make the replace regular expression less greedy (i.e. stop at the first match).
148218

149219
## [4.0.1](https://github.com/styled-components/jest-styled-components/compare/v4.0.0...v4.0.1) - 2017-07-16
220+
150221
### Fixed
222+
151223
- [toMatchSnapshot] Replace class names inside the `className` attribute only.
152224

153225
## [4.0.0](https://github.com/styled-components/jest-styled-components/compare/v3.3.2...v4.0.0) - 2017-07-15
226+
154227
### Added
228+
155229
- [toMatchSnapshot] Replace class names generated by Styled Components with placeholders.
156230

157231
### Changed
232+
158233
- Update dependencies.
159234
- Improve README.
160235
- Format code with Prettier.
161236
- Refactor folders and tests.
162237

163238
### Removed
239+
164240
- Remove `toMatchStyledComponentsSnapshot` matcher.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jest-styled-components",
3-
"version": "6.3.3",
3+
"version": "6.3.4",
44
"description": "Jest utilities for Styled Components",
55
"main": "./src/index.js",
66
"typings": "./typings/index.d.ts",

0 commit comments

Comments
 (0)