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

Remove lodash dependency #24

Merged
merged 1 commit into from
May 13, 2024
Merged

Remove lodash dependency #24

merged 1 commit into from
May 13, 2024

Conversation

brettwillis
Copy link
Contributor

We know that lodash is a huge dependency and refuses to support tree shaking. And this library only uses a fraction of lodash for type checking.

One improvement would be to only import the specific modules (i.e. import isDate from 'lodash/isDate.js') not the entire lodash package.

However I feel that lodash is actually completely un-necessary in this case, and can be replaced with native type checks. Let me know your thoughts.

@jancurn jancurn requested a review from jirimoravcik May 13, 2024 09:00
Copy link
Member

@jirimoravcik jirimoravcik left a comment

Choose a reason for hiding this comment

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

Makes sense, thanks

@jirimoravcik jirimoravcik merged commit e7bcd18 into apify:master May 13, 2024
5 checks passed
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.

3 participants