question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 7 years ago
  • Reactions:14
  • Comments:51 (48 by maintainers)

github_iconTop GitHub Comments

4reactions
ralusekcommented, Apr 10, 2017

@janmeier any update on when this is expected to release?

3reactions
janmeiercommented, Apr 12, 2017

@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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found