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

Latest version of @typeberry/pvm always available. #286

Open
tomusdrw opened this issue Jan 9, 2025 · 1 comment
Open

Latest version of @typeberry/pvm always available. #286

tomusdrw opened this issue Jan 9, 2025 · 1 comment

Comments

@tomusdrw
Copy link
Contributor

tomusdrw commented Jan 9, 2025

Currently every time we change something in typeberry PVM we need to publish a new version to npm and then create a PR and update the code in pvm-debugger.
It would be cool to figure out how to shorten that release-cycle to always have up-to-date typeberry PVM.

The idea is to maybe have something similar to other PVMs, where the latest version is fetched from some URL?

  • However the challenge is to load a JS code from an external domain (cross-origin issues)?
  • Can we fetch the JS code using <script tag?
  • Can we fetch the JS as text and then eval?
  • Is there some other option?

Alternatively we can setup and auto-update workflow if a new version is detected at npm.

@tomusdrw
Copy link
Contributor Author

Probably makes sense to unify and clean up all PVMs API, so that all WASM pvms and npm-based @typeberry and script-loaded @typeberry has the same API.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant