From 3ce48fb71f65b2149cd1172de23d3d17d5dcca1e Mon Sep 17 00:00:00 2001 From: Zach Daniel Date: Thu, 5 Sep 2024 00:40:10 -0400 Subject: [PATCH 1/3] fix: fix type definition for `atomic_upgrade_with` --- lib/ash/resource/actions/destroy.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ash/resource/actions/destroy.ex b/lib/ash/resource/actions/destroy.ex index 27e0694d1..b93726d57 100644 --- a/lib/ash/resource/actions/destroy.ex +++ b/lib/ash/resource/actions/destroy.ex @@ -82,7 +82,7 @@ defmodule Ash.Resource.Actions.Destroy do default: false ], atomic_upgrade_with: [ - type: {:one_of, [:atom, nil]}, + type: {:or, [:atom, nil]}, doc: """ Configure the read action used when performing atomic upgrades. Defaults to the primary read action. """ From e8405b43b7549b483ba2df1c1164c40d77f771c8 Mon Sep 17 00:00:00 2001 From: Zach Daniel Date: Thu, 5 Sep 2024 00:45:01 -0400 Subject: [PATCH 2/3] chore: fix in one more place --- lib/ash/resource/actions/update.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ash/resource/actions/update.ex b/lib/ash/resource/actions/update.ex index c0d04b739..9776d9a29 100644 --- a/lib/ash/resource/actions/update.ex +++ b/lib/ash/resource/actions/update.ex @@ -79,7 +79,7 @@ defmodule Ash.Resource.Actions.Update do default: false ], atomic_upgrade_with: [ - type: {:one_of, [:atom, nil]}, + type: {:or, [:atom, nil]}, doc: """ Configure the read action used when performing atomic upgrades. Defaults to the primary read action. """ From de35b8049a2477a328d4dac289cfd8a12443bd4f Mon Sep 17 00:00:00 2001 From: Zach Daniel Date: Thu, 5 Sep 2024 13:08:00 -0400 Subject: [PATCH 3/3] chore: release version v3.4.5 --- CHANGELOG.md | 5 ++++- mix.exs | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 849f0a68e..5b99fa697 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,10 +2,13 @@ -## [v3.4.4](https://github.com/ash-project/ash/compare/v3.4.3...v3.4.4) (2024-09-05) +## [v3.4.5](https://github.com/ash-project/ash/compare/v3.4.4...v3.4.5) (2024-09-05) +### Bug Fixes: +- [update actions] fix type definition for `atomic_upgrade_with` +## [v3.4.4](https://github.com/ash-project/ash/compare/v3.4.3...v3.4.4) (2024-09-05) ## [v3.4.3](https://github.com/ash-project/ash/compare/v3.4.2...v3.4.3) (2024-09-04) diff --git a/mix.exs b/mix.exs index bc5c893c3..04de7fe16 100644 --- a/mix.exs +++ b/mix.exs @@ -6,7 +6,7 @@ defmodule Ash.MixProject do A declarative, extensible framework for building Elixir applications. """ - @version "3.4.4" + @version "3.4.5" def project do [