Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade @apollo/client v3.1.3 #1005

Merged
merged 11 commits into from
Sep 10, 2020
Merged

Upgrade @apollo/client v3.1.3 #1005

merged 11 commits into from
Sep 10, 2020

Conversation

thedavidprice
Copy link
Contributor

@thedavidprice thedavidprice commented Aug 26, 2020

I'm shocked this is passing my local tests and works just fine running my local Redwood Tutorial Blog project. I've only upgraded apollo packages and swapped apollo-client for @apollo/client. It's more likely I’ve missed something and upgraded incorrectly 'cause it's never this easy, right? ¯_(ツ)_/¯

Apollo Client v3 Release Notes and breaking changes:
https://github.com/apollographql/apollo-client/releases/tag/v3.0.0

If it's true this upgrade works without issues, it seems we should still tread lightly putting this into a release as it's likely to break projects (especially those relying on apollo caching):

  • maybe look to v0.18 release
  • could do an actual release candidate and/or have a canary release that's tested on production projects

What say you @peterp?

Closes #1002

packages/web/package.json Outdated Show resolved Hide resolved
packages/web/package.json Outdated Show resolved Hide resolved
packages/web/package.json Outdated Show resolved Hide resolved
@peterp
Copy link
Contributor

peterp commented Aug 26, 2020

I went through the upgrading guide and it seems like the approach should be to delete all the other packages and only install @apollo/client: https://www.apollographql.com/docs/react/migrating/apollo-client-3-migration/

We would need to modify the imports to match this new world.

@thedavidprice
Copy link
Contributor Author

@peterp Got it. And thanks for taking a look here!

This PR was primarily to get the conversation going. I was curious post Roadmap planning and given this super rough first pass optimistic it won't be too bad.

I can take the next pass at the Migration guide. BUT if we end up deleting this PR and opening another, all good.

@thedavidprice
Copy link
Contributor Author

First pass through the Apollo upgrade documentation replacing imports. Generated a new yarn.lock, which I can revert if it causes problems.

Passing tests but not working in my project. Seems RedwoodProvider.js config is the next step to work on.

Also, I noticed packages/core/src/configs/browser/jest.createConfig.ts is accessing @apollo/react-common on L29-L31, which I don't think will exist anymore. Not sure what this is doing so will need to loop in Robert.

@thedavidprice thedavidprice marked this pull request as draft August 27, 2020 03:41
@peterp
Copy link
Contributor

peterp commented Sep 8, 2020

@thedavidprice I think this is good to go now, my only real concern is how to communicate the breaking cache changes: https://www.apollographql.com/docs/react/migrating/apollo-client-3-migration/#breaking-cache-changes

Maybe we should merged this, and upgrade the example apps and figure out how bad is it?

@peterp peterp added the release:breaking This PR is a breaking change label Sep 8, 2020
@peterp peterp marked this pull request as ready for review September 8, 2020 16:31
@peterp peterp marked this pull request as draft September 8, 2020 19:24
@peterp
Copy link
Contributor

peterp commented Sep 8, 2020

@thedavidprice Setting this to "DRAFT" so that we don't accidentally merge it :)

@thedavidprice
Copy link
Contributor Author

@peterp thanks again for moving this forward!

The last item I had on my list is this random bit within Jest config:

'^@apollo/react-common$': path.join(
NODE_MODULES_PATH,
'@apollo/react-common'
),

@apollo/react-common has been deprecated and replaced with @apollo/client/react based on this upgrade info. I've made the change in the latest commit, but please do double-check as I didn't do the original Jest config setup. I'm a little unclear what's required in the config itself.

@peterp
Copy link
Contributor

peterp commented Sep 9, 2020

@thedavidprice Ah, we can remove those.

@peterp peterp marked this pull request as ready for review September 10, 2020 07:33
@peterp peterp merged commit 0152109 into main Sep 10, 2020
@peterp peterp added this to the Next Release milestone Sep 10, 2020
@peterp
Copy link
Contributor

peterp commented Sep 10, 2020

With Apollo v3: 494 KB
image

