Skip to content

Releases: flash-oss/medici

v7.1.0

28 Nov 06:20
Compare
Choose a tag to compare
  • feat: When voiding an entry, add option to use date of original entry for the voiding entry, instead of the current date #118 by @tudorelu

v7.0.1

14 May 07:44
Compare
Choose a tag to compare
  • feat: added index hint to use _id default index when the balance query is doing _id: { $gt: X }

v7.0.0

08 Dec 07:27
Compare
Choose a tag to compare

BREAKING: This release would add new (default) indexes to your databases. Please, remove old and/or unused indexes yourself.

Reasoning and details

Unluckily, all the default indexes were suboptimal. The book property always had the lowest cardinality. However, we always query by the book first and then by some other properties. Thus all the default indexes were near useless.

This release fixes the unfortunate mistake.

  • The book property cardinality was moved to the beginning of all default indexes.
  • Most of the default indexes were useless in majority of use cases. Thus, were removed. Only 4 default indexes exist in medici v7.0:
    • _id
    • _journal
    • book,accounts,datetime
    • book,account_path.0,account_path.1,account_path.2,datetime
  • The datetime is the only one to be used in the default indexes. Additional timestamp doesn't make any sense.
  • Removed the book.listAccounts() caching which was added in the previous release (v6.3). The default indexes cover this use case now. Moreover, the index works faster than the cache.

Commits:

  • feat: remove the recently added listAccount() caching as useless after the default indexes revamp e91723c
  • feat: better default indexes 73c6c9a

v6.3.3...v7.0.0

v6.3.3

08 Dec 00:01
Compare
Choose a tag to compare
  • fix: sorting for listAccounts() if cached value is used 06f3ab9
  • feat: better test befc781

v6.3.2...v6.3.3

v6.3.2

04 Dec 10:11
Compare
Choose a tag to compare
  • fix: restore the stable sorting of listAccounts() 51480c7

v6.3.1...v6.3.2

v6.3.1

01 Dec 07:54
Compare
Choose a tag to compare
  • sort the listAccounts() output to ensure consistent result throughout times bb8bec2

v6.3.0...v6.3.1

v6.3.0

30 Nov 02:49
Compare
Choose a tag to compare
  • Add mongoose v7 and v8 support, fix README.md d20f30d
  • Cache list account results (#111) fc5900c

v6.2.0...v6.3.0

v6.2.0

11 Jun 11:59
Compare
Choose a tag to compare

New: mongoose v7 support, node v20 support.

v6.1.0...v6.2.0

v6.1.0

02 May 02:23
Compare
Choose a tag to compare

v6.0.0...v6.1.0

What's Changed

Full Changelog: v6.0.0...v6.1.0

v6.0.0

26 Apr 01:15
Compare
Choose a tag to compare
  • Drop node 12 and 14 support. Only 16 and 18 are supported now. 01cb430
  • By default use the secondary nodes (if present) of your MongoDB cluster to calculate balances 35fa920
  • Add unit test which ensures the journal ID can be a string 2a8c906

v5.2.2...v6.0.0