Description
Need to remove dayjs from dependency. Create equivalent, efficient functions for date handling.
Problem or Use Case
This library currently uses dayjs as its dependency. But only a few functions are used from dayjs. The problem is the bundle size we get. It has more than 7% of total bundle size.
Proposed Solution
We can write custom and browser native functions to replace all those that are being used from dayjs library
Alternatives Considered
Or we can consider date-fns. Its tree shaking nature may help reducing the bundle size. But again this should be last option. As we want to make this library to be a 0 dependency library while keeping the performance and accessibility in mind.
Additional Context
No response
Description
Need to remove dayjs from dependency. Create equivalent, efficient functions for date handling.
Problem or Use Case
This library currently uses dayjs as its dependency. But only a few functions are used from dayjs. The problem is the bundle size we get. It has more than 7% of total bundle size.
Proposed Solution
We can write custom and browser native functions to replace all those that are being used from dayjs library
Alternatives Considered
Or we can consider
date-fns. Its tree shaking nature may help reducing the bundle size. But again this should be last option. As we want to make this library to be a 0 dependency library while keeping the performance and accessibility in mind.Additional Context
No response