dart-json-mapper icon indicating copy to clipboard operation
dart-json-mapper copied to clipboard

dart_json_mapper 2.2.10 depends on analyzer ^5.4.0

Open matt-hall-zory opened this issue 1 year ago • 2 comments

analyzer is currently at version 6.4.0 while dart_json_mapper depends on ^5.4.0. This has made it impossible to keep riverpod up to date (which depends on ^6.0.0). Any chance of upgrading the dependency on analyzer to at least 6.0.0?

matt-hall-zory avatar Jan 29 '24 05:01 matt-hall-zory

Unfortunately it depends on reflectable library from Google which is not up to date with the latest analyzer. So you should probably chase the reflectable project author's

k-paxian avatar Jan 29 '24 06:01 k-paxian

Ah yes. There is a PR for this to be reviewed. https://github.com/google/reflectable.dart/pull/326

matt-hall-zory avatar Jan 29 '24 07:01 matt-hall-zory

Reflectable has been updated to 4.0.6 https://pub.dev/packages/reflectable

matt-hall-zory avatar Mar 08 '24 05:03 matt-hall-zory

Awesome, thanks for letting me know. I'll try to keep up shortly

k-paxian avatar Mar 08 '24 06:03 k-paxian

Should be there, let me know if anything else needed 😉

k-paxian avatar Mar 08 '24 10:03 k-paxian

Thanks, but I still can't resolve. Similar issue to what happened in reflectable. I use integration_test which is lagging. Because every version of integration_test from sdk depends on meta 1.11.0 and dart_json_mapper >=2.2.11 depends on meta ^1.12.0, integration_test from sdk is incompatible with dart_json_mapper >=2.2.11.

matt-hall-zory avatar Mar 10 '24 04:03 matt-hall-zory

In such cases when version discrepancy is not critical, you could temporarily use https://dart.dev/tools/pub/dependencies#dependency-overrides

like

...
dependency_overrides:
  meta: '1.11.0'

OR you can use mapper 2.2.12+1 version where I've downgraded meta package requirement

k-paxian avatar Mar 10 '24 10:03 k-paxian