Skip to content
This repository has been archived by the owner on Sep 17, 2024. It is now read-only.

Latest commit

 

History

History
45 lines (34 loc) · 1.6 KB

CHANGES.md

File metadata and controls

45 lines (34 loc) · 1.6 KB

platos-model Change Log

Backlog

  • Better find() support for inheritance.

0.8.0

  • Replaced the hook library which has enhanced functionality slightly.
  • Changed the inheritance model from util.inherits to Model.inherits().
  • New in-built utility functions for sanitising a document upon storage.

0.7.0

  • Added Model.insert() support for bulk-inserting of documents into a collection.
  • Added Model.drop() support for completely removing collections.

0.6.1

  • Fixed an inheritance issue when used with cursors.

0.6.0

  • All methods that pull instances from the database will call model.retrieve() on each instance.
  • Inheritance support via util.inherits() - can save multiple child models to a single collection for polymorphism-like retrieval.

0.5.1

  • Fixed a couple bugs when not supplying callbacks to certain methods.
  • Enabled support for all cursor functions - limit(), skip(), etc.

0.5.0

  • save() can now accept an object to save to the database without changing the instance.
  • find() now returns a mock cursor that will allow chaining: model.find().sort().

0.4.0

  • A few bug fixes.
  • Now exposes any created Model via the global platos-model package.
  • New built-in prototypal inheritance pattern.

0.3.0

  • Added update() support via static or instance methods.

0.2.0

  • Multi-tenancy support added for find(), save() and remove().
  • find() now returns instances of Model instead of Objects.

0.1.0

  • Ability to create and instantiate Models.
  • Ability to find(), save() or remove() model instances to MongoDB.
  • Ability to add pre() or post() hooks to static methods belonging to Model.