From 7dcf61c0feea46c2d7066a1667750d5f1407615c Mon Sep 17 00:00:00 2001 From: Kip Cole Date: Wed, 1 Jan 2025 06:42:17 +1100 Subject: [PATCH] Update changelog --- CHANGELOG.md | 4 ++-- lib/money.ex | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f36da8f..bd9f395 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,11 +8,11 @@ This is the changelog for Money v5.19.0 released on January 1st, 2024. For olde ### Deprecations -* `Money.default_backend/0` is deprecated in favor of `Money.default_backend!/0` whose naming better expresses the side effect of an exception being raised if no default backend is configured. +* `Money.default_backend/0` is soft deprecated in favor of `Money.default_backend!/0` whose naming better expresses the side effect of an exception being raised if no default backend is configured. ### Bug Fixes -* Surface an error exception if, when starting the exchange rates service, no ex_cldr backend is configured. +* Surface an error exception if, when starting the exchange rates service, no `Money.default_backend!/0` is configured. ## Money v5.18.0 diff --git a/lib/money.ex b/lib/money.ex index 5a45ca3..8c7622b 100644 --- a/lib/money.ex +++ b/lib/money.ex @@ -2981,6 +2981,7 @@ defmodule Money do configured, an exception is raised. """ + @doc since: "5.19.0" def default_backend!() do cldr_default_backend = Application.get_env(Cldr.Config.app_name(), :default_backend) @@ -2993,7 +2994,7 @@ defmodule Money do """ end - @deprecated "Use Money.default_backend!/0" + @doc deprecated: "Use Money.default_backend!/0" def default_backend do default_backend!() end