apollographql/react-apollo
### [`v4.0.0`](https://togithub.com/apollographql/react-apollo/blob/master/Changelog.md#400-2020-07-20)
[Compare Source](https://togithub.com/apollographql/react-apollo/compare/@apollo/react-testing@3.1.4...@apollo/react-testing@4.0.0)
> ⚠️ **Deprecation Notice** ⚠️
>
> Please note that this is the final version of all React Apollo packages, and that this repository is going to be archived. React Apollo functionality is now directly available from `@apollo/client` >= 3. While using the `@apollo/react-X` packages will still work, we recommend using the following imports from `@apollo/client` directly instead:
>
> - old: `@apollo/react-components` --> new: `@apollo/client/react/components`
> - old: `@apollo/react-hoc` --> new: `@apollo/client/react/hoc`
> - old: `@apollo/react-ssr` --> new: `@apollo/client/react/ssr`
> - old: `@apollo/react-testing` --> new: `@apollo/client/testing`
> - old: `@apollo/react-hooks` --> new: `@apollo/client`
##### Breaking Changes
- **React Apollo 4.0.0 is dependent on `@apollo/client` >= 3.** If you are using `apollo-client` 2.x and are not ready to update to `@apollo/client`, please use React Apollo 3.x.
- The `react-apollo` package has been fully removed. Please use `@apollo/client` or `@apollo/react-X` packages directly.
[@hwillson](https://togithub.com/hwillson) in [#4037](https://togithub.com/apollographql/react-apollo/pull/4037)
- Due to changes made in Apollo Client, the previous SSR testing pattern of:
```js
return getDataFromTree(app).then(() => {
const markup = ReactDOM.renderToString(app);
expect(markup).toMatch(/Waldo/);
});
```
will no longer work (`ReactDOM.renderToString(app)` will just return the initial loading state of the component under test). Instead, we can leverage the markup returned when `getDataFromTree`'s Promise resolves:
```js
return getDataFromTree(app).then((markup) => {
expect(markup).toMatch(/Waldo/);
});
```
- We are no longer building UMD versions of React Apollo.
Configuration
📅 Schedule: At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
[ ] If you want to rebase/retry this PR, check this box.
This PR contains the following updates:
3.1.4
->4.0.0
Release Notes
apollographql/react-apollo
### [`v4.0.0`](https://togithub.com/apollographql/react-apollo/blob/master/Changelog.md#400-2020-07-20) [Compare Source](https://togithub.com/apollographql/react-apollo/compare/@apollo/react-testing@3.1.4...@apollo/react-testing@4.0.0) > ⚠️ **Deprecation Notice** ⚠️ > > Please note that this is the final version of all React Apollo packages, and that this repository is going to be archived. React Apollo functionality is now directly available from `@apollo/client` >= 3. While using the `@apollo/react-X` packages will still work, we recommend using the following imports from `@apollo/client` directly instead: > > - old: `@apollo/react-components` --> new: `@apollo/client/react/components` > - old: `@apollo/react-hoc` --> new: `@apollo/client/react/hoc` > - old: `@apollo/react-ssr` --> new: `@apollo/client/react/ssr` > - old: `@apollo/react-testing` --> new: `@apollo/client/testing` > - old: `@apollo/react-hooks` --> new: `@apollo/client` ##### Breaking Changes - **React Apollo 4.0.0 is dependent on `@apollo/client` >= 3.** If you are using `apollo-client` 2.x and are not ready to update to `@apollo/client`, please use React Apollo 3.x. - The `react-apollo` package has been fully removed. Please use `@apollo/client` or `@apollo/react-X` packages directly.[@hwillson](https://togithub.com/hwillson) in [#4037](https://togithub.com/apollographql/react-apollo/pull/4037) - Due to changes made in Apollo Client, the previous SSR testing pattern of: ```js return getDataFromTree(app).then(() => { const markup = ReactDOM.renderToString(app); expect(markup).toMatch(/Waldo/); }); ``` will no longer work (`ReactDOM.renderToString(app)` will just return the initial loading state of the component under test). Instead, we can leverage the markup returned when `getDataFromTree`'s Promise resolves: ```js return getDataFromTree(app).then((markup) => { expect(markup).toMatch(/Waldo/); }); ``` - We are no longer building UMD versions of React Apollo.
Configuration
📅 Schedule: At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by WhiteSource Renovate. View repository job log here.