Skip to content

v0.5.0-beta.5

Choose a tag to compare

@github-actions github-actions released this 15 Mar 10:40
· 10 commits to main since this release
f570cb5

Changelog

💥 Breaking (Temporal)

  • /temporal now exports factory helpers and shared types instead of prebound temporal columns, update to /temporal/global or /temporal/polyfill
  • timestampz now maps to Temporal.Instant instead of Temporal.ZonedDateTime, and the redundant _registerZonedDateTimeJSONFix helper has been removed. Previously, it was implemented incorrectly as a ZonedDateTime with a fixed UTC offset, which caused issues with DST and non-UTC timezones. The new Instant mapping is timezone-agnostic and more consistent with PostgreSQL's timestamptz semantics. You still can converted to/from ZonedDateTime as needed using Temporal's built-in methods: instant.toZonedDateTimeISO('UTC') or zonedDateTime.toInstant().

🚀 New & improved

  • /temporal exports createInterval, createMonthDay, createPlainDate, createTime, createTimestamp, createTimestampz, and createYearMonth for binding your own Temporal implementation.
  • The package exposes explicit /temporal/global and /temporal/polyfill entrypoints for preconfigured helpers.
  • Temporal factory helpers now preserve the instance types of the Temporal implementation you pass in, instead of depending on hardcoded temporal-spec types.
  • 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 Instant roundtripping.
  • The repository includes a separate test TypeScript configuration for package entrypoint coverage.

📦 Dependency note

  • The temporal column implementations no longer depend directly on temporal-spec types.
  • drizzle-orm is 1.0.0-beta.17-67b1795.
  • temporal-polyfill is ^0.3.2.