diff --git a/CHANGELOG.md b/CHANGELOG.md index aae9e718..39bc0cb4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,7 +7,19 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] -Added support for configurable dot-directories and -files inclusion via `.ic-assets.json` config file: +## [0.20.0] - 2022-07-14 + +### Breaking change: Updated to ic-types 0.4.0 + +* Remove `PrincipalInner` + * `Principal` directly holds `len` and `bytes` fields +* `PrincipalError` enum has different set of variants reflecting changes in `from_text` logic. +* `from_text` accepts input containing uppercase letters which results in Err before. +* `from_text` verifies CRC32 check sequence + +### ic-asset + +Added support configurable inclusion and exclusion of files and directories (including dotfiles and dot directories), done via `.ic-assets.json` config file: - example of `.ic-assets.json` file format: ``` [ @@ -48,6 +60,8 @@ Added support for configuring HTTP headers for assets in asset canister (via `.i ## [0.19.0] - 2022-07-06 +### ic-asset + Added support for asset canister config files in `ic-assets`. - reads configuration from `.ic-assets.json` config files if placed inside assets directory, multiple config files can be used (nested in subdirectories) - runs successfully only if the config file is right format (valid JSON, valid glob pattern, JSON fields in correct format) @@ -67,6 +81,8 @@ Added support for asset canister config files in `ic-assets`. ## [0.18.0] - 2022-06-23 +### ic-asset + Breaking change: ic-asset::sync() now synchronizes from multiple source directories. This is to allow for configuration files located alongside assets in asset source directories. diff --git a/Cargo.lock b/Cargo.lock index 00313a7e..efd378e9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -925,7 +925,7 @@ dependencies = [ [[package]] name = "ic-agent" -version = "0.19.0" +version = "0.20.0" dependencies = [ "async-trait", "base32", @@ -964,7 +964,7 @@ dependencies = [ [[package]] name = "ic-asset" -version = "0.19.0" +version = "0.20.0" dependencies = [ "anyhow", "candid", @@ -992,7 +992,7 @@ dependencies = [ [[package]] name = "ic-identity-hsm" -version = "0.19.0" +version = "0.20.0" dependencies = [ "hex", "ic-agent", @@ -1020,7 +1020,7 @@ dependencies = [ [[package]] name = "ic-utils" -version = "0.19.0" +version = "0.20.0" dependencies = [ "async-trait", "candid", @@ -1042,7 +1042,7 @@ dependencies = [ [[package]] name = "icx" -version = "0.19.0" +version = "0.20.0" dependencies = [ "anyhow", "candid", @@ -1062,7 +1062,7 @@ dependencies = [ [[package]] name = "icx-asset" -version = "0.19.0" +version = "0.20.0" dependencies = [ "anyhow", "candid", @@ -1087,7 +1087,7 @@ dependencies = [ [[package]] name = "icx-cert" -version = "0.19.0" +version = "0.20.0" dependencies = [ "anyhow", "base64", diff --git a/ic-agent/Cargo.toml b/ic-agent/Cargo.toml index fb1c9487..9c365291 100644 --- a/ic-agent/Cargo.toml +++ b/ic-agent/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ic-agent" -version = "0.19.0" +version = "0.20.0" authors = ["DFINITY Stiftung "] edition = "2021" description = "Agent library to communicate with the Internet Computer, following the Public Specification." diff --git a/ic-asset/Cargo.toml b/ic-asset/Cargo.toml index ca66bea7..3b32b5bd 100644 --- a/ic-asset/Cargo.toml +++ b/ic-asset/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ic-asset" -version = "0.19.0" +version = "0.20.0" authors = ["DFINITY Stiftung "] edition = "2021" description = "Library for storing files in an asset canister." @@ -23,8 +23,8 @@ futures-intrusive = "0.4.0" garcon = { version = "0.2", features = ["async"] } globset = "0.4.9" hex = {version = "0.4.2", features = ["serde"] } -ic-agent = { path = "../ic-agent", version = "0.19", features = [ "pem" ] } -ic-utils = { path = "../ic-utils", version = "0.19" } +ic-agent = { path = "../ic-agent", version = "0.20", features = [ "pem" ] } +ic-utils = { path = "../ic-utils", version = "0.20" } mime = "0.3.16" mime_guess = "2.0.4" pathdiff = "0.2.1" diff --git a/ic-identity-hsm/Cargo.toml b/ic-identity-hsm/Cargo.toml index d2bdc039..8c92fa5b 100644 --- a/ic-identity-hsm/Cargo.toml +++ b/ic-identity-hsm/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ic-identity-hsm" -version = "0.19.0" +version = "0.20.0" authors = ["DFINITY Stiftung "] description = "Identity implementation for HSM for the ic-agent package." homepage = "https://docs.rs/ic-identity-hsm" @@ -16,7 +16,7 @@ rust-version = "1.58.1" [dependencies] hex = "0.4.2" -ic-agent = { path = "../ic-agent", version = "0.19", features = [ "pem" ] } +ic-agent = { path = "../ic-agent", version = "0.20", features = [ "pem" ] } num-bigint = "0.4.3" pkcs11 = "0.5.0" sha2 = "0.10" diff --git a/ic-utils/Cargo.toml b/ic-utils/Cargo.toml index 4b3247ca..47912d85 100644 --- a/ic-utils/Cargo.toml +++ b/ic-utils/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ic-utils" -version = "0.19.0" +version = "0.20.0" authors = ["DFINITY Stiftung "] edition = "2021" description = "Collection of utilities for Rust, on top of ic-agent, to communicate with the Internet Computer, following the Public Specification." @@ -20,7 +20,7 @@ rust-version = "1.58.1" async-trait = "0.1.40" candid = "0.7.15" garcon = { version = "0.2", features = ["async"] } -ic-agent = { path = "../ic-agent", version = "0.19" } +ic-agent = { path = "../ic-agent", version = "0.20" } serde = "1.0.115" serde_bytes = "0.11" strum = "0.24" diff --git a/icx-asset/Cargo.toml b/icx-asset/Cargo.toml index dd69d7a4..b9eb5f2a 100644 --- a/icx-asset/Cargo.toml +++ b/icx-asset/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "icx-asset" -version = "0.19.0" +version = "0.20.0" authors = ["DFINITY Stiftung "] edition = "2021" description = "CLI tool to manage assets on an asset canister on the Internet Computer." @@ -24,9 +24,9 @@ clap = { version = "3.0.14", features = ["derive", "cargo"] } delay = "0.3.1" garcon = "0.2.2" humantime = "2.0.1" -ic-agent = { path = "../ic-agent", version = "0.19" } -ic-asset = { path = "../ic-asset", version = "0.19" } -ic-utils = { path = "../ic-utils", version = "0.19" } +ic-agent = { path = "../ic-agent", version = "0.20" } +ic-asset = { path = "../ic-asset", version = "0.20" } +ic-utils = { path = "../ic-utils", version = "0.20" } libflate = "1.2.0" num-traits = "0.2" pem = "1.0.1" diff --git a/icx-cert/Cargo.toml b/icx-cert/Cargo.toml index 40de8dba..f56a355a 100644 --- a/icx-cert/Cargo.toml +++ b/icx-cert/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "icx-cert" -version = "0.19.0" +version = "0.20.0" authors = ["DFINITY Stiftung "] edition = "2021" description = "CLI tool to download a document from the Internet Computer and pretty-print the contents of its IC-Certificate header." @@ -22,7 +22,7 @@ base64 = "0.13" clap = { version = "3.1.8", features = ["derive", "cargo"] } chrono = "0.4.19" hex = "0.4.2" -ic-agent = { path = "../ic-agent", version = "0.19" } +ic-agent = { path = "../ic-agent", version = "0.20" } leb128 = "0.2.4" reqwest = { version = "0.11", features = [ "blocking", "rustls-tls" ] } sha2 = "0.10" diff --git a/icx/Cargo.toml b/icx/Cargo.toml index 43212f92..eead7cde 100644 --- a/icx/Cargo.toml +++ b/icx/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "icx" -version = "0.19.0" +version = "0.20.0" authors = ["DFINITY Stiftung "] edition = "2021" description = "CLI tool to call canisters on the Internet Computer." @@ -25,8 +25,8 @@ clap = { version = "3.0.14", features = ["derive", "cargo"] } garcon = { version = "0.2.3", features = ["async"] } hex = "0.4.2" humantime = "2.0.1" -ic-agent = { path = "../ic-agent", version = "0.19" } -ic-utils = { path = "../ic-utils", version = "0.19" } +ic-agent = { path = "../ic-agent", version = "0.20" } +ic-utils = { path = "../ic-utils", version = "0.20" } pem = "1.0" ring = "0.16.11" serde = "1.0.115"