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

Fix: cross-version placeholder support #3463

Merged
merged 2 commits into from
May 7, 2024

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

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.

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
5 checks passed
@kedashoe kedashoe mentioned this pull request Jun 2, 2024
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
2 participants