8000 Fix: cross-version placeholder support by Harris-Miller · Pull Request #3463 · ramda/ramda · GitHub
[go: up one dir, main page]

Skip to content

Conversation

@Harris-Miller
Copy link
Contributor

Closes #3458

The strict equality operator means that _isPlacerholder works for only the R.__ from that specific install. If your project has multiple versions of ramda (which can easily happen due to npm semver resolution and ^ versus ~ versus exact in package.json), you'll have problems.

https://github.com/ramda/ramda/pull/3388/files#diff-cfb81eb9592aa5597e5aa32c6e449214f5b7eabeb172ad2447e2e537232454d2L2-R4

Reverting the logic back to what it was before is a looser check that will work cross-version

@github-actions
Copy link
github-actions bot commented May 2, 2024
Coverage
> ramda@0.30.0 coverage:summary
> BABEL_ENV=cjs nyc --reporter=text-summary mocha -- --reporter=min --require @babel/register

�[2J�[1;3H
1190 passing (893ms)


=============================== Coverage summary ===============================
Statements   : 94.04% ( 2477/2634 )
Branches     : 85.73% ( 967/1128 )
Functions    : 93.25% ( 553/593 )
Lines        : 94.32% ( 2323/2463 )
================================================================================

@kedashoe
Copy link
Contributor
kedashoe commented May 4, 2024

I believe we can remove this file as well.

@github-actions
Copy link
github-actions bot commented May 5, 2024
Coverage Summary
> ramda@0.30.0 coverage:summary
> BABEL_ENV=cjs nyc --reporter=text-summary mocha -- --reporter=min --require @babel/register

�[2J�[1;3H
1190 passing (853ms)


=============================== Coverage summary ===============================
Statements   : 94.04% ( 2477/2634 )
Branches     : 85.73% ( 967/1128 )
Functions    : 93.25% ( 553/593 )
Lines        : 94.32% ( 2323/2463 )
================================================================================

@kedashoe kedashoe merged commit 3225400 into ramda:master May 7, 2024
@kedashoe kedashoe mentioned this pull request Jun 2, 2024
@harshagarwal-mono
Copy link

I know this PR is merged but still we can do one more thing that is too keep both the check. So that if anyone using the latest version he gets the benifit of === and for backward compatibility lets use already existing.

718E
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.

Since v0.30 functions curried by Ramda break when used with R.__ from another Ramda version

3 participants

0