Skip to content

Releases: sugoiJS/ORM

Performance optimization

05 Nov 22:43

Choose a tag to compare

Package.json update and performance optimization

Bug fix

30 Oct 21:22

Choose a tag to compare

Bug fix

  • Clone calling constructor while casting.
    Clone method apply the class constructor function , this cause the casted object to be populated with unwanted data which should take place only for new objects.

New features

26 Oct 12:35

Choose a tag to compare

New features:

  • updateAll(query,data,options) - Update all the records which are meets the query.
  • skipRequiredFieldsValidation - skip the validation of @required fields

new features and optimization

12 Oct 14:16

Choose a tag to compare

New features

  • Property now allow to decorate with @Required() which indicate this property is mandatory.

Optimizaton

  • @Ignored() - logic was optimize for auto hide and better performance

Bug fixes

  • 'modelMeta' property wasn't hide during storing and sending the object

2.5.3

09 Oct 22:02

Choose a tag to compare

New features

@ignore decorator was added for easily prohibit object properties from getting into DB as response

optimization

  • connectable models optimized for easier configuration and better performance

2.3.2

19 Sep 17:22

Choose a tag to compare

Bug fix

  • #6 - remove didn't work for instance.
  • SortItem & SortOptions were not exported

2.3.0

12 Sep 16:40

Choose a tag to compare

New features

  • QueryOptions - query options now supported limit, offset and sort, those propagate into the emitters (findEmitter, removeEmitter, updateEmitter, saveEmitter).

  • (static method) updateById(id,data,queryOption) - Allow update/patch value without query the current value.

  • @ConnectionName(name:string) - set the connection name which need to be use for the model (Connectable models only), this connection first need to be initiate with setConnection method

Bug Fix

  • None

Full features for RESTFUL and DB Driven models

05 Sep 18:56

Choose a tag to compare

Features

  • Model support full lifecycle including validation
  • CRUD implemented
  • @ Primary() decorator
  • @ ModelName for set the model name without changing the class name