Upgrading source_gen 1 to 2
Breaking1.5.0 → 2.0.0Breaking1Platform1New3Changed3Other1
BreakingUpgrade verdict
1 breaking change and a platform requirement change.
In plain terms
- Code that calls the output formatting function must now pass the Dart language version.
- Requires Dart 3.6.0.
Must act 2 items need code or config changes
Dart SDK requirement changed in 2.0.0: ^3.0.0 → ^3.6.0.
Adds pub_semver ^2.1.4.
Moves analyzer >=5.2.0 <7.0.0 → >=6.9.0 <8.0.0, dart_style ^2.0.0 → >=2.3.7 <4.0.0. Your build may pick other versions.
What you must change
Breaking1
Changes the
formatOutput function to accept a language version parameter.formatOutputPlatform1
Requires Dart 3.6.0.