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

Add type table loader. #98

Merged
merged 8 commits into from
Oct 22, 2024
Merged

Add type table loader. #98

merged 8 commits into from
Oct 22, 2024

Conversation

davidlehn
Copy link
Member

No description provided.

- Remove incorrect jsdoc block.
- Whitespace fix.
Added
- Add `async function typeTableLoader({registryEntryId})` option to look
  up the `typeTable` to use by id for both `encode` and `decode`.

Changed
- Refactor `registryEntryId` encoding and decoding logic. Trying to be
  more readable and handle more error and edge cases. This is a work in
  progress.
- Update actions.
- Enable codecov uploading.
@codecov-commenter
Copy link

codecov-commenter commented Oct 21, 2024

Codecov Report

Attention: Patch coverage is 94.59459% with 8 lines in your changes missing coverage. Please review.

Project coverage is 91.55%. Comparing base (4e6a160) to head (a9a92ec).
Report is 251 commits behind head on main.

Files with missing lines Patch % Lines
lib/decode.js 90.36% 8 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #98      +/-   ##
==========================================
+ Coverage   88.19%   91.55%   +3.36%     
==========================================
  Files          30       34       +4     
  Lines        1881     2559     +678     
==========================================
+ Hits         1659     2343     +684     
+ Misses        222      216       -6     
Files with missing lines Coverage Δ
lib/encode.js 89.04% <100.00%> (+0.15%) ⬆️
lib/decode.js 82.72% <90.36%> (+6.86%) ⬆️

... and 7 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

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

lib/encode.js Outdated Show resolved Hide resolved
- Fix lint issue.
- Sync types between files.
- Improve optional options marking.
- Fail if both typeTable and typeTableLoader are specified.
- Add tests.
@davidlehn davidlehn merged commit 31a4ff4 into main Oct 22, 2024
5 checks passed
@davidlehn davidlehn deleted the add-typeTableLoader branch October 22, 2024 01:44
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.

3 participants