Releases: sanmai/pipeline
Maintenance release
This is a maintenance release to serve as a point of reference. Changes include removed redundant PHPDoc, simplified code, and backported additional tests.
Native function invocations
It should be a tiny bit faster with native function invocations.
More native function invocations
It should be a tiny bit faster with native function invocations.
Maintenance release
Maintenance release to serve as a point of reference. Other than that nothing really changed.
Undeprecate deprecated
Previously deprecated Pipeline\fromArray()
has some merit as it explicitly wants an array, not just any iterable. Which is a good thing if you want to be sure that you're passing an array, and only.
Welcome, PHP 7.1!
All familiar functions and interfaces, but with iterable
type hints all over the place.
As a consequence, Pipeline\take()
can now take not only iterators, but plain old arrays too. Arrays are handled eagerly, which is a point to keep in mind. For example:
$foo = take([0, 0, 1, 2, 3])->filter();
// at this point $foo contains exactly [1, 2, 3]
Also because of that Pipeline\fromArray()
became useless and is tagged for deprecation in favour of take()
. Still available for API compatibility.
Speaking of API compatibility, all previous code should work just as fine.
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.
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.