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

feat(deps): replace recompose with inlined version #1494

Merged
merged 1 commit into from
Apr 26, 2021

Conversation

G-Rath
Copy link
Contributor

@G-Rath G-Rath commented Apr 25, 2021

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 using sinon, just to avoid having sinon as a dependency here - it should be possible to replace sinon with jest 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

@G-Rath G-Rath mentioned this pull request Apr 25, 2021
@codesandbox-ci
Copy link

codesandbox-ci bot commented Apr 25, 2021

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 6eab54e:

Sandbox Source
nivo Configuration
nivo-website Configuration

@G-Rath G-Rath force-pushed the inline-recompose branch 2 times, most recently from d61a01e to 91fe633 Compare April 25, 2021 22:22
@G-Rath G-Rath marked this pull request as ready for review April 25, 2021 22:23
packages/core/package.json Outdated Show resolved Hide resolved
@wyze
Copy link
Contributor

wyze commented Apr 25, 2021

Also, lets add this to L17 in tsconfig.monorepo.json file in the root of the project.

@G-Rath G-Rath force-pushed the inline-recompose branch from 91fe633 to 6eab54e Compare April 25, 2021 23:58
@G-Rath G-Rath requested a review from wyze April 26, 2021 00:08
Copy link
Contributor

@wyze wyze left a comment

Choose a reason for hiding this comment

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

Looks good now.

@wyze wyze changed the title feat: replace recompose with inlined version feat(deps): replace recompose with inlined version Apr 26, 2021
@wyze wyze merged commit 09b0206 into plouc:master Apr 26, 2021
@rap2hpoutre
Copy link

Thank you so much @G-Rath!

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.

node-fetch vulnerability, dependabot fix impossible DOS security vulnerability
3 participants