8000 Added backward compatibility for react/promise by glo71317 · Pull Request #12188 · composer/composer · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
8000

Added backward compatibility for react/promise #12188

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

Closed
wants to merge 1 commit into from

Conversation

glo71317
Copy link
@glo71317 glo71317 commented Nov 7, 2024

No description provided.

@glo71317
Copy link
Author
glo71317 commented Nov 7, 2024

@naderman @Seldaek I would like to understand your point of view on this PR changes, As in current composer version 2.8.x, Removed react/promise:^2.x and now keeping only react/promise:3.x due to this several other packages are not backward compatible.
If we listing both supported versions as earlier react/promise: ^2.8 || ^3 means that interoperability with other packages is maintained; Composer will pick the "best" version, which is typically the highest mutually-supported version. If we use ^3.0 only here, then we're forcing others to upgrade their packages in order for their coding standard to be used in conjunction with this product.

Can you share your point of view on this?

@Seldaek
Copy link
Member
Seldaek commented Nov 7, 2024

I'm not sure about this one. react/promise 3.x is not a very difficult migration, and requiring composer/composer is generally frowned upon, so why should we support 2.x still? What's the exact use case you're solving?

@glo71317
Copy link
Author
glo71317 commented Nov 7, 2024

I'm not sure about this one. react/promise 3.x is not a very difficult migration, and requiring composer/composer is generally frowned upon, so why should we support 2.x still? What's the exact use case you're solving?

@Seldaek you may right react/promise 3.x is not a very difficult migration but we want to use composer:2.8 in adobe commerce but some other packages are not allowing to update the latest version of composer e.g. package ezimuel/ringphp requires react/promise:2.x and opensearch-project/opensearch-php package depends on ezimuel/ringphp:1.2.2.

As a result, these interdependent packages create a conflict, blocking the upgrade to the latest Composer version.

@Seldaek
Copy link
Member
Seldaek commented Nov 8, 2024

And have you reached out to ezimuel to see if he can bump his promise requirement to allow v3? Because that'd be a better fix imo (moving forward)

@glo71317
Copy link
Author
glo71317 commented Nov 8, 2024

And have you reached out to ezimuel to see if he can bump his promise requirement to allow v3? Because that'd be a better fix imo (moving forward)

@Seldaek Yes, i tried to reach him but did not get any update ezimuel/ringphp#12

@glo71317
Copy link
Author

Hi @Seldaek As this PR ezimuel/ringphp#12 is closed from maintainer side.

Are we planning to address the backward compatibility issue regarding react/promise:2.x? It may be beneficial to consider removing support for react/promise:2.x in a future major version of Composer. This would ensure that Composer 2.8.x (and later versions) can be used without introducing breaking changes for users who rely on the current version of react/promise.

Looking forward to feedback and suggestions on this approach.

@Seldaek
Copy link
Member
Seldaek commented Nov 14, 2024

Well if ringphp is deprecated and abandoned, I'd then go talk to opensearch-project/opensearch-php about this because they should not use it anymore.

But yes I'll keep this open in the meantime and take a look whether I can reintroduce the promise v2 requirement or not, I don't quite recall why I removed it.

@Seldaek Seldaek added this to the 2.8 milestone Nov 14, 2024
@Seldaek Seldaek added the Bug label Nov 14, 2024
@stof
Copy link
Contributor
stof commented Nov 14, 2024

@Seldaek opensearch-php is aware of it. And there is a WIP about removing its usage, but it basically involves rewriting the whole library, so it will take time to complete the work.

@Seldaek Seldaek closed this in 2e83ead Nov 15, 2024
@Seldaek
Copy link
Member
Seldaek commented Nov 15, 2024

Ok it seems to run fine with 2.x, so I guess we can do this change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0