riverpod_devtools 1.1.2
Patch release: one performance fix and one compatibility fix. No API changes.
-
Perf:
dart run riverpod_devtools:analyzeis dramatically faster on large projects. The CLI resolved every file semantically (AnalysisContextCollection+getResolvedUnit), which re-resolves each file's transitive imports — near "files × whole program" work, taking minutes on provider-heavy apps. But the extraction is purely syntactic (provider patterns,ref.watch/read/listenby name,@riverpodby annotation name) and never used the resolution, so the analyzer now does a plain syntax-only parse per file (parseFile). Cost is proportional to source size only — typically minutes → well under a second — and the generatedriverpod_dependencies.jsonis identical.--watchre-analysis gets the same speedup. (#117) -
Fix:
dart run riverpod_devtools:analyzeno longer fails to compile onanalyzer14+.ArgumentList.arguments's element type changed fromNodeList<Expression>toNodeList<Argument>(a new sealed interface implemented by bothExpressionand the newNamedArgument; the oldNamedExpressionwas removed) — a genuine breaking type change that can't be bridged with a single static type. Theref.watch/read/listenargument extractor now resolves the argument's expression dynamically instead of relying on either shape, restoring compatibility across the package's full declaredanalyzer: >=6.0.0 <15.0.0range. (#118)
Published to pub.dev: https://pub.dev/packages/riverpod_devtools/versions/1.1.2