Skip to content

Releases: antonagestam/immoney

0.11.0

19 Oct 16:59
312aa50
Compare
Choose a tag to compare

What's Changed

This release adds support for Python 3.13.

Full Changelog: 0.10.0...0.10.1

0.10.0

18 Aug 11:35
041fcf9
Compare
Choose a tag to compare

What's Changed

Full Changelog: 0.9.0...0.10.0

0.9.0

26 Jul 09:26
bc0b80f
Compare
Choose a tag to compare

What's Changed

Full Changelog: 0.8.0...0.9.0

0.8.0

07 Nov 17:57
042b254
Compare
Choose a tag to compare

What's Changed

Full Changelog: 0.7.0...0.8.0

0.7.0

05 Nov 21:42
f609ac5
Compare
Choose a tag to compare

This is a big milestone in completeness and stability. The sequence-of-operations property test had been on my list of things for a long time, finally writing it did two things:

  • Revealed some operations on SubunitFraction and Overdraft that were glaringly missing.
  • Helped identify a bug in Money.__rtruediv__ that would have otherwise passed its unit tests (it failed raising an exception for division by zero and instead returned zero).

So quite a big yield for a moderately sized investment.

What's Changed

Full Changelog: 0.6.0...0.7.0

0.6.0

05 Nov 13:41
c8944de
Compare
Choose a tag to compare

What's Changed

Full Changelog: 0.5.0...0.6.0

0.5.0

05 Nov 11:21
dd91fe5
Compare
Choose a tag to compare

What's Changed

  • feature: Implement __str__ and __repr__ without Decimal by @antonagestam in #70
  • chore: Split test_base into separate modules per entity by @antonagestam in #71

Full Changelog: 0.4.0...0.5.0

0.4.0

09 Oct 19:56
9131e75
Compare
Choose a tag to compare

What's Changed

⚠️ Note! There are multiple breaking changes in this release.

Overdraft can no longer have value=0

In order to make Overdraft disjoint with the Money type, and make sure there is a single answer to the question "how is zero money represented?", the Overdraft type has been updated to give an error for such instantiations. With this same change, Overdraft was also updated to carry its own value and currency, these are now accessed through the .subunits and .currency attributes. The .money attribute has been removed.

Decimal is replaced with int

This means that Money and Overdraft no longer has an internal Decimal value, but instead carries a .subunits integer attribute. An ad-hoc Decimal can be constructed through the .decimal property on both types.

Swap __truediv__ and __floordiv__

The implementations of / and // have swapped places for Money, which means SEK(1) / 1 now returns a SubunitFraction instead of a tuple of Money instances.

Full Changelog: 0.3.1...0.4.0

0.3.1

26 Aug 17:39
7511220
Compare
Choose a tag to compare

What's Changed

Thanks to @mahmoud for reporting the schema inconsistencies for Money and Overdraft 🍰

Full Changelog: 0.3.0...0.3.1

0.3.0

20 Jun 22:04
ff634c9
Compare
Choose a tag to compare

What's Changed

Full Changelog: 0.2.0...0.3.0