Skip to content

Drop Node v10 support #886

Closed
Closed

Description

@RyanZim

Node v10 EOLs on 2021-04-30; here's a list of things we can do when we drop support for Node v10:

  • fs.promises special handling not needed:
    // Export fs.promises as a getter property so that we don't trigger
    // ExperimentalWarning before fs.promises is actually accessed.
    const fs = require('fs')
    if (Object.getOwnPropertyDescriptor(fs, 'promises')) {
    Object.defineProperty(module.exports, 'promises', {
    get () { return fs.promises }
    })
    }
    &
    if (key === 'promises') {
    // fs.promises is a getter property that triggers ExperimentalWarning
    // Don't re-export it here, the getter is defined in "lib/index.js"
    return
    }
  • mkdirs can use native fs.mkdir with recursive option everywhere
    const useNativeRecursiveOption = atLeastNode('10.12.0')
  • No special handling to avoid bigint usage
    const nodeSupportsBigInt = atLeastNode('10.5.0')
    &
    const NODE_VERSION_WITH_BIGINT = '10.5.0'

Activity

  1. JPeer264 commented on Apr 9, 2021

    @JPeer264
    Collaborator

    Also do not forget to update the engines package.json

    "engines": {
    "node": ">=10"
    },

    If #881 is not yet implemented by this time Node10 got dropped and .travis,yml is still in, it should be updated as well (same with appveyor)

    - nodejs_version: "10"

    - 10
    - 11

  2. added this to the 10.0.0 milestone on Apr 29, 2021
  3. RyanZim commented on Apr 30, 2021

    @RyanZim
    CollaboratorAuthor

    Done in #893, #890, #894, & #895.

  4. added a commit that references this issue on Sep 5, 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

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions