-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Tracking issue for removing recompose
dependency
#884
Comments
Im getting same warning |
Getting the same issue, How to remove the error |
Same issue :( |
Same here :( |
Same... |
This isn't a direct problem with the nivo packages, but instead of with one of its dependencies: recompose. Specifically and Unfortunately, the recompose package appears to be mostly unmaintained. It's recommended to replace this package with some hooks. |
Reading recompose readme, it suggest you use React Hooks instead |
Same |
There is a PR fixing this issue at recompose repository waiting to be merged for over a month acdlite/recompose#795 |
Any updates on this? It's still showing in version 0.61.1 |
It's still showing to me too. Warning: React.createFactory() is deprecated. I am still waiting for a solution. |
The solution from our end is to move away from recompose as a dependency. Which some charts already are using hooks instead. There are still a bunch of charts using this method, so it will take some time to get them all converted. If anyone is interested in converting one, please don't hesitate to open a PR. Here is an example of a commit where this was done: 51a58c1 |
Can someone make a list of the components that need a move away from recompose? |
Packages list moved to main description. |
|
I am willing to help contribute getting some of the list that @wyze mentions above converted over to a hooks-based implementation... but I do not want to invest that time if we have no chance of getting that work merged/published. The last published NPM release for Nivo was in 2017. @plouc if we get this work done to where we can drop the Yes, I am aware that we could declare the dependency in |
@brianespinosa while I agree I haven't been really reactive lately due to personal constrains, the latest release is from 4 months ago, I guess you referring to the old I understand that it can be quite frustrating to contribute on projects and to get no feedback or release including your work (I've experienced it too), and I really apologize for this. I'll try to release something as soon as I can, but I prefer to not give a date, as each time I did, I had other priorities and could not release. Unfortunately, forking would not work, you cannot point to repo packages directly as they have to be compiled, and the generated artifacts are ignored, also, as you mentioned, this approach has drawbacks and I would definitely not recommend doing this even if that was feasible. |
@brianespinosa, I'm currently working on the state of CSS/JS surveys and I usually spend some time on nivo too as they use a lot of dataviz, so this should happen soon enough. |
Thanks @plouc In this case, I am going to let some of my team know that we can target some of these charts for refactoring. I can report back in about a week with where some of my team want to focus their efforts so we can coordinate. |
Now removed from |
I'm getting this in |
I am also getting in 0.67.0. I am getting this as security vulnerability for @nvivo/bar. |
Please note that until this list is fully completed, you're going to get those warnings, we're aware and working on it! @wyze took care of the |
Just to let you know guys, I got this warning in |
Any news on |
Just bumping, looks like this is happening in console.warn
Warning: React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.
...
...
at enhance (node_modules/@nivo/voronoi/src/enhance.js:19:5) |
`node-fetch` has been fixed at <= 2.6.0 in the `@nivo` libraries, there is a tracked removal of these deprecated methods plouc/nivo#884. This has been ongoing for roughly a year and looks like it won't be patched in all the dependent modules (nivo/line) for a while. The only parts of this app that use nivo/ react is the live payments dashboard, the proposal is to split this out into its own component repository as these kind of issues shouldn't reuqire maintenance for Pay backend devs. In the meantime none of the nivo components for the live payments dashboard use asynchronous loading, as this is never used it is safe to patch out the library failing npm audit (node fetch) until these dependencies are moved over to a separate component repository and handled and tracked over there.
`node-fetch` has been fixed at <= 2.6.0 in the `@nivo` libraries, there is a tracked removal of these deprecated methods plouc/nivo#884. This has been ongoing for roughly a year and looks like it won't be patched in all the dependent modules (nivo/line) for a while. The only parts of this app that use nivo/ react is the live payments dashboard, the proposal is to split this out into its own component repository as these kind of issues shouldn't reuqire maintenance for Pay backend devs. In the meantime none of the nivo components for the live payments dashboard use asynchronous loading, as this is never used it is safe to patch out the library failing npm audit (node fetch) until these dependencies are moved over to a separate component repository and handled and tracked over there.
`node-fetch` has been fixed at <= 2.6.0 in the `@nivo` libraries, there is a tracked removal of these deprecated methods plouc/nivo#884. This has been ongoing for roughly a year and looks like it won't be patched in all the dependent modules (nivo/line) for a while. The only parts of this app that use nivo/ react is the live payments dashboard, the proposal is to split this out into its own component repository as these kind of issues shouldn't reuqire maintenance for Pay backend devs. In the meantime none of the nivo components for the live payments dashboard use asynchronous loading, as this is never used it is safe to patch out the library failing npm audit (node fetch) until these dependencies are moved over to a separate component repository and handled and tracked over there.
Hi, I'm getting this warning using only |
I saw that @plouc expanded the initial issue I reported, but like @cfecherolle I'm only using |
Maybe we could do a temporary fix, by using the fork of It would be an intermediate step before doing something more difficult like completely remove the recompose package. Since it cost less time and less test, it could be faster for @plouc to accept PR before working on the full fix that removes recompose. What do you think? Source: acdlite/recompose#817 (comment) |
Also: does @plouc still merge PR/maintain this project actively? |
recompose
dependency
|
Hey is this still a thing? We also need support for react 18.0 by now, is that gonna be an issue? |
Of the open tasks, there is already a PR for waffle, so only core is outstanding. @plouc Would it be OK for me to have a look at that? It is a central component, so I understand if you'd rather leave it to someone with more nivo and js experience. |
Removal from |
Removed from |
Updating React now leads to a deprecation warning in the console:
This is due to the
recompose
package which is still used for some of the nivo packages, we have to migrate the following packages to React hooks (providing the same features) to get rid of it:The text was updated successfully, but these errors were encountered: