Skip to content

Commit

Permalink
Bump version to 4.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieuprog committed May 31, 2024
1 parent 619cf85 commit 76d22cf
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
8 changes: 6 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
# Changelog

## 4.1.x

* Add `Form.source_data/1` and `Form.source_module/1` (`get_polymorphic_type/2` doesn't work for list of embeds)
* Add `:retain_unlisted_types_on_load` and `:nilify_unlisted_types_on_load` options
* MongoDB fix

## 4.0.x

* Support `sort_param` and `drop_param` for list of embeds
* Add `PolymorphicEmbed.HTML.Component.polymorphic_embed_inputs_for/1`
(similar to `Phoenix.Component.inputs_for/1`)
* Support updating list of embeds while retaining ids
* Add `:retain_unlisted_types_on_load` and `:nilify_unlisted_types_on_load` options
* Fix form input rendering for list of embeds
* Fix `traverse_errors` for nested embeds
* MongoDB fix

**Breaking Change**: The form helper `get_polymorphic_type/3` has been updated to `get_polymorphic_type/2`.
The module name parameter (previously the second parameter) has been removed.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ Add `polymorphic_embed` for Elixir as a dependency in your `mix.exs` file:
```elixir
def deps do
[
{:polymorphic_embed, "~> 4.0.0"}
{:polymorphic_embed, "~> 4.1.0"}
]
end
```
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 "4.0.0"
@version "4.1.0"

def project do
[
Expand Down

0 comments on commit 76d22cf

Please sign in to comment.