Skip to content

Commit 91089e9

Browse files
committed
Add release notes
1 parent eaf155f commit 91089e9

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

CHANGELOG.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,30 @@
1+
1.0.0 / Unreleased
2+
==================
3+
4+
* [feature] Add support for enzyme ^3.0.0 (which implies React 16 support)
5+
* [feature] Support an array of nodes in `contain`
6+
* [breaking] If you are using cheerio 1.0, there's' a possibility you will have
7+
to wrap your React components with a div wrapper.
8+
9+
```jsx
10+
<div id='parent'>
11+
<div id='child' />
12+
<div>
13+
```
14+
15+
```js
16+
// Enzyme 2
17+
wrapper.find('#parent').length //=> 1
18+
wrapper.is('#parent') //=> false
19+
20+
// Enzyme 3
21+
wrapper.find('#parent').length //=> 0
22+
wrapper.is('#parent') //=> true
23+
```
24+
25+
The new version returns a cheerio wrapper with a type of tag that IS the parent element.
26+
Before it returned a wrapper with a type root that contains the parent element.
27+
128
0.8.0 / June 29 2017
229
===================
330

0 commit comments

Comments
 (0)