-
-
Notifications
You must be signed in to change notification settings - Fork 267
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: add @trezor/utils package #4666
Conversation
0abb99a
to
1d8e21f
Compare
c7dcb6c
to
e1d94f9
Compare
f570e73
to
3340270
Compare
3340270
to
096e3d3
Compare
Great work with package! Small first step to de-aliased and flatten structure. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
few comments
@Nodonisko's approach might be useful for handling of multiple environments (browser/node/native), we could have a base file for node and then override files for let's say browser. Just an idea that crossed my mind. |
@Nodonisko I think your suggestion is great, if I understand well it reminds me to the structure of this famous utility library https://github.com/lodash/lodash But I am not sure about having the test files in the same folder, I kind of like the idea of having a |
@karliatto Yea, we can place test files to it's own folder, as we do everywhere in repo. |
e779ce6
to
b8ececc
Compare
It looks awesome now! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One last requirement from me. And lets merge it 🚀 🚀 🚀
b8ececc
to
643d61b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
perfecto 👌
e6def13
to
b8c4550
Compare
@matejkriz anything that can/needs ti be checked on our side |
Exactly this is just code organization improvements, so regress test should be enough. |
Does it sound reasonable to have a general utils package that would:
?
Possible candidates:
Remove unused/duplicated validation utils #2295
remove duplicated AccountUtils #2245
https://github.com/trezor/connect/tree/develop/src/js/utils
Notes: