From a610c4a1ede6b92fac08412b88af19cb01048f11 Mon Sep 17 00:00:00 2001 From: mathieuprog <5883963+mathieuprog@users.noreply.github.com> Date: Thu, 25 Aug 2022 06:45:15 +0200 Subject: [PATCH] Bump version to 3.0.0 --- CHANGELOG.md | 8 ++++++++ README.md | 2 +- mix.exs | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c4b8cd4..a9e213f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 3.0.x + + * Default value for polymorphic list of embeds is `[]` instead of `nil` (following `embeds_many/3`) + +### Migration from 2.x to 3.x + + * Use `polymorphic_embeds_one/2` and `polymorphic_embeds_many/2` macros instead of `field/3` + ## 2.0.x * Support IDs diff --git a/README.md b/README.md index 2de09e8..bdfe32d 100644 --- a/README.md +++ b/README.md @@ -256,7 +256,7 @@ Add `polymorphic_embed` for Elixir as a dependency in your `mix.exs` file: ```elixir def deps do [ - {:polymorphic_embed, "~> 2.0.1"} + {:polymorphic_embed, "~> 3.0.0"} ] end ``` diff --git a/mix.exs b/mix.exs index cd2b383..fdc451c 100644 --- a/mix.exs +++ b/mix.exs @@ -1,7 +1,7 @@ defmodule PolymorphicEmbed.MixProject do use Mix.Project - @version "2.0.1" + @version "3.0.0" def project do [