Skip to content

Claimed support for Node.js v12 missing #150

@aweebit

Description

@aweebit

The node: namespace imports used by the library were backported to Node.js v12, see nodejs/node#35757.

They are also only supported by @types/node starting v16, see DefinitelyTyped/DefinitelyTyped#52595 (comment). That has the following TypeScript error as a consequence when trying to use the newest library version in jestjs/jest codebase that relies on "@types/node": "~14.14.45":

packages/jest-util/node_modules/supports-color/index.d.ts:1:32 - error TS2307: Cannot find module 'node:tty' or its corresponding type declarations.

1 import type {WriteStream} from 'node:tty';
                                 ~~~~~~~~~~

Please consider giving up the use of the namespace.

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