Skip to content

Minimum node version requirement: >=12.0.0 #1386

Closed

Description

@iCrawl

Starting with v12.0.0 the minimum node version requirement for discord.js will be >=12.0.0 to make use of features like async/await, Object.entries(), Object.values() (ES2017) etc.
This will allow us to implement features like #1376 easily and without further obstacles.

Since this will be a rather big breaking change users that want to use discord.js v12.x.x will need to update their node version to at least 12.0.0. The reason why we don't plan on supporting >=7.0.0 is that --harmony is way too unreliable and unstable in versions prior to 7.6.0 (e.g. memory leaks) .

Benefits:

  • Full access to ES2017 features
    • async / await
    • Object.entries()
    • Object.values()

Drawbacks:

  • Dropping node 6/7/8 support

Activity

  1. added this to the milestone on Apr 16, 2017
  2. changed the title [-]Minimum node version requirement: >=7.6.0[/-] [+]Minimum node version requirement: >=8.0.0[/+] on Apr 20, 2017
  3. devsnek commented on Apr 24, 2017

    @devsnek
    Member

    for build:
    now: add v8(-nightly) (and v9(-nightly) when it releases)
    after v11.1 is released: remove v6/v7 builds

  4. iCrawl commented on May 30, 2017

    @iCrawl
    MemberAuthor

    This is live now, forcing node 8 will be done in around 1 week or a as soon as we start using features that are not compatible with node 6 anymore.

  5. iCrawl commented on Jun 1, 2017

    @iCrawl
    MemberAuthor

    As of 375b89a this (forcing node 8) is now implemented in master.

  6. changed the title [-]Minimum node version requirement: >=8.0.0[/-] [+]Minimum node version requirement: >=10.0.0[/+] on May 2, 2018
  7. pinned this issue on Mar 14, 2019
  8. added a commit that references this issue on Mar 23, 2019
  9. kyranet commented on Apr 6, 2019

    @kyranet
  10. changed the title [-]Minimum node version requirement: >=10.0.0[/-] [+]Minimum node version requirement: >=12.0.0[/+] on Feb 24, 2020
  11. iCrawl commented on Feb 24, 2020

    @iCrawl
    MemberAuthor

    Bumped to v12

  12. JMTK commented on Feb 25, 2020

    @JMTK
    Contributor

    If v12 is the minimum, for the ShardingManager, how much flexibility is there with defaulting to worker mode and using SharedArrayBuffer to share memory between instances? Workers were made stable as part of v12

    Things like users, presences, and probably more could be cut down on for memory usage savings. Unfortunately I'm not as familiar with this as I started looking into it just recently.

  13. unpinned this issue on Dec 13, 2020
  14. locked as resolved and limited conversation to collaborators on Apr 9, 2023
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions