@Bilge Bilge released this Nov 1, 2017

  • Added $data parameter to TryCatch exception handler callback.
Assets 2

@0xPaul 0xPaul released this Jun 14, 2017 · 1 commit to master since this release

  • Added Replace strategy.
Assets 2

@0xPaul 0xPaul released this Jun 13, 2017 · 3 commits to master since this release

As documented, Copy is the backbone of most mappings and this major release brings several improvements to Copy that make both Walk and Translate obsolete and have thus been removed in this version.

  • Added support for expression paths in Copy; makes Translate strategy obsolete.
  • Added data override parameter to Copy; makes Walk strategy obsolete.
  • CollectionMapper now accepts any expression type instead of just Mapping.
  • MapperAware now implements KeyAware.
  • MapperAwareTrait now uses KeyAwareTrait.

Breaking changes

Migrating to 2.0.0 is painless for anyone not using Walk or Translate strategies and easy even for those who are.

  • Every occurrence of Translate can simply be replaced with Copy.
  • Every occurrence of Walk can be replaced with Copy by transposing parameters.

The change to CollectionMapper is harmless for most users except those extending the mapCollection method. The method signature must be updated due to PHP's type invariance but otherwise should function exactly the same as before.

Anyone extending MapperAware must ensure they also implement KeyAware, however since most users doing this should be using MapperAwareTrait, the updates to that trait should handle this automatically.

Assets 2

@Bilge Bilge released this Jun 12, 2017 · 7 commits to master since this release

  • Added support for stategies and mappings in Copy path.
  • Deprecated Translate.
Assets 2

@Bilge Bilge released this Jun 7, 2017 · 9 commits to master since this release

  • Added Debug strategy.
Assets 2

@Bilge Bilge released this Jun 5, 2017 · 11 commits to master since this release

  • Added key propagation to CollectionMapper.
  • Minor BC CollectionMapper returns collection keys verbatim instead of numbering them from zero.
Assets 2

@Bilge Bilge released this Mar 11, 2017 · 13 commits to master since this release

Assets 2

@Bilge Bilge released this Feb 1, 2017 · 20 commits to master since this release

  • Added optional key propagation through Mapper.
  • Added CopyKey strategy, KeyAware interface and KeyAwareTrait.
  • Added Join strategy.
  • Added Translate strategy.
  • Added key and context parameters to Filter strategy callback.
Assets 2

@Bilge Bilge released this Dec 6, 2016 · 29 commits to master since this release

Assets 2
Oct 9, 2016