Skip to content

Releases: ScriptFUSION/Porter

7.0.0 – Unified API

07 Dec 17:07
7.0.0
934e199
Compare
Choose a tag to compare

Unifies the synchronous and asynchronous APIs, so they are one and the same.

6.0.0 – Fibers

02 Nov 23:32
6.0.0
f66687a
Compare
Choose a tag to compare

Replaces coroutines with fibers as the new async technology.

5.3.0 – Providers as a service

02 Feb 16:15
5.3.0
fe50a38
Compare
Choose a tag to compare

This release reframes Providers as services, encouraging dependency injection (including configuration) into the constructor and exposing the Provider at import time via ImportConnector, received through ProviderResource::fetch().

  • Added getProvider() to ImportConnector.

5.2.0 – Throttled connector

08 Jul 20:07
5.2.0
ee03ad6
Compare
Choose a tag to compare
  • Added ThrottledConnector to rate-limit all resources owned by a provider with a shared throttle.

5.1.0 – Async throttle

09 Apr 10:57
5.1.0
813e199
Compare
Choose a tag to compare
  • Added Throttle support for async imports only.

5.0.0 – Async

08 Dec 14:51
5.0.0
5270f51
Compare
Choose a tag to compare

Porter v5 introduces asynchronous imports and complete strict type safety (excluding union types and generics).

Breaking changes

  • Removed support for PHP 5.5, 5.6 and 7.0.
  • Every interface has been updated to include return types which means all consuming projects must also add the same return type.
  • Replaced Connector::fetch string source parameter with new DataSource interface.
  • Removed ConnectionContext from Connector interface.
  • Added SingleRecordResource interface that resources must implement to be used with Porter::importOne().
  • Prevented single record resources being imported with multi-record import methods.
  • Replaced RecoverableConnectorException with RecoverableException interface.
  • Removed failed abstractions: ConnectorOptions and EncapsulatedOptions.
  • Removed abstraction: CacheKeyGenerator.
  • Moved ForeignResourceException to Porter's namespace.

4.0.0 – Rewrite

09 Apr 21:47
4.0.0
1eb5e3b
Compare
Choose a tag to compare

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)

3.4.1

20 Jun 22:59
3.4.1
760ddc3
Compare
Choose a tag to compare
  • Removed Net namespace and moved Connector implementations to separate repositories.

3.4.0 – SSL

01 Jun 19:38
3.4.0
Compare
Choose a tag to compare
  • Added SSL support to HttpConnector.

3.3.0 – Cache key generators

16 Mar 22:29
3.3.0
14cca19
Compare
Choose a tag to compare
  • 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).