Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

medici

Package Overview
Dependencies
Maintainers
2
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

medici - npm Package Compare versions

Comparing version 5.2.1 to 5.2.2

10

package.json
{
"name": "medici",
"version": "5.2.1",
"version": "5.2.2",
"description": "Simple double-entry accounting for Node + Mongoose",

@@ -67,7 +67,7 @@ "main": "build/index.js",

"eslint-plugin-import": "^2.25.3",
"eslint-plugin-promise": "^5.2.0",
"eslint-plugin-promise": "^6.0.0",
"eslint-plugin-security": "^1.4.0",
"eslint-plugin-security-node": "^1.0.14",
"eslint-plugin-sonarjs": "^0.11.0",
"luxon": "^2.3.0",
"luxon": "^3.0.1",
"mocha": "^9.1.3",

@@ -79,4 +79,4 @@ "moment": "^2.29.1",

"rimraf": "^3.0.2",
"sinon": "^12.0.1",
"ts-mocha": "^8.0.0",
"sinon": "^14.0.0",
"ts-mocha": "^9.0.2",
"tsd": "^0.19.0",

@@ -83,0 +83,0 @@ "typescript": "^4.5.4"

@@ -405,4 +405,10 @@ # medici

### v5.1.0
### v5.2
- The balances cache primary key is now a SHA1 hash of the previous value. Before: `"MyBook;Account;clientId.$in.0:12345,clientId.$in.1:67890,currency:USD"`. After: `"\u001b\u0004NÞj\u0013rÅ\u001b¼,F_#\u001cÔk Nv"`. Allows each key to be exactly 40 bytes (20 chars) regadless the actual balance query text length.
- But the old raw unhashed key is now stored in `rawKey` of `medici_balances` for DX and troubleshooting purposes.
- Fixed important bugs #58 and #70 related to retrieving balance for a custom schema properties. Thanks @dolcalmi
### v5.1
The balance snapshots were never recalculated from the beginning of the ledger. They were always based on the most recent snapshot. It gave us speed. Although, if one of the snapshots gets corrupt or an early ledger entry gets manually edited/deleted then we would always get wrong number from the `.balance()` method. Thus, we have to calculate snapshots from the beginning of the ledger at least once in a while.

@@ -417,3 +423,3 @@

### v5.0.0
### v5.0

@@ -471,3 +477,3 @@ High level overview.

### v4.0.0
### v4.0

@@ -478,3 +484,3 @@ - Node.js 8 is required now.

### v3.0.0
### v3.0

@@ -484,3 +490,3 @@ - Add 4 mandatory indexes, otherwise queries get very slow when transactions collection grows.

### v2.0.0
### v2.0

@@ -491,3 +497,3 @@ - Upgrade to use mongoose v5. To use with mongoose v4 just `npm i medici@1`.

### v1.0.0
### v1.0

@@ -494,0 +500,0 @@ _See [this PR](https://github.com/flash-oss/medici/pull/5) for more details_

@@ -1,2 +0,2 @@

// Generated by dts-bundle-generator v6.2.0
// Generated by dts-bundle-generator v6.12.0

@@ -104,3 +104,3 @@ import { ClientSession, Document, Schema, Types } from 'mongoose';

export declare function setLockSchema(schema: Schema, collection?: string): void;
export declare function mongoTransaction<T = unknown>(fn: (session: ClientSession) => Promise<T>): Promise<any>;
export declare function mongoTransaction<T = unknown>(fn: (session: ClientSession) => Promise<T>): Promise<void>;
export declare function initModels(): Promise<void>;

@@ -140,4 +140,7 @@ /**

}
export default Book;
export {
Book as default,
};
export {};
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc