medici

Double-entry accounting system for nodejs + mongoose

MIT License

Downloads
2.9K
Stars
300
Committers
10

Bot releases are hidden (Show)

medici - Latest Release

Published by koresar 5 months ago

  • feat: added index hint to use _id default index when the balance query is doing _id: { $gt: X }
medici -

Published by koresar 11 months ago

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

https://github.com/flash-oss/medici/compare/v6.3.3...v7.0.0

medici -

Published by koresar 11 months ago

  • fix: sorting for listAccounts() if cached value is used 06f3ab9
  • feat: better test befc781

https://github.com/flash-oss/medici/compare/v6.3.2...v6.3.3

medici -

Published by koresar 11 months ago

  • fix: restore the stable sorting of listAccounts() 51480c7

https://github.com/flash-oss/medici/compare/v6.3.1...v6.3.2

medici -

Published by koresar 11 months ago

  • sort the listAccounts() output to ensure consistent result throughout times bb8bec2

https://github.com/flash-oss/medici/compare/v6.3.0...v6.3.1

medici -

Published by koresar 11 months ago

  • Add mongoose v7 and v8 support, fix README.md d20f30d
  • Cache list account results (#111) fc5900c

https://github.com/flash-oss/medici/compare/v6.2.0...v6.3.0

medici -

Published by koresar over 1 year ago

New: mongoose v7 support, node v20 support.

  • chore: bump mongoose (#103) 1953085
  • Update README.md 4e9da65

https://github.com/flash-oss/medici/compare/v6.1.0...v6.2.0

medici - v6.1.0

Published by koresar over 1 year ago

medici -

Published by koresar over 1 year ago

  • 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

https://github.com/flash-oss/medici/compare/v5.2.2...v6.0.0

medici -

Published by koresar about 2 years ago

  • Bump sinon from 12.0.1 to 14.0.0 (#82) 7cb376a
  • Bump luxon from 2.3.0 to 3.0.1 (#80) b84aaba
  • chore: add .npmrc to project (#74) 243f8f9
  • Bump actions/setup-node from 2 to 3 (#76) e216189
  • use unknown to enforce type casting (#88) 1d19917
  • Bump actions/checkout from 2 to 3 (#77) 607c42a
  • add dependabot 05b6e6e
  • activate testing for node 18, dont use ci (#75) b79bfe5
  • fix: package dependencies for ts-mocha and eslint-plugin-promise (#73) b004889
  • Update README with 5.2 release notes eb17f08

https://github.com/flash-oss/medici/compare/v5.2.1...v5.2.2

medici -

Published by koresar over 2 years ago

  • Preserve the raw un-hashed key inside the medici_balances for DX and troubleshooting purposes 9cb8206

https://github.com/flash-oss/medici/compare/v5.2.0...v5.2.1

medici -

Published by koresar over 2 years ago

  • fix: safeSetKeyToMetaObject to include custom schema attributes (#70) 4d83496
  • fix: balance query with custom transaction model (#59) 6f36e1b
  • use deleteModel instead of directly deleting the model 3fa237b
  • Bump moment from 2.29.1 to 2.29.2 (#68) 9dd183a
  • Bump minimist from 1.2.5 to 1.2.6 (#67) 10ed8a8
  • Fixing snapshot key (#62) 40b0c3a
  • chore: add check code workflow + fix lint issues (#60) 7097564

https://github.com/flash-oss/medici/compare/v5.1.0...v5.2.0

medici -

Published by koresar almost 3 years ago

  • Recalc snapshot in the background after blanace() call (#57) 690b26a
  • Remove dependabot because too much spam. 2f3a9c7

https://github.com/flash-oss/medici/compare/v5.0.0...v5.1.0

medici -

Published by koresar almost 3 years ago

medici -

Published by koresar almost 3 years ago

medici -

Published by koresar almost 3 years ago

medici -

Published by koresar almost 3 years ago

medici -

Published by koresar almost 3 years ago

medici -

Published by koresar almost 3 years ago

medici -

Published by koresar almost 3 years ago