diff --git a/CHANGELOG.md b/CHANGELOG.md index 33dfe0b..9ebfa02 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,14 +6,27 @@ The format of this file 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). -## [3.0.0-beta.2] - Unreleased +## [3.0.0] - 2023-04-28 ### Added -- Add `description`, `readme` and `license` fields to `RustPluginConfig`. +- Added support for `serde_json::Map` + (https://github.com/fiberplane/fp-bindgen/pull/163). +- Added support for specifying custom Cargo registries with `CargoDependency`. +- Added helpers for building `CargoDependency` with a git repository. +- Added `description`, `readme` and `license` fields to `RustPluginConfig`. ### Changed +- Added MIT as an option to the project licensing. +- Replaced the `rust_plugin_module` and `rust_wasmer_runtime_module` annotations + with a single `rust_module` annotation. +- Struct fields annotated with `skip_serializing_if` are treated as optional by + the TypeScript binding generator. +- Struct fields generated by `fp-bindgen` will not automatically add any Serde + annotations that were not there in the original protocol definition. +- `CargoDependency` is now marked as non-exhaustive to prevent future breaking + changes. - `RustPluginConfig` now needs to be initialized using `RustPluginConfig::builder()`. Struct initialization syntax will not work anymore. @@ -33,37 +46,13 @@ adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ### Fixed +- Made sure `cargo check` doesn't complain about unused imports in the generated + plugin bindings. - Added workaround for imported functions with float arguments for wasmer2 in example, see [#180](https://github.com/fiberplane/fp-bindgen/issues/180). - Fixed async functions returning primitive values, including void async functions, see [#178](https://github.com/fiberplane/fp-bindgen/issues/178). -## [3.0.0-beta.1] - 2023-02-14 - -### Added - -- Add support for `serde_json::Map` - (https://github.com/fiberplane/fp-bindgen/pull/163). -- Added support for specifying custom Cargo registries with `CargoDependency`. -- Added helpers for building `CargoDependency` with a git repository. - -### Changed - -- Added MIT as an option to the project licensing. -- Replaced the `rust_plugin_module` and `rust_wasmer_runtime_module` annotations - with a single `rust_module` annotation. -- Struct fields annotated with `skip_serializing_if` are treated as optional by - the TypeScript binding generator. -- Struct fields generated by `fp-bindgen` will not automatically add any Serde - annotations that were not there in the original protocol definition. -- `CargoDependency` is now marked as non-exhaustive to prevent future breaking - changes. - -### Fixed - -- Make sure `cargo check` doesn't complain about unused imports in the generated - plugin bindings. - ## [2.4.0] - 2022-10-04 ### Added diff --git a/Cargo.toml b/Cargo.toml index 3cc1712..9462f55 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,10 +14,10 @@ members = [ ] [workspace.dependencies] -fp-bindgen-macros = { version = "3.0.0-beta.2", path = "macros" } +fp-bindgen-macros = { version = "3.0.0", path = "macros" } [workspace.package] -version = "3.0.0-beta.2" +version = "3.0.0" authors = ["Fiberplane "] edition = "2018" license = "MIT OR Apache-2.0" diff --git a/examples/example-protocol/src/assets/rust_plugin_test/expected_Cargo.toml b/examples/example-protocol/src/assets/rust_plugin_test/expected_Cargo.toml index 9769390..e37b7fe 100644 --- a/examples/example-protocol/src/assets/rust_plugin_test/expected_Cargo.toml +++ b/examples/example-protocol/src/assets/rust_plugin_test/expected_Cargo.toml @@ -9,7 +9,7 @@ license = { workspace = true } [dependencies] bytes = { version = "1", features = ["serde"] } -fp-bindgen-support = { path = "../../../../fp-bindgen-support", version = "3.0.0-beta.2", features = ["async", "guest", "http"] } +fp-bindgen-support = { path = "../../../../fp-bindgen-support", version = "3.0.0", features = ["async", "guest", "http"] } http = { version = "0.2" } once_cell = { version = "1" } redux-example = { path = "../../../redux-example" } diff --git a/examples/example-protocol/src/assets/rust_plugin_test/expected_Cargo_no_optionals.toml b/examples/example-protocol/src/assets/rust_plugin_test/expected_Cargo_no_optionals.toml index 991b4bb..2ced1ad 100644 --- a/examples/example-protocol/src/assets/rust_plugin_test/expected_Cargo_no_optionals.toml +++ b/examples/example-protocol/src/assets/rust_plugin_test/expected_Cargo_no_optionals.toml @@ -6,7 +6,7 @@ edition = "2018" [dependencies] bytes = { version = "1", features = ["serde"] } -fp-bindgen-support = { path = "../../../../fp-bindgen-support", version = "3.0.0-beta.2", features = ["async", "guest", "http"] } +fp-bindgen-support = { path = "../../../../fp-bindgen-support", version = "3.0.0", features = ["async", "guest", "http"] } http = { version = "0.2" } once_cell = { version = "1" } redux-example = { path = "../../../redux-example" }