Skip to content

Conversation

@renovate-bot
Copy link

@renovate-bot renovate-bot commented Jun 11, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
com.google.code.gson:gson 2.2.4 -> 2.13.2 age adoption passing confidence

Release Notes

google/gson (com.google.code.gson:gson)

v2.10

  • Support for serializing and deserializing Java records, on Java ≥ 16. (#​2201)
  • Add JsonArray.asList and JsonObject.asMap view methods (#​2225)
  • Fix TypeAdapterRuntimeTypeWrapper not detecting reflective TreeTypeAdapter and FutureTypeAdapter (#​1787)
  • Improve JsonReader.skipValue() (#​2062)
  • Perform numeric conversion for primitive numeric type adapters (#​2158)
  • Add Gson.fromJson(..., TypeToken) overloads (#​1700)
  • Fix changes to GsonBuilder affecting existing Gson instances (#​1815)
  • Make JsonElement conversion methods more consistent and fix javadoc (#​2178)
  • Throw UnsupportedOperationException when JsonWriter.jsonValue is not supported (#​1651)
  • Disallow JsonObject Entry.setValue(null) (#​2167)
  • Fix TypeAdapter.toJson throwing AssertionError for custom IOException (#​2172)
  • Convert null to JsonNull for JsonArray.set (#​2170)
  • Fixed nullSafe usage. (#​1555)
  • Validate TypeToken.getParameterized arguments (#​2166)
  • Fix #​1702: Gson.toJson creates CharSequence which does not implement toString (#​1703)
  • Prefer existing adapter for concurrent Gson.getAdapter calls (#​2153)
  • Improve ArrayTypeAdapter for Object[] (#​1716)
  • Improve AppendableWriter performance (#​1706)

v2.9.1

  • Make Object and JsonElement deserialization iterative rather than
    recursive (#​1912)
  • Added parsing support for enum that has overridden toString() method (#​1950)
  • Removed support for building Gson with Gradle (#​2081)
  • Removed obsolete codegen hierarchy (#​2099)
  • Add support for reflection access filter (#​1905)
  • Improve TypeToken creation validation (#​2072)
  • Add explicit support for float in JsonWriter (#​2130, #​2132)
  • Fail when parsing invalid local date (#​2134)

Also many small improvements to javadoc.

v2.9.0

The minimum supported Java version changes from 6 to 7.

  • Change target Java version to 7 (#​2043)
  • Put module-info.class into Multi-Release JAR folder (#​2013)
  • Improve error message when abstract class cannot be constructed (#​1814)
  • Support EnumMap deserialization (#​2071)
  • Add LazilyParsedNumber default adapter (#​2060)
  • Fix JsonReader.hasNext() returning true at end of document (#​2061)
  • Remove Gradle build support. Build script was outdated and not actively
    maintained anymore (#​2063)
  • Add GsonBuilder.disableJdkUnsafe() (#​1904)
  • Add UPPER_CASE_WITH_UNDERSCORES in FieldNamingPolicy (#​2024)
  • Fix failing to serialize Collection or Map with inaccessible constructor (#​1902)
  • Improve TreeTypeAdapter thread-safety (#​1976)
  • Fix Gson.newJsonWriter ignoring lenient and HTML-safe setting (#​1989)
  • Delete unused LinkedHashTreeMap (#​1992)
  • Make default adapters stricter; improve exception messages (#​2000)
  • Fix FieldNamingPolicy.upperCaseFirstLetter uppercasing non-letter (#​2004)

v2.8.9

  • Make OSGi bundle's dependency on sun.misc optional (#​1993).
  • Deprecate Gson.excluder() exposing internal Excluder class (#​1986).
  • Prevent Java deserialization of internal classes (#​1991).
  • Improve number strategy implementation (#​1987).
  • Fix LongSerializationPolicy null handling being inconsistent with Gson (#​1990).
  • Support arbitrary Number implementation for Object and Number deserialization (#​1290).
  • Bump proguard-maven-plugin from 2.4.0 to 2.5.1 (#​1980).
  • Don't exclude static local classes (#​1969).
  • Fix RuntimeTypeAdapterFactory depending on internal Streams class (#​1959).
  • Improve Maven build (#​1964).
  • Make dependency on java.sql optional (#​1707).

v2.8.8

  • Fixed issue with recursive types (#​1390).
  • Better behaviour with Java 9+ and Unsafe if there is a security manager (#​1712).
  • EnumTypeAdapter now works better when ProGuard has obfuscated enum fields (#​1495).

v2.8.7

  • Fixed ISO8601UtilsTest failing on systems with UTC+X.
  • Improved javadoc for JsonStreamParser.
  • Updated proguard.cfg (#​1693).
  • Fixed IllegalStateException in JsonTreeWriter (#​1592).
  • Added JsonArray.isEmpty() (#​1640).
  • Added new test cases (#​1638).
  • Fixed OSGi metadata generation to work on JavaSE < 9 (#​1603).

v2.8.6

2019-10-04 GitHub Diff

  • Added static methods JsonParser.parseString and JsonParser.parseReader and deprecated instance method JsonParser.parse
  • Java 9 module-info support

v2.8.5

2018-05-21 GitHub Diff

  • Print Gson version while throwing AssertionError and IllegalArgumentException
  • Moved utils.VersionUtils class to internal.JavaVersion. This is a potential backward incompatible change from 2.8.4
  • Fixed issue #​1310 by supporting Debian Java 9

v2.8.4

2018-05-01 GitHub Diff

  • Added a new FieldNamingPolicy, LOWER_CASE_WITH_DOTS that mapps JSON name someFieldName to some.field.name
  • Fixed issue #​1305 by removing compile/runtime dependency on sun.misc.Unsafe

v2.8.3

2018-04-27 GitHub Diff

  • Added a new API, GsonBuilder.newBuilder() that clones the current builder
  • Preserving DateFormatter behavior on JDK 9
  • Numerous other bugfixes

v2.8.2

2017-09-19 GitHub Diff

  • Introduced a new API, JsonElement.deepCopy()
  • Numerous other bugfixes

v2.8.1

2017-05-30 GitHub Diff

  • New: JsonObject.keySet()
  • @JsonAdapter annotation can now use JsonSerializer and JsonDeserializer as well.

v2.7

2016-06-14 GitHub Diff

  • Added support for JsonSerializer/JsonDeserializer in @​JsonAdapter annotation
  • Exposing Gson properties excluder(), fieldNamingStrategy(), serializeNulls(), htmlSafe()
  • Added JsonObject.size() method
  • Added JsonWriter.value(Boolean value) method
  • Using ArrayDeque, ConcurrentHashMap, and other JDK 1.6 features
  • Better error reporting
  • Plenty of other bug fixes

v2.6.2

2016-02-26 GitHub Diff

  • Fixed an NPE bug with @​JsonAdapter annotation
  • Added back OSGI manifest
  • Some documentation typo fixes

v2.6.1

2016-02-11 GitHub Diff

  • Fix: The 2.6 release targeted Java 1.7, but we intend to target Java 1.6. The
    2.6.1 release is identical to 2.6, but it targets Java 1.6.

v2.6

2016-02-26 GitHub Diff

  • Fixed an NPE bug with @​JsonAdapter annotation
  • Added back OSGI manifest
  • Some documentation typo fixes

v2.5

2015-11-24 GitHub Diff

  • Updated minimum JDK version to 1.6
  • Improved Date Deserialization by accepting many date formats
  • Added support for java.util.Currency, AtomicLong, AtomicLongArray, AtomicInteger, AtomicIntegerArray, AtomicBoolean. This change is backward-incompatible because the earlier version of Gson used the default serialization which wasn't intuitive. We hope that these classes are not used enough to actually cause problems in the field.
  • Improved debugging information when some exceptions are thrown

v2.4

2015-10-04

  • Drop IOException from TypeAdapter.toJson(). This is a binary-compatible change, but may
    cause compiler errors where IOExceptions are being caught but no longer thrown. The correct fix
    for this problem is to remove the unnecessary catch clause.
  • New: Gson.newJsonWriter method returns configured JsonWriter instances.
  • New: @SerializedName now works with [AutoValue’s][autovalue] abstract property methods.
  • New: @SerializedName permits alternate names when deserializing.
  • New: JsonWriter#jsonValue writes raw JSON values.
  • New: APIs to add primitives directly to JsonArray instances.
  • New: ISO 8601 date type adapter. Find this in extras.
  • Fix: FieldNamingPolicy now works properly when running on a device with a Turkish locale.
    [autovalue]: https://github.com/google/auto/tree/main/value

v2.3.1

2014-11-20

  • Added support to serialize objects with self-referential fields. The self-referential field is set to null in JSON. Previous version of Gson threw a StackOverflowException on encountering any self-referential fields.
    • The most visible impact of this is that Gson can now serialize Throwable (Exception and Error)
  • Added support for @​JsonAdapter annotation on enums which are user defined types
  • Fixed bug in getPath() with array of objects and arrays of arrays
  • Other smaller bug fixes

v2.3

2014-11-20

  • Added support to serialize objects with self-referential fields. The self-referential field is set to null in JSON. Previous version of Gson threw a StackOverflowException on encountering any self-referential fields.
    • The most visible impact of this is that Gson can now serialize Throwable (Exception and Error)
  • Added support for @​JsonAdapter annotation on enums which are user defined types
  • Fixed bug in getPath() with array of objects and arrays of arrays
  • Other smaller bug fixes

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 becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update 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-bot renovate-bot force-pushed the renovate/com.google.code.gson-gson-2.x branch from 0068c10 to 96501f1 Compare January 29, 2025 17:43
@renovate-bot renovate-bot changed the title Update dependency com.google.code.gson:gson to v2.11.0 Update dependency com.google.code.gson:gson to v2.12.0 Jan 29, 2025
@renovate-bot renovate-bot force-pushed the renovate/com.google.code.gson-gson-2.x branch from 96501f1 to 11b6258 Compare January 31, 2025 00:29
@renovate-bot renovate-bot changed the title Update dependency com.google.code.gson:gson to v2.12.0 Update dependency com.google.code.gson:gson to v2.12.1 Jan 31, 2025
@renovate-bot renovate-bot force-pushed the renovate/com.google.code.gson-gson-2.x branch from 11b6258 to cd43b68 Compare April 11, 2025 16:48
@renovate-bot renovate-bot changed the title Update dependency com.google.code.gson:gson to v2.12.1 Update dependency com.google.code.gson:gson to v2.13.0 Apr 11, 2025
@renovate-bot renovate-bot force-pushed the renovate/com.google.code.gson-gson-2.x branch from cd43b68 to 47b255a Compare April 24, 2025 02:13
@renovate-bot renovate-bot changed the title Update dependency com.google.code.gson:gson to v2.13.0 Update dependency com.google.code.gson:gson to v2.13.1 Apr 24, 2025
@renovate-bot renovate-bot force-pushed the renovate/com.google.code.gson-gson-2.x branch 21 times, most recently from 1579953 to b7b684a Compare June 4, 2025 04:28
@renovate-bot renovate-bot force-pushed the renovate/com.google.code.gson-gson-2.x branch from b7b684a to 833a459 Compare June 4, 2025 15:09
@renovate-bot renovate-bot force-pushed the renovate/com.google.code.gson-gson-2.x branch 19 times, most recently from 55a0ff8 to 10a9585 Compare October 5, 2025 21:01
@renovate-bot renovate-bot force-pushed the renovate/com.google.code.gson-gson-2.x branch 9 times, most recently from 8edeeea to 0f4313e Compare October 9, 2025 00:41
@renovate-bot renovate-bot force-pushed the renovate/com.google.code.gson-gson-2.x branch from 0f4313e to 43904ae Compare October 9, 2025 09:00
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