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

Bump @formatjs/intl-datetimeformat #1186

Merged
merged 3 commits into from
Aug 5, 2022

Conversation

plesiecki
Copy link
Contributor

@plesiecki plesiecki commented May 16, 2022

Hello,
I would like to update the @formatjs/intl-datetimeformat dependency as it polyfills the Date class better from version 5.0.2.

@plesiecki plesiecki requested a review from a team as a code owner May 16, 2022 10:32
@github-actions github-actions bot added the library Relates to an Origami library label May 16, 2022
@origamiserviceuser origamiserviceuser added this to Backlog in Origami ✨ May 16, 2022
@plesiecki
Copy link
Contributor Author

/ok-to-test

@JakeChampion
Copy link
Owner

@plesiecki the /ok-to-test command can only be used by people with write access to the repository. I think it also requires the sha of the commit you want to test E.G. /ok-to-test df6f242

@plesiecki
Copy link
Contributor Author

@JakeChampion Thanks for info 👍

@plesiecki
Copy link
Contributor Author

Hello @chee. I'm sorry to bother you again, but may I ask you to run tests on this one too, please?

@chee
Copy link
Collaborator

chee commented May 17, 2022

/ok-to-test aa0246b

@plesiecki
Copy link
Contributor Author

Well, it doesn't look like any tests have started.

@chee
Copy link
Collaborator

chee commented May 17, 2022

Well, it doesn't look like any tests have started.

it sure doesn't! this is on my todo list for later. i will do it the way i did the other one.

@chee
Copy link
Collaborator

chee commented May 17, 2022

Well, it doesn't look like any tests have started.

it sure doesn't! this is on my todo list for later. i will do it the way i did the other one.

https://github.com/Financial-Times/polyfill-library/actions/runs/2338900248

package-lock.json Outdated Show resolved Hide resolved
@plesiecki
Copy link
Contributor Author

plesiecki commented May 18, 2022

I've fixed package.json. Are we going to run tests again? Previously tests passed.

@plesiecki
Copy link
Contributor Author

Hello @chee Could you merge it or maybe run tests again please?

@JakeChampion
Copy link
Owner

@plesiecki do you know what the breaking changes included in version 5 are?

@JakeChampion
Copy link
Owner

@plesiecki do you know what the breaking changes included in version 5 are?

It looks like the breaking change is only to an eslnt rule

https://github.com/formatjs/formatjs/blob/main/packages/intl-datetimeformat/CHANGELOG.md#breaking-changes-1

@chee
Copy link
Collaborator

chee commented May 24, 2022

maybe we should add a test to https://github.com/Financial-Times/polyfill-library/blob/master/polyfills/Intl/DateTimeFormat/tests.js to ensure these return "Invalid Date", and make sure we don't break this later

@plesiecki
Copy link
Contributor Author

Tests have been added ;)

@chee
Copy link
Collaborator

chee commented May 25, 2022

https://github.com/Financial-Times/polyfill-library/actions/runs/2382944743

@plesiecki
Copy link
Contributor Author

@chee Let's try one more time 🙏

@plesiecki
Copy link
Contributor Author

Phew, all test passed 🎉

Copy link
Collaborator

@chee chee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's go

@plesiecki
Copy link
Contributor Author

Looking forward to the release 🙏

@plesiecki
Copy link
Contributor Author

@chee Please 🙏

@romainmenke
Copy link
Collaborator

romainmenke commented Aug 5, 2022

@plesiecki Thank you again for this update and sorry for the delays :)
We will try to release this in the coming week.

@romainmenke romainmenke merged commit bc67dd2 into JakeChampion:master Aug 5, 2022
Origami ✨ automation moved this from Backlog to Done Aug 5, 2022
@plesiecki
Copy link
Contributor Author

Lovely, looking forward to the release.

@romainmenke
Copy link
Collaborator

romainmenke commented Aug 5, 2022

@plesiecki I fear we will have to revert this change because there seems to be a serious performance regression.

I've opened an issue upstream : formatjs/formatjs#3747

I might have jinxed it by saying it would get released in the coming week

romainmenke added a commit that referenced this pull request Aug 5, 2022
@plesiecki
Copy link
Contributor Author

Oh, that's a pity. Where can I see logs from failing tests?

@romainmenke
Copy link
Collaborator

romainmenke commented Aug 6, 2022

Absolutely : https://github.com/Financial-Times/polyfill-library/runs/7694243715?check_suite_focus=true

Our test suite doesn't really have any special handling or good error messages for these timeouts.
But I noticed something was wrong when the run in Internet Explorer suddenly took more than 20 minutes.

Screenshot 2022-08-06 at 22 48 58

Hopefully it gets resolved soon upstream so that we can merge the updates here :)

@longlho
Copy link
Contributor

longlho commented Aug 8, 2022

hmm it seems weird that IE9 is ok but not IE10/11? I'd say perf regression is expected to a certain degree, since CLDR & IANA data only gets bigger over time. Those 2 are the only major changes from 4.1.0 to 5.0.0 and it's not something we can fix/revert.

Algorithm-wise it's stable cause the spec hasn't changed

@robertboulton robertboulton removed this from Done in Origami ✨ Jul 26, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 9, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
library Relates to an Origami library
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants