changelogs.md


jnterry/nano-orm

Repository  -  API  -  Source

0.7.4

March 4, 2018
  • Fix bug where loading a null datetime from database resulted in an invalid moment instance, rather than null

0.7.3

March 3, 2018
  • Ensure numbers and integers are output in JSON as numbers and integers, rather than strings containing numbrs

0.7.2

February 27, 2018
  • Add id field to JSON schema, and to toJSON output
    • Ensure fields that are not required and that are null are not include in the toJSON
    • Add unit tests to ensure the toJSON output meets the generated schema
    • Other misc JSON schema fixes

0.7.1

February 27, 2018
  • Ensure that type field of generated JSON schema is always a valid value according to the JSON Schema spec

0.7.0

February 19, 2018
  • Add support for "datetime" fields - automatically parse database string into moment instance
    • Add jsdoc style documentation

0.6.0

February 8, 2018
  • Add a .schema property which is automatically generated and conforms to the "JSON Schema" specification
    • Increase test coverage to 100%

0.5.0

January 27, 2018
  • Make toJSON include the field values only

0.4.0

January 26, 2018
  • Add createFromRows method
    • Make create() method also persist model to database
    • Add constructor which creates instance without persisting to database (to replace old functionality of create)
    • Ensure id field cannot be manually set - it is changed only when .save() is called on new instance

0.3.0

January 18, 2018
  • Convert to using db-connection-promise, the successor of any-db-q

0.2.2

August 18, 2017
  • Add .npmignore

0.2.1

August 18, 2017
  • Fix package.json dependencies, peerDependencies and devDependencies
    • Fix pacakge.json's main field

0.2.0

August 2, 2017
  • Add 'delete' method to Model to delete by ID without even loading the instance
    • Extend test suite
    • Fix numerous bugs handling models with non-default id field

0.1.0

August 1, 2017
  • Initial release
    • Add core Model class
    • Add methods for loading/persisting/finding models in DB