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

Release 1.14 #296

Closed
Nyholm opened this issue Dec 30, 2018 · 8 comments
Closed

Release 1.14 #296

Nyholm opened this issue Dec 30, 2018 · 8 comments

Comments

@Nyholm
Copy link
Member

Nyholm commented Dec 30, 2018

I think we should prepare for a new minor release.

@gmponos mentioned in #295 (review) that we should do a major release. Could you please elaborate?

@gmponos
Copy link
Contributor

gmponos commented Dec 30, 2018

I created a test application with this bundle. Except if I did something wrong in order to inject a PSR client I had to use

        "php-http/guzzle6-adapter": "^2.0",
        "php-http/client-common": "2.x-dev",

both of the packages above drop sup for PHP 5. In the end you will have a Bundle which will be universal for both of php-http/*: v1 and php-http/*: v2.. and you will try to support both of these...

The BC for the consumers are already covered when they will try to use for instance guzzle6-adapter:v2

Their upgrade path for the bundle as a bundle is easy.. so in the end the maintenance cost that I see here is bigger than it is worth it..

@gmponos
Copy link
Contributor

gmponos commented Dec 30, 2018

which will be universal for both of php-http/: v1 and php-http/: v2

if this is what you guys want then there is nothing wrong with this.. My personal preference in general is that it is better to bump to a new version.

@Nyholm
Copy link
Member Author

Nyholm commented Dec 31, 2018

All the BC layer is in place. It was about 10 lines of code.
The issue you mention here and on slack is that you cannot use HTTPlug 1.0 together with a PSR-18 client. This is fixed in php-http/client-common#143

@gmponos
Copy link
Contributor

gmponos commented Dec 31, 2018

The issue you mention here and on slack is that you cannot use HTTPlug 1.0 together with a PSR-18 client.

Yes exactly.. I though that the goal of your PR initially was that.. personally I am not 100% that it should... I can admit that it offers more BC compatibility but at the same time I find it a little bit overkill.

Let's brake it down... let's say that I want to do that and use HTTPlug 1.0 with PSR-18..
First of all this means that I am already on PHP 7.

Secondly what reason do I have not to update my packages to v2...

HTTPlug client, guzzle-adapter, and common package have minimum changes

php-http/httplug@v1.1.0...v2.0.0

The only valid reason that I can think of is if a consumer implemented his own HTTPlug Client. If we force him to move to v2 then we force him to implement PSR-18.

@Nyholm
Copy link
Member Author

Nyholm commented Dec 31, 2018

Yes exactly.. I though that the goal of your PR initially was that

It wasn't but it is a good goal.


I know the changes are minimal between 1.x and 2.x. But the BC layer here is minimal. The major changes happend in client-common. With php-http/client-common#143 that is all in place. Then we drop most of it when we release php-http/client-common:2.0.

Bumping this bundle to 2.0 will only make the upgrade path harder. I want to keep as many things 1.0 as possible.
If we want to change some major thing or release 2.0 in 6 months, sure, lets talk then.

@Nyholm
Copy link
Member Author

Nyholm commented Dec 31, 2018

We are currently blocked by

php-http/client-common: 1.9
php-http/stopwatch-plugin: 1.2
php-http/cache-plugin: 1.6
php-http/logger-plugin: 1.1

@dbu
Copy link
Collaborator

dbu commented Dec 31, 2018

i agree with @Nyholm. the problem with doing a version 2 of this is that people stuck on php 5 or otherwise not willing to upgrade either get no updates anymore, or we have to maintain two versions of the bundle. as the overhead for staying BC is minimal, i think its better to stay version 1 for now.

when there is a need in this bundle to bump to php 7.1 to use some of the new features of php, i am happy to go to a version 2. but as tobias says, thats something for later.

@Nyholm
Copy link
Member Author

Nyholm commented Jan 3, 2019

I've release 1.14.0.

@Nyholm Nyholm closed this as completed Jan 3, 2019
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

No branches or pull requests

3 participants