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

fix: reduce usage of lodash #3455

Merged
merged 4 commits into from
May 3, 2024
Merged

fix: reduce usage of lodash #3455

merged 4 commits into from
May 3, 2024

Conversation

fratzinger
Copy link
Member

  • import from lodash submodules directly where possible
  • use const { provider, ...rest } = params instead of omit
  • use { ...params, query: { ...params.query, provider } } instead of merge
  • rm useless flatten
  • use .filter(Boolean) instead of compact(). could be improved with a typesafe IsNonNullable function
  • use () => {} instead of noop

Copy link

cloudflare-workers-and-pages bot commented Apr 3, 2024

Deploying feathers-dove with  Cloudflare Pages  Cloudflare Pages

Latest commit: 10b7696
Status: ✅  Deploy successful!
Preview URL: https://4a45c9ff.feathers.pages.dev
Branch Preview URL: https://refactor-reduce-lodash-usage.feathers.pages.dev

View logs

@daffl daffl force-pushed the refactor/reduce-lodash-usage branch from 2edad73 to 05e1d15 Compare May 3, 2024 15:52
@daffl daffl changed the title refactor: reduce usage of lodash fix: reduce usage of lodash May 3, 2024
@daffl daffl merged commit 8ce807a into dove May 3, 2024
5 checks passed
@daffl daffl deleted the refactor/reduce-lodash-usage branch May 3, 2024 16:43
@daffl
Copy link
Member

daffl commented May 3, 2024

Great, I've been meaning to look into this so thank you for doing that.

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