Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update moshiVersion to v1.15.1 #18

Closed
wants to merge 1 commit into from
Closed

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jan 12, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
com.squareup.moshi:moshi-kotlin-codegen 1.9.3 -> 1.15.1 age adoption passing confidence
com.squareup.moshi:moshi 1.9.3 -> 1.15.1 age adoption passing confidence

Release Notes

square/moshi (com.squareup.moshi:moshi-kotlin-codegen)

v1.15.1

2024-01-30

  • Upgrade to Okio 3.7.0

v1.15.0

2023-05-12

  • Upgrade to Kotlin 1.8.21.
  • Upgrade to KSP 1.8.21-1.0.11.
  • Upgrade to kotlinx-metadata 0.6.0.
  • Upgrade to KotlinPoet 1.13.2.
  • Support Kotlin language version 1.9.0 in KAPT.
  • Include name of the type being processed when creating the adapterGenerator fails in KSP.
  • Suppress UNUSED_PARAMETER in generated code.
  • Deprecate KAPT code gen. Please migrate to KSP, we will remove KAPT support in a future release. This release will also print an annoying noisy warning in KAPT processing if you use it.

v1.14.0

2022-09-06

  • Upgrade: [Kotlin 1.7.0][kotlin_1_7_0].
  • Upgrade [KotlinPoet 1.12.0][kotlinpoet_1_12_0].
    • Moshi no longer shades kotlinpoet-ksp APIs, meaning they can be updated independently of Moshi updates.
  • Upgrade: [KSP 1.7.0-1.0.6][ksp_1_7_0_1_0_6].
  • Upgrade: [kotlinx-metadata 0.5.0][kotlinx_metadata_0_5_0], allowing reading of kotlin 1.8 APIs too.

v1.13.0

2021-12-08

  • New: Support for [Kotlin Symbol Processing (KSP)][ksp]. KSP is an alternative to annotation
    processing code gen. It's builds faster and better supports Kotlin language features.

    To use KSP in your application you must enable the KSP Gradle plugin and add a KSP dependency
    on Moshi codegen.

    plugins {
      id("com.google.devtools.ksp").version("1.6.0-1.0.1")
    }
    
    dependencies {
      ksp("com.squareup.moshi:moshi-kotlin-codegen:1.13.0")
    }
    

    If you're switching from annotation processing (kapt) to KSP, you should remove the kapt plugin
    and the kapt Moshi dependency.

  • New: @Json(ignore = true) is a Moshi-specific way to exclude properties from JSON encoding
    and decoding.

  • New: Support Java 16 records. (Moshi still requires Java 8 only; we're shipping a [multi-release
    jar][mrjar] to better support modern JVMs.)

  • New: Option to disable generating R8/ProGuard files. These files prevent code shrinkers from
    removing files that support JSON processing. If you're not using ProGuard or R8, you can skip
    this step.

    ksp {
      arg("moshi.generateProguardRules", "false")
    }
    
  • Upgrade: [Kotlin 1.6.0][kotlin_1_6_0].

v1.12.0

2021-04-01

  • New: Improve generated code performance when all properties are set.
  • Fix: Don't crash on a missing type element like @SuppressLint.
  • Fix: Update the JVM metadata library to avoid problems on Kotlin 1.5.0-M2.
  • Fix: Support generic arrays with defaults in generated adapters.
  • Fix: Don't generate code with simple name collisions.
  • Upgrade: [Okio 2.10.0][okio_2_10_0].
  • Upgrade: [Kotlin 1.4.31][kotlin_1_4_31].

v1.11.0

