(no title)
FrontAid | 3 years ago
- https://github.com/tc39/proposal-temporal
- https://github.com/tc39/proposal-temporal#polyfills
- https://tc39.es/proposal-temporal/
- https://tc39.es/proposal-temporal/docs/index.html
- https://github.com/tc39/proposal-temporal/issues/1450
- https://tc39.es/proposal-temporal/docs/parse-draft.html
As far as I know, issue #1450 is the last remaining blocker for the standardization. I'd assume that this will be resolved in the next months. So Temporal will likely be officially released with ECMAScript 2023, but browser vendors and other implementors will start shipping it before the offical release.
iainmerrick|3 years ago
jwalton|3 years ago
The fact that it only took me a few hours to find these suggests there are plenty more bugs like these to find. The fact that these bugs have been open since the start of March with no movement on them suggests they aren’t too interested in correct behaviour (or perhaps they’re just your typical under-staffed open source project).
Maybe I just got super unlucky and ran into the only two bugs here… but it’s not likely.
Luxon and moment.js both handled these cases perfectly. If you’re looking to move from whatever you’re using now, and you can’t wait for the new standard, I’d pick one of those.
[1]: https://github.com/iamkun/dayjs/issues/1816
[2]: https://github.com/iamkun/dayjs/issues/1817
badlucklottery|3 years ago
Also, once the spec is finalized, there may also be a compliant polyfill available. If so, you'll get the functionality early and still have good compatibility down the line.
dspillett|3 years ago
Or as it is coming RealSoonNow(tm) perhaps start looking into polyfills as you are going to need one anyway for a story time at least to support LTS browser versions.
michaelcampbell|3 years ago
chii|3 years ago
you don't need to hold off - you just wrap the library in an api of your own, specific for your usage. Then, when/if the ecmascript standard library adds a good one in, you just need to re-implement the wrapper, which would be presumably pretty easy as the api surface area is fairly small.
joenot443|3 years ago
anamexis|3 years ago
yilugurlu|3 years ago
[1] https://tc39.es/proposal-temporal/docs/cookbook.html
moogly|3 years ago
brundolf|3 years ago
qwertox|3 years ago
By then you can assume that the other library will be a lightweight wrapper around Temporal.
spankalee|3 years ago