-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
refactor(client): add client/Context.Codec and deprecate JSONCodec #9498
Conversation
Codecov Report
@@ Coverage Diff @@
## master #9498 +/- ##
==========================================
- Coverage 60.55% 60.54% -0.02%
==========================================
Files 590 590
Lines 37288 37296 +8
==========================================
+ Hits 22578 22579 +1
- Misses 12763 12768 +5
- Partials 1947 1949 +2
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
IMO this should be |
Co-authored-by: Amaury <1293565+amaurym@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Thanks for doing that, @robert-zaremba
again some random errors in CI... rerunning ... rerunning |
…osmos#9498) * chore(types): add sdk.Context.Codec and deprecate JSONCodec * Use clientContext.Codec rather than JSONCodec everywhere * update tests to use clientContext.Codec * added a note that EncodingConfig.Marshaler will be renamed to Codec * update changelog * fix tests to use clientCtx.WithCodec instead of WithJSONCodec * fix genutil build * Update simapp/params/encoding.go Co-authored-by: Amaury <1293565+amaurym@users.noreply.github.com> Co-authored-by: Amaury <1293565+amaurym@users.noreply.github.com>
Description
Closes: #9490
Going towards v0.44 release cycle, we need to use
codec.Codec
in theclient/contex.Context
object. This deprecatesclient/contex.JSONCodec
. To assure smooth transition we add ``client/contex.Codec: codec.Codec` in v0.43 release and use it everywhere in the SDK instead of JSONCodec.Moreover I added a note that
encCfg.Marshaler
should be renamed toencCfg.Codec
.Author Checklist
All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.
I have...
!
to the type prefix if API or client breaking changeCHANGELOG.md
Reviewers Checklist
All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.
I have...
!
in the type prefix if API or client breaking change