From 6ec06ca867e92a330605e4e8d329cefb202d06d5 Mon Sep 17 00:00:00 2001 From: Zach Daniel Date: Wed, 17 May 2023 22:37:39 -0400 Subject: [PATCH] chore: release version v2.9.9 --- CHANGELOG.md | 9 +++++++++ README.md | 2 +- documentation/tutorials/get-started.md | 2 +- lib/ash/resource/schema.ex | 12 ++++-------- mix.exs | 2 +- 5 files changed, 16 insertions(+), 11 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7449f3e1..c25dff59 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,15 @@ See [Conventional Commits](Https://conventionalcommits.org) for commit guideline +## [v2.9.9](https://github.com/ash-project/ash/compare/v2.9.8...v2.9.9) (2023-05-18) + + + + +### Bug Fixes: + +* errors on casting arrays of unions in newtypes + ## [v2.9.8](https://github.com/ash-project/ash/compare/v2.9.7...v2.9.8) (2023-05-17) diff --git a/README.md b/README.md index 34d5221a..cf85cc92 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ ```elixir def deps do [ - {:ash, "~> 2.9.8"} + {:ash, "~> 2.9.9"} ] end ``` diff --git a/documentation/tutorials/get-started.md b/documentation/tutorials/get-started.md index c00c9db8..7ba18042 100644 --- a/documentation/tutorials/get-started.md +++ b/documentation/tutorials/get-started.md @@ -73,7 +73,7 @@ defp deps do [ # {:dep_from_hexpm, "~> 0.3.0"}, # {:dep_from_git, git: "https://github.com/elixir-lang/my_dep.git", tag: "0.1.0"}, - {:ash, "~> 2.9.8"} # <-- add this line + {:ash, "~> 2.9.9"} # <-- add this line ] end ``` diff --git a/lib/ash/resource/schema.ex b/lib/ash/resource/schema.ex index b1f99045..deff7ccc 100644 --- a/lib/ash/resource/schema.ex +++ b/lib/ash/resource/schema.ex @@ -175,26 +175,23 @@ defmodule Ash.Schema do :ok %{type: :belongs_to} -> - belongs_to(relationship.name, relationship.destination, + belongs_to relationship.name, relationship.destination, define_field: false, references: relationship.destination_attribute, foreign_key: relationship.source_attribute - ) %{type: :has_many} -> - has_many(relationship.name, relationship.destination, + has_many relationship.name, relationship.destination, foreign_key: relationship.destination_attribute, references: relationship.source_attribute - ) %{type: :has_one} -> - has_one(relationship.name, relationship.destination, + has_one relationship.name, relationship.destination, foreign_key: relationship.destination_attribute, references: relationship.source_attribute - ) %{type: :many_to_many} -> - many_to_many(relationship.name, relationship.destination, + many_to_many relationship.name, relationship.destination, join_through: relationship.through, join_keys: [ {relationship.source_attribute_on_join_resource, @@ -202,7 +199,6 @@ defmodule Ash.Schema do {relationship.destination_attribute_on_join_resource, relationship.destination_attribute} ] - ) end Module.put_attribute( diff --git a/mix.exs b/mix.exs index e257fb73..83dd96b8 100644 --- a/mix.exs +++ b/mix.exs @@ -7,7 +7,7 @@ defmodule Ash.MixProject do designed to be used by multiple front ends. """ - @version "2.9.8" + @version "2.9.9" def project do [