Skip to content

Releases: notheotherben/node-orm-timestamps

v0.2.1 Release

07 Nov 12:12
Compare
Choose a tag to compare

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

07 Nov 12:14
Compare
Choose a tag to compare

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

07 Nov 12:15
Compare
Choose a tag to compare

Fixes a bug in the hook wrapper implementation which caused the correct this property to be lost.

See #4

v0.1.1 Release

07 Nov 12:17
Compare
Choose a tag to compare

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.