<commit_before>CHANGELOG
=========

4.2.0
-----

* `AbstractNormalizer::handleCircularReference` is now final, and receives two optional extra arguments: the format and the context
* added support for XML comment encoding (encoding `['#comment' => ' foo ']` results `<!-- foo -->`)

4.1.0
-----

* added `CacheableSupportsMethodInterface` for normalizers and denormalizers that use
  only the type and the format in their `supports*()` methods
* added `MissingConstructorArgumentsException` new exception for deserialization failure
  of objects that needs data insertion in constructor
* added an optional `default_constructor_arguments` option of context to specify a default data in
  case the object is not initializable by its constructor because of data missing
* added optional `bool $escapeFormulas = false` argument to `CsvEncoder::__construct`
* added `AbstractObjectNormalizer::setMaxDepthHandler` to set a handler to call when the configured<commit_msg>minor #28281 [Serializer] Update changelog about the new $encoderIgnoredNodeTypes arg in XmlEncoder contrustor (maidmaid)<commit_after>CHANGELOG
=========

4.2.0
-----

* `AbstractNormalizer::handleCircularReference` is now final, and receives two optional extra arguments: the format and the context
* added support for XML comment encoding (encoding `['#comment' => ' foo ']` results `<!-- foo -->`)
* added optional `int[] $encoderIgnoredNodeTypes` argument to `XmlEncoder::__construct` to configure node types to be
  ignored during encoding.

4.1.0
-----

* added `CacheableSupportsMethodInterface` for normalizers and denormalizers that use
  only the type and the format in their `supports*()` methods
* added `MissingConstructorArgumentsException` new exception for deserialization failure
  of objects that needs data insertion in constructor
* added an optional `default_constructor_arguments` option of context to specify a default data in
  case the object is not initializable by its constructor because of data missing
* added optional `bool $escapeFormulas = false` argument to `CsvEncoder::__construct`
* added `AbstractObjectNormalizer::setMaxDepthHandler` to set a handler to call when the configured
{'fraction_non_alphanumeric': 0.0847457627118644, 'fraction_numerical': 0.007787448465414567, 'mean_word_length': 5.538922155688622, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7478208', 'n_tokens_mistral': 543, 'n_tokens_neox': 533, 'n_words': 242}