-
Notifications
You must be signed in to change notification settings - Fork 27
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
chore: ugrade to react-intl v4 #1533
Conversation
🦋 Changeset is good to goLatest commit: 93dd8f6 We got this. This PR includes changesets to release 9 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/commercetools/merchant-center-application-kit/6fh5pnvol |
I can't recall us using it. Maybe we wanted to use it for GraphQL or the rule buider. |
@emmenko can we actually say what's breaking on our end here towards consumers? It's late, maybe I don't see it :) |
The version bump of the peer dependency is what makes it breaking. |
Just didn’t see the peer dep bump. Thought we could „claim“ we just work with v3 or v4. |
In theory yes, but we also don't know what features of v3 users are using. So only supporting v4 seems a safer bet. I don't have a super strong opinion though. |
Do we have a list of potential features breaking? We could also add it as a range of |
@emmenko any input regarding my previous comment ⏫. |
Here are the documented changes: https://formatjs.io/docs/react-intl/upgrade-guide-4x Do you prefer to keep the range then? |
What I thought was to allow users to use both 3.x and 4.x. What they use then depends on how their messages should look like and what's allowed. Instead of forcing them to migrate to the newer version which we don't have to require. Does that make sense? Maybe I am reading/read the release notes wrong. |
Adding @ahmehri to the PR as he is refactoring routing. |
@adnasa I couldn't find the relationship between this PR and the refactoring of routing, can you elaborate on that? |
I never checked the file changes so I just assumed they are related. but if you don't want to review, all good. I'll do it |
I tried things locally and I didn't get any error this time. So maybe "it just works" now?
Eventually, we can also remove
babel-plugin-macros
. I don't know of any use case we have that require the macro plugin.