Skip to content

refactor(use-i18n): use @formatjs/fast-memoize instead of deprecated intl-format-cache #317

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

Merged
merged 5 commits into from
Aug 9, 2021

Conversation

chambo-e
Copy link
Contributor

@chambo-e chambo-e commented Aug 6, 2021

Also with some types improvement

Coverage difference is caused by an unused method on our cache, which we need to have to match the TS type
There is a PR open here to correct this formatjs/formatjs#3102

@chambo-e chambo-e added the enhancement New feature or request label Aug 6, 2021
@chambo-e chambo-e requested a review from a team August 6, 2021 15:43
@chambo-e chambo-e self-assigned this Aug 6, 2021
@chambo-e chambo-e requested review from adriengibrat and vincentaudebert and removed request for a team August 6, 2021 15:43
@codecov
Copy link

codecov bot commented Aug 6, 2021

Codecov Report

Merging #317 (647ce3d) into master (8d54d13) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##            master      #317   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           10        11    +1     
  Lines          333       345   +12     
  Branches        55        55           
=========================================
+ Hits           333       345   +12     
Impacted Files Coverage Δ
packages/use-i18n/src/formatUnit.ts 100.00% <100.00%> (ø)
packages/use-i18n/src/formatters.ts 100.00% <100.00%> (ø)
packages/use-i18n/src/usei18n.tsx 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8d54d13...647ce3d. Read the comment docs.

@chambo-e chambo-e requested review from philibea and matthprost and removed request for adriengibrat and vincentaudebert August 6, 2021 16:19
@chambo-e chambo-e merged commit e46b13f into master Aug 9, 2021
@chambo-e chambo-e deleted the feat/new_memoize branch August 9, 2021 09:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants