Skip to content

Bump moshi from 1.4.0 to 1.9.2 #14

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

Conversation

dependabot-preview[bot]
Copy link
Contributor

@dependabot-preview dependabot-preview bot commented May 7, 2020

Bumps moshi from 1.4.0 to 1.9.2.

Changelog

Sourced from moshi's changelog.

Version 1.9.2

2019-11-17

  • Fix: Generate correct adapters for several special cases including reified inline types, public classes enclosed in internal classes, deprecated types with -Werror, primitives in type parameters, nullables in type parameters, and type aliases in type parameters.

Version 1.9.1

2019-10-30

  • Fix: "abstract function ... cannot have code" code gen crash when parsing Kotlin metadata.
  • Fix: Generate code to support constructors with more than 32 parameters. The 1.9.0 release had a regression where classes with 33+ parameters would crash upon decoding.
  • Fix: Generate code to support more constructor cases, such as classes with non-property parameters and classes with multiple constructors.
  • Fix: Generate code to handle type aliases in type parameters.

Version 1.9.0

2019-10-29

  • This release requires kotlin-reflect or moshi-kotlin-codegen for all Kotlin classes.

    Previously Moshi wouldn't differentiate between Kotlin classes and Java classes if Kotlin was not configured. This caused bad runtime behavior such as putting null into non-nullable fields! If you attempt to create an adapter for a Kotlin type, Moshi will throw an IllegalArgumentException.

    Fix this with either the reflection adapter:

    val moshi = Moshi.Builder()
        // ... add your own JsonAdapters and factories ...
        .add(KotlinJsonAdapterFactory())
        .build()

    Or the codegen annotation processor:

    @JsonClass(generateAdapter = true)
    data class BlackjackHand(
            val hidden_card: Card,
            val visible_cards: List<Card>
    )
... (truncated)
Commits
  • 89a254d [maven-release-plugin] prepare release moshi-parent-1.9.2
  • 5e52af3 Changelog for 1.9.2.
  • f49f677 Suppress common warnings in generated classes (#1028)
  • f7dbde2 Upgrade to KotlinPoet 1.4.4 (#1027)
  • 4241918 Handle enclosing visibility + cache metadata parsing (#1026)
  • ca207b2 Revert "Don't allow toJson() serialization on polymorphic defau… (#1025)
  • fde0ce0 Fixed typo in readme (#1018)
  • d25abb1 Fix incorrect type variance being applied on generated adapters (#1010)
  • 3c0e3ed Merge pull request #994 from square/z/defaultToJson
  • 7cf365c Fix nullable properties (#992)
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Note: This repo was added to Dependabot recently, so you'll receive a maximum of 5 PRs for your first few update runs. Once an update run creates fewer than 5 PRs we'll remove that limit.

You can always request more updates by clicking Bump now in your Dependabot dashboard.

Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
  • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
  • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
  • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
  • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language
  • @dependabot badge me will comment on this PR with code to add a "Dependabot enabled" badge to your readme

Additionally, you can set the following in your Dependabot dashboard:

  • Update frequency (including time of day and day of week)
  • Pull request limits (per update run and/or open at any time)
  • Out-of-range updates (receive only lockfile updates, if desired)
  • Security updates (receive only security updates, if desired)

@dependabot-preview dependabot-preview bot added the dependencies Pull requests that update a dependency file label May 7, 2020
@ligi
Copy link
Member

ligi commented May 7, 2020

@dependabot rebase

@dependabot-preview dependabot-preview bot force-pushed the dependabot/gradle/com.squareup.moshi-moshi-1.9.2 branch from 8ac8489 to 972edc3 Compare May 7, 2020 05:37
@dependabot-preview
Copy link
Contributor Author

Dependabot tried to update this pull request, but something went wrong. The most likely cause is #19, which may be blocking Dependabot from updating your dependency files.

@dependabot-preview
Copy link
Contributor Author

Looks like com.squareup.moshi:moshi is no longer a dependency, so this is no longer needed.

@dependabot-preview dependabot-preview bot deleted the dependabot/gradle/com.squareup.moshi-moshi-1.9.2 branch March 20, 2021 07:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant