Skip to content

Commit

Permalink
Update changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
kipcole9 committed Dec 31, 2024
1 parent 6e01c56 commit 7dcf61c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
3 changes: 2 additions & 1 deletion lib/money.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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
Expand Down

0 comments on commit 7dcf61c

Please sign in to comment.