feat(deps): replace recompose
with inlined version
#1494
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Here there be dragons.
This is a first pass at inlining
recompose
- it should be working, but I expect to have to iron out a few issues with tooling.I've done it in TypeScript using the types from
@types/recompose
, but have not bothered to make it completely typesafe as that's pretty much impossible - ideally it'd be worth moving off these functions down the line.I've also copied over all of the tests from
recompose
except those that are usingsinon
, just to avoid havingsinon
as a dependency here - it should be possible to replacesinon
withjest
features, or add the dependency in a second pass.I think this is probably already good to go almost as is - I'd like to get this landed asap so that I can start using
@nivo
in my projects :)Fixes #1479
Fixes #1470