Skip to content

Commit

Permalink
Version crates to 2.0.0 for release (#455)
Browse files Browse the repository at this point in the history
* Version crates for release

* Add quickjs-wasm-sys update to changelog

* Add automatic download of WASI SDK to javy and apis changelogs
  • Loading branch information
jeffcharles authored Aug 17, 2023
1 parent 0161da3 commit 4103979
Show file tree
Hide file tree
Showing 9 changed files with 34 additions and 19 deletions.
6 changes: 3 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ wasmtime-wasi = "9.0"
wasi-common = "9.0"
anyhow = "1.0"
once_cell = "1.16"
javy = { path = "crates/javy", version = "1.0.0" }
javy = { path = "crates/javy", version = "2.0.0" }

[profile.release]
lto = true
Expand Down
9 changes: 8 additions & 1 deletion crates/apis/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## Unreleased

* Added `random` feature to override `Math.random` implementation with one that sets the random seed on first use of `Math.random`
## 2.0.0 - 2023-08-17

### Added
- `random` feature to override `Math.random` implementation with one that sets the random seed on first use of `Math.random`.

### Changed
- `javy` dependency is now at version 2.0.0.
- WASI SDK will be automatically downloaded at build time if `QUICKJS_WASM_SYS_WASI_SDK_PATH` environment variable is not set.

## 1.0.0 - 2023-05-17

Expand Down
2 changes: 1 addition & 1 deletion crates/apis/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "javy-apis"
version = "1.1.0-alpha.1"
version = "2.0.0"
authors.workspace = true
edition.workspace = true
license.workspace = true
Expand Down
7 changes: 7 additions & 0 deletions crates/javy/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## Unreleased

## 2.0.0 - 2023-08-17

### Changed

- Update of `quickjs` types to use types in `quickjs-wasm-rs` 2.0.0.
- WASI SDK will be automatically downloaded at build time if `QUICKJS_WASM_SYS_WASI_SDK_PATH` environment variable is not set.

## 1.0.0 - 2023-05-16

Initial release
4 changes: 2 additions & 2 deletions crates/javy/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "javy"
version = "1.0.0"
version = "2.0.0"
authors.workspace = true
edition.workspace = true
license.workspace = true
Expand All @@ -11,7 +11,7 @@ categories = ["wasm"]

[dependencies]
anyhow = { workspace = true }
quickjs-wasm-rs = { version = "2.0.0-alpha.1", path = "../quickjs-wasm-rs" }
quickjs-wasm-rs = { version = "2.0.0", path = "../quickjs-wasm-rs" }
serde_json = { version = "1.0", optional = true }
serde-transcode = { version = "1.1", optional = true }
rmp-serde = { version = "^1.1", optional = true }
Expand Down
19 changes: 9 additions & 10 deletions crates/quickjs-wasm-rs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,21 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
## Unreleased

## [2.0.0] - 2023-08-17

### Added
- `JSValueRef` can convert to Rust types with `try_into` (previously this was implemented on `CallbackArg`)
- Added `eval_module` method on `JSContextRef` that evaluates JS code in a ECMAScript module scope
- `JSValueRef` can convert to Rust types with `try_into` (previously this was implemented on `CallbackArg`).
- Added `eval_module` method on `JSContextRef` that evaluates JS code in a ECMAScript module scope.

### Changed
- Callback functions registered with `context.wrap_callback` now pass `JSValueRef` into the closure instead of `CallbackArg`
- `from_qjs_value` now takes `JSValueRef` by value
- Callback functions registered with `context.wrap_callback` now pass `JSValueRef` into the closure instead of `CallbackArg`.
- `from_qjs_value` now takes `JSValueRef` by value.
- Updated to `quickjs-wasm-sys` version `1.1.0` which will automatically download a WASI SDK if the `QUICKJS_WASM_SYS_WASI_SDK_PATH` environment variable is not set.

### Removed
- `CallbackArg` type
- `CallbackArg` type.

## [1.0.0] - 2023-05-05

Expand All @@ -32,7 +35,3 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Removed
- `json` and `messagepack` features have been moved to the `javy` crate

[unreleased]: https://github.com/bytecodealliance/javy/compare/quickjs-wasm-rs-1.0.0...HEAD
[1.0.0]: https://github.com/bytecodealliance/javy/tree/quickjs-wasm-rs-1.0.0/crates/quickjs-wasm-rs

2 changes: 1 addition & 1 deletion crates/quickjs-wasm-rs/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "quickjs-wasm-rs"
version = "2.0.0-alpha.1"
version = "2.0.0"
authors.workspace = true
edition.workspace = true
license.workspace = true
Expand Down
2 changes: 2 additions & 0 deletions docs/contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ We will only add JS APIs or accept contributions that add JS APIs that are poten

The library crates, `javy`, `javy-apis`, `quickjs-wasm-rs`, and `quickjs-wasm-sys`, use the versioning system described in [Rust for Rustaceans](https://rust-for-rustaceans.com/) 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.

### The system

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`.
Expand Down

0 comments on commit 4103979

Please sign in to comment.