Upgrading source_gen 0.5 to 0.6
Breaking0.5.10+1 → 0.6.1+1Breaking1New2Changed2
BreakingUpgrade verdict
1 breaking change.
In plain terms
- When you ask a type checker for annotations, it now also matches subclasses and assignable types, not just exact matches. Use the new Exact methods if you need the old strict matching.
Must act 1 item needs code or config changes
What you must change
Breaking1
TypeChecker#annotationsOf and firstAnnotationOf now return annotations assignable to the TypeChecker's type; new Exact variants keep the old precise behavior.
TypeChecker#annotationsOfTypeChecker#firstAnnotationOfTypeChecker#annotationsOfExactTypeChecker#firstAnnotationOfExact