# date-fns v5.0.0-alpha.0 - Product: date-fns (https://whatsnew.fyi/product/date-fns) - Vendor: date-fns - Date: 2026-05-29 - Version: v5.0.0-alpha.0 - Original notes: https://github.com/date-fns/date-fns/releases/tag/v5.0.0-alpha.0 - Permalink: https://whatsnew.fyi/product/date-fns/releases/v5.0.0-alpha.0 - Labels: Pre-release What's New is an index, not a publisher: every entry below links to the vendor's own release notes, which are the authoritative source. Entries are labelled where they are hand-curated sample data, pre-releases, or drawn from a secondary source such as a developer blog. Reuse: the summaries, labels and curation here are © What's New. Quote freely with attribution and a link back; wholesale republication of the corpus is not permitted — terms: https://whatsnew.fyi/terms. The vendors' own release notes remain their publishers'. --- - **removed** — Remove CDN scripts from the date-fns package and move them to the separate @date-fns/cdn package - **changed** — Reduce zipped package size from 5.83 MB to 2.89 MB v5 focuses on reducing the date-fns package size. Compared to v4.3.0, this version reduces the zipped package size from `5.83 MB` down to `2.89 MB`. It removes the CDN scripts from the `date-fns` package and moves them to a separate `@date-fns/cdn` package. It is just the first step in optimizing the package size. Expect further size reduction in the future versions. ###### Changed - **BREAKING**: The CDN scripts are now available via the `@date-fns/cdn` npm package instead of `date-fns`. Users relying on the latest CDN version (e.g., `https://cdn.jsdelivr.net/npm/date-fns/cdn.min.js`) would be served a polyfill that inserts a script with the correct URL (`https://cdn.jsdelivr.net/npm/@date-fns/cdn/cdn.min.js`) into the page.