Skip to content

Adopt Temporal.Duration for durations consistently #149

Description

@polaris-is-online

From PR #147 review (comment, packages/shared/src/config-schemas.ts:106).

Durations are currently raw millisecond numbers (*_ms fields, CACHE_TTL_MS records, timeout configs). Kara: use Temporal.Duration consistently.

Constraint to resolve first

Temporal is not available as a global in the current Bun runtime (typeof Temporal === "undefined" verified locally). Adoption requires either:

  • a polyfill (@js-temporal/polyfill), or
  • waiting for Bun runtime support.

Decide polyfill-vs-wait, then sweep duration fields/config to a consistent representation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions