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

feat: Packaging #2

Merged
merged 19 commits into from
Jul 8, 2022
Merged

feat: Packaging #2

merged 19 commits into from
Jul 8, 2022

Conversation

BeroBurny
Copy link
Contributor

  • Fix TS types
  • Implement CI
  • Prepare for the npm release

@BeroBurny BeroBurny self-assigned this Jul 5, 2022
.github/workflows/ci.yml Outdated Show resolved Hide resolved
@@ -8,8 +8,16 @@ use mina_signer::{NetworkId, PubKey, Schnorr, Signer};
use once_cell::sync::OnceCell;
use std::io::Write;

#[wasm_bindgen(typescript_custom_section)]
Copy link
Contributor

@hanabi1224 hanabi1224 Jul 5, 2022

Choose a reason for hiding this comment

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

Maybe also convert examples to use typescript and run linter to verify these type definitions

{
"name": "mina-singer-wasm",
"description": "Lightweight implementation of mina-signer build into wasm package for browser and nodejs.",
"version": "0.1.0",
Copy link
Contributor

Choose a reason for hiding this comment

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

How about matching the version of mina-signer, which is v1.1.x in the current implementation

Copy link
Member

Choose a reason for hiding this comment

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

Hmm, I would rather if we start fresh with 1.0.0. but put in readme table with what our versions are compatible with 1.1.x. Otherwise, if we would need to release some fix we would break parity.

Copy link
Contributor

@hanabi1224 hanabi1224 Jul 5, 2022

Choose a reason for hiding this comment

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

If we keep the api compatibility, I don't see why we would release a version that bumps the minor, isn't the patch version sufficient for potential fixes by still complying with semver?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm voting to be independent versioning
The version used here is from cargo.toml

Copy link
Member

Choose a reason for hiding this comment

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

If we keep the api compatibility, I don't see why we would release a version that bumps the minor, isn't the patch version sufficient for potential fixes by still complying with semver?

It is but it's also confusing as we would be for example 1.1.16 while they are on 1.1.0 and devs don't draw the connection. It also prevents us from adding some valuable features like different ways of initialization or breaking changes like converting to es module only or improving types.

.github/workflows/ci.yml Outdated Show resolved Hide resolved
.github/workflows/ci.yml Outdated Show resolved Hide resolved
.github/workflows/ci.yml Outdated Show resolved Hide resolved
.github/workflows/ci.yml Outdated Show resolved Hide resolved
.github/workflows/ci.yml Outdated Show resolved Hide resolved
.gitignore Show resolved Hide resolved
package.json Show resolved Hide resolved
package/package.json Show resolved Hide resolved
postbuild.js Show resolved Hide resolved
src/client.rs Show resolved Hide resolved
Copy link
Contributor Author

@BeroBurny BeroBurny left a comment

Choose a reason for hiding this comment

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

ci parts moved to #3

@BeroBurny BeroBurny changed the title Packaging feat Packaging Jul 7, 2022
@BeroBurny BeroBurny changed the title feat Packaging feat: Packaging Jul 8, 2022
.github/workflows/ci.yml Outdated Show resolved Hide resolved
mpetrunic
mpetrunic previously approved these changes Jul 8, 2022
@mpetrunic mpetrunic merged commit 21646ab into main Jul 8, 2022
@mpetrunic mpetrunic deleted the beroburny/packaging branch July 8, 2022 14:18
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.

None yet

3 participants