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 ICU4X to 1.4 and finish Intl impls with new APIs #3469

Merged
merged 3 commits into from
Nov 19, 2023
Merged

Conversation

jedel1043
Copy link
Member

@jedel1043 jedel1043 commented Nov 17, 2023

Depends on #3334, just because it removes some Intl related warnings.

Base automatically changed from workspace-lints to main November 17, 2023 08:10
@jedel1043 jedel1043 marked this pull request as ready for review November 17, 2023 08:30
@jedel1043 jedel1043 requested a review from a team November 17, 2023 08:31
@jedel1043 jedel1043 added enhancement New feature or request dependencies Pull requests that update a dependency file labels Nov 17, 2023
@jedel1043 jedel1043 added this to the v0.18.0 milestone Nov 17, 2023
Copy link

github-actions bot commented Nov 17, 2023

Test262 conformance changes

Test result main count PR count difference
Total 95,609 95,609 0
Passed 76,524 76,526 +2
Ignored 18,132 18,132 0
Failed 953 951 -2
Panics 0 0 0
Conformance 80.04% 80.04% +0.00%
Fixed tests (2):
test/intl402/Intl/getCanonicalLocales/transformed-ext-valid.js [strict mode] (previously Failed)
test/intl402/Intl/getCanonicalLocales/transformed-ext-valid.js (previously Failed)

Copy link

codecov bot commented Nov 17, 2023

Codecov Report

Attention: 110 lines in your changes are missing coverage. Please review.

Comparison is base (af1a918) 44.62% compared to head (f52270d) 44.59%.
Report is 1 commits behind head on main.

Files Patch % Lines
boa_engine/src/builtins/intl/plural_rules/mod.rs 2.77% 35 Missing ⚠️
...oa_engine/src/builtins/intl/number_format/utils.rs 33.33% 34 Missing ⚠️
boa_engine/src/builtins/options.rs 0.00% 21 Missing ⚠️
boa_examples/src/bin/futures.rs 0.00% 10 Missing ⚠️
boa_cli/src/main.rs 0.00% 1 Missing ⚠️
...oa_engine/src/builtins/temporal/duration/record.rs 0.00% 1 Missing ⚠️
boa_engine/src/object/mod.rs 0.00% 1 Missing ⚠️
boa_examples/src/bin/classes.rs 0.00% 1 Missing ⚠️
boa_examples/src/bin/closures.rs 0.00% 1 Missing ⚠️
boa_examples/src/bin/commuter_visitor.rs 0.00% 1 Missing ⚠️
... and 4 more
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3469      +/-   ##
==========================================
- Coverage   44.62%   44.59%   -0.04%     
==========================================
  Files         487      487              
  Lines       50539    50601      +62     
==========================================
+ Hits        22552    22563      +11     
- Misses      27987    28038      +51     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@nekevss nekevss left a 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! Had a couple comments, but nothing blocking.

.github/workflows/rust.yml Show resolved Hide resolved
// 6. Let type be pluralRules.[[Type]].
// 7. Return PluralRuleSelectRange(locale, type, xp.[[PluralCategory]], yp.[[PluralCategory]]).
Ok(
plural_category_to_js_string(plural_rules.native.resolve_range(x.category, y.category))
Copy link
Member

Choose a reason for hiding this comment

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

thought: Would it be worth checking if PluralCategory could implement Display? Then this could just be something akin to Ok(JsString::from(<PluralCategoryInput>.to_string()).into()).

Definitely, not necessary for this PR, and maybe it's been decided against by icu4x, but the thought popped in my head when I was looking through it.

Copy link
Member Author

Choose a reason for hiding this comment

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

We really need a JsDisplay trait...

Copy link
Member

@HalidOdat HalidOdat left a 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! :)

@jedel1043 jedel1043 added this pull request to the merge queue Nov 19, 2023
Merged via the queue into main with commit a8aad0b Nov 19, 2023
14 checks passed
@jedel1043 jedel1043 deleted the bump-icu-1.4 branch November 19, 2023 20:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants