Skip to content

✨ remove date dependency #1

@abhishekprajapati1

Description

@abhishekprajapati1

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions