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

types: adding ud, ux, p, and q #5

Merged
merged 6 commits into from
Apr 13, 2023
Merged

types: adding ud, ux, p, and q #5

merged 6 commits into from
Apr 13, 2023

Conversation

arthyn
Copy link
Contributor

@arthyn arthyn commented Apr 8, 2023

This adds support for @p, @q, @ud, and @ux. All pulled from @urbit/api and urbit-ob. Minor modifications made to formatUx/parseUx since they were assuming length of a web color which doesn't seem like a concern for this library.

This should hopefully cover all of the previous cases that were covered by libraries. Anything after this would be new support.

I wasn't sure exactly how we wanted to handle @p and @q functions since they cover more conversion types/encodings whereas most of the rest fall into the parse/format string <-> biginteger. It seems like we should set some principles about this library to follow like we always only work with string/biginteger in base 10 or whatever. Similarly I think it would be nice to have a decision around whether to check for invalid inputs and throw vs return safely. Either way I just threw this in so we could go from there and have a good place to point people asking for @urbit/api.

@github-actions
Copy link

github-actions bot commented Apr 8, 2023

size-limit report 📦

Path Size
dist/aura.cjs.production.min.js 5.41 KB (-31.6% 🔽)
dist/aura.esm.js 5.62 KB (-30.27% 🔽)

Copy link

@patosullivan patosullivan left a comment

Choose a reason for hiding this comment

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

Looks great, this is gonna be huge.

@arthyn arthyn merged commit d3b8cf2 into master Apr 13, 2023
@arthyn arthyn deleted the hm/combining-libs branch April 13, 2023 01:45
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