Skip to content

v4.0 #441

Closed
Closed

Description

@sushantdhiman

Milestone v4.0.0

  • Drop gulp dependency
  • Drop coffee script support
  • Cross platform CI (Linux and Windows)
  • Drop support for Node v0.12 or below
  • Codebase
    • ES 2015/2017, either use Node v4 base or babel build
    • Migrate codebase
    • Migrate tests
    • Use lodash/fp or ramda
  • Sequelize v4 Support moving model.associate outside classMethods due to sequelize@4.0.0 #470
  • Better documentation
    • Contribution Docs
    • Section in https://docs.sequelizejs.com
    • Explain available QueryGenerator functions like bulkInsert etc and how to properly use them
    • FAQs
  • Features / Support
    • db:create / db:drop
    • Proper error codes
    • Association support
    • Atomic migrations (using transactions, as far as database supports it)
    • TypeScript support (needs to be community contributed, after v4 is released)

Activity

  1. added this to the v4.0.0 milestone on Mar 25, 2017
  2. sushantdhiman commented on May 16, 2017

    @sushantdhiman
    ContributorAuthor
  3. Americas commented on May 16, 2017

    @Americas
    Collaborator

    @sushantdhiman yeah, I noticed after I asked 😛

  4. danielsalles commented on Jul 6, 2017

    @danielsalles

    What is left of the drop gulp? I'm not finding the issue of discussion.

  5. borislemke commented on Sep 13, 2017

    @borislemke

    TypeScript support would be superb. Is there a discussion I can follow? I'd love to contribute to this particular feature.

  6. danielsalles commented on Sep 13, 2017

    @danielsalles

    @borislemke TypeScript? I think not :(

  7. sushantdhiman commented on Sep 13, 2017

    @sushantdhiman
    ContributorAuthor

    I have never used TypeScript so I dont know what is expected out of TypeScript Support. @borislemke you may follow #328

  8. borislemke commented on Sep 13, 2017

    @borislemke

    @danielsalles @sushantdhiman but it's listed in the Milestone? Optional.TypeScript support

  9. AminTizdastAzar commented on Sep 26, 2017

    @AminTizdastAzar

    The models created by sequelize-cli v3 is not compatible with last version of sequelize and you explained this in docs. I want to know what is the estimation time for launching sequelize-cli V4? because older version generates files that I need to change them again manually.
    Thanks

  10. sushantdhiman commented on Sep 27, 2017

    @sushantdhiman
    ContributorAuthor

    @aminTiz I simply dont owe you any estimates, I work in my free time :). If you want things to progress faster help me out with implementing things.

  11. AminTizdastAzar commented on Sep 27, 2017

    @AminTizdastAzar

    @sushantdhiman I will be more than happy to help you. Just give me the guidelines to start please.

  12. sushantdhiman commented on Sep 27, 2017

    @sushantdhiman
    ContributorAuthor

    @aminTiz For starters you can start with #222, Its a long standing issue but should be easy to fix. Just verify attributes generated are having a type which is valid in Sequelize, around here

    attributes: this.transformAttributes(args.attributes),

    Please read our contribution guide https://github.com/sequelize/cli/blob/master/CONTRIBUTING.md#fixing-bugs-or-implementing-features to setup your development environment

  13. leodutra commented on Oct 5, 2017

    @leodutra

    @sushantdhiman Will remove classMethods from model template?

  14. 9 remaining items

  15. milkchocolate commented on Jan 18, 2018

    @milkchocolate

    How can I try cli 4.0?

  16. johnkpaul commented on Feb 1, 2018

    @johnkpaul

    @buddylindsey For me, it's not clear how to understand the differences. I am new to using sequelize, so I don't have v3 usage to compare to and understand what tweaks I need to make.

    Is there a reference or blog post or something to follow to find the tweaks?

  17. ryanburnette commented on Feb 1, 2018

    @ryanburnette

    I'm new too, but I'm using cli v3 with Sequelize v4. I used cli generators, then went line by line in the generated code, cross-referencing the results against the v4 changes posted in the Sequelize docs. It's time-consuming, but it lets you get most of the benefits of cli v3 and learn a lot about Sequelize v4 in the process.

    It would have taken me several times as long to get the prototype app I was working on built and it wouldn't have been nearly as good if I hadn't taken this approach.

  18. johnkpaul commented on Feb 2, 2018

    @johnkpaul

    @ryanburnette thank you, that's really helpful both as a link to docs and as an attitude toward learning. After going through that I'm much more clear on how to continue to use the cli v3.

  19. sascha1337 commented on Feb 7, 2018

    @sascha1337

    When release need this so much folks
    Any working branch ? cmon

  20. sushantdhiman commented on Feb 14, 2018

    @sushantdhiman
    ContributorAuthor

    Sorry for all this delay guys, I am busy with Sequelize and I am afraid there is no change in that. In short term future my contribution to CLI will be very limited.

    Here is my immediate plan for CLI, #470 (comment), @buddylindsey offered help to fix classMethods / instanceMethods , once that PR is merged I will release new version of v4.

    For long term future and completing featured listed in v4 milestone and other issues, I would like your help. If you use CLI and would like to improve it please send some PRs, I will be very happy to share push access to repository so you can eventually maintain it.

    Notes for future maintainers

    1. CLI currently does not attract much traffic, So 2 hour (more if you want to write patches) a week should be enough to maintain it. I am not forcing you to commit some time weekly but some active maintenance work now and then will be much better than dead project. (For example, For Sequelize I usually give 1 hour a day for issue triage, Whole Saturday for patch work or fixes)
    2. You use CLI for your projects, so you already know its shortcomings and improve it for your own good
    3. Writing patches is easiest thing, maintaining issues and reviews will be consuming most of your time
  21. buddylindsey commented on Feb 15, 2018

    @buddylindsey
    Contributor

    FYI @sushantdhiman has pushed a v4 of sequelize-cli to npm.

  22. leodutra commented on Jun 19, 2018

    @leodutra

    IMHO, please consider this for 4.0:

    • add to documentation Postgres (and maybe others) does not order ascending by default, on findAll();
    • enforce { foreignKey: { allowNull: false } } for relations where null is not expected;
    • underscore: true expectations underscore / camelcase option should control all fields and table name generation sequelize#6423;
    • sequelize migrations does not create automigrations like Django, but there's a lib covering it (which Sequelize should embrace and colaborate... or at least not break compatibility for a while);
    • async await incompatibilities due to node-continuation-local-storage. Use cls-hooked for transactions on ES6+ node setups;
    • way to safe query tables with sensitive information like password Attribute scoping proposal sequelize#1462. I solved this with toJSON and sequelize hooks... but it would be to have seen something like this in the docs;
    • set table plural/singular names for really effective setter/getter generation on languages others than english. Portuguese, as an example, has "Organização" and "Organizações" (plural) and we would not have a setOrganizacoes, of course, without that setup.

    Just went from zero to 5 services using Sequelize, in 2 organizations, and those were the most persistent issues/tricks across them. A lot of Google queries and Github issues (not really issues but questions)...

  23. sushantdhiman commented on Jun 19, 2018

    @sushantdhiman
    ContributorAuthor

    Not much time at hand @leodutra , all I can do is accept PRs

  24. leodutra commented on Jun 19, 2018

    @leodutra

    Ok... at least is reported for whenever I/community get some spare time.
    And, thank you for the amazing work.

  25. greyscaled commented on Jun 19, 2018

    @greyscaled

    I want to start getting involved with what I can with the project. One of the things that's deterring me, however, is that I cannot get the tests to run locally (I'm on Windows, if that makes a difference). The documentation for contributing simply states:

    Start with cloning Sequelize CLI repo
    ...
    Make sure you have all required dependencies, you will need
    - Node v4 or above
    - NPM v3 or above
    ...
    npm install
    npm test
    

    but this crashes on windows - even with sqlite etc installed. Was there a change to installation requirements along the way?

    I have been pushing to my own playground branch to run tests on Travis, as that's all I can really do.

    The point is, if there's going to be a slow shift in repository maintenance/community involvement, I think this is something that needs to be perhaps be updated or addressed (or at least listed as linux-only) in the contributing docs.

  26. sushantdhiman commented on Jun 19, 2018

    @sushantdhiman
    ContributorAuthor

    I am trying to get CI running against windows #657, Hopefully that will iron out any platform related issues.

    Apart from some filesystem related issues its almost ready, see if you can help us with that @vapurrmaid , Just take my commits, open a new PR and try to fix remaining tests

  27. greyscaled commented on Jun 19, 2018

    @greyscaled

    I'll certainly see if I can help there - thanks for the link

  28. added a commit that references this issue on Jun 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions