Releases: schmittjoh/serializer
1.5.0-RC1 release candidate
The 1.5.0 release is going to be one of the most important releases till now for the 1.x series of the JMS serializer.
The main feature included in the 1.5.0 release is the expression language exclusion policy implemented with #673.
Here a more detailed changelog:
Implemented enhancements:
- Implemented dynamic exclusion using symfony expression language #673 (goetas)
- added support for xml-attributes as discriminators #692 (twtinteractive)
- Prevent doctrine proxy loading for virtual types #684 (goetas)
Fixed bugs:
Merged pull requests:
- Added doc reference for disabling discriminator #699 (dragosprotung)
- Use GroupsExclusionStrategy::DEFAULT_GROUP instead default group. #694 (Aliance)
- Improved Symfony 3.x compatibility #682 (goetas)
Closed issues:
- Deserializing XMLList with Namespaces not (always) working as intended #695
- Groups logic #693
- BC from 1.1.* to ^1.2 #643
- DoctrineProxySubscriber forces loading of the proxy even if custom handler exist #575
- ConditionalExpose/Exclude annotation #540
- Deprecated usage of ValidatorInterface #438
- Missing addData in XmlSerializerVisitor makes it impossible to add data in serializer.post_serialize event #235
- Support JSON PATCH for updating object graph #231
- Dynamic expose, aka 'fields' query param #195
A stable 1.5.0 will be tagged in 3 weeks
2016-11-02
v1.4.1 (2016-11-02)
Fixed #668 that creates some issues with nelmio apidoc and in general when trying to use group based exclusion strategies without a properly initialized context
v1.4.0 (2016-10-31)
- Xml setters ignored when deserializing #665 (goetas)
- Document the implied 'Default' property group when no group is specified #661 (akoebbe)
- Nullable array inconsistency #660 (goetas)
- Allow discriminator map in the middle of the hierarchy when deserializing #659 (goetas)
- Fixed PHP 7.0.11 BC break (or bugfix) #658 (goetas)
- Handle both int and integer #657 (Aliance)
- Renamed replaceData to setData #653 (goetas)
- add required sqlite extension for developing #649 (scasei)
- Run serialization benchmarks in the build process #647 (goetas)
- Alcalyn feature default serializer context #645 (goetas)
- Add format output option #640 (AyrtonRicardo)
- Remove deprecated FileCacheReader for doctrine annotations #634 (goetas)
- Added tests to ensure SerializeNull policy #633 (goetas)
- Fix inheritance of discriminators on Doctrine entities #382 (xoob)
- Allow Post Serialize Event to overwrite existing data #273 (jockri)
Fixed BC break introduced with 1.3.0
Fixed BC break introduced with #317 and released as 1.3.0
- reported on #317 (comment)
- reported on FriendsOfSymfony/FOSRestBundle#1557
- fixed by #630
Added "hasData" on generic seialization visitors and other minor bugfixes
- Added public
hasDatafunction to check if a data key already have been added. #625 (goetas) (based on #466 by mowcixo) - $context is not used #622 (olvlvl)
- Fix Doctrine PHPCR ODM 2.0 compatibility #605 (wouterj)
- Fixed type-hinting #586 (jgendera)
- Fix multiple handler callbacks in YamlDriver #515 (mpajunen)
- Fixed minor typos #364 (sdaoudi)
- Default
$serializeNullto false #317 (steveYeah) - Missing attribute 'xml-value' in XML Reference #269 (holtkamp)
- Removed unnecessary use statement #262 (dunglas)
HHVM & PHP7 support XML features, bugfixes and infrastructure improvements
This release includes many improvements and bugfixes, some of them are:
#580 HHVM compatibility
#301 Generate namespaced element on XmlList entries
#595 Fix xml-attribute-map for the xml driver
#611 Allow to not skip empty not inline array root node
#610 Allow to use custom serializer with primitive type
#397 Exclude annotation not preventing attempt to find public methods when using AccessType
#608 Composer is not able to resolve a dependency
#550 Generic way to solve setValue on a property which respects its setter
#584 Test on Travis always high and low deps
#583 Update Symfony validator and allow PHPUnit 7
#399 Added travis-ci label
#553 [doc] fix AccessorOrder documentation
#578 Fixed test suite on master
#577 Fix for a broken test: a missing (incorrectly positioned) argument
Some Yaml Fixes & Improved Twig Support
This release improves Twig support and fixes a bug in Yaml serialization.
Further Compatibility Updates and Bug Fixes
This release contains updates for newer PHP versions, and also fixes a few edge-cases. Notable in this release:
- adds convenience
toArrayandfromArraymethods to the Serializer - better handling of polymorphic objects in collections
- fixes some bugs in the YAML metadata format
Some Features & Fixes
Additions:
- Support for
is*andhas*methods when changing the accessor policy - Support for defining the XML namespace on the root node
- Ability to set-up your own driver via the SerializerBuilder
- Better parse error for annotated types
Fixes:
- Several documentation fixes
Misc:
- Composer constraints have been widened to allow to pick more recent versions of dependencies