Skip to content

[Bug]: Metadata breaking change from Array to Object #311

@KeeedL

Description

@KeeedL

🔎 Search Terms

Metadata type change

The problem

We were using winston-mongodb 5.1.1 to store our logs.

Trying to upgrade our logger app to winston-mongodb 6.0.0 has broken our reader log app.

Using winston-mongodb 6.0.0, metadata type changed from Array to Object

Our reader log app is currently searching for metadata[index] but as it changes to object, we have to change our reader app but also to handle both type (Array and also Object) for a period.

Is there any way to still save an Array rather than an Object using winston-mongodb 6.0.0 ?

What version of Winston presents the issue?

winston-mongodb v6.0.0

What version of Node are you using?

v20.8.0

If this worked in a previous version of Winston, which was it?

winston-mongodb v5.1.1

Minimum Working Example

No response

Additional information

No response

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