Skip to content

Releases: jnterry/nano-orm

Null Datetime Fix

04 Mar 21:54

Choose a tag to compare

Null Datetime Fix Pre-release
Pre-release
  • Fix bug where loading a null datetime from database resulted in an invalid moment instance, rather than null

JSON Schema Bug Fixes

27 Feb 23:15

Choose a tag to compare

JSON Schema Bug Fixes Pre-release
Pre-release
  • 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

JSON Schema Fix for Datetime Field

27 Feb 13:51

Choose a tag to compare

Pre-release
  • Ensure that type field of generated JSON schema is always a valid value according to the JSON Schema spec

Datetime fields previously had the type "datetime" which is not valid, hence parsing a model's JSON representation through a conformant JSON object validator based on the schema resulted in errors. Datetime fields are now considered to be "strings" in the JSON schema with no further restrictions.

Datetime Fields

19 Feb 23:42

Choose a tag to compare

Datetime Fields Pre-release
Pre-release
  • Add support for "datetime" fields - automatically parse database string into moment instance
  • Add jsdoc style documentation

JSON Schema

08 Feb 21:03

Choose a tag to compare

JSON Schema Pre-release
Pre-release
  • Add a .schema property which is automatically generated and conforms to the "JSON Schema" specification
  • Increase test coverage to 100%

JSON Serialization

27 Jan 14:05

Choose a tag to compare

JSON Serialization Pre-release
Pre-release

Make toJSON include the field values only, IE: don't include any internal state of the Model instance

Instance Creation

27 Jan 14:04

Choose a tag to compare

Instance Creation Pre-release
Pre-release
  • 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

Convert to db-connection-promise

18 Jan 22:16

Choose a tag to compare

Pre-release

Convert the library to use the new "db-connection-promise" library, which is the successor of any-db-q.

npmignore

18 Aug 14:01

Choose a tag to compare

npmignore Pre-release
Pre-release
  • Add .npmignore

Dependency Fix

18 Aug 13:54

Choose a tag to compare

Dependency Fix Pre-release
Pre-release
  • Fix package.json dependencies, peerDependencies and devDependencies
  • Fix pacakge.json's main field