A lightweight polyfill for Temporal, successor to the JavaScript Date object
Overall
score
96%
Evaluation — 96%
↑ 1.19xAgent success when using this tile
{
"context": "Evaluates how well the solution uses temporal-polyfill's legacy bridge to convert Date objects into Temporal instants and perform calculations. Checks focus on side-effect installation, conversion, ISO output, and duration math using the package API.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Bridge install",
"description": "Imports and executes the side-effect global entry (e.g., `import 'temporal-polyfill/global'`) so the Temporal namespace and Date bridge are available before any use.",
"max_score": 25
},
{
"name": "Date conversion",
"description": "Uses the package-provided `Date.prototype.toTemporalInstant()` to obtain a `Temporal.Instant` for each legacy Date instead of manual epoch math or string parsing.",
"max_score": 25
},
{
"name": "Instant ISO",
"description": "Derives ISO-8601 output by calling `Temporal.Instant.prototype.toString` (optionally with `timeZone`/precision options) rather than formatting Dates directly or hand-building strings.",
"max_score": 20
},
{
"name": "Temporal gap",
"description": "Computes millisecond gaps via Temporal APIs (e.g., `Temporal.Instant.prototype.until`/`since` with `smallestUnit: 'millisecond'` or equivalent duration total) and avoids subtracting native Dates.",
"max_score": 30
}
]
}Install with Tessl CLI
npx tessl i tessl/npm-temporal-polyfilldocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10