I wanted to push the discussion around 4.0 a little bit, summarize what is left to decide so 4.0 can be developed / released, and make a proposal:
- Support only Node >4 #5205. Benefits: native classes, native Promises, arrow functions. Implies #5878
- ES6 in Sequelize codebase #3951 (without Babel, classes, arrow functions)
- Make instances
instanceof Model
(with native classes) #5877- Better OOP semantics
define()
still works as Model factory- users can extend
Sequelize.Model
- awesome for type-safety / autocompletion
- alternative to
classMethods
/instanceMethods
/getterMethods
/setterMethods
Model.init()
static initializer attaches attribute metadata to the model- third-party module can define class/attribute decorators that does this for users of TypeScript / Babel - decorators are the perfect semantic for defining additional metadata for Sequelize on the attributes
- Need some way to register a model to a
Sequelize
instance / model manager,sequelize.add(Model)
?
Other than that, keep the API / concept changes small. Let users still use define()
like they are used to, but enable users of TS / Babel to explore new ways of defining models.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:14
- Comments:51 (48 by maintainers)
Top Results From Across the Web
4.0 Schools
At 4.0, we invest in community-centered models of education, providing coaching, curriculum, community and cash to those with the imagination to envision ...
Read more >Fourth Industrial Revolution - Wikipedia
The Fourth Industrial Revolution, 4IR, or Industry 4.0, conceptualizes rapid change to technology, industries, and societal patterns and processes in the ...
Read more >What is Industry 4.0 and how does it work? - IBM
Industry 4.0 is revolutionizing the way companies manufacture, improve and distribute their products. Manufacturers are integrating new technologies, ...
Read more >Attribution 4.0 International — CC BY 4.0 - Creative Commons
Attribution 4.0 International (CC BY 4.0). This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Read more >What is Industry 4.0—the Industrial Internet of Things (IIoT)?
Industry 4.0 refers to a new phase in the Industrial Revolution that focuses heavily on interconnectivity, automation, machine learning, and real-time data.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@janmeier any update on when this is expected to release?
@ralusek Hopefully soon 😃 - It’s getting closer at least. Docs are done now, but we’d still like to address a couple of things related to where conditions