Releases: sanmai/pipeline
First release in the PHP 7.4-only series
...With typed properties.
This release is fully backward-compatible with the previous major version: tests are all the same and passing.
Maintenance release
- Removed unneeded
else
andcontinue
in the code. - Deprecated
fromArray()
to simplify the API astake()
can do as much - Verified support for PHP 7.4.
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.