-
Notifications
You must be signed in to change notification settings - Fork 43
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
Updates from near-api-js #105
Conversation
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.
Is there specific reason to do these renames? I'm curious about why rename here instead of export this and import and change usage on near-api-js side, since camelCase is more common in js
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.
I have the same concern about the snake case in JS code (while I prefer it, I still follow the style that is common in the target language, and camelCase is what used in JS).
@vgrichina Also, I wonder if we can remove borsh-js
build from the repo? I usually find it to be a source of merge conflicts, bloating the sources, and inconsistencies if contributors forget to build or include the generated files in their PR.
borsh-ts/test/serialize.test.js
Outdated
@@ -1,4 +1,4 @@ | |||
const borsh = require('../lib/index.js'); | |||
const borsh = require('../../borsh-js/index.js'); |
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 looks like a hack. Can we use ts
? Can we write the tests in TS?
@volovyk-s I want to point out that this repo also contains the Rust implementation of Borsh, and thus @ailisp @evgenykuzyakov @nearmax Are there any objections to renaming this repo to |
@ailisp @frol Yep, we are using camel case everywhere, so I have changed it back. I'm not sure why these changes were added in |
It was renamed because It would be nice to move TS/JS version to a separate repo.
|
Git history can be preserved if we just clone this repo and clean up unrelated parts as a regular commit. Yes, we will have borsh-rs in the history in two places, but overall it should be fine. |
I also vote for separate borsh-rs |
can be done even better with |
.eslintrc.yml
Outdated
- error | ||
- always | ||
no-console: off | ||
globals: |
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.
@volovyk-s let's keep only actually necessary globals for borsh
@volovyk-s May I ask you to extract the relevant history into https://github.com/near/borsh-js and https://github.com/near/borsh-rs? (Just push |
Ok, I will do that after this merge. |
No description provided.