-
Notifications
You must be signed in to change notification settings - Fork 35
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
Bump remote-ui versions #1296
Bump remote-ui versions #1296
Conversation
Notes: I added a commit footer with "BREAKING CHANGE:" to denote this as a breaking change. |
30da967
to
98f84f4
Compare
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From customer account web team, I am good with the upgrade:
- we upgraded
remote-ui/core
to 2.2.3 last week - for "@remote-ui/react": we are using 4.5.x, we will see whether we need to upgrade if this cause any issue in the future https://github.com/Shopify/customer-account-web/blob/6510ab8c0f70747f377bb0b0b9dcb8de80415a85/app/package.json#L10
- for react, we are already using ^18.2 https://github.com/Shopify/customer-account-web/blob/main/package.json#L57
And also we are trying to switching from main to unstable, so it will not be a break change for us.
BREAKING CHANGE: Consumers of this package will be required to install `react-reconciler` to set their desired version of React. See the `@remote-ui/react` release notes here for more information: https://github.com/Shopify/remote-ui/blob/main/packages/react/CHANGELOG.md#500
98f84f4
to
a8e1632
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need to change anything in the package.json of extensions that use this dependancy?
@@ -1,5 +1,5 @@ | |||
import React from 'react'; | |||
import {createMount} from '@quilted/react-testing'; | |||
import {createRender} from '@quilted/react-testing'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes to this file should be made within the private version of the package for checkout first before being moved into the public package.
@@ -53,7 +53,7 @@ | |||
"sideEffects": false, | |||
"dependencies": { | |||
"@remote-ui/async-subscription": "^2.1.12", | |||
"@remote-ui/core": "2.1.x" | |||
"@remote-ui/core": "^2.2.3" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see this change already done in the private checkout package . 👍
Extensions shouldn't need to be updated, but any consumers ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I followed the tophatting steps using build-consumer <app>
with a newly generated extension (using React 17 and then again with 18) without making ANY changes to checkout-web and the extension worked correctly.
This should unblock this PR. Though, we do still need to figure out how to have this co-exist with the private checkout-web package since that relies on React 17.
@MitchLillie
Using this
Not sure how I missed this when I was tophatting in spin 🤔.If I update the dependancy to React 18, the error goes away:
Is this expected, that extensions will need to use React 18 going forward? |
I tried using |
Background
This PR updates to
@remote-ui/core@2.2
and@remote-ui/react@5
. It also removes support forreact@17
as these remote-ui updates were the only thing holding it back.Due to the
@remote-ui/react@5
dependency, consumers will now be required to manage their own versions ofreact
andreact-reconciler
.This should be marked as a breaking change. As noted below, I wasn't sure how to mark it as such using
yarn changeset
given that we are pointing to theunstable
branch, as it prompts to release the first major version and I'm not sure that's right.Relates to https://github.com/Shopify/app-ui/issues/228
Related PR: https://github.com/Shopify/web/pull/102560
Solution
(Describe your solution, why this approach was chosen, and what the alternatives/impacts may be)
🎩
yarn build-consumer <app directory here>
yarn build-consumer-spin web
(may need to build to a different location ifweb
is not the right consumer of this project)Checklist