hex typed_ecto_schema 0.4.4
on Hex

3 hours ago

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

Don't miss a new typed_ecto_schema release

NewReleases is sending notifications on new releases.