projectstorm / react-diagrams

a super simple, no-nonsense diagramming library written in react that just works
https://projectstorm.cloud/react-diagrams
MIT License
8.45k stars 1.16k forks source link

Update lodash imports to use individual functions #1021

Closed LynchyC closed 4 months ago

LynchyC commented 7 months ago

Checklist

What, why and how?

Currently, the project is bringing in lodash functions the standard way i.e. (import _ from lodash or import * as _ from 'lodash').

This is just a small quality of life improvement to lessen the footprint of the overall library when bundled into others apps.

Feel good image:

dog-perfect-smile-doesnt-exi

changeset-bot[bot] commented 7 months ago

🦋 Changeset detected

Latest commit: 80285feee56456abe76e47a38169a3f1d8d20c4d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 8 packages | Name | Type | | ------------------------------------- | ----- | | @projectstorm/react-diagrams-gallery | Patch | | @projectstorm/geometry | Patch | | @projectstorm/react-canvas-core | Patch | | @projectstorm/react-diagrams-core | Patch | | @projectstorm/react-diagrams-defaults | Patch | | @projectstorm/react-diagrams-routing | Patch | | @projectstorm/react-diagrams | Patch | | @projectstorm/react-diagrams-demo | Patch |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

LynchyC commented 7 months ago

If you would rather prefer, I can instead update the repo to use the lodash-es dependency?