dry-struct breaking changes
dry-struct 1.0.0 (April 23, 2019) is its newest release with breaking changes, 2 of them. The first: Behavior changed ===. Every breaking API change we have recorded in dry-struct on RubyGems: 20 breaking changes in 7 versions. Below, its 7 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 1.8.1. Source repository
Its 0.5.0 release requires Ruby 2.3 or later. Ruby end of life dates.
- From 0.7.0 to 1.0.0: 2 breaking changes in 1 version.
- From 0.1.0 to 1.0.0: 17 breaking changes in 6 versions.
dry-struct 1.0.0 breaking changes
- Behavior changed
===
=== now works the same way Class#=== does. Review code that relied on its previous result. github.com - Behavior changed
valid?
valid? now checks whether a value can be coerced to the struct. Review code that relied on its previous result. github.com
dry-struct 0.7.0 breaking changes
- Removed
Ruby 2.3
Ruby 2.3 is end of life and no longer officially supported; it may still work but is untested. github.com - Renamed
Struct.input
Struct.input was renamed to Struct.schema, which now returns a Dry::Types::Hash::Schema instead of a Hash. Use .key(name) to get a type by name and iterate over key types. github.com - Behavior changed
Struct.schema
Schemas implement Enumerable but iterate over key types, so code iterating the schema must use key.name and key.type. github.com - Signature changed
transform_types
The transform_types block now passes a single argument, an instance of the Key type, so existing blocks must be updated to accept it. github.com
dry-struct 0.6.0 breaking changes
- Behavior changed
Struct.to_h
Struct#to_h recursively converts hash values to hashes, consistent with arrays; code relying on the previous output of to_h for nested values may change. github.com
dry-struct 0.5.0 breaking changes
- Removed
Ruby 2.3 is now the minimum supported version, so older Ruby versions are no longer supported. github.com - Removed
constructor_type
constructor_type was removed; use transform_types and transform_keys instead. github.com - Behavior changed
Values are now stored in one @attributes instance variable; reserved names such as hash have no getter and must be read via #[]. github.com - Behavior changed
Default types now apply only when a value is missing, not when it is nil; use transform_types to handle nil values. github.com
dry-struct 0.4.0 breaking changes
- Behavior changed
Attribute reader methods do not replace instance methods that already exist on the struct. Code relying on the generated reader overriding an existing method must be updated. github.com - Behavior changed
Struct.new
Struct#new now reads raw attribute values rather than calling attribute reader methods, so overridden readers are no longer used during construction. github.com - Configuration changed
constructor_type
Passing :weak or :symbolized to constructor_type now raises an error. Use a supported constructor type instead. github.com
dry-struct 0.3.0 breaking changes
- Behavior changed
[]
Calling .[] or .call on a Dry::Struct subclass no longer coerces the input to the superclass. Code relying on that coercion must be updated. github.com - Behavior changed
call
Calling .call on a Dry::Struct subclass no longer coerces the input to the superclass. Code relying on that coercion must be updated. github.com - Behavior changed
new
Calling new without a value for an attribute with a string type now raises ArgumentError. Code that relied on the missing value being accepted must provide the value. github.com
Older versions
1 older version, each with its first changes. Sign up to see every change
Show 1 older version
dry-struct 0.1.0 breaking changes
- Renamed
:strict
The :strict constructor type was renamed to :permissive because it ignores missing keys. Code that passes :strict must switch to :permissive. github.com - Behavior changed
Struct classes are no longer registered automatically in the types container. Code that relied on automatic registration must register them manually or wrap them in Type::Definition. github.com
And 1 more in this version.
Related packages
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.