-
Notifications
You must be signed in to change notification settings - Fork 11
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
Inline WASM in @nucypher/nucypher-core
NPM package
#83
Conversation
Codecov Report
@@ Coverage Diff @@
## main #83 +/- ##
=======================================
Coverage 23.45% 23.45%
=======================================
Files 18 18
Lines 3521 3521
=======================================
Hits 826 826
Misses 2695 2695 |
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.
LGTM! 🙌
I think this is a great progress to have a more user-friendly environment to be used by adopters.
Some thoughts fwiw: What could be the cost of keeping the two approaches? Does it involve duplicate work when updating the WASM packages? If you ask me, my opinion is that is better to keep it simple with only one approach. But I’m not sure about the implications of deprecating the current approach for current adopters. |
We would only use the new approach when publishing an npm package. We could keep the "legacy" approach as a reference for someone wanting to build a non-inlined package. |
How much work would it take someone you used the previous packaging process, to use this updated one? Is it relatively simple once the steps are known? New tooling? Should this process (migration from prior packaging) be documented alongside fresh (only this new) usage? |
It only requires calling
We can document it in a changelog. |
I found an issue caused by the changes in this PR: test runners (like |
a4b23cc
to
0c617c8
Compare
0c617c8
to
1f8ed5f
Compare
Because of the inlining the size of
|
Moreover, it makes sense for this to be our public stance in general with regard to this repo (and perhaps to finally examine whether we want to call it 'core' rather than something like 'nucypher-base'). |
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.
🚀
Co-authored-by: David Núñez <david@nucypher.com>
Type of PR:
Required reviews:
What this does:
rollup
based NPM package bundler in the./nucypher-core-wasm-bundler
directory@nucypher/nucypher-core
package. Now, said package can be used without a WASM-aware bundler.Issues fixed/closed:
nucypher-core
#85Why it's needed:
@nucypher/nucypher-core
Notes for reviewers:
@nucypher/nucypher-core
users who relied on the previous packaging and WASM module instantiating methods../nucypher-core-wasm-bundler
could end up in the./nucypher-core-wasm
directory, however, I think the current packaging setup in./nucypher-core-wasm
is worth preserving. We could either document the two distinct approaches or merge them. TBD.package.json
exports. Similarly, we could offer anode
-friendly "slim" build. Seerollup.config.js
for details. However, these two changes require further research that I can't afford now. I opted to ship these changes earlier at a cost of less flexibility for our users.