dart-code-checker/dart-code-metrics

Support dependency analyzer 5.12.0

asaarnak opened this issue · 5 comments

I would love to have this, since there was a hotfix in envied (0.3.0+1). And the dependencies cannot match at the moment

Because envied_generator >=0.3.0+1 depends on analyzer ^5.12.0 and dart_code_metrics >=5.7.3 depends on analyzer >=5.1.0 <5.12.0, envied_generator >=0.3.0+1 is incompatible with dart_code_metrics >=5.7.3.

So, because shared depends on both dart_code_metrics 5.7.3 and envied_generator 0.3.0+1, version solving failed.

Can we get this going please? Unable to upgrade to the latest Flutter without this bump. Also using json_serializable package

@dkrutskikh @incendial Could we merge this? Seems like a non-breaking change.

analyzer changelog #5.12.0

  • Deprecated DartType.isDynamic, use is DynamicType instead.
  • Updated NamedType to use importPrefix and name2 token. The deprecated name node is still visited in this version, but will stop in the next major version.
  • Updated ExtensionOverride to use importPrefix and name token. The deprecated extensionName node is still visited in this version, but will stop in the next major version.
  • Deprecated the default AnalysisError constructor, use tmp constructor, with names formal parameters. Theoretically no clients should use either, but practically there are two uses currently.
  • Added InvalidType, used when a named type cannot be resolved, or a property cannot be resolved, etc. Previously DynamicType was used. In the future DynamicType will be used only when specified explicitly, or a property is resolved against a dynamic target. The clients should prepare by checking also for InvalidType in addition to DynamicType.

Available as 5.7.4.

Please keep in mind that even though the package is marked as "Dart 3 compatible", there is no support for the new Dart 3 syntax in this version.