PaulHowarth/Blog/2015-11-26

Thursday 26th November 2015

Fedora Project

  • Updated perl-Cpanel-JSON-XS to 3.0203 in Rawhide:

    • Simplify handling of references, removing all the complicated work-around for reblessing; breaks overloaded values, but fixes serialising refs to read-only values (GH#21); schmorp thinks that overloading is broken with this patch, but reblessing and breaking read-only is worse

    • Stabilize Test::Kwalitee with missing XS dependencies

    • Suggests common::sense, not recommend (GH#36)

    • Boolean interop: use only JSON::PP::Boolean (GH#40)

      • Remove our own JSON::XS::Boolean, and solely use JSON::PP::Boolean and accept Mojo::JSON::_Bool (GH#37) and Types::Serialiser::Boolean, which is aliased to JSON::PP::Boolean

      • JSON::YAJL::Parser just produces an unbless IV (0|1)

      • Fix overload of our bools
      • Stringify true to "true", false to "0"

      • Accept is_bool as method call also

    • Implement native encode_sv of the internal sv_yes/sv_no values (GH#39) and map them to json true/false (YAML::XS compatible)

    • pod: add SECURITY CONSIDERATIONS; added a table of safe and unsafe serializers for comparison (only JSON and Data::MessagePack are safe by default)

    • New feature: convert_blessed for encode; stringify overloaded perl objects and with allow_blessed even without string overload (GH#37)

    • New optional decode_json() argument to set allow_nonref as in RFC 7159 and PHP; before 3.02, JSON::XS and Cpanel::JSON::XS always allowed nonref values for decode_json due to an internal bug

    • With canonical, only skip hash keys sorting for actually tied hashes (GH#42)

Local Packages

  • Updated perl-Cpanel-JSON-XS to 3.0203 as per the Fedora version

  • Rebuilt perl-XML-LibXML against the latest libxml2


Recent