Skip to content

Releases: ZacSweers/redacted-compiler-plugin

1.7.1

26 Nov 19:01
Compare
Choose a tag to compare
  • Update Kotlin to 1.9.21.

1.7.0

31 Oct 20:29
Compare
Choose a tag to compare
  • Update to Kotlin 1.9.20. This plugin now requires 1.9.20.
  • Update wasm target to wasmJs.

What's Changed

Full Changelog: 1.6.1...1.7.0

1.6.1

03 Sep 03:18
Compare
Choose a tag to compare
  • Enhancement: Simplify lookup of KotlinCompilation's implementation configuration name in the Gradle plugin when using the default annotation.
  • Update to Kotlin 1.9.10.
  • Build against Gradle 8.3.

What's Changed

Full Changelog: 1.6.0...1.6.1

1.6.0

08 Jul 21:32
Compare
Choose a tag to compare
  • New: Support value class types. Note that only annotating the class is supported, as annotating the property would be redundant.

What's Changed

Full Changelog: 1.5.0...1.6.0

1.5.0

06 Jul 21:33
Compare
Choose a tag to compare
  • Update to Kotlin 1.9.0. This plugin now requires 1.9.0.

What's Changed

Full Changelog: 1.4.0...1.5.0

1.4.0

03 Apr 13:17
Compare
Choose a tag to compare
  • Update to Kotlin 1.8.20. This plugin now requires 1.8.20.
  • [annotations] Mark JS binaries as executable.
  • [annotations] Remove deprecated watchosX86().
  • [annotations] Add wasm target. Note this is experimental and not stable.
  • [annotations] Add androidNativeArm32, androidNativeArm64, androidNativeX86, androidNativeX64, and watchosDeviceArm64 targets.

What's Changed

Full Changelog: 1.3.1...1.4.0

1.3.1

16 Mar 20:26
Compare
Choose a tag to compare
  • Fix: Missing jvmTarget in the annotations artifact. Target is now properly set to Java 11.
  • Update to Kotlin 1.8.10.

1.3.0

29 Dec 14:46
Compare
Choose a tag to compare
  • Update to Kotlin 1.8.0. This release is only compatible with Kotlin 1.8 or later.
  • Update JVM target to 11.
  • Kotlin JS artifact now only supports IR.
  • Migrate the IR and FIR plugins to new CompilerPluginRegistrar entrypoint API.

What's Changed

Full Changelog: 1.2.1...1.3.0

1.2.1

03 Dec 22:51
Compare
Choose a tag to compare

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

1.2.0

03 Oct 15:41
Compare
Choose a tag to compare

Experimental support for the new K2 compiler + FIR plugin.

Note this comes with several caveats:

  • No IDE support yet
  • Errors and warnings can't have custom messages yet: KT-53510.
  • Multiple errors and warnings result in only a single error being emitted: KT-54287.
  • K2 compiler itself is extremely experimental.

In short, this is only really to unblock anyone doing their own testing of K2 and don't want this
plugin to disable it. If you see any issues, please file a bug here and disable K2 in your project
in the meantime.

Details on K2 and instructions for enabling it can be found here: https://kotlinlang.org/docs/whatsnew17.html#new-kotlin-k2-compiler-for-the-jvm-in-alpha

Also: update to Kotlin 1.7.20.