temporal-polyfill

A lightweight polyfill for Temporal, successor to the JavaScript Date object (by fullcalendar)

Temporal-polyfill Alternatives

Similar projects and alternatives to temporal-polyfill

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better temporal-polyfill alternative or higher similarity.

temporal-polyfill reviews and mentions

Posts with mentions or reviews of temporal-polyfill. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-09-10.
  • Temporal API - A new approach to managing Date and Time in JS | refine
    3 projects | /r/javascript | 10 Sep 2022
    There's another, much smaller polyfill: https://github.com/fullcalendar/temporal
  • Why Am I Excited About WebAssembly?
    9 projects | news.ycombinator.com | 17 Jul 2022
    This assumes two things though, and this is another point I just realized about WASM that I like, which is for (most) modern browsers asm.js / WASM doesn't have to be polyfilled, therefore with Temporal we have to consider the following:

    1. Browser support - its not there yet. you'd have to polyfill. A production level polyfill is 16 KB, and is still very nasacent, and, on top of that, requires support also for BigInt[0]. The polyfill that tc39 put out is decidedly marked as non-production ready[1].

    2. Polyfilling - as mentioned above, we have to deal with polyfilling the API, and that isn't a clear and easy story yet. WASM support goes back farther than this.

    3. Size - its entirely possible to get WASM builds under 16 KB, and the support is better, espcially for operations on strings and numbers (dates fit this category well). The only complication I haven't quite solved yet is:

    A) Can I validate that a WASM build will be under 16 KB. This is crucial. I'd even accept it at 20 KB because of wider browser support[2]

    B) Can I fall back to asm.js if needed (there is a slim range of browsers that support ASM.js but not WASM, mostly pre-chromium Edge[3]

    C) Is it performant compared to something like Luxon or date-fns? WASM excels at string / numerical operations so my sneaking suspicion is yes, at least in terms of the WASM operations. The complexity will be serializing the operations to a JS Date instance, Luxon & the Intl API might be most useful here

    [0]: https://github.com/fullcalendar/temporal/blob/main/packages/...

    [1]: https://github.com/tc39/proposal-temporal#polyfills

    [2]: https://caniuse.com/wasm

    [3]: https://caniuse.com/asmjs

Stats

Basic temporal-polyfill repo stats
2
156
9.9
15 days ago

Sponsored
Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com