@Bilge Bilge released this Apr 9, 2018 · 3 commits to master since this release

Porter v4 fixes all known design flaws (#31, #43) and critically re-evaluates every part of Porter's design. All base classes have been discarded (AbstractProvider, AbstractResource), moving their code within Porter, relying solely on interfaces instead. This frees up the inheritance chain for applications to use as they wish, making it much easier to integrate Porter into existing projects.

The new design is much simpler, removing the redundant fetch() method from Provider and removing the redundant and confusing EncapsulatedOptions parameters from all fetch() methods. There is no longer any need to figure out how to merge different sets of options coming from different parts of the application because there is only one source of truth for connector options now, and they live within the connector itself, because it has a 1:1 relationship with its options.

Porter v4 is super slim; we no longer bundle any unnecessary dependencies such as connectors you don't need. connectors/http has also dropped URL building support and all the associated dependencies because it is not the job of the connector to build URLs; do this in providers if needed, by whatever mechanism best suits its needs.

In development, on and off, for a little over a year, I sincerely hope you find this new version of Porter useful and easier to use than ever before.

Breaking changes

  • Removed AbstractResource. (#35)
  • Changed Porter to no longer act as a repository of providers directly. Porter now requires a PSR-11 ContainerInterface which must contain the providers. (#38)
  • Porter is no longer bundled with any connectors. connectors/http and connectors/soap must be required manually if needed. (#39)
  • Changed Connector to receive ConnectionContext as its first parameter. Context includes a retry() method to provide preconfigured, immutable durability features to the connector. (#42)
  • Connector implementations no longer have to extend CachingConnector to provide caching facilities: all connectors can be decorated with CachingConnector with no prior knowledge of the existence of such facility. This completely removes the burden on implementations to be aware of caching concerns. (#44)
  • Removed AbstractProvider. (#41)
  • Removed EncapsulatedOptions parameter from Connector::fetch() method. (#48)
  • Changed fetch exception handler from callable to FetchExceptionHandler to fix #43. (#50)
  • Forced RecordCollections to return arrays. Previously, the documentation claimed collections were iterators of arrays but the software did not enforce this; now it does. (#52)
Assets 2

@Bilge Bilge released this Jun 20, 2017 · 45 commits to master since this release

  • Removed Net namespace and moved Connector implementations to separate repositories.
Assets 2

@Bilge Bilge released this Jun 1, 2017 · 47 commits to master since this release

  • Added SSL support to HttpConnector.
Assets 2

@Bilge Bilge released this Mar 16, 2017 · 53 commits to master since this release

  • Added custom cache key generation via CacheKeyGenerator interface. (@markchalloner)
  • Fixed durability not working for first iteration of generator (subsequent iterations still do not work #31).
Assets 2

@Bilge Bilge released this Mar 15, 2017 · 56 commits to master since this release

  • Fixed illegal characters appearing in cache keys, violating PSR-6. (@samvdb)
Assets 2

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

Assets 2

@0xPaul 0xPaul released this Mar 9, 2017 · 61 commits to master since this release

  • Added response body to HttpServerException.
Assets 2

@Bilge Bilge released this Jan 29, 2017 · 65 commits to master since this release

  • Added Transformer interface.

Breaking changes

Migrating to 3.0.0 only requires effort for users of filters, mappings or custom durability settings.

Filters and mappings were removed from ImportSpecification and reimplemented as transformers. Filters are reimplemented by FilterTransformer whilst mapping integration was moved to a separate project, MappingTransformer.

Durability settings were moved from Porter to the ImportSpecification, allowing settings to be customized per-import instead of using the same setting for all imports.

  • Refactored filters into FilterTransformer.
  • Removed mappings from Porter.
  • Moved durability methods from Porter to ImportSpecification.
Assets 2

@Bilge Bilge released this Dec 14, 2016 · 73 commits to master since this release

  • Added maximum fetch attempts option to Porter.
  • Added custom fetch exception handler to Porter.
  • Changed Mapper from required dependency to suggested dependency.

Breaking changes

Migrating to 2.0.0 should be straight forward for most users since only two undocumented methods were removed from HttpConnector.

  • Removed HttpConnector::getTries and HttpConnector::setTries.
Assets 2

@Bilge Bilge released this Nov 9, 2016 · 77 commits to master since this release

  • Added more HTTP and SOAP options. (@jamiel)
Assets 2