-
Notifications
You must be signed in to change notification settings - Fork 2k
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
2fa: Update to use upstream phone package again #27902
Conversation
That's a great PR description, thank you so much for your effort! Generated by 🚫 dangerJS |
Nice! Always glad to get back on the mainline for these things. Looks like there are a couple tests that may need to be updated from this? Or maybe the return changed a bit? |
I'm looking into it. Those numbers fail, but looking at the upstream, they should pass. Trying to verify how we make that check to verify we're not doing anything unexpected. |
This should also fix Tunesian phone numbers, see pxLjZ-55p-p2 |
1c939ab
to
b83e557
Compare
@kraftbj is there any estimate of when this is going to be merged? |
We're waiting for these PRs to be merged upstream: |
Wow, those PRs upstream still have not landed. |
Upstream has now moved again but we have a report about a still not fixed Brazilian area code in #35339 I think resyncing our fork, merging that PR from upstream early, and updating our dependency here to continue to use the fork is a viable next step? |
9f87532
to
a4d6af7
Compare
The upstream package is now up to date and has also incorporated the latest Brazilian phone number changes (AfterShip/phone#154), so we can use upstream again. |
Here is how your PR affects size of JS and CSS bundles shipped to the user's browser: Sections (~7668 bytes added 📈 [gzipped])
Sections contain code specific for a given set of routes. Is downloaded and parsed only when a particular route is navigated to. Async-loaded Components (~1917 bytes added 📈 [gzipped])
React components that are loaded lazily, when a certain part of UI is displayed for the first time. Legend What is parsed and gzip size?Parsed Size: Uncompressed size of the JS and CSS files. This much code needs to be parsed and stored in memory. Generated by performance advisor bot at iscalypsofastyet.com. |
package.json
Outdated
@@ -155,7 +155,7 @@ | |||
"page": "1.11.4", | |||
"path-browserify": "1.0.0", | |||
"percentage-regex": "3.0.0", | |||
"phone": "git+https://github.com/Automattic/node-phone.git#v2.4.0-pre-1", | |||
"phone": "2.3.22", |
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.
There's now v2.4.0 BTW.
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.
Thanks, tests still pass fine, so I've bumped the version.
5251e96
to
934ebe5
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.
Looks good to me! Thanks for getting us back on mainline.
934ebe5
to
d46d8f4
Compare
@akirk I rebased this to pick up the lockfile change and bumped the version to 2.4.2. Could you give it a quick sanity check? |
02366c6
to
8ec836c
Compare
Sorry I am late but tests pass fine and I didn't see problems in the UI, so let's went. |
Thanks, @akirk! It looked good on my end too. |
Changes proposed in this Pull Request
Originally, we forked the npm package because of slow updates, but the upstream package appears to be updating on a regular basis now.
Testing instructions
Fixes #25163 and possibly others detailed in p4TIVU-98g-p2 but would need testing.
I'm thinking this may be a short-term stop-gap while reviewing if there is a better package to use where we wouldn't have to maintain it.