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

Replace lodash functions with native JS versions #164

Merged
merged 7 commits into from
Jul 31, 2019

Conversation

krissalvador27
Copy link
Contributor

@krissalvador27 krissalvador27 commented Jul 31, 2019

Went through and updated a few lodash imports that could be replaced with their native counterpart. Small win and lowers our lodash dependency 🏆

  • isFinite
  • some
  • every
  • find
  • isArray
  • assign
  • partial

related to #163 and addresses issue #159

@krissalvador27 krissalvador27 merged commit 4b03a4e into 1.12.0-rc.0 Jul 31, 2019
@krissalvador27 krissalvador27 deleted the replace-lodash-with-native branch July 31, 2019 18:36
@krissalvador27 krissalvador27 mentioned this pull request Jul 31, 2019
krissalvador27 added a commit that referenced this pull request Aug 20, 2019
* Use Array, every and isFinite from JS native

* Use some and find from JS native

* Fix isFinite to check for null

* Replace assign with Object.assign

* Replace partial with bind

* Remove console

* Fix bind on XYPlot
krissalvador27 added a commit that referenced this pull request Aug 22, 2019
* Use Array, every and isFinite from JS native

* Use some and find from JS native

* Fix isFinite to check for null

* Replace assign with Object.assign

* Replace partial with bind

* Remove console

* Fix bind on XYPlot
krissalvador27 added a commit that referenced this pull request Aug 30, 2019
* 1.12.0-rc.0

* Modularize lodash (#163)

* Update build process to modularize lodash
* Update src files to import lodash modularly
* Fix missing lodash imports and remove partial and use better bind function for tests
* Update docs

* Update changelog

* Replace lodash functions with native JS versions (#164)

* Use Array, every and isFinite from JS native

* Use some and find from JS native

* Fix isFinite to check for null

* Replace assign with Object.assign

* Replace partial with bind

* Remove console

* Fix bind on XYPlot

* Deprecate moment in favor of d3 time format. Move getDefaultFormats to Label utils and remove from X and YAxisLabels as static functions. Update tests (#166)

* Deprecate numeral.js (#169)

* replace numeral in Label.jsx with d3 format

* remove format prop documentation, update formats prop documentation for X and Y AxisLabels

* remove props.format from X and Y Axis Labels

* Remove numeral from SankeyDiagram component

* removed numeral library and updated docs

* add back format prop for both X and Y Axis Label components"

* Add format prop back allowing only function type

* Clean build with updated props docs

* Updated build

* Fix typo in docs

* Actually fix typo

* Clean build with fixed typos in docs

* add testing for numeric formats passed to X and Y Axis Labels

* fix typo in comment

* update format documentation to mirror formats

* Update XAxis and YAxis labelFormat PropType

* Fix import for identity

* Update X and Y axis labels examples with new formats

* Update CHANGELOG.md

* Namespace xy plot props (#170)

* Update prop omission logic in XYPlot and change style -> xyPlotContainerStyle

* Fix tests and clean up

* Update format examples (#171)

* Update component docs and build

* Migrate to Spotify web scripts for eslint and prettier (#173)

* Added packages from spotify/web-scripts

* Run prettier

* Eslint clean up

* Run eslint on test instead of using eslint.spec.js

* Fix componentdocs file

* Rebuild docs

* Fix tests

* Update changelog

* Update docs

* Fix documentation props sort logic & update docs

* 2.0.0-rc.1

* Update changelog for 2.0.0
install pushed a commit that referenced this pull request Feb 25, 2020
* 1.12.0-rc.0

* Modularize lodash (#163)

* Update build process to modularize lodash
* Update src files to import lodash modularly
* Fix missing lodash imports and remove partial and use better bind function for tests
* Update docs

* Update changelog

* Replace lodash functions with native JS versions (#164)

* Use Array, every and isFinite from JS native

* Use some and find from JS native

* Fix isFinite to check for null

* Replace assign with Object.assign

* Replace partial with bind

* Remove console

* Fix bind on XYPlot

* Deprecate moment in favor of d3 time format. Move getDefaultFormats to Label utils and remove from X and YAxisLabels as static functions. Update tests (#166)

* Deprecate numeral.js (#169)

* replace numeral in Label.jsx with d3 format

* remove format prop documentation, update formats prop documentation for X and Y AxisLabels

* remove props.format from X and Y Axis Labels

* Remove numeral from SankeyDiagram component

* removed numeral library and updated docs

* add back format prop for both X and Y Axis Label components"

* Add format prop back allowing only function type

* Clean build with updated props docs

* Updated build

* Fix typo in docs

* Actually fix typo

* Clean build with fixed typos in docs

* add testing for numeric formats passed to X and Y Axis Labels

* fix typo in comment

* update format documentation to mirror formats

* Update XAxis and YAxis labelFormat PropType

* Fix import for identity

* Update X and Y axis labels examples with new formats

* Update CHANGELOG.md

* Namespace xy plot props (#170)

* Update prop omission logic in XYPlot and change style -> xyPlotContainerStyle

* Fix tests and clean up

* Update format examples (#171)

* Update component docs and build

* Migrate to Spotify web scripts for eslint and prettier (#173)

* Added packages from spotify/web-scripts

* Run prettier

* Eslint clean up

* Run eslint on test instead of using eslint.spec.js

* Fix componentdocs file

* Rebuild docs

* Fix tests

* Update changelog

* Update docs

* Fix documentation props sort logic & update docs

* 2.0.0-rc.1

* Update changelog for 2.0.0
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.

1 participant