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

@penumbra-zone/wasm #955

Merged
merged 7 commits into from
Apr 20, 2024
Merged

@penumbra-zone/wasm #955

merged 7 commits into from
Apr 20, 2024

Conversation

turbocrime
Copy link
Contributor

@turbocrime turbocrime commented Apr 18, 2024

work on #737

the wasm package on npm is outdated, and we have consumers trying to use, so i took a shot at this

keys package

wasm package

  • removed /src/ path segment
  • publishes without build as per discussion
  • keys are now an optional dependency

verified working on an example nextjs app with the output of pnpm pack which you can view at https://github.com/turbocrime/nextjs-penumbra-wasm-example/

@turbocrime turbocrime requested review from grod220 and TalDerei April 18, 2024 17:41
@turbocrime
Copy link
Contributor Author

ah, wasm-pack creates a gitignore

@turbocrime turbocrime changed the title packaging wasm package @penumbra-zone/keys and @penumbra-zone/wasm Apr 18, 2024
@turbocrime turbocrime requested a review from jessepinho April 18, 2024 20:33
@turbocrime turbocrime mentioned this pull request Apr 19, 2024
@turbocrime turbocrime force-pushed the turbocrime/wasm-package branch from 2516169 to a48b39b Compare April 19, 2024 03:50
@turbocrime turbocrime changed the title package @penumbra-zone/keys and @penumbra-zone/wasm package @penumbra-zone/wasm Apr 19, 2024
@turbocrime turbocrime force-pushed the turbocrime/wasm-package branch from a48b39b to 49da696 Compare April 19, 2024 03:51
@turbocrime turbocrime changed the title package @penumbra-zone/wasm @penumbra-zone/wasm Apr 19, 2024
Copy link
Collaborator

@grod220 grod220 left a comment

Choose a reason for hiding this comment

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

Nice job! After this is merged, the bot will update this PR: #940. Then if you merge that, this will publish to npm for the consumer needing this.

Also, could you add documentation to a README.md on how to use this package? Think it would be helpful to give instructions on:

  • No keys usage
  • Usage w/ keys (and downloading that optional package)
  • Possible required webpack/next configs

packages/wasm/package.json Show resolved Hide resolved
packages/wasm/package.json Outdated Show resolved Hide resolved
@turbocrime turbocrime force-pushed the turbocrime/wasm-package branch from 49da696 to 745ee92 Compare April 20, 2024 00:48
@turbocrime turbocrime merged commit 78ab976 into main Apr 20, 2024
6 checks passed
@turbocrime turbocrime deleted the turbocrime/wasm-package branch April 20, 2024 06:08
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.

3 participants