Skip to content

Move away from util.isArray #563

@marco-ippolito

Description

@marco-ippolito

With the new Node.js 22 release, we have runtime deprecated util.isArray and in node 23 we plan to completely remove it.

if (util.isArray(value)) {

This line of code will cause failure in consumers of this package like fastify.
nodejs/node#52744 (comment)
I'll create a PR to help migrating util.isArray to Array.isArray

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