Upgrading pana 0.21 to 0.22
Breaking0.21.45 → 0.22.24Breaking4Deprecated1New12Changed24Fixed18Other35
BreakingUpgrade verdict
4 breaking changes.
In plain terms
- Code that read ToolEnvironment.panaCache will no longer compile.
- Renamed runProc -> runConstrained.
- Removed.
- ToolException has reference to the entire PanaProcessResult, instead of just the stderr.
Must act Top 4 of 5 that need code or config changes
Dart SDK requirement changed in 0.22.24: >=3.0.0 <4.0.0 → ^3.9.0.
Moves analyzer >=5.0.0 <7.0.0 → ^8.1.1, args ^2.0.0 → ^2.7.0, async ^2.0.0 → ^2.13.0, cli_util ^0.4.0 → ^0.4.2, collection ^1.15.0 → ^1.19.1, crypto ^3.0.0 → ^3.0.6, html ^0.15.0 → ^0.15.6, http ^1.0.0 → ^1.4.0, io ^1.0.0 → ^1.0.5, json_annotation ^4.8.1 → ^4.9.0, lints ^3.0.0 → ^6.0.0, logging ^1.0.0 → ^1.3.0, markdown ^7.0.0 → ^7.3.0, meta ^1.4.0 → ^1.17.0, path ^1.6.2 → ^1.9.1 and 9 more. Your build may pick other versions.
What you must change
Breaking4
Removes the ToolEnvironment.panaCache field, which was not intended for public API.
ToolEnvironment.panaCacheRenamed runProc -> runConstrained.
runProcrunConstrainedRemoved.
InspectOptions.checkRemoteRepositoryPackageAnalyzercreate()inspectVersions()storeResourceinspectPackage()ToolException has reference to the entire PanaProcessResult, instead of just the stderr.
ToolExceptionPanaProcessResultstderrDeprecations to plan for
Deprecated1
Deprecates the
renderSimpleSectionSummary method in the public API.renderSimpleSectionSummary