@js-temporal/polyfill
Reasonable, with limits. 7th of 10 date and time libraries.
@js-temporal/polyfill is the Temporal API polyfill started by champions of the Temporal proposal. The TC39 README still lists it as alpha. Its last release, 0.5.1 from March 2025, follows a spec snapshot from that date, and fixes have piled up on main without a release. For a new project, the stable, smaller temporal-polyfill or native Temporal is the better pick.
Best for: Projects that already use it, or teams that want the proposal champions' implementation and can accept a large, alpha-status bundle.
Scores
Overall5.0
How strongly do we recommend it for a new project today?
Claude Opus 5.5: 4.0, likely 3.0 to 5.5
It is a correct, spec-minded polyfill, but it is still alpha, unreleased for 19 months and behind the spec. temporal-polyfill does the same job with a stable release, a newer spec and less than half the size. Keep it where it already runs, but choose temporal-polyfill or native Temporal for new work.
- unpkg.com/temporal-polyfill@1.0.5/README.md: The peer is smaller and newer.
- npm latestPublishedAt: Last published 2025-03-31.
- cdn.jsdelivr.net/gh/tc39/proposal-temporal@main/README.md: The official README lists it as alpha.
GPT-6.2 Sol: 5.9, likely 4.7 to 7.2
The alpha is a reasonable choice when a project needs Temporal and a dedicated CommonJS build. FullCalendar’s stable temporal-polyfill is smaller and ships more recent fixes, while date-fns is a stronger general-purpose choice for code built around Date. The recommendation depends on whether older runtime support outweighs the release gap and reported calendar and typing issues.
- github.com/tc39/proposal-temporal: Lists this package as alpha and FullCalendar’s polyfill as stable.
- github.com/js-temporal/temporal-polyfill/blob/v0.5.1/package.json: The published build has separate import and require entry points.
- github.com/fullcalendar/temporal-polyfill/blob/main/polyfill/README.md: Documents the smaller bundle and options for using native Temporal where available.
- github.com/date-fns/date-fns: Provides modular TypeScript utilities built around JavaScript Date.
- npm latestPublishedAt and peers latestPublishedAt: Both alternatives published more recently.
Needed by many6.2
How many developers need a tool for this job?
Claude Opus 5.5: 6.0, likely 4.0 to 7.0
Most JS developers handle dates, and Temporal is becoming the standard API for that work. A polyfill is only needed where native Temporal is missing, mainly Safari and older runtimes, and that need will shrink as engines ship it.
- cdn.jsdelivr.net/gh/tc39/proposal-temporal@main/README.md: Temporal is at Stage 4 and ships in Firefox 139, Chrome 144 and Node 26. Safari has not shipped it.
- infoq.com/news/2026/02/chrome-temporal-date-api: Chrome shipped Temporal in its stable release.
GPT-6.2 Sol: 6.4, likely 5.2 to 7.6
Date handling is common across web and server projects, and Temporal is especially useful for scheduling, time zones, and calendar arithmetic. This package serves the subset that wants Temporal and still targets runtimes without it. The size of that subset depends on which browsers and Node versions teams need to support.
- 2025.stateofjs.com/en-US/other-tools: Several date libraries rank among the most regularly used utilities.
- developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal: Documents Temporal’s use cases and gaps in native browser availability.
- blogs.abhipanseriya.dev/tools/temporal-api-support: Tests the published alpha and compares support across browsers and runtimes.
Helps a lot5.7
How well does it do the job for those who need it?
Claude Opus 5.5: 4.5, likely 3.0 to 6.0
It implements the full Temporal API close to the spec, and its types are included. But the published build follows a March 2025 spec snapshot and is 52 kB. Known bugs, such as ZonedDateTime assertion failures and calendar conversion errors, are fixed on main but not released. temporal-polyfill is stable, newer and smaller.
- unpkg.com/temporal-polyfill@1.0.5/README.md: Comparison table: 52.1 kB vs 19.4 kB, spec from March 2025 vs September 2026, no global install.
- github.com/js-temporal/temporal-polyfill/issues: Open bugs and issue #373, which asks for a release of fixes already on main.
- github.com/js-temporal/temporal-polyfill: The README says 'under construction'; a production release is still on the roadmap.
GPT-6.2 Sol: 6.8, likely 5.5 to 8.0
The 0.5.1 alpha gives teams typed calendar dates, nanosecond instants, and daylight-saving-aware arithmetic, with a good cookbook for common tasks. Its browser payload is sizable, and the published types let some calls compile even though they throw at runtime. Reports of zoned arithmetic failures widen the range because their impact depends on the dates and zones an app handles.
- github.com/js-temporal/temporal-polyfill: Documents the Temporal cookbook and the ESM and CommonJS entry points.
- npm hasTypes: The npm build includes TypeScript declarations.
- smashingmagazine.com/2026/03/moving-from-moment-to-temporal-api: Independent migration comparison puts the bundle at about 44 kB gzipped.
- github.com/js-temporal/temporal-polyfill/issues/352: ZonedDateTime.from accepts a missing time zone in TypeScript and rejects it at runtime.
- github.com/js-temporal/temporal-polyfill/issues/347: A user reports a zoned duration calculation that throws on 0.5.1.
- github.com/js-temporal/temporal-polyfill/issues/341: A user reports incorrect conversion of historical dates between calendars.
Holds up over time4.4
Will it still be a good choice in two years?
Claude Opus 5.5: 4.0, likely 2.5 to 6.0
Commits continue (144 in the last year), but there were zero releases in the year, and a release request has been open since September 2026. As browsers ship Temporal natively, all polyfills lose purpose. The more actively released peer is gaining the role of the default polyfill.
- github releasesLastYear: 0 releases; the latest is v0.5.1 from 2025-03-31.
- github commitsLastYear: 144 commits, against 799 for temporal-polyfill.
- github.com/js-temporal/temporal-polyfill/issues: Issue #373 requests a new release.
GPT-6.2 Sol: 4.8, likely 3.3 to 6.3
The repository recorded 144 commits in the last year, while npm users have received no update since March 2025. The 0.5 upgrade removed APIs and required a migration, and a downstream team has already had to vendor a calendar fix. Native Temporal gives application code a path forward, but the timing of future package releases and the number of active publishers are unclear.
- github commitsLastYear and npm latestPublishedAt: 144 commits in the last year, with the last npm publish in March 2025.
- github.com/js-temporal/temporal-polyfill/blob/v0.5.1/CHANGELOG.md: Details breaking removals in 0.5 and the migration guide.
- github.com/dhis2/multi-calendar-dates/releases: DHIS2 shipped a vendored patch for Ethiopian calendar handling.
- github.com/tc39/proposal-temporal: Temporal reached Stage 4 and shipped in Firefox, Chrome, and Node 26.
- peers temporal-polyfill latestPublishedAt: The stable competing polyfill published in November 2026.
Used widely4.7
How many use it, and is that growing?
Claude Opus 5.5: 5.0, likely 3.5 to 6.5
Downloads rose from 1.49M to 26.6M per 4 weeks, about 18x, far above the 4.1 median. Much of that likely comes from other packages that install it. The 1,430 dependent repositories are a few thousand direct choices, tiny next to date-fns or Day.js but more than temporal-polyfill's recorded 49.
- npm downloadsLast4Weeks: 26.6M now vs 1.49M a year ago.
- dependents: 1,430 repositories and 111 packages.
- bluesky posts: 0 posts, against 5 for temporal-polyfill.
GPT-6.2 Sol: 4.3, likely 3.0 to 5.9
Four-week downloads rose 17.9 times year over year, ahead of the 4.1 times catalog median and the competing polyfill’s 13.2 times growth. The collector found 1,430 dependent repositories and 111 npm packages, a much smaller footprint than date-fns and Day.js. Incomplete dependency coverage and automated installs make the number of direct adopters hard to pin down.
- npm downloadsLast4Weeks and downloadsSame4WeeksYearAgo: 26.6 million downloads versus 1.49 million a year earlier.
- medianDownloadsRatio: The catalog’s year-over-year median multiplier is 4.1.
- dependents and peers: More indexed repositories than the other Temporal polyfill and far fewer than the leading date libraries.
- humanloads.dev/%40js-temporal/polyfill: The November spike persists after filtering for mirrors and crawlers. CI and transitive installs still count.
Vouched for4.6
Who stands behind it being good?
Claude Opus 5.5: 4.0, likely 2.5 to 5.5
The proposal champions are behind it, and the TC39 README links to it. That same README labels it alpha and temporal-polyfill stable. Independent write-ups or production reports on it are scarce.
- cdn.jsdelivr.net/gh/tc39/proposal-temporal@main/README.md: Listed as 'Alpha release available'; temporal-polyfill is listed as stable.
- github.com/TryGhost/ActivityPub/pull/459: Ghost's ActivityPub project adopted it.
- hackerNews stories: No Hacker News stories.
GPT-6.2 Sol: 5.2, likely 3.9 to 6.6
DHIS2’s calendar tooling depends on 0.5.1, and independent compatibility testing verified basic behavior on Node 24. Fedify used the package extensively and switched to the competing polyfill in 2026 to align with native TypeScript declarations. These examples show real use, while the alpha’s production track record is still limited.
- github.com/dhis2/multi-calendar-dates/blob/main/package.json: DHIS2’s calendar library pins 0.5.1 as a runtime dependency.
- blogs.abhipanseriya.dev/tools/temporal-api-support: Independent hands-on compatibility check of the published alpha.
- github.com/fedify-dev/fedify/issues/823: Fedify documents its use, incompatibilities, and completed migration.
Safe7.0
How safe is it to depend on?
Claude Opus 5.5: 7.0, likely 6.0 to 8.5
It has no advisories, a single dependency (JSBI) and the permissive ISC licence. The Scorecard is 5.6, with weak token permissions, no security policy and no SAST. Code review and the dangerous-workflow check score full marks.
- advisories total: 0 advisories.
- scorecard score: 5.6; Token-Permissions, Security-Policy and SAST all score 0.
- npm dependencies: 1 dependency.
GPT-6.2 Sol: 7.0, likely 5.8 to 8.3
The ISC license permits commercial use, JSBI is the only runtime dependency, and OSV lists zero advisories. The release checklist calls for review, tests, and a manual npm publish using two-factor authentication. Weak workflow token permissions and the missing security policy lower confidence, and publisher access and release signing remain unverified.
- npm license and dependencies: Permissive ISC license and one runtime dependency.
- advisories total: Zero tracked OSV advisories.
- scorecard score and checks: 5.6 overall, full marks for code review, zero for token permissions and security policy, and no signed-release assessment.
- github.com/js-temporal/temporal-polyfill/blob/main/release-checklist.md: Documents tests, review, and manual npm publishing with two-factor authentication.
Good
- It is written by Temporal proposal champions and closely follows the spec's reference logic.
- It ships its own TypeScript types and has only one runtime dependency (JSBI).
- It has no known security advisories and a permissive ISC licence.
- The repository still gets reviewed commits, with 144 in the last year.
Bad
- There has been no npm release since March 2025, and an open issue asks for a release of fixes that are already merged.
- At about 52 kB min+gzip, it is more than twice the size of temporal-polyfill.
- It is still alpha (0.x) and follows a March 2025 snapshot of the spec, so it can differ from native Temporal.
- It cannot install a global Temporal object, and it uses JSBI instead of native BigInt.
The numbers
- npm downloads, 4 weeks
- 27M ×18 in a year
- GitHub stars
- 798
- Commits, 12 months
- 144
- npm version
- 0.5.1 Mar 2025
- Versions, 12 months
- 0
- Advisories, 24 months
- 0 of 0 ever
- OpenSSF Scorecard
- 5.6 out of 10, Nov 2026
- Licence
- ISC
A polyfill of the Temporal API of JavaScript, by people who wrote the Temporal proposal.
Read on 21 November 2026 from GitHub (js-temporal/temporal-polyfill), npm (@js-temporal/polyfill), OSV and the OpenSSF Scorecard.
Date and time libraries
- 8.0date-fns
- 7.5temporal-polyfill
- 6.8Day.js
- 6.6Luxon
- 5.5Tempo
- 5.2Spacetime
- 5.0@js-temporal/polyfill
- 4.2date-fns-tz
- 3.8Moment Timezone
- 3.6Moment.js