@thedavidprice thedavidprice deleted the dsp-upgrade-apollo-client-v3+ branch September 10, 2020 17:44
Josh-Walker-GM pushed a commit that referenced this pull request Sep 9, 2024
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[eslint-plugin-jsx-a11y](https://redirect.github.com/jsx-eslint/eslint-plugin-jsx-a11y)
| [`6.9.0` ->
`6.10.0`](https://renovatebot.com/diffs/npm/eslint-plugin-jsx-a11y/6.9.0/6.10.0)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/eslint-plugin-jsx-a11y/6.10.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/eslint-plugin-jsx-a11y/6.10.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/eslint-plugin-jsx-a11y/6.9.0/6.10.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/eslint-plugin-jsx-a11y/6.9.0/6.10.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

> [!WARNING]
> Some dependencies could not be looked up. Check the Dependency
Dashboard for more information.

---

### Release Notes

<details>
<summary>jsx-eslint/eslint-plugin-jsx-a11y
(eslint-plugin-jsx-a11y)</summary>

###
[`v6.10.0`](https://redirect.github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/HEAD/CHANGELOG.md#v6100---2024-09-03)

[Compare
Source](https://redirect.github.com/jsx-eslint/eslint-plugin-jsx-a11y/compare/v6.9.0...v6.10.0)

##### Fixed

- \[New] `label-has-associated-control`: add additional error message
[`#1005`](https://redirect.github.com/jsx-eslint/eslint-plugin-jsx-a11y/issues/1005)
- \[Fix] `label-has-associated-control`: ignore undetermined label text
[`#966`](https://redirect.github.com/jsx-eslint/eslint-plugin-jsx-a11y/issues/966)

##### Commits

- \[Tests] switch from jest to tape
[`a284cbf`](https://redirect.github.com/jsx-eslint/eslint-plugin-jsx-a11y/commit/a284cbf4eb21292c4cff87f02be0bfb82764757f)
- \[New] add eslint 9 support
[`deac4fd`](https://redirect.github.com/jsx-eslint/eslint-plugin-jsx-a11y/commit/deac4fd06eff4c0f5da27611c2a44a009b7e7fda)
- \[New] add `attributes` setting
[`a1ee7f8`](https://redirect.github.com/jsx-eslint/eslint-plugin-jsx-a11y/commit/a1ee7f8810efafe416eb5d7f6eb0505b52873495)
- \[New] allow polymorphic linting to be restricted
[`6cd1a70`](https://redirect.github.com/jsx-eslint/eslint-plugin-jsx-a11y/commit/6cd1a7011446e3925f2b49c51ff26246a21491d1)
- \[Tests] remove duplicate tests
[`74d5dec`](https://redirect.github.com/jsx-eslint/eslint-plugin-jsx-a11y/commit/74d5decb6f2e42c05ce40a45630041fd695a2e7f)
- \[Dev Deps] update `@babel/cli`, `@babel/core`,
`@babel/eslint-parser`, `@babel/plugin-transform-flow-strip-types`
[`6eca235`](https://redirect.github.com/jsx-eslint/eslint-plugin-jsx-a11y/commit/6eca2359f5457af72dbfba265b73297c9232cb3e)
- \[readme] remove deprecated travis ci badge; add github actions badge
[`0be7ea9`](https://redirect.github.com/jsx-eslint/eslint-plugin-jsx-a11y/commit/0be7ea95f560c6afc6817d381054d914ebd0b2ca)
- \[Tests] use `npm audit` instead of `aud`
[`05a5e49`](https://redirect.github.com/jsx-eslint/eslint-plugin-jsx-a11y/commit/05a5e4992900e0d5d61e29e13046c90797b68a7c)
- \[Deps] update `axobject-query`
[`912e98c`](https://redirect.github.com/jsx-eslint/eslint-plugin-jsx-a11y/commit/912e98c425ef9fcc2d7d22b45b4f7e3b445112a5)
- \[Deps] unpin `axobject-query`
[`75147aa`](https://redirect.github.com/jsx-eslint/eslint-plugin-jsx-a11y/commit/75147aa68888fc150a4efea5b99809969bdc32b2)
- \[Deps] update `axe-core`
[`27ff7cb`](https://redirect.github.com/jsx-eslint/eslint-plugin-jsx-a11y/commit/27ff7cbf562bf2685fd5a6062e58eb4727cb85c6)
- \[readme] fix jsxA11y import name
[`ce846e0`](https://redirect.github.com/jsx-eslint/eslint-plugin-jsx-a11y/commit/ce846e00414c41676a6a8601022059878bcc0b89)
- \[readme] fix typo in shareable config section in readme
[`cca288b`](https://redirect.github.com/jsx-eslint/eslint-plugin-jsx-a11y/commit/cca288b73a39fa0932a57c02a7a88de68fc971fc)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **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.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/redwoodjs/redwood).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC41OS4yIiwidXBkYXRlZEluVmVyIjoiMzguNTkuMiIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Josh-Walker-GM pushed a commit that referenced this pull request Sep 10, 2024
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[eslint-plugin-jsx-a11y](https://redirect.github.com/jsx-eslint/eslint-plugin-jsx-a11y)
| [`6.9.0` ->
`6.10.0`](https://renovatebot.com/diffs/npm/eslint-plugin-jsx-a11y/6.9.0/6.10.0)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/eslint-plugin-jsx-a11y/6.10.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/eslint-plugin-jsx-a11y/6.10.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/eslint-plugin-jsx-a11y/6.9.0/6.10.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/eslint-plugin-jsx-a11y/6.9.0/6.10.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

> [!WARNING]
> Some dependencies could not be looked up. Check the Dependency
Dashboard for more information.

---

### Release Notes

<details>
<summary>jsx-eslint/eslint-plugin-jsx-a11y
(eslint-plugin-jsx-a11y)</summary>

###
[`v6.10.0`](https://redirect.github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/HEAD/CHANGELOG.md#v6100---2024-09-03)

[Compare
Source](https://redirect.github.com/jsx-eslint/eslint-plugin-jsx-a11y/compare/v6.9.0...v6.10.0)

##### Fixed

- \[New] `label-has-associated-control`: add additional error message
[`#1005`](https://redirect.github.com/jsx-eslint/eslint-plugin-jsx-a11y/issues/1005)
- \[Fix] `label-has-associated-control`: ignore undetermined label text
[`#966`](https://redirect.github.com/jsx-eslint/eslint-plugin-jsx-a11y/issues/966)

##### Commits

- \[Tests] switch from jest to tape
[`a284cbf`](https://redirect.github.com/jsx-eslint/eslint-plugin-jsx-a11y/commit/a284cbf4eb21292c4cff87f02be0bfb82764757f)
- \[New] add eslint 9 support
[`deac4fd`](https://redirect.github.com/jsx-eslint/eslint-plugin-jsx-a11y/commit/deac4fd06eff4c0f5da27611c2a44a009b7e7fda)
- \[New] add `attributes` setting
[`a1ee7f8`](https://redirect.github.com/jsx-eslint/eslint-plugin-jsx-a11y/commit/a1ee7f8810efafe416eb5d7f6eb0505b52873495)
- \[New] allow polymorphic linting to be restricted
[`6cd1a70`](https://redirect.github.com/jsx-eslint/eslint-plugin-jsx-a11y/commit/6cd1a7011446e3925f2b49c51ff26246a21491d1)
- \[Tests] remove duplicate tests
[`74d5dec`](https://redirect.github.com/jsx-eslint/eslint-plugin-jsx-a11y/commit/74d5decb6f2e42c05ce40a45630041fd695a2e7f)
- \[Dev Deps] update `@babel/cli`, `@babel/core`,
`@babel/eslint-parser`, `@babel/plugin-transform-flow-strip-types`
[`6eca235`](https://redirect.github.com/jsx-eslint/eslint-plugin-jsx-a11y/commit/6eca2359f5457af72dbfba265b73297c9232cb3e)
- \[readme] remove deprecated travis ci badge; add github actions badge
[`0be7ea9`](https://redirect.github.com/jsx-eslint/eslint-plugin-jsx-a11y/commit/0be7ea95f560c6afc6817d381054d914ebd0b2ca)
- \[Tests] use `npm audit` instead of `aud`
[`05a5e49`](https://redirect.github.com/jsx-eslint/eslint-plugin-jsx-a11y/commit/05a5e4992900e0d5d61e29e13046c90797b68a7c)
- \[Deps] update `axobject-query`
[`912e98c`](https://redirect.github.com/jsx-eslint/eslint-plugin-jsx-a11y/commit/912e98c425ef9fcc2d7d22b45b4f7e3b445112a5)
- \[Deps] unpin `axobject-query`
[`75147aa`](https://redirect.github.com/jsx-eslint/eslint-plugin-jsx-a11y/commit/75147aa68888fc150a4efea5b99809969bdc32b2)
- \[Deps] update `axe-core`
[`27ff7cb`](https://redirect.github.com/jsx-eslint/eslint-plugin-jsx-a11y/commit/27ff7cbf562bf2685fd5a6062e58eb4727cb85c6)
- \[readme] fix jsxA11y import name
[`ce846e0`](https://redirect.github.com/jsx-eslint/eslint-plugin-jsx-a11y/commit/ce846e00414c41676a6a8601022059878bcc0b89)
- \[readme] fix typo in shareable config section in readme
[`cca288b`](https://redirect.github.com/jsx-eslint/eslint-plugin-jsx-a11y/commit/cca288b73a39fa0932a57c02a7a88de68fc971fc)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **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.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/redwoodjs/redwood).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC41OS4yIiwidXBkYXRlZEluVmVyIjoiMzguNTkuMiIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release:breaking This PR is a breaking change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Upgrade to Apollo v3
2 participants