Make instances instanceof Model, with ES6 classes (#5924)
* Make Instance an ES6 class
* Add esversion: 6 to jshintrc
* Make Model an ES6 class
* Merge Model class into Instance class
* Rename instance.js to model.js
* Remove name parameter from Model.init()
The name is set when subclassing the Model class
* Change sequelize.define() to a Model class factory
* Delete model.js
* Remove Model.Instance and Model.prototype.Model
* Fix JSHint issue
* Remove leftover require('./instance')
* Fix reference to old Instance class
* Remove references to old Instance class from main module
* Reorder imports to hopefully trigger Travis Build
* Fix _addOptionalClassMethods call
* Fix more references to .Instance
* Correct uses of .Model
* Fix use of this in closure
* Fix usage of instanceof Model
* Fix usage of .Model
* Fix usage of this in closure
* Fix usage of $Model
* Fix test for `plain` option
* Fix uses of .$Model
* Fix hooks
* Fix global hooks
* Make more tests pass
* Make more tests pass
* Fix Model.prototype references in findone test
* Change Model.schema()
* Fix instanceof checks in belongs-to-many association
* Fix Model.scope()
* Remove callback support from hooks
* Fix instanceof Model checks
* Fix usage of instanceof Model
* Change another occurence of .Model.name to .constructor.name
* Replace .constructor by .Model again
* Fix this inside closure
* Change test cosntructor assertions to instanceof checks
Showing
with
108 additions
and
124 deletions
lib/instance.js
deleted
100644 → 0
This diff is collapsed.
Click to expand it.
This diff could not be displayed because it is too large.
-
Please register or sign in to post a comment