Skip to content

Version 6.5.1

Compare
Choose a tag to compare
@notheotherben notheotherben released this 17 Dec 06:29
· 289 commits to main since this release

This release adds a bit of new functionality (it should not break existing code) as well as fixes for some strange behaviour when working with complex object types.

Features

  • Transforms now receive additional context in the form of the property name and model upon which the transform is acting. This should allow you to create generic transforms which can be applied to a wide variety of models.
  • It is now possible to register a transform which applies on the document level by supplying the $document transform.

Documentation

  • Added a section on registering custom schema validators and transforms.
  • Added a section for examples of useful transforms.

Fixes

  • Various complex types are now cloned correctly, you will now see the correct MongoDB.ObjectID, MongoDB.Binary and Buffer types rather than strange object-analogues.