UNPKG

3.67 kBMarkdownView Raw
1# Changelog
2
3All notable changes to this project will be documented in this file.
4
5The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
6and adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
7
8<!-- ## [Unreleased] -->
9
10## [1.7.1] - 2019-07-16
11
12### Fixed
13
14- explicitly defining return type for `findWhere` and `findAllWhere` operators ([#795](https://github.com/Shopify/quilt/pull/795))
15
16## [1.7.0] - 2019-07-15
17
18### Added
19
20- Added a `toContainReactComponentTimes` matcher ([#781](https://github.com/Shopify/quilt/pull/781))
21- Added the ability to extend a custom mount function with `createMount().extend()` ([#788](https://github.com/Shopify/quilt/pull/788))
22- `Root` and `Element` now both implement the newly-exported `Node` type, which can be used to request any object that satisfies the traversal and introspection APIs ([#793](https://github.com/Shopify/quilt/pull/793))
23
24## [1.6.0] - 2019-06-04
25
26### Added
27
28- Added a `toProvideReactContext` matcher ([#735](https://github.com/Shopify/quilt/pull/735))
29
30## [1.5.4] - 2019-05-31
31
32### Fixed
33
34- When using a custom mount with `createMount`, calling `setProps` on the resulting elements will now properly set props on the JSX that was mounted, not the element returned from the `createMount` `render` option ([#726](https://github.com/Shopify/quilt/pull/726)).
35
36 > **Note**: In order to support the above, a small change was made to the `Root` class’s constructor. If you were calling this directly (which is discouraged), you will need to use the new `resolveRoot` option instead of the existing second argument. Additionally, if you were manually passing through additional props in a component you used to wrap elements in `createMount.render`, you can now remove this workaround.
37
38## [1.5.3] - 2019-05-22
39
40### Fixed
41
42- Passing unresolved promises within `act()` blocks required additional nesting ([#697](https://github.com/Shopify/quilt/pull/697))
43
44## [1.5.0] - 2019-05-09
45
46### Changed
47
48- Upgraded React to versions 16.9.0-alpha.0 and added support for async `act()` calls ([#688](https://github.com/Shopify/quilt/pull/688))
49
50## [1.4.3] - 2019-05-02
51
52### Fixed
53
54- `Root/Element#find` now correctly find components created by `React.memo` and `React.forwardRef` ([#682](https://github.com/Shopify/quilt/pull/682))
55
56## [1.4.0] - 2019-04-18
57
58### Changed
59
60- `Root/Element#trigger()` now allow passing a deep partial version of the arguments of the prop being triggered ([#661](https://github.com/Shopify/quilt/pull/661))
61
62## [1.3.2] - 2019-04-09
63
64### Fixed
65
66- Fixed an issue were a leaf DOM node would return `null` for `domNode` ([#622](https://github.com/Shopify/quilt/pull/622))
67
68## [1.3.0] - 2019-04-02
69
70### Added
71
72- Added `.toContainReactText` and `.toContainReactHtml` matchers ([#626](https://github.com/Shopify/quilt/pull/626))
73
74### Changed
75
76- Calling `Root#act` within another callback to `Root#act` now groups the update into a single `act()` block ([#626](https://github.com/Shopify/quilt/pull/626))
77
78## [1.2.0] - 2019-04-01
79
80### Added
81
82- Added a `createMount` factory that can create mount functions tailor-made to suit the global state for individual applications ([#624](https://github.com/Shopify/quilt/pull/624))
83
84## [1.1.0] - 2019-03-29
85
86### Added
87
88- Added a `@shopify/react-testing/matchers` directory, which adds `.toHaveReactProps` and `.toContainReactComponent` assertions for Jest ([#621](https://github.com/Shopify/quilt/pull/621))
89- `Element#find` and `Element#findAll` now accept a second optional argument for required props on matched elements ([#621](https://github.com/Shopify/quilt/pull/621))
90
91## [1.0.0] - 2019-03-29
92
93Initial release.