Releases: sanmai/pipeline
Releases · sanmai/pipeline
Native function invocations
- All native functions are now called from within the root namespace.
- Faster
null
comparison used. - Overall things should be tiny bit faster.
- Tarballs should not include tests and other unessential files now.
With Standard pipeline
- Added
Pipeline\Standard
as an alias forSimple
.
Now the PHP 5.6-compatible version can be used almost in the same way as the more recent versions.
Iterators update
unpack()
should now properly work with iterators.
Backported features
- Backported entry point functions from the current release.
- Backported
unpack()
andtoArray()
Other than for specific interface names, this version should now be usable interchangeable with the most current ones.
Incremental update
Not much of a change, but static analyzers must be tiny bit more happy.
Incremental update
Not much of a change, but static analyzers must be tiny bit more happy.
Bugfix release
- Fixed a bug where
filter()
wouldn't work on some types of iterators. - Psalm added to CI, tests added.
v2.0
- Assortment of entry points functions including
map()
,take()
, andfromArray()
are at your service. - Interfaces now have most return types defined, and concrete classes were made final.
- Therefore, a composition-over-inheritance switch is needed. But given the fully-defined interfaces, this should be an easy job.
- A constructor is not a part of any defined interface now.
- Previously deprecated
Simple
class is now gone. UseStandard
instead. map()
doesn't require a callback now, passes through without it (a callback can be anull
).filter()
now won't fail on certain types of iterators.- Psalm, a great static analysis tool, is now used on CI.
- Tests now use a separate namespace.
- Miscellanea.
Simple → Standard
The pipeline now comes in two variants: concrete Standard and abstract Principal.
Simple is still there, but marked for deprecation.
Now using SPL
As usual for SPL, there's no guarantee keys would stay the same.