Skip to content

JSON date properties are not hydrated back as Dates #6076

@alexandre-abrioux

Description

@alexandre-abrioux

Describe the bug

This regression was introduced in v6.3.11 and probably linked to 55df57f (#6050).

When JSON properties contain dates, they were previously hydrated back as Javascript Dates. Now, they are hydrated as strings.

Reproduction

Here is a test case: https://github.com/alexandre-abrioux/mikro-orm-issues/blob/iss-6076/src/example.test.ts

What driver are you using?

@mikro-orm/sqlite

MikroORM version

6.3.11

Node.js version

22.4.0

Operating system

No response

Validations

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