Skip to content

Conversation

@lanterno
Copy link
Contributor

@lanterno lanterno commented Nov 5, 2025

Description

With the merge of the last two PRs #17, and #19 the project is now ready to run with Rust 1.89 (latest stable version as of the time of writing).
In the PR, I update Rust version, and also update all the WASM libraries to the latest versions.

Notice the change in the script file scripts/build-package.sh where this change arises from a very subtle change in the workings of the library wasm-bindgen.
This encourages a rethink on this part of the build script to avoid future bugs.

Next steps

Update the crypto-wasm-ts library

PR checklist

  • Run yarn install; yarn build; yarn test to make sure everything runs as before.
  • The commit message(s) follow conventional commits
  • Documentation has been added / updated (for bug fixes / features)
  • Changes follow the contributing document.

Does this PR introduce a breaking change?

  • Yes
  • No

Which merge strategy will you use?

  • Squash
  • Rebase (REVIEW COMMITS)

@lanterno lanterno force-pushed the update-crypto-lib-to-version-0-25 branch 2 times, most recently from 6423bb2 to 1446a0a Compare November 5, 2025 15:22
Also adds node v22 and removes v21 from the CI build matrix
This update aligns with API changes in the underlying crypto library
(version 0.25) that now requires explicit specification of hash functions for improved type
safety and flexibility.
@lanterno lanterno force-pushed the update-crypto-lib-to-version-0-25 branch from 1446a0a to 816a03b Compare November 5, 2025 15:51
@lanterno lanterno marked this pull request as ready for review November 5, 2025 15:51
@lanterno
Copy link
Contributor Author

lanterno commented Nov 5, 2025

Hi @lovesh, last PR to update this repo to the last dependency versions from the crypto repo.

I'm working on testing crypto-wasm-ts with these changes now! and will update here after.

@lanterno
Copy link
Contributor Author

lanterno commented Nov 5, 2025

@lovesh Update: Just finished testing the crypto-wasm-ts library after these updates, and all tests succeed with no changes needed.
Screenshot 2025-11-05 at 17 57 08

strategy:
matrix:
node-version: [22.x, 24.x]
node-version: [22.x, 24.x, 25.x]
Copy link
Contributor Author

Choose a reason for hiding this comment

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

it was only testing against the two last TLS versions. We should also test against the last version, and update it regularly. I think 22.x could be dropped as well, but I left this out for now.

Comment on lines +18 to +21
- uses: actions/checkout@v5
- name: Install WASM-Pack
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
- uses: actions/setup-node@v4
- uses: actions/setup-node@v6
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not necessary for this PR, but it's always nice to clean up when given the chance.

@lovesh
Copy link
Collaborator

lovesh commented Nov 7, 2025

@lanterno Thank you for this.

@lovesh lovesh merged commit 692755d into docknetwork:master Nov 7, 2025
6 checks passed
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