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

mvom

Package Overview
Dependencies
Maintainers
3
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mvom - npm Package Versions

1
46

0.3.3

Diff

Changelog

Source

[0.3.3] - 2019-05-16

Fixed

  • Ensure that the count property returned from findAndCount is numeric
shawnmcknight
published 0.3.2 •

Changelog

Source

[0.3.2] - 2019-05-13

Added

  • Add new findByIds static model method which finds a list of documents by id.
  • Add new findAndCount static model method which returns both the documents matching the query as well as the count of all documents matching the query irrespective of skip and limit
kthompson23
published 0.3.1 •

Changelog

Source

[0.3.1] - 2018-12-21

Fixed

  • Fix an issue where enum validation returns a data validation error on null values on non-required fields
kthompson23
published 0.3.0 •

Changelog

Source

[0.3.0] - 2018-12-17

Breaking changes

  • Correctly format an attribute that only contains subvalued data. Previously this returned a string with embedded subvalue delimiters. This now returns a nested array.

Changed

  • Improve the performance of the server-side formatDocument routine on large records by switching to REMOVE and udoAppendArrayItem
  • Fix an abort from the U2 digest function when reading or overwriting a previously empty record
shawnmcknight
published 0.2.1 •

Changelog

Source

[0.2.1] - 2018-10-22

Added

  • The constant values for queries will now be converted from the external schema format to the internal u2 format. This affects the date/time types as well as Booleans.
  • Add support for specifying allowed enum values in the schema for string types
shawnmcknight
published 0.2.0 •

Changelog

Source

[0.2.0] - 2018-09-18

Breaking changes

  • Connections now accept a timeout parameter which will override the default of no timeout. The default remains to be no timeout.
  • The request and response properties of the ConnectionManager error object have now been renamed so they do not appear to be errors that directly came from axios. They are now connectionManagerRequest and connectionManagerResponse respectively.
  • The Connection class is no longer exported. Connections should be established via the createConnection method which now accepts all parameters that the Connection class accepts
  • mvom will no longer create a default winston logger if one is not passed to the connection constructor. All consumers who wish to have mvom provide logging should pass in their own logger (such as winston) which provides methods conforming to the npm log levels.

Changed

  • Nearly all dependencies and devDependencies have been updated to the latest versions
  • Db server tier errors can now be cast to error class instances. Errors due to record locking will now be cast to RecordLockedError and errors due to record version mismatches will be cast to RecordVersionError
  • Db server errors occurring during save will now enrich the error object with the filename and record id in the error object's other property
  • All errors thrown from mvom will now contain a source property with a value of mvom
shawnmcknight
published 0.1.0 •

Changelog

Source

[0.1.0] - 2018-08-10

Breaking changes

We've graduated from Alpha to Beta! Semver has been updated so breaking vs. non-breaking changes can be more easily identified go forward.

Fixed

  • A bug was discovered where a subdocument array could not reference a multi-part path. That is, the subdocument array had a path in the format of x.y indicating the data was located at a particular attribute and value and the array should iterate across the subvalue. In this structure, the properties in the subdocument arrays would end up empty. This has been corrected.
shawnmcknight
published 0.0.10 •

Changelog

Source

[0.0.10] - 2018-06-12

Changed

  • An object in the Schema is now only considered to be a "data definition" if it contains both a type and a path property. If an object doesn't contain both of these properties, it will be treated as a subdocument object instead of a data definition. The upshot of this is that type can now be used as a data-describing property in a Schema definition, provided that it does not appear alongside a path property in that same definition.
shawnmcknight
published 0.0.9 •

Changelog

Source

[0.0.9] - 2018-06-07

Added

  • Connection instances now expose getDbDate, getDbDateTime, and getDbTime functions. These can be used to calculate the date and time values as represented at the database layer since it is likely to differ from the layer running mvom. This will allow consumers to get these values so they can be provided in the data. Note: This information is cached with a tunable time period (default 1 hour) in order to provide low latency feedback but also reasonably handle shifts in the database time (e.g. daylight saving time, server migrations, etc.)
shawnmcknight
published 0.0.8 •

Changelog

Source

[0.0.8] - 2018-05-30

Breaking changes

  • Document constructor no longer accepts "record" -- instead it accepts an object of data
  • Plain objects can now be used with subdocuments, enabling far easier use of these structures
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