luxon-next
v0.0.21
Published
An experimental rewrite of Luxon.
Downloads
41
Readme
An experimental rewrite of Luxon.
Ideas here
- Make tree-shaking work by dispensing with classes and being careful about dependency structure
- Support chaining using JS pipe operators (presumably the hack variety)
- Typescript all the things
- Calendar extensibility (though not parser and formatter extensibility)
- Clearer control of memoization
- Fewer things are "part" of the core objects, such as locale and conversionAccuracy, and are instead always arguments to particular functions, or global defaults
Caveat Emptor!
This is completely experimental. If you use this for anything real, you are making a mistake.
The future of this code is very much in doubt:
- The Temporal API (a much-improved native Date API for the browser) is now in Stage 3. It should obviate most of the need for a library like Luxon and may cause me to shelve it altogether. At the very least, I will happily chuck a ton of the code here.
- I'm working on this while I have some time off, which I'll eventually stop having. I also may simply move onto other stuff. Creating a new date/time library no one asked for is a lot of work!