qntm / t-a-i

Converts Unix milliseconds to and from International Atomic Time (TAI) milliseconds
MIT License
43 stars 2 forks source link

Move to ES modules #43

Closed qntm closed 1 year ago

qntm commented 2 years ago

In the next major version of t-a-i my intention is to stop shipping CommonJS modules and start shipping ES modules instead. As t-a-i actually does seem to be in use, I'm not intending to make a breaking change like this arbitrarily, as I have with all my other, largely unused npm packages. Currently my plan is to wait for Node.js 14 to end Long-Term Support, at the end of April 2023. In May 2023 t-a-i will drop support for Node.js 14, which of course is a breaking change and will require a major version bump from t-a-i@3 to t-a-i@4, so I will take this opportunity to carry out the conversion to ES modules at the same time.

As with t-a-i@1 and t-a-i@2, support for t-a-i@3 will be dropped once t-a-i@4 is released. New leap seconds, if and when they are announced, will be incorporated into t-a-i@4 only. In particular,

qntm commented 1 year ago

There will be no leap second at the end of June 2023, so the plan above simplifies to:

qntm commented 1 year ago

A little late, but t-a-i@4 has now been published, and t-a-i@3 is now deprecated.

qntm commented 1 year ago

It has been announced that there will be no leap second at the end of December 2023. Neither t-a-i@4 nor t-a-i@3 need to recognise this. And t-a-i@3 continues to be valid and usable...