Skip to content

Commit

Permalink
Tweak retain function to avoid issues with recursive types (#206)
Browse files Browse the repository at this point in the history
* Tweak retain function to avoid issues with recursive types

* re-do test suite and ensure type ID also updated still

* cargo fmt

* prep for patch release
  • Loading branch information
jsdw authored Apr 8, 2024
1 parent 2430c33 commit 3082edc
Show file tree
Hide file tree
Showing 3 changed files with 407 additions and 366 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ 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).

## [2.11.2] - 2024-04-05

- Fix a bug in the `PortableRegistry::retain()` method where recursive types (types containing themselves) were not properly handled.

## [2.11.1] - 2024-03-22

- Fix a bug in the `PortableRegistry::retain()` method, where a type's id field was not adjusted to the new position of the type in the retained `Vec`.
Expand Down
7 changes: 5 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,15 @@ categories.workspace = true
[dependencies]
bitvec = { version = "1", default-features = false, features = ["alloc"], optional = true }
cfg-if = "1.0"
scale-info-derive = { version = "2.11.1", path = "derive", default-features = false, optional = true }
scale-info-derive = { version = "2.11.2", path = "derive", default-features = false, optional = true }
serde = { version = "1", default-features = false, optional = true, features = ["derive", "alloc"] }
derive_more = { version = "0.99.1", default-features = false, features = ["from"] }
scale = { package = "parity-scale-codec", version = "3", default-features = false, features = ["derive"] }
schemars = { version = "0.8", optional = true }

[dev-dependencies]
scale-info-derive = { version = "2.11.2", path = "derive" }

[features]
default = ["std"]
std = [
Expand Down Expand Up @@ -57,7 +60,7 @@ members = [
]

[workspace.package]
version = "2.11.1"
version = "2.11.2"
authors = [
"Parity Technologies <admin@parity.io>",
"Centrality Developers <support@centrality.ai>",
Expand Down
Loading

0 comments on commit 3082edc

Please sign in to comment.