Skip to content

chore(deps): bump typed_ecto_schema from 0.4.3 to 0.5.0 - #215

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/hex/typed_ecto_schema-0.5.0
Open

chore(deps): bump typed_ecto_schema from 0.4.3 to 0.5.0#215
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/hex/typed_ecto_schema-0.5.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Aug 29, 2026

Copy link
Copy Markdown

Bumps typed_ecto_schema from 0.4.3 to 0.5.0.

Release notes

Sourced from typed_ecto_schema's releases.

0.5.0

Added

  • Field documentation: fields accept a :doc option; the <!-- typed_ecto_schema: fields --> marker in your @moduledoc is replaced at compile time with a list of every field, its typespec and its doc. Independently of the marker, the generated t/0 gets a @typedoc with the same fields list when the module doesn't define one (#68, closes #41)
  • Experimental: opt-in named types for Ecto.Enum fields via the additional_types: true schema option or the global config :typed_ecto_schema, additional_types: true — e.g. @type role() :: :admin | :user usable as Person.role() (#63, closes #39)
  • Experimental: support for polymorphic_embed's polymorphic_embeds_one/2 and polymorphic_embeds_many/2 behind a compile-time flag (config :typed_ecto_schema, polymorphic_embed: true), inferring the union of the :types modules without adding any dependency (#64, closes #40)
  • When both experimental features are enabled, polymorphic embed fields also get named types (element union for _many)

Fixed

  • Schema function options are no longer evaluated in the module body, so module aliases in pass-through options (e.g. many_to_many(..., join_through: Book)) no longer create compile-time dependencies — matching plain Ecto.Schema; guarded by a compiler-tracer regression test (#67, closes #38 and #26)

Docs

Full changelog: https://github.com/bamorim/typed_ecto_schema/blob/0.5.0/CHANGELOG.md

0.4.4

Added

  • @primary_key now accepts the enhanced :null and :enforce options to control the generated primary key typespec, e.g. @primary_key {:id, :binary_id, autogenerate: true, null: false} (#61, closes #42)
  • timestamps/1 now honors the enhanced :null and :enforce options, so timestamps(null: false) generates non-nullable timestamp typespecs (#60, closes #29)

Fixed

  • Compilation crash (FunctionClauseError) for Ecto.Enum fields with empty or non-literal :values: a :: type override now always takes precedence over inference, and empty or non-literal values fall back to any() instead of crashing (#62, closes #57)
  • Deprecation warnings and dependency incompatibilities on Elixir 1.19/1.20 (preferred_cli_env moved to def cli, credo updated), thanks @​saleyn (#58)
  • README example showed non-nullable timestamps; the actual (and intended) default is nullable (#60)

Changed

  • CI now tests Elixir 1.14 through 1.20 with OTP 24 through 29 (#59)

Full changelog: https://github.com/bamorim/typed_ecto_schema/blob/0.4.4/CHANGELOG.md

Changelog

Sourced from typed_ecto_schema's changelog.

[0.5.0] - 2026-08-26

Added

  • Field documentation: fields accept a :doc option (always stripped before the underlying Ecto macro runs). Placing the <!-- typed_ecto_schema: fields --> marker in the module's @moduledoc replaces it at compile time with a markdown list of every field, its typespec and its doc — the marker is the only trigger, so without it the :doc options don't touch the @moduledoc. Independently of the marker, the generated t/0 now gets a @typedoc with the same fields list when the module doesn't define one (a user-defined @typedoc is kept, with the same marker interpolation available) (#68, closes #41)
  • Experimental: opt-in named types for Ecto.Enum fields via the additional_types: true schema option (per schema, e.g. typed_schema "people", additional_types: true) or the global default config :typed_ecto_schema, additional_types: true. Each enum field with statically-known values defines a public type with the union of its values, e.g. @type role() :: :admin | :user, usable from other modules' specs (#63, closes #39)
  • Experimental: support for polymorphic_embed's polymorphic_embeds_one/2 and polymorphic_embeds_many/2 inside typed_schema blocks, behind a compile-time flag (off by default): config :typed_ecto_schema, polymorphic_embed: true. The typespec is inferred as the union of the modules in the :types option, and the :: override plus the :null/:enforce options are supported. polymorphic_embed does not become a dependency — the calls are matched by name (#64, closes #40)
  • When both experimental features above are enabled, polymorphic embed fields also get a named type with the union of their :types modules, e.g. @type channel() :: SMS.t() | Email.t() (the element union for polymorphic_embeds_many; skipped when the types are not statically resolvable)

Fixed

  • Schema function options are no longer evaluated in the module body, so module aliases in pass-through options — e.g. many_to_many(..., join_through: Book) — no longer create compile-time dependencies (matching plain Ecto.Schema). Only the options the type builder actually reads are forwarded to it, and a compiler-tracer regression test guards against reintroducing such dependencies (#67, closes #38 and #26)

... (truncated)

Commits

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file elixir Pull requests that update elixir code labels Aug 29, 2026
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Credits must be used to enable repository wide code reviews.

@dependabot
dependabot Bot force-pushed the dependabot/hex/typed_ecto_schema-0.5.0 branch from 44de482 to e9ffa38 Compare September 3, 2026 08:31
@dependabot @github

dependabot Bot commented on behalf of github Sep 3, 2026

Copy link
Copy Markdown
Author

Dependabot can't resolve your Elixir dependency files. Because of this, Dependabot cannot update this pull request.

Bumps [typed_ecto_schema](https://github.com/bamorim/typed_ecto_schema) from 0.4.3 to 0.5.0.
- [Release notes](https://github.com/bamorim/typed_ecto_schema/releases)
- [Changelog](https://github.com/bamorim/typed_ecto_schema/blob/master/CHANGELOG.md)
- [Commits](bamorim/typed_ecto_schema@0.4.3...0.5.0)

---
updated-dependencies:
- dependency-name: typed_ecto_schema
  dependency-version: 0.5.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot force-pushed the dependabot/hex/typed_ecto_schema-0.5.0 branch from e9ffa38 to ae3cc57 Compare September 3, 2026 14:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file elixir Pull requests that update elixir code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants