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

feat(format): add FormatManager #7

Merged
merged 1 commit into from
Dec 27, 2023
Merged

Conversation

fallenoak
Copy link
Member

This PR introduces the FormatManager to simplify cached instantiation of data formats from @wowserhq/format. A given format instance is only loaded once for a given format class and set of constructor arguments.

@codecov-commenter
Copy link

Codecov Report

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

Comparison is base (63ddd52) 27.32% compared to head (7d1873e) 29.47%.

Files Patch % Lines
src/lib/FormatManager.ts 95.23% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main       #7      +/-   ##
==========================================
+ Coverage   27.32%   29.47%   +2.14%     
==========================================
  Files           7        8       +1     
  Lines         644      665      +21     
  Branches      162      164       +2     
==========================================
+ Hits          176      196      +20     
- Misses        389      390       +1     
  Partials       79       79              

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

@fallenoak fallenoak merged commit 195df34 into main Dec 27, 2023
2 checks passed
@fallenoak fallenoak deleted the feat-format-add-format-manager branch December 27, 2023 22:50
@github-actions github-actions bot mentioned this pull request Dec 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants