Architecture decision record · ADR-0006

temporal-polyfill is an optional peer

@millwork-ts/temporal uses the global Temporal when it is there.

Status
Accepted
Deciders
Joe Gaudet
Created
Updated
PRD
PRD
Related
None

Context

Temporal is TC39 Stage 4 (March 2026). Firefox 139+ and Chrome 144+ ship it. Safari stable support is not confirmed in the research.

Decision drivers

Not recorded in the original ADR.

Options considered

Not recorded in the original ADR.

Decision

  • @millwork-ts/temporal uses the global Temporal when it is there.
  • temporal-polyfill is an optional peer dependency. The docs tell Safari users to install it.
  • The cache keeps the raw ISO string. A Temporal object does not survive structuredClone (ADR 0001).

Consequences

  • No polyfill cost for apps that target only Firefox and Chrome.
  • Before the M4 release, check the Safari state again and update the docs.

Confirmation

Evidence

  • docs/research.md, section 3.1 (Temporal entry). Not confirmed with a test.

Interview record

Each question of the interview with its answer and its source. A fact from the code or a document, a question that the author did not ask, and an assumption are rows too.

QuestionAnswerSource
Where does the text of this page come from?From the Markdown file docs/adr/0006-temporal-browser-support.md at commit c8154b0. The text of each section is the text of the Markdown file. A section that the Markdown file does not have says so.Document: docs/adr/0006-temporal-browser-support.md

Changelog

DateAuthorChange
2026-12-01Joe GaudetStatus in the Markdown file: Accepted (M0, spike S5). No test: this spike reads only docs/research.md.
2026-12-01Joe GaudetCommit 0a16254: Build Millwork 1.0 (#1)
2026-12-04Joe Gaudet (agent)Converted from docs/adr/0006-temporal-browser-support.md to this page. The text is the text of the Markdown file.

The adr skill of skillsaw wrote this page. The HTML in this file is the source of truth. The diagrams are the Mermaid sources in it.