Szokodiakos Typegoose Versions Save

Typegoose - Define Mongoose models using TypeScript classes.

v5.9.0

4 years ago

Changelog

  • This should not be a breaking release
  • Hooks now support Regular Expression for names, like mongoose
  • Tests are splitted into their own files
  • Fixing itemsRefPath & adding tests
  • itemsRef now supports to be used with a string as model
  • @prop({ alias }) is now supported
  • Index weights are now supported
  • isDocument & isDocumentArray typeguards are now implemented
  • Updated Dependencies Note worthy are:
    • mongoose 5.6 is now required instead of 5.5
    • this project should be used with typescript 3.5+
  • @mapProp() is now implemented
  • Fix for @prop({ select })
  • A public version of buildSchema is now available
  • Added more Documentation to README
  • Added TSDOC to many functions and properties

Big thanks to @hasezoey and all others for making this release possible

v5.8.0

4 years ago

v5.8.1

4 years ago

5.7.2

4 years ago
  • Add type property to array schema to fix array defaults
  • Remove mongoose promise override

v5.7.0

4 years ago
  • Add virtual populate options - thanks to @hasezoey

v5.6.0

5 years ago
  • Removed lodash dependency (thanks to @luxcium )
  • Add string validation options (thanks to @neckaros )

v5.5.1

5 years ago

v5.5.0

5 years ago

This release brings support for instance methods on subschemas - thanks @cjanietz

v5.4.0

5 years ago

Features

  • Add @index class decorator

Fixes and Changes

  • Add missing spaces to error message (reflect-metadata)
  • Reduce NPM package size

v.5.3.0

5 years ago

Features

  • Updated 'ref' parameter to allow population by string - thanks to @ChristianPraiss
  • Support for custom validators - thanks to @vnenkpet
  • Add support for updateMany hook - thanks to @tac-aymeric

Other changes

  • Use Decimal128 from mongoose.Types
  • Update devDependencies - thanks to @marcelh-gh