Skip to content

Releases: sugoiJS/ORM

Performance optimization

Choose a tag to compare

@o-b-one o-b-one released this 05 Nov 22:43

Package.json update and performance optimization

Bug fix

Choose a tag to compare

@o-b-one o-b-one released this 30 Oct 21:22

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

Choose a tag to compare

@o-b-one o-b-one released this 26 Oct 12:35

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

Choose a tag to compare

@o-b-one o-b-one released this 12 Oct 14:16

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

Choose a tag to compare

@o-b-one o-b-one released this 09 Oct 22:02

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

Choose a tag to compare

@o-b-one o-b-one released this 19 Sep 17:22

Bug fix

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

2.3.0

Choose a tag to compare

@o-b-one o-b-one released this 12 Sep 16:40

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

Choose a tag to compare

@o-b-one o-b-one released this 05 Sep 18:56

Features

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