Skip to content

1.2.1

Choose a tag to compare

@ZacSweers ZacSweers released this 03 Dec 22:51
· 382 commits to main since this release

This release is primarily under-the-hood changes + extra compile-time checks.

  • [IR] Fail compilation if both class and any number of properties are annotated with @Redacted.
  • [IR] Fail compilation if @Redacted is used in a non-class context.
    • Before it would only check if the class is non-data, but with Kotlin 1.8 introducing data object classes we need to also check that the target type is itself a class.
  • [IR] Fail compilation if a custom toString() function is implemented in a data class using @Redacted.
  • [IR] Harden toString() function declaration matching.
  • [FIR] Promote REDACTED_ON_CLASS_AND_PROPERTY_WARNING to error.
  • Update to Kotlin 1.7.22.

General repo infra

  • Run parameterized tests against both IR and FIR
  • Add more tests for failure cases

What's Changed

New Contributors

Full Changelog: 1.2.0...1.2.1