---
title: "dry-struct 1.0.0 Breaking Changes on RubyGems | Since.dev"
description: "What each dry-struct release removed, renamed or changed: 20 breaking changes in 7 versions on RubyGems, each with its source."
canonical_url: https://since.dev/packages/gem/dry-struct
last_updated: 2026-12-04
---

# 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

Latest version `1.8.1`. [Source repository](https://github.com/dry-rb/dry-struct)

Its 0.5.0 release requires Ruby 2.3 or later. [Ruby end of life dates](https://since.dev/calendar/ruby.md).

- From [0.7.0](#v-0-7-0) to [1.0.0](#v-1-0-0): 2 breaking changes in 1 version.
- From [0.1.0](#v-0-1-0) to [1.0.0](#v-1-0-0): 17 breaking changes in 6 versions.

## dry-struct 1.0.0 breaking changes

dry-struct 1.0.0, released April 23, 2019: 2 breaking changes.

- **Behavior changed** `===`  

\=== now works the same way Class#=== does. Review code that relied on its previous result. [github.com](https://github.com/dry-rb/dry-struct/releases/tag/v1.0.0)
- **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](https://github.com/dry-rb/dry-struct/releases/tag/v1.0.0)

## dry-struct 0.7.0 breaking changes

dry-struct 0.7.0, released March 22, 2019: 4 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](https://github.com/dry-rb/dry-struct/releases/tag/v0.7.0)
- **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](https://github.com/dry-rb/dry-struct/releases/tag/v0.7.0)
- **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](https://github.com/dry-rb/dry-struct/releases/tag/v0.7.0)
- **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](https://github.com/dry-rb/dry-struct/releases/tag/v0.7.0)

## dry-struct 0.6.0 breaking changes

dry-struct 0.6.0, released October 24, 2018: 1 breaking change.

- **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](https://github.com/dry-rb/dry-struct/releases/tag/v0.6.0)

## dry-struct 0.5.0 breaking changes

dry-struct 0.5.0, released May 3, 2018: 4 breaking changes.

- **Removed**  

Ruby 2.3 is now the minimum supported version, so older Ruby versions are no longer supported. [github.com](https://github.com/dry-rb/dry-struct/releases/tag/v0.5.0)
- **Removed** `constructor_type`  

constructor_type was removed; use transform_types and transform_keys instead. [github.com](https://github.com/dry-rb/dry-struct/releases/tag/v0.5.0)
- **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](https://github.com/dry-rb/dry-struct/releases/tag/v0.5.0)
- **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](https://github.com/dry-rb/dry-struct/releases/tag/v0.5.0)

## dry-struct 0.4.0 breaking changes

dry-struct 0.4.0, released November 4, 2017: 3 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](https://github.com/dry-rb/dry-struct/releases/tag/v0.4.0)
- **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](https://github.com/dry-rb/dry-struct/releases/tag/v0.4.0)
- **Configuration changed** `constructor_type`  

Passing :weak or :symbolized to constructor_type now raises an error. Use a supported constructor type instead. [github.com](https://github.com/dry-rb/dry-struct/releases/tag/v0.4.0)

## dry-struct 0.3.0 breaking changes

dry-struct 0.3.0, released May 5, 2017: 3 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](https://github.com/dry-rb/dry-struct/releases/tag/v0.3.0)
- **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](https://github.com/dry-rb/dry-struct/releases/tag/v0.3.0)
- **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](https://github.com/dry-rb/dry-struct/releases/tag/v0.3.0)

## Older versions

1 older version, each with its first changes. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

### dry-struct 0.1.0 breaking changes

dry-struct 0.1.0, released September 22, 2016: 3 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](https://github.com/dry-rb/dry-struct/blob/v0.1.0/CHANGELOG.md)
- **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](https://github.com/dry-rb/dry-struct/blob/v0.1.0/CHANGELOG.md)

And 1 more in this version.

## Related packages

- [dry-auto_inject](https://since.dev/packages/gem/dry-auto%5Finject.md)
- [dry-cli](https://since.dev/packages/gem/dry-cli.md)
- [dry-configurable](https://since.dev/packages/gem/dry-configurable.md)
- [dry-container](https://since.dev/packages/gem/dry-container.md)
- [dry-core](https://since.dev/packages/gem/dry-core.md)
- [dry-initializer](https://since.dev/packages/gem/dry-initializer.md)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#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.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
