Thanks to visit codestin.com
Credit goes to github.com

Skip to content

DeprecationWarning [DEP0174] with node version >= 21.0.0 #105

@lplanch

Description

@lplanch

Hi,

Node version: v21.4.0

When running migrate or a rollback, the function _executeAction trigger this warning.

(node:53792) [DEP0174] DeprecationWarning: Calling promisify on a function that returns a Promise is likely a mistake.
    at node:internal/util:431:17
    at new Promise (<anonymous>)
    at node:internal/util:416:12
    at /.../node_modules/east/lib/migrator/methods/_executeAction.js:11:12
    at processTicksAndRejections (node:internal/process/task_queues:95:5)

Apparently, node added a warning log in their version 21.0.0, when promisify-ing a function returning a Promise (nodejs/node#49609).

I can take a look at it later if you want

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions