v0.5.0-beta.5
·
10 commits
to main
since this release
Changelog
💥 Breaking (Temporal)
/temporalnow exports factory helpers and shared types instead of prebound temporal columns, update to/temporal/globalor/temporal/polyfilltimestampznow maps toTemporal.Instantinstead ofTemporal.ZonedDateTime, and the redundant_registerZonedDateTimeJSONFixhelper has been removed. Previously, it was implemented incorrectly as aZonedDateTimewith a fixed UTC offset, which caused issues with DST and non-UTC timezones. The newInstantmapping is timezone-agnostic and more consistent with PostgreSQL'stimestamptzsemantics. You still can converted to/fromZonedDateTimeas needed using Temporal's built-in methods:instant.toZonedDateTimeISO('UTC')orzonedDateTime.toInstant().
🚀 New & improved
/temporalexportscreateInterval,createMonthDay,createPlainDate,createTime,createTimestamp,createTimestampz, andcreateYearMonthfor binding your own Temporal implementation.- The package exposes explicit
/temporal/globaland/temporal/polyfillentrypoints for preconfigured helpers. - Temporal factory helpers now preserve the instance types of the Temporal implementation you pass in, instead of depending on hardcoded
temporal-spectypes. - Temporal factory helpers now accept optional
toString(...)options so serialization behavior can be configured centrally. - Docs simplification and improvements
✅ Tests
- The test suite covers the factory entrypoint with caller-provided Temporal implementations.
- Temporal tests cover package exports, SQL expression inserts, configured precision handling, and
Instantroundtripping. - The repository includes a separate test TypeScript configuration for package entrypoint coverage.
📦 Dependency note
- The temporal column implementations no longer depend directly on
temporal-spectypes. drizzle-ormis1.0.0-beta.17-67b1795.temporal-polyfillis^0.3.2.