Skip to content

Releases: willdurand/Hateoas

2.1.0 (2014-01-13)

13 Jan 14:04
Compare
Choose a tag to compare

Changelog

  • Added: allow users to add expression functions, cf. Expression Functions
  • Added: support curies in JsonHalSerializer
  • Added: LinkExtension, a Twig extension to generate links, cf. documentation
  • Added: VndErrorRepresentation representation class to support vnd.error specification, cf. documentation (#111, #114)
  • Added: PagerfantaFactory now exposes a createRepresentation() method, and replaces the deprecated create() method. See the important note below. (#131, #133)
  • Added: more documentation
  • Fixed: keep embedded relations even with custom relations (#122)
  • Fixed: PagerfantaFactory inlines \Traversable results (#128)

Important Note

The PagerfantaFactory has been refactored, and now exposes a createRepresentation() method. It is heavily recommended to use it! The old create() method has been deprecated and will be removed as of version 2.2.0.

As this class is not part of the "core" of the lib, but rather a helper class, we decided not to bump the major version number. Such a change was required as this factory is nearly unusable in real life, and that is why we see this change as a "fix" rather than a "BC break". This is a sort of "soft" backward compatibility break, we apologize for the inconvenience.

2.0.0 — Newer, Better, Stronger Hateoas Library!

18 Dec 22:50
Compare
Choose a tag to compare

This is the first stable version of the new Hateoas library!

The library has been rewritten from scratch, and merges both the plain old Hateoas library and the FSCHateoasBundle. This is a standalone PHP library, PSR-* compliant and extensively unit tested. We also provide a Symfony2 bundle: BazingaHateoasBundle.

You will find the documentation here: http://hateoas-php.org/ (or here). There is no upgrade instructions as it is nearly impossible, but upgrading should not be that difficult, things being a lot easier now.

Thank you @adrienbrault for the hard work! ❤️ 💛 💙

Let's celebrate! 🚢 ⭐ 🌠 🌟 🎉 💥 🍰 🍬

2.0.0-alpha4

16 Dec 16:31
Compare
Choose a tag to compare
  • Added: more documentation
  • Added: tests for XmlSerializer::serializeEmbeds()
  • Changed: allow passing $inline to the PagerfantaFactory
  • Changed: pass SerializerContext into *SerializerInterface::createLinks()
  • Changed: refactor basic Collection support
  • Changed: SimpleCollectionTest (related to the change made on collections)
  • Changed: s/embedded/embeds/i
  • Changed: LinksFactory::createLinks() to LinksFactory::create() to be consistent with the EmbedsFactory
  • Fixed: undefined variable
  • Fixed: PaginatedCollectionTest

2.0.0-alpha3

11 Dec 00:54
Compare
Choose a tag to compare
2.0.0-alpha3 Pre-release
Pre-release
  • Added: documentation
  • Added: LinkHelper and LinkExpressionFunction classes (see LinkHelper)
  • Added: ExpressionFunctionInterface to extend the Expression Language
  • Changed: better exception message
  • Changed: refactor XmlDriver
  • Changed: require symfony/expression-language 2.4 stable
  • Changed: rename "Context Values" to "Context Variables"
  • Fixed: setUrlGenerator() method (builder)
  • Removed: Hateoas::getRelationsRepository() method

2.0.0-alpha2

05 Dec 15:04
Compare
Choose a tag to compare
2.0.0-alpha2 Pre-release
Pre-release
  • Added: file resources into the metadata for XML an YAML drivers, so cache can be rebuild when needed
  • Fixed: As metadata is in the same file as the one for a serializer, the elements from our namespace need a prefix
  • Added: support for XML metadata driver
  • Added: annotations reference documentation

2.0.0-alpha1

18 Oct 08:55
Compare
Choose a tag to compare
2.0.0-alpha1 Pre-release
Pre-release

This is the very first release of Hateoas 2.0. 🚢 ⭐ 🌟 🎆 👏

As we expect people to start playing with it but we didn't provide any documentation yet, this version is not meant for production use. We need your feedback, so don't hesitate to open issues!

We are now working on the documentation to release a stable version as soon as possible, but we can't give any ETA yet.

One more thing, I (@willdurand) would like to personally thank @adrienbrault for his impressive work on this new powerful version!