Date-time version 4.0.0 introduces several key updates compared to version 3.1.0. One primary difference lies in the dependency on the time-zone package. Version 4.0.0 upgrades this dependency to ^2.0.0, offering potentially improved time zone handling and bug fixes. In contrast, version 3.1.0 relied on time-zone version ^1.0.0.
The developer tooling has also seen significant upgrades. Development dependencies ava, tsd, and xo have been updated to newer versions. ava moves from 1.4.1 to ^3.15.0, tsd jumps from 0.7.1 to ^0.14.0, and xo advances from 0.24.0 to ^0.38.2. These changes likely enhance the testing, type definition management, and code linting processes, contributing to a more robust and maintainable library.
While both versions maintain the MIT license and the core functionality of providing pretty datetime formatting (e.g., 2014-01-09 06:46:01), interested users should consider the implications of the updated dependencies. Specifically, developers should evaluate time-zone ^2.0.0 for breaking changes or benefits relevant to their use case. The unpacked size of v4.0.0 is also slightly smaller (4388 bytes) compared to v3.1.0 (4927 bytes) which can be another thing to consider.
The are not vulnerabilities for the version 4.0.0 of the package date-time