From 4afd52b7510dafb4c00842d908452170daf63b31 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 13 Nov 2023 11:46:38 +0000 Subject: [PATCH] chore: release Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- CHANGELOG.md | 21 +++++++++++++++++++++ Cargo.lock | 4 ++-- Cargo.toml | 4 ++-- MIGRATING.md | 13 ++++++++++++- examples/Cargo.lock | 4 ++-- 5 files changed, 39 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 26727b2e..998ae16f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,27 @@ 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). +## [0.9.0](https://github.com/CosmWasm/sylvia/compare/sylvia-derive-v0.8.1...sylvia-derive-v0.9.0) - 2023-11-13 + +### Added +- Support generic types in entry points +- Impl ContractApi extension trait +- Wrap contract types in `sv` module +- Wrap impl types in `sv` module +- Hide generated interface types in `sv` module +- Move `messages` method out of EnumMsg +- Support generics on every message type +- Support generic contract for simple contract +- Support generic contract for simple contract +- Support generics on `messages` attribute in main `contract` macro +- Support generic interface implemented on contract +- Emit InterfaceTypes +- Check interfaces return type for used generics +- Add support for generics in interface + +### Fixed +- [**breaking**] Expect `,` in `:custom(msg, query)` + ## [0.8.1](https://github.com/CosmWasm/sylvia/compare/sylvia-derive-v0.8.0...sylvia-derive-v0.8.1) - 2023-09-18 ### Added diff --git a/Cargo.lock b/Cargo.lock index fe130f45..6c1603bf 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -823,7 +823,7 @@ checksum = "6bdef32e8150c2a081110b42772ffe7d7c9032b606bc226c8260fd97e0976601" [[package]] name = "sylvia" -version = "0.8.1" +version = "0.9.0" dependencies = [ "anyhow", "cosmwasm-schema", @@ -842,7 +842,7 @@ dependencies = [ [[package]] name = "sylvia-derive" -version = "0.8.1" +version = "0.9.0" dependencies = [ "convert_case", "proc-macro-crate", diff --git a/Cargo.toml b/Cargo.toml index 2ecb83dd..727b108c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,7 +4,7 @@ exclude = ["examples/*"] resolver = "2" [workspace.package] -version = "0.8.1" +version = "0.9.0" [workspace.dependencies] -sylvia-derive = { version = "0.8.1", path = "sylvia-derive" } +sylvia-derive = { version = "0.9.0", path = "sylvia-derive" } diff --git a/MIGRATING.md b/MIGRATING.md index f56f2087..a62e540b 100644 --- a/MIGRATING.md +++ b/MIGRATING.md @@ -2,7 +2,18 @@ This guide explains what is needed to upgrade contracts when migrating over major releases of `sylvia`. Note that you can also view the [complete CHANGELOG](https://github.com/CosmWasm/sylvia/blob/main/CHANGELOG.md) to understand the differences. -## 0.5.0 -> Unreleased +## 0.8.1 -> 0.9.0 + +### `sv` module + +Sylvia from now on will generate all the code in the `sv` module. This means that you will need to update your imports to use the new module. + +### Implementing non-custom interface on custom contract + +In Sylvia `0.8.x` there was missing check for the `,` in `#[messages(cw1 as Cw1: custom(msg query))]`. +Since `0.9.0` Sylvia expects user to split `msg` and `query` with `,` as such `#[messages(cw1 as Cw1: custom(msg, query))]`. + +## 0.5.0 -> 0.6.0 ### Context distinction diff --git a/examples/Cargo.lock b/examples/Cargo.lock index a606c727..696bb272 100644 --- a/examples/Cargo.lock +++ b/examples/Cargo.lock @@ -1044,7 +1044,7 @@ checksum = "81cdd64d312baedb58e21336b31bc043b77e01cc99033ce76ef539f78e965ebc" [[package]] name = "sylvia" -version = "0.8.1" +version = "0.9.0" dependencies = [ "anyhow", "cosmwasm-schema", @@ -1061,7 +1061,7 @@ dependencies = [ [[package]] name = "sylvia-derive" -version = "0.8.1" +version = "0.9.0" dependencies = [ "convert_case", "proc-macro-crate",