2020-10-04

  • New: Kotlin extension functions and properties. Use of these extensions is only possible from
    Kotlin, and requires the Kotlin stdlib dependency. This release does not have any Kotlin
    requirement and can be used Kotlin-free from Java.

    /** Extension alternative to [Types.nextAnnotations()]. */
    fun <reified T : Annotation> Set<Annotation>.nextAnnotations(): Set<Annotation>?
    
    /** Extension alternative to [Types.getRawType()]. */
    val Type.rawType: Class<*>
    
    /** Extension alternative to [Types.arrayOf()]. */
    fun KClass<*>.asArrayType(): GenericArrayType
    
    /** Extension alternative to [Types.arrayOf()]. */
    fun Type.asArrayType(): GenericArrayType
  • New: Experimental Kotlin extensions. These depend on unreleased APIs and may break in a future
    release of Kotlin. If you are comfortable with this, add @ExperimentalStdlibApi at the callsite
    or add this argument to your Kotlin compiler: "-Xopt-in=kotlin.ExperimentalStdlibApi".

    /** Returns the adapter for [T]. */
    inline fun <reified T> Moshi.adapter(): JsonAdapter<T>
    
    /** Returns the adapter for [ktype]. */
    fun <T> Moshi.adapter(ktype: KType): JsonAdapter<T>
    
    /** Adds an adapter for [T]. */
    inline fun <reified T> Moshi.Builder.addAdapter(adapter: JsonAdapter<T>): Moshi.Builder
    
    /** Extension alternative to [Types.arrayOf()]. */
    fun KType.asArrayType(): GenericArrayType
    
    /** Extension alternative to [Types.subtypeOf()]. */
    inline fun <reified T> subtypeOf(): WildcardType
    
    /** Extension alternative to [Types.supertypeOf()]. */
    inline fun <reified T> supertypeOf(): WildcardType
  • New: JsonReader.nextSource(). This returns an Okio BufferedSource that streams the UTF-8
    bytes of a JSON value. Use this to accept JSON values without decoding them, to delegate to
    another JSON processor, or for streaming access to very large embedded values.

  • New: Moshi.Builder.addLast(). Use this when installing widely-applicable adapter factories like
    KotlinJsonAdapterFactory. Adapters registered with add() are preferred (in the order they
    were added), followed by all adapters registered with addLast() (also in the order they were
    added). This precedence is retained when Moshi.newBuilder() is used.

  • New: setTag(), tag() methods on JsonReader and JsonWriter. Use these as a side-channel
    between adapters and their uses. For example, a tag may be used to track use of unexpected
    data in a custom adapter.

  • Fix: Don't crash with a StackOverflowError decoding backward-referencing type variables in
    Kotlin. This caused problems for parameterized types like MyInterface<E : Enum<E>>.

  • Upgrade: [Okio 1.17.5][okio_1_7_5].

  • Upgrade: [Kotlin 1.4.10][kotlin_1_4_10].

v1.10.0

2020-08-26

  • New: Upgrade to Kotlin 1.4.0.
  • New: JsonReader.promoteNameToValue() makes it easier to build custom Map adapters.
  • New: Options.strings().
  • New: PolymorphicJsonAdapterFactory.withFallbackJsonAdapter() makes it possible to handle
    unrecognized types when encoding and decoding.
  • New: Add JsonWriter.jsonValue API
  • New: Code gen now generates precise proguard rules on-the-fly.
  • New: Improve error when incorrectly trying to use a collection class like ArrayList instead of List
  • Fix: Prevent R8 from keeping all @Metadata annotations
  • Fix: Avoid VerifyErrors on Android 4.4 devices when using R8
  • Fix: Fix resolution of types in superclass settable properties

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about these updates again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot changed the title Update moshiVersion to v1.15.0 Update moshiVersion to v1.15.1 Jan 31, 2024
@renovate renovate bot force-pushed the renovate/moshiversion branch 3 times, most recently from 73fe938 to 45beb96 Compare March 4, 2024 04:58
auto-merge was automatically disabled October 15, 2024 10:56

Pull request was closed

Copy link
Contributor Author

renovate bot commented Oct 15, 2024

Renovate Ignore Notification

Because you closed this PR without merging, Renovate will ignore this update (1.15.1). You will get a PR once a newer version is released. To ignore this dependency forever, add it to the ignoreDeps array of your Renovate config.

If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR.

@renovate renovate bot deleted the renovate/moshiversion branch October 15, 2024 10:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant