Skip to content

Commit

Permalink
Bump version to 5.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieuprog committed Feb 18, 2025
1 parent c628c1c commit cf655e5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/polymorphic_embed.ex
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ defmodule PolymorphicEmbed do
def init(opts) do
opts = Keyword.put_new(opts, :on_replace, nil)
# opts = Keyword.put_new(opts, :type_field_name, :__type__)
# TODO remove in v5
# TODO remove in v6
opts = Keyword.put_new(opts, :type_field_name, Keyword.get(opts, :type_field, :__type__))
opts = Keyword.put_new(opts, :on_type_not_found, :changeset_error)
opts = Keyword.put_new(opts, :nilify_unlisted_types_on_load, [])
Expand Down
2 changes: 1 addition & 1 deletion lib/polymorphic_embed/options_validator.ex
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ defmodule PolymorphicEmbed.OptionsValidator do
end
end

# TODO remove in v5
# TODO remove in v6
if Keyword.has_key?(options, :type_field) do
Logger.warning(
"`:type_field` option is deprecated and must be replaced with `:type_field_name`."
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
defmodule PolymorphicEmbed.MixProject do
use Mix.Project

@version "5.0.0"
@version "5.0.1"

def project do
[
Expand Down

0 comments on commit cf655e5

Please sign in to comment.