Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: use date-fns formatting function for timestamps #99

Merged
merged 3 commits into from
Dec 21, 2023
Merged

Conversation

astone123
Copy link
Collaborator

@astone123 astone123 commented Dec 21, 2023

This PR replaces our current relative timestamp logic with date-fns. This increases the bundle size by about 11kb (4kb gzipped), and adds less than half a second onto production build time.

It also makes the code more readable and will help us with internationalization in the future

Before

build/assets/index-1cbdd774.js              283.64 kB │ gzip: 93.23 kB
✓ built in 1.49s

After

build/assets/index-fa6b4669.js              294.69 kB │ gzip: 97.00 kB
✓ built in 1.94s

Copy link

cypress bot commented Dec 21, 2023

Passing run #84 ↗︎

0 11 0 0 Flakiness 0

Details:

Merge b8f09ff into a2e600b...
Project: top90-frontend Commit: 76b2314526 ℹ️
Status: Passed Duration: 00:33 💡
Started: Dec 21, 2023 1:06 AM Ended: Dec 21, 2023 1:07 AM

Review all test suite changes for PR #99 ↗︎

Copy link
Owner

@wweitzel wweitzel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@wweitzel wweitzel merged commit f21db3f into master Dec 21, 2023
5 checks passed
@wweitzel wweitzel deleted the date-fns branch December 21, 2023 06:00
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