We will only add JS APIs or accept contributions that add JS APIs that are potentially useful across multiple environments and do not invoke non-WASI hostcalls. If you wish to add or use JS APIs that do not meet these criteria, please use the quickjs-wasm-rs
crate directly. We may revisit how we support importing and exporting custom functionality from Javy once the Component Model has stabilized.
The library crates, javy
, javy-apis
, quickjs-wasm-rs
, and quickjs-wasm-sys
, use the versioning system described in Rust for Rustaceans in the Unreleased Versions section in the Project Structure chapter. The underlying motivation is that the version in the crate's Cargo.toml
is important between releases to ensure Cargo does not reuse a stale version if a project relies on a version of the crate that has not yet been published to crates.io and the version required by that project is updated to a version with new additive or breaking changes.
The versions for javy
and javy-apis
must always be the same. So a version change in the one crate should result in a version change in the other crate.
After publishing a release, immediately update the version number to the next patch version with an -alpha.1
suffix. The first time an additive change is made, reset the patch version to 0
and increment the minor version and reset the suffix to -alpha.1
. When making additional additive changes, increment the number in the suffix, for example -alpha.2
. The first time a breaking change is made, reset the patch version and minor version to 0
and increment the major version and reset the suffix to -alpha.1
. When making additional breaking changes, increment the number in the suffix, for example -alpha.2
.
When releasing, remove the suffix and then publish.