chore(deps): update dependency ex_money_sql to v2 - #261
Open
renovate[bot] wants to merge 1 commit into
Open
Conversation
Contributor
Author
|
renovate
Bot
force-pushed
the
renovate/ex_money_sql-2.x
branch
from
May 18, 2026 15:07
3930f07 to
1feb6d6
Compare
renovate
Bot
force-pushed
the
renovate/ex_money_sql-2.x
branch
from
June 22, 2026 18:57
1feb6d6 to
0d7da12
Compare
renovate
Bot
force-pushed
the
renovate/ex_money_sql-2.x
branch
from
July 12, 2026 18:18
0d7da12 to
e410b78
Compare
renovate
Bot
force-pushed
the
renovate/ex_money_sql-2.x
branch
from
July 20, 2026 20:40
e410b78 to
349b14e
Compare
renovate
Bot
force-pushed
the
renovate/ex_money_sql-2.x
branch
from
August 1, 2026 04:18
349b14e to
a262b36
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
~> 1.0→~> 2.0Release Notes
ex-money/money_sql (ex_money_sql)
v2.1.0Compare Source
This is the changelog for Money_SQL v2.1.0 released on July 31st, 2026.
Changed
Money.DDLnow generates its SQL fromLocalize.Ecto.TaggedDecimal.DDLin localize_sql instead of reading bundled.sqlfiles. A money amount is a tagged decimal — a currency code paired with an amount — so it shares the composite type, aggregate and operator machinery with units rather than defining its own.The public API is unchanged, as are the
money_with_currencytype, every generated function name and the SQLSTATE (22033) raised on a currency mismatch, so an existing database needs no migration.Requires
ex_money ~> 6.2(raised from~> 6.0) and the newlocalize_sql ~> 1.0.postgrexis now a declared dev and test dependency rather than an undeclared transitive one.The bundled
.sqlfiles thatMoney.DDLused to read are removed, since the SQL is now generated. Editing one had no effect on the emitted migration.priv/SQL/postgres/get_currency_code_type.sqlremains —Money.Migrationstill reads it to detect whether an existingmoney_with_currencytype usesvarcharorchar(3).A GitHub Actions workflow runs the test suite against PostgreSQL across Elixir 1.17–1.20 and OTP 26–29, with formatting, Credo, coverage, dialyzer and documentation checks on the canonical entry.
config/test.exsnow reads its database settings from the libpq environment variables, so the same configuration serves CI and local development.Money.SQL.JSONadapts the Erlang:jsonmodule to the interface Postgrex expects of a:json_library, soconfig :postgrex, :json_library, Money.SQL.JSONworks on every supported Elixir and OTP version. The previously suggestedJSONmodule requires Elixir 1.18, which this library does not: it supports 1.17.Fixed
The generated unary
-operator now namesmoney_negate, the function it defines; it previously namedmoney_neg, so the migration failed. No mix task emitted it, so it was dormant.test_coveragenamed ExCoveralls without depending on it, somix test --coverfailed.excoverallsis now a test dependency and coverage is enforced at 90%.The two doctests in
Money.DDLnever compiled — their escapes were interpreted by the surrounding heredoc, producing invalid syntax. They now use~Sheredocs and run.The
sum,minandmaxcombine functions no longer reference an undeclared variable in their currency-mismatch branch, which would raise inside a parallel aggregate rather than reporting the mismatch.minandmaxare created withCREATE OR REPLACE AGGREGATE, so re-running the migration succeeds as it already did forsum.The generated infix
-operator no longer declarescommutator = -; subtraction is not commutative.Money.Migrationmatches the query result structurally rather than as aPostgrex.Resultstruct, so the module compiles whenpostgrexis not loaded.v2.0.0Compare Source
This is the changelog for Money_SQL v2.0.0 released on April 24th, 2026.
Breaking changes
The public API has not changed - just the dependency matrix. There should be no upgrade issues for current users beyond the changes in
ex_money6.0.Supported on Elixir 1.17 or later only.
Requires
ex_money ~> 6.0, which replaces theex_cldrfamily of dependencies with the unified localize package. As a result, the CLDR backend module (e.g.MyApp.Cldr) and the:default_cldr_backendconfiguration key are no longer used. Configure locales viaconfig :localizeinstead. See the ex_money 6.0 migration guide for details.The error message format for
Money.UnknownCurrencyErrornow follows theex_money 6.0convention (for example"The currency :AAA is not known."). Tests asserting on the previous message text will need to be updated.jasonis no longer a declared dependency. Postgrex defaults toJasonforjson/jsonbcolumns; configureconfig :postgrex, :json_library, JSON(Elixir 1.18+) and runmix deps.compile postgrex --forceonce since Postgrex captures this setting at compile time.Configuration
📅 Schedule: (UTC)
* 0-3 * * *)🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.