Skip to content

Releases: WebFreak001/MongoSchemaD

v5.0.1

02 Apr 11:22
94939cd
Compare
Choose a tag to compare

fixed insertMany function signature (was non-functional before due to using the wrong argument type)

v5.0.0

05 Feb 16:18
f691eb1
Compare
Choose a tag to compare

What's Changed

Full Changelog: v4.2.1...v5.0.0

v4.2.1

10 Jun 22:18
Compare
Choose a tag to compare
  • workaround remove not being @safe

v4.2.0

10 Jun 22:10
Compare
Choose a tag to compare
  • fixed vibe.d aggregate not being @safe
  • add int overload for mongoExpire
  • support new vibe.d index models

v4.1.0

04 Oct 19:26
Compare
Choose a tag to compare
  • added const bsonID overload
  • made most SchemaVariant methods const/inout

v4.0.0

02 Sep 00:40
Compare
Choose a tag to compare
  • support for SysTime (de)serialization
  • Query no longer includes fields with custom encode/decode callbacks
  • (de)serialization will no longer compile for empty types. Either provide encode/decode callbacks, implement toBson, fromBson or mark as ignored

v3.1.1

03 Jul 20:11
Compare
Choose a tag to compare

v3.1.0

24 Jan 01:02
Compare
Choose a tag to compare
  • query functions are now @safe if their memberToBson counterparts are too
  • SchemaPipeline (aggregation) now supports query syntax for match and allows any value to be serialized as other arguments
  • numbers (int, float, short, byte, etc) are now all supported and convert between each other. As the MongoDB CLI by default inserts doubles for any number, integral values cast down from floats
  • implement static array deserialization

v3.0.0

16 Jan 20:18
Compare
Choose a tag to compare
  • Split code into multiple packages, but mongoschema package still includes them all
  • Added SchemaVariant!(Types...) struct which is a variant that serializes depending on the stored value and deserializes back to it.
  • ints implicitly convert to longs now when reading
  • added tryFind overloads which return a default value instead of nullables
  • added a new query framework. You can now do typesafe searches using MySchema.findOne(query!MySchema.key1(value1).key2(value2).someInt.gte(40))

v2.6.0

09 Jul 17:06
Compare
Choose a tag to compare

Add safe collection getter
Added merge method to save only fields that are specified in the schema. (For multiple schemas operating on the same collection)
Added insertMany method to handle inserting many elements at once (also supporting ranges).