Skip to content

[7.0] Drop support for Node.js v0.10 and v0.12 (T7392) #4315

Closed

Description

@babel-bot

Issue originally made by @mathiasbynens

Description

https://github.com/babel/babel/blob/master/doc/design/compiler-environment-support.md

Node.js v0.10 and v0.12 are both in maintenance mode as per https://github.com/nodejs/LTS#lts-schedule. IMHO it doesn’t make sense to continue to support them.

Supporting only Node.js v4+ would enable Babel and its dependencies (such as regexpu, the project I work on) to publish code that uses supported ES6 features without transpiling at prepublish.

Developers still using such old versions in their build environment can upgrade to a more recent Node.js version or use the last Babel version that supports their Node.js. (This is also how the jsdom project deals with old Node.js versions.) In other words, no one’s workflow would break because of this.

Similar discussion for the ESLint project: eslint/eslint#4483

Activity

  1. babel-bot commented on May 29, 2016

    @babel-bot
    CollaboratorAuthor

    Comment originally made by @loganfsmyth

    I think the biggest question that needs to be answered for me to be happy with an change here is, how do we feel about users on non-Node platforms. We've never particularly clearly defined what platforms we 100% aim to support. We've mostly said no to older IE, but Babel up until now has functioned fine on browsers, and since it functions on ES5 platforms in general, it is used other places too. The maintainer of babel-standalone for instance, @daniel, maintains it for use in https://github.com/reactjs/React.NET so that people on non-Node platforms can make use of React. I've also had discussions on Slack and seen questions on SO from people using Babel via Nashorn.

    I understand the desire to run native ES6, but beyond "native ES6 is cool", I have yet to see a sufficiently good argument for leaving ES5 behind.

  2. babel-bot commented on May 30, 2016

    @babel-bot
    CollaboratorAuthor

    Comment originally made by @Daniel15

    For babel-standalone I'm already using Webpack + Babel to compile Babel itself and I only publish the compiled version to npm and Bower, so it's probably not actually much of an issue in that case. I can just add extra build steps if needed. Pretty much everything that's using Babel outside of Node.js (such as ReactJS.NET, as well as people calling Babel directly via Ruby, Java, Python, whatever) are using babel-standalone now.

  3. babel-bot commented on May 30, 2016

    @babel-bot
    CollaboratorAuthor

    Comment originally made by @mathiasbynens

    I have yet to see a sufficiently good argument for leaving ES5 behind.

    Is performance a sufficiently good argument? Native Map and Set performance beats transpiled code/polyfills. That is my specific use case, in fact — I’m working on an update to regexpu where some of its dependencies are already exporting Map objects and others are published as non-transpiled ES6 that only runs in Node.js v4+. I’d like to start using Map and Set in regexpu itself as well. It would really suck to have to patch/downgrade/transpile all those dependencies to Node.js v0.10/v0.12 support just because Babel continues to support such old Node.js versions.

  4. babel-bot commented on Jun 22, 2016

    @babel-bot
    CollaboratorAuthor

    Comment originally made by @mathiasbynens

    ESLint just did this: eslint/eslint@58542e4

  5. jdalton commented on Nov 2, 2016

    @jdalton
    Member

    With the EOL of Node 0.10 it may be a good time to review things. I suspect the first step would be to simply drop testing in travis-ci for Node v5 and v0.10.46 in circle-ci. This may have to wait for a major version bump.

    At the very least a roadmap and plan would be great. It's 0.10 now, but 0.12 by the end of Dec., then 4 in maintenance mode by Apr., and so on. The number of EOL'd will just keep stacking up and a plan to address this would rock.

  6. mathiasbynens commented on Nov 9, 2016

    @mathiasbynens
    Contributor

    npm just dropped support for Node.js 0.10 and Node.js 0.12: npm/npm@c82ecfd Why shouldn’t babel?

  7. added
    PR: Breaking Change 💥
    on Dec 12, 2016
  8. mathiasbynens commented on Dec 13, 2016

    @mathiasbynens
    Contributor

    What is blocking this?

  9. Jessidhia commented on Dec 13, 2016

    @Jessidhia
    Member

    This is semver-major (i.e. we need babel 7)

  10. mathiasbynens commented on Dec 13, 2016

    @mathiasbynens
    Contributor

    …and rightly so! I guess what I am asking is, what’s the big deal with cutting a Babel 7 release? Fear of large version numbers? :)

  11. hzoo commented on Dec 13, 2016

    @hzoo
    Member

    Large versions are fine, just wondering what we should put in Babel 7 and then the migration path depending on what goes in there. Just takes a while to upgrade for the ecosystem and it would be great to set up greenkeeper (or babel specific + codemods) for everyone

  12. hzoo commented on Dec 13, 2016

    @hzoo
    Member

    But yeah because of that I would like to make the minimal amount of changes possibly for 7 so users don't have to do anything if they have already dropped node 4 themselves.

  13. siddharthkp commented on Dec 28, 2016

    @siddharthkp
    Contributor

    PR for dropping 0.12 and 0.10 💀

    @xtuc cheers!

  14. xtuc commented on Jan 3, 2017

    @xtuc
    Member

    👌 We can drop 🐢🚀 (in the next major release)

  15. added a commit that references this issue on Jan 10, 2017
  16. balupton commented on Jan 11, 2017

    @balupton

    For those wanting to use babel in projects which travis builds still have to support node versions that are unsupported by babel, we have it so our .travis.yml file installs and runs babel only on LTS node versions, and if the current node version running on travis is not an LTS, then it will grab the LTS version to setup the project before running it on the intended node.js version:

    https://github.com/bevry/base/blob/4d1f33ed699cef842c37bb8d277ca72e0d8e8418/.travis.yml#L25-L58

    Posting this for reference for those in the future.

  17. Daniel15 commented on Jan 11, 2017

    @Daniel15
    Member

    node versions that are unsupported by babel

    You can also use babel-standalone. It's built to use in non-Node.js environments (such as browsers) but will also work in older Node.js versions.

  18. added this to the Babel 7 milestone on Jan 14, 2017
  19. changed the title [-]Drop support for Node.js v0.10 and v0.12 (T7392)[/-] [+][7.0] Drop support for Node.js v0.10 and v0.12 (T7392)[/+] on Jan 14, 2017
  20. hzoo commented on Jan 20, 2017

    @hzoo
    Member

    Closed via #5025, #5041 on branch 7.0

    🎉 🎉 🎉 🎉 🎉 🎉 🎉 🎉 🎉 🎉 🎉

  21. added
    outdated
    on May 5, 2018
  22. locked as resolved and limited conversation to collaborators on May 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Has PRPR: Breaking Change 💥i: discussionoutdated

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions