Skip to content

chore: get rid of date-fns#2421

Merged
andrii-bodnar merged 2 commits intonextfrom
chore/get-rid-of-date-fns
Jan 28, 2026
Merged

chore: get rid of date-fns#2421
andrii-bodnar merged 2 commits intonextfrom
chore/get-rid-of-date-fns

Conversation

@timofei-iatsenko
Copy link
Collaborator

Description

date-fns take 20mb of installation size of the @lingui/cli package https://node-modules.dev/report/install-size#install=@lingui/cli

We use only one small function which could be written in 10 lines of code instead. No functional changes.

image

Types of changes

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Examples update

Fixes # (issue)

Checklist

  • I have read the CONTRIBUTING and CODE_OF_CONDUCT docs
  • I have added tests that prove my fix is effective or that my feature works
  • I have added the necessary documentation (if appropriate)

@vercel
Copy link

vercel bot commented Jan 28, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
js-lingui Ready Ready Preview Jan 28, 2026 0:12am

Request Review

@timofei-iatsenko timofei-iatsenko marked this pull request as ready for review January 28, 2026 12:10
@github-actions
Copy link

github-actions bot commented Jan 28, 2026

size-limit report 📦

Path Size
packages/core/dist/index.mjs 1.77 KB (0%)
packages/detect-locale/dist/index.mjs 618 B (0%)
packages/react/dist/index.mjs 1.21 KB (0%)

@andrii-bodnar andrii-bodnar merged commit 239c920 into next Jan 28, 2026
7 checks passed
@andrii-bodnar andrii-bodnar deleted the chore/get-rid-of-date-fns branch January 28, 2026 15:51
@andrii-bodnar andrii-bodnar added this to the v6 milestone Jan 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants