github ChuckerTeam/chucker 4.0.0
Chucker v4.0.0

16 months ago

We're excited to share a new major release of Chucker: v4.0.0 🎉

This version comes with a lot of new features, and is a major release as we removed the Throwable feature and updated the ChuckerInterceptor constructor (see the Removed section below).

Added

  • Add skipPaths to selectively skip requests from Chucker [#970]
  • Add syntax highlighting to the request/response body when is JSON [#930]
  • Decoding of request and response bodies can now be customized. In order to do this a BodyDecoder interface needs to be implemented and installed in the ChuckerInterceptor via ChuckerInterceptor.addBinaryDecoder(decoder) method. Decoded bodies are then displayed in the Chucker UI. [#555]
  • Create dynamic shortcut when ChuckerInterceptor added. Users can opt out of this feature using createShortcut(false) in ChuckerInterceptor.Builder [#588]
  • Brotli compression support [#563]
  • Added writeTransactions method to ChuckerCollector to export transactions to a file programmatically [#784]
  • Added ability to save single transaction as .har file. [#696]
  • Added ability to export list of transactions as .har file. [#880]
  • Added support for Android 13 and notifications permission handling [#887]
  • GraphQL
    • Add support for GraphQL [#805] [#884]
    • Show GraphQL OperationName header to transaction title [#69], [#116]
    • Allows to filter transactions based on graphqlOperationName [#920]
  • Added scroll to highlighted text search in response screen [#988]

Fixed

  • Fixed a bug showing empty bodies as encoded or binary [#569] [#562]
  • Fixed DiskReadViolation on ChuckerCollector [#975]
  • Fixed request headers not being redacted in case of failures [#545].
  • Fixed wrongful processing of one shot and duplex requests [#544].
  • Fixed writing to database on the main thread [#487].
  • Fixed RTL issue in payload view [#733]
  • Fixed StrictMode ThreadPolicy violations [#737]
  • Fixed Memory Leak with Toasts: Use applicationContext instead of Activity [#810]
  • Improved error message when trying to save empty bodies [#1038]

Removed

  • Removed parametrized ChuckerInterceptor constructor in favour of builder pattern. Constructor that accepts only Context is still available.
  • Removed the Throwable reporting feature as well as all the @deprecated related methods.

Changed

  • Updated OkHttp to 4.9.3
  • Updated Material to 1.8.0
  • Updated AGP to 8.0.0
  • Updated Kotlin to 1.8.20

Thanks

We would love to thank the whole community for helping us with this release <3 and we want to celebrate new contributors that made their first contribution to chucker in 4.0.0: @4shutosh @Abhishek4uh @Amirhy @andronicus-kim @ArjanSM @BluestormDNA @Canato @Filip2022 @Goooler @gusdantas @handstandsam @jd565 @ken-kentan @mreram @okanaydin @Stuie

Full Changelog: 3.4.0...4.0.0

Don't miss a new chucker release

NewReleases is sending notifications on new releases.