selfrefactor / rambdax

Extended version of Rambda
https://selfrefactor.github.io/rambdax
MIT License
221 stars 26 forks source link

flatMap is not a function #55

Closed hrishikesh-k closed 4 years ago

hrishikesh-k commented 4 years ago

Hello.

I'm using this in a Gatsby website (repo, file). Today, I updated to 4.0.1 and my build fails with the error flatMap is not a function (line 77). This worked fine till the 3.7.0. Has something changed? I read the changelog, but, didn't find anything useful.

Thanks.

selfrefactor commented 4 years ago

It is renamed to R.chain. I forgot to include this change in 4.0.0 changelog

hrishikesh-k commented 4 years ago

So now I've to replace flatMap, with chain, right?

selfrefactor commented 4 years ago

Yes, that should work. I personally don't use this method and it was in fact added by a contributor. I remember that I didn't change the logic inside and I expect that you won't have a problem. Let me know how it went.

hrishikesh-k commented 4 years ago

Alright, I had begin trying it, but then NPM is currently down. So, waiting for that to get solved first.

hrishikesh-k commented 4 years ago

Yeah, all works great. Thanks!