Provides Mikro ORM custom type classes for JS Joda objects, including LocalDateType, LocalTimeType, and ZonedDateTimeType for mapping between JS Joda and database columns. Current stable version is 1.1.5, released as needed alongside peer upgrades. Requires @js-joda/core ^5.6.1 and @mikro-orm/core ^6.0.5. Differentiators: first-class MikroORM v6 integration with TypeScript; only package offering these specific custom types for MikroORM; supports mapping of LocalDate, LocalTime, and ZonedDateTime to database types while handling timezone and precision differences.
npm install mikro-orm-js-jodaNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Defines an entity with a LocalDate property using LocalDateType and saves/loads it with MikroORM.
Ensure dependencies are at the minimum versions specified.
If you need LocalDateTime, consider storing as string or timestamp and converting manually.
Use @Property({ type: LocalDateType }) not @Property({ type: 'localdate' }).N/A
Run 'npm install mikro-orm-js-joda' and ensure tsconfig.json has "moduleResolution": "node" or "bundler".
Ensure entity property name matches the field name used in queries.
Add { type: LocalDateType } to the @Property decorator.