f3ath / json-api-dart

JSON:API client and server for Dart/Flutter
https://pub.dartlang.org/packages/json_api
MIT License
79 stars 24 forks source link

latest release (v8) is not compatible with flutter stable (3.22) #142

Open TatsuUkraine opened 1 week ago

TatsuUkraine commented 1 week ago

It seems recent release is not compatible with current flutter stable release.

http_interop v2 requires collection package version 0.19. Which isn't compatible with flutter_test from current flutter stable release

Because every version of flutter from sdk depends on collection 1.18.0 and http_interop >=2.0.0 depends on collection ^1.19.0, flutter from sdk is incompatible with http_interop >=2.0.0.
And because json_api >=8.0.0 depends on http_interop ^2.0.0, flutter from sdk is incompatible with json_api >=8.0.0.
f3ath commented 1 week ago

Thanks. http_interop doesn't really need that specific version of collection, so we might relax the version requirements to resolve the issue. On the other hand, neither json_api v8 nor http_interop v2 bring new features. The reason for the version bump was just to allow some BC-breaking changes in the API. You won't miss much if you stay on v7 for now, furthermore, this would allow me to iron out potential bugs in v8.

TatsuUkraine commented 1 week ago

@f3ath thanks for feedback, yep I saw release notes, nothing that impacts me for sure, mostly worry if you find any bugs that are not related to v8, and you need to address those then I'm stuck with v7 😁

TatsuUkraine commented 1 week ago

Just decided to put a note in the repo, for just in case) nothing that needs to be address asap)