All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning.
This change log follows the format documented in Keep a CHANGELOG.
- Added more documentation to the
README.md
file and JSDoc.
-
Added
tz
function that allows to specify the context for the [date-fns] functions (starting from date-fns@4):import { isSameDay } from "date-fns"; import { tz } from "@date-fns/utc"; isSameDay("2024-09-09T23:00:00-04:00", "2024-09-10T10:00:00+08:00", { in: tz("America/New_York"), }); //=> true
-
Added
LICENSE.md
file to the package. Just like before, the license is MIT, but now it's more explicit.
- BREAKING: The package now is ESM-first. The CommonJS is still support and It should not affect most users, but it might break in certains environments. If you encounter any issues, please report them.
- Added support for Sinon's fake timers, frameworks that rely on it (Jest), and other time manipulation libraries that override the
Date.now
and theDate
constructor.
- Made the package compatible with a wide variety of environments by updating the
exports
in the package.
- Added support for string parsing.
Initial version