Thalhammer / jwt-cpp

A header only library for creating and validating json web tokens in c++
https://thalhammer.github.io/jwt-cpp/
MIT License
864 stars 235 forks source link

Jsoncpp traits no longer uses deprecated Reader #357

Closed kiddigital closed 1 month ago

kiddigital commented 1 month ago

The jsoncpp trait made use of the deprecated Reader.

This PR fixes this. Safer and no more deprecation warnings when compiling.

prince-chrismc commented 1 month ago

1.4 when we are using 1.9 I don't think it's a breaking change to requie this but it's worth noting.

kiddigital commented 1 month ago

1.4 when we are using 1.9 I don't think it's a breaking change to requie this but it's worth noting.

It has been marked as Deprecated since 1.4 😁 So quite likely that the deprecated Reader gets dropped some time soon in an upcoming version of jsoncpp. And also very likely that people that are using jsoncpp (in combination with jwt-cpp) will use a more recent version of jsoncpp. At least 1.4.

Who doesn't want to get rid of these deprecated messages. And when incorporating something new like jwt-cpp, getting these deprecated messages does not bring joy 😉

prince-chrismc commented 1 month ago

I see only 1 linter failed, https://github.com/Thalhammer/jwt-cpp/actions/runs/10100944975/job/27938470947?pr=357#step:5:82

If you don't there's instructions to fix it quickly, of not I will do my best to make time to push it myself.

kiddigital commented 1 month ago

I see only 1 linter failed, ...

I saw that as well, but it is the 'process linter results' step 😁

Not something I think I can/should fix. Or did I overlook something?

prince-chrismc commented 1 month ago

It's telling you there are changes to be applied to the PR 😜 again it tells you the exact command to run to fix it sonics just a copy paste... the code diff is there too if you expand it.

kiddigital commented 1 month ago

Ah.. ok.. I need to read better 😜 Will have a look asap and apply the fixes...

kiddigital commented 1 month ago

@prince-chrismc , you just beat me to it 😁 thx

prince-chrismc commented 1 month ago

My pleasure :) Thanks for the contribution! 🚀