flyerhq / flutter_link_previewer

Customizable link and URL preview extracted from the provided text with the ability to render from the cache. Ideal for chat applications.
MIT License
72 stars 75 forks source link

a newer 'http' version #51

Closed yvs2014 closed 1 year ago

yvs2014 commented 1 year ago

Hello,

https://github.com/flyerhq/flutter_link_previewer/blob/ada90e20a6347e6345978ba6aec408513548aa9a/pubspec.yaml#L20

What about to update 'http' dependency to 1.0?

Reason (as just one of examples): 0.13.6 prevents to build an app with the last stable versions of flutter_map(5.0.0) and flutter_chat_ui(1.6.8) together

p.s. looks like http-0.13.x is only needed to make some tests with 'dart-code-metrics', which itself in a 'deprecation process' https://github.com/dart-code-checker/dart-code-metrics/blob/98f908a1ab1370b02a4fec9a6f8d7f7de4ae8f35/README.md?plain=1#L9

cristaloleg commented 1 year ago

Looks like there was a problem updating it https://github.com/flyerhq/flutter_link_previewer/pull/50

yvs2014 commented 1 year ago

@cristaloleg seen that, rejected because of the mentioned code checker depends on http-0.13.x. And that nested dependency prevents to work with not outdated packages. As I can see it, flutter_link_previewer itself can work with http-1.0.0.

demchenkoalex commented 1 year ago

same problem as I have in flutter_chat_ui where some people want updated dependency and some want old dependency. I bet a lot of 3rd party libs still use old http and they all will be broken and people will complain, on the other hand, some 3rd party update it, and now they are broken and other people complain :D never ending..

yvs2014 commented 1 year ago

@demchenkoalex I'd not say someone so complains, it's quite enough to make a fork and get rid of that 3rd party blob which isn't used and gone in a deprecation process that declares itself. It was interesting to know for what it needs in a first place, and no more.

vladchuk commented 1 year ago

Perhaps extending the dependency range is an option, something like http: '>=0.13.0 <2.0.0' ? This is what some other projects have done, notably grpc. This would make everyone happy :)

yvs2014 commented 1 year ago

Yeap, as an option, or as a workarond to keep dependency on 3rd party code checker. Anyway it also would allow a building with not outdated packages.

vladchuk commented 1 year ago

@demchenkoalex, what do you think about extending http dependency range? The old dependency lock is blocking quite a few updates :(

demchenkoalex commented 1 year ago

Didn't know you can do ranges, I will try this

vladchuk commented 1 year ago

Any progress on this? Maybe an estimate? Thanks!

demchenkoalex commented 1 year ago

Will do today, sorry, crazy week at my job

demchenkoalex commented 1 year ago

Released in v3.2.2

vladchuk commented 1 year ago

Excellent. Thank you!