Releases: notheotherben/node-orm-timestamps
v0.2.1 Release
Fixes a bug in v0.2.0 which cause crashes whenever using the plugin.
These crashes were caused by an invalid value reference - see #5.
v0.2.0 Release
Adds the option to not persist created_at
and modified_at
properties to the database - meaning that they will only be present on objects stored in memory.
This functionality is useful in systems which need to keep track of when objects were modified for the duration of their lifespan - but do not care once they are disposed. Examples include MRU and LRU caches, stale-update validators etc.
v0.1.2 Release
Fixes a bug in the hook wrapper implementation which caused the correct this
property to be lost.
See #4
v0.1.1 Release
This update fixes handling of async hooks as well as allowing the created_at
and modified_at
properties to be set to false
to disable them.
It also takes advantage of the new beforeDefine
plugin method available in node-orm2
to allow vastly better handling of the models and simplified activation.