Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

luxon-next

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

luxon-next

An experimental rewrite of Luxon.

latest
npmnpm
Version
0.0.21
Version published
Maintainers
1
Created
Source

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!

FAQs

Package last updated on 15 Dec 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts