Skip to content
This repository was archived by the owner on Jul 16, 2023. It is now read-only.

Support dependency analyzer 5.12.0 #1230

Closed
asaarnak opened this issue May 10, 2023 · 5 comments
Closed

Support dependency analyzer 5.12.0 #1230

asaarnak opened this issue May 10, 2023 · 5 comments

Comments

@asaarnak
Copy link

image

@asaarnak
Copy link
Author

PR: #1231

@praxamarnix
Copy link

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.

@giorgio79
Copy link

giorgio79 commented May 17, 2023

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

@asaarnak
Copy link
Author

@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.

@incendial
Copy link
Member

incendial commented May 17, 2023

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants