df_safer_dart_annotations 0.3.1 copy "df_safer_dart_annotations: ^0.3.1" to clipboard
df_safer_dart_annotations: ^0.3.1 copied to clipboard

Annotations for the df_safer_dart_lints package.

Changelog #

0.3.1 #

  • feat: add @sendable / SendableAnnotation and @sendableOrError / SendableOrErrorAnnotation markers for parameters that must be sendable through SendPort (top-level functions and static method references only). The error variant escalates the matching df_safer_dart_lints rule from warning to error severity.

0.3.0 #

  • fix: mustHandleReturnOrError now refers to the dedicated MustHandleReturnOrErrorAnnotation class (it was previously aliased to MustHandleReturnAnnotation). The df_safer_dart_lints plugin matches annotations by class name, so the warning and error variants used to be indistinguishable — @mustHandleReturnOrError callsites were being picked up by the warning-level rule instead of the error-level one. Both variants now fire under their intended severity.