-
Notifications
You must be signed in to change notification settings - Fork 286
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
Import hs-client
into the project.
#796
Conversation
6bd7cc0
to
f2fbe84
Compare
f2fbe84
to
2dc2c48
Compare
I think this makes a lot of sense and each api change won't need to track a sibling PR on another repo. I've tried this branch and the generated hs-client and other than the slightly awkward process to dev hs-client (discussed in https://t.me/hns_tech/74474) everything looks good to me. Q: What do you think about the exposed Non-blocking suggestions:
|
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.
This is awesome, can finally maintain both packages together. The new script args work great. Left some non-blocking comments.
hsd
andhs-client
are tightly coupled. When major or minor changes occur hs-client needs to reflect them right away. The versioning scheme should be exactly the same as well, which has not been the case up til now (we used patches there). If versions don't match, users will have trouble figuring out whichhs-client
version to use with whichhsd
.The most troublesome part is the major breaking changes, if something breaks hs-client it becomes troublesome to manage
hs-client
. Having client alongside withhsd
make this really simple.Standalone version of
hs-client
is also necessary, for those who want minimal functionality w/o all heavy dependencies in their projects. So this PR introduces script inscripts/gen-hsclient.js
which can aid with pushing and publishing of thehs-client
both to github and npm.To sum it up:
You can review usage update here: https://github.com/nodech/hsd/blob/6bd7cc0a825facf9dec7894888950939d7b427df/docs/release-files.md#hs-client