Releases: thephpleague/csv
Releases Β· thephpleague/csv
version 9.24.1
version 9.24.0
Added
TabularData::last
andTabularData::lastAsObject
Deprecated
- None
Fixed
- Improved implementation for
AbstractCsv::download
method
Remove
- None
version 9.23.0
version 9.22.0
Added
Writer::necessaryEnclosure
TabularDataReader::selectAllExcept
Statement::selectAllExcept
ResultSet::from
andResultSet::tryFrom
RdbmsResult
class to ease importing RDBMS result into the package classesTabularData
interfaceBuffer
classXMLConverter::supportsHeader
XMLConverter::when
HTMLConverter::when
JsonConverter::when
CharsetConverter::appendOnReadTo
,CharsetConverter::appendOnWriteTo
,CharsetConverter::prependOnReadTo
,CharsetConverter::prependOnWriteTo
Deprecated
Writer::relaxEnclosure
useWriter::necessaryEnclosure
ResultSet::createFromTabularDataReader
useResultSet::from
ResultSet::createFromRecords
useResultSet::from
ResultSet::__construct
is marked as beinginternal
and deprecated before being made private useResultSet::from
XMLConverter::convert
useXMLConverter::import
insteadXMLConverter::create
useXMLConverter::__construct
insteadHTMLConverter::create
useHTMLConverter::__construct
insteadStatement::create
useStatement::__construct
insteadFragmentFinder::create
useFragmentFinder::__construct
insteadCharsetConverter::appendTo
,CharsetConverter::prependTo
use the more strict methods added on the instance
Fixed
Comparison::CONTAINS
must check the value is a string before callingstr_compare
#548 by cage-is- Fix testing to improve Debian integration #549 by David PrΓ©vot and tenzap
Bom::tryFromSequence
andBom::fromSequence
supports theReader
andWriter
classes.XMLConverter::$formatter
should not be public.XMLConverter
internal rewritten to take advantage of PHP8.4 new dom classesHTMLConverter
internal rewritten to take advantage of PHP8.4 new dom classesXMLConverter::fieldElement
now has anullable
field element to allow using headers names as cell names.
Removed
- None
version 9.21.0
Added
TabularDataReader::map
method.StreamFilter
classCallbackStreamFilter
classAbstractCsv::appendStreamFilterOnRead
AbstractCsv::appendStreamFilterOnWrite
AbstractCsv::prependStreamFilterOnRead
AbstractCsv::prependStreamFilterOnWrite
Stream::getMode
returns the underlying stream mode; internal codebase.
Deprecated
AbstractCsv::addStreamFilter
useAbstractCsv::appendStreamFilterOnRead
orAbstractCsv::appendStreamFilterOnWrite
instead.
Fixed
- Improve
CharsetConverter
andSwapDelimiter
internal code. - Fix
supportStreamFilterOnRead
andsupportStreamFilterOnWrite
to expose the document real stream filter capabilities.
Removed
- None
version 9.20.1
version 9.20.0
Added
XMLConverter::formatter
HTMLConverter::formatter
Writer::encloseNone
Writer::encloseNecessary
Writer::noEnclosure
Deprecated
- None
Fixed
JsonConverter::formatter
now accepts callable before onlyClosure
where accepted.- The protected property
Writer::$enclose_all
is no longer a boolean but an integer
Removed
- None
version 9.19.0
Added
JsonConverter::withPrettyPrint
now accepts an optional$identSize
parameter as its unique parameter.Statement::when
to enable conditionable query building.- Using PHP8.4
Deprecated
attribute to signal deprecated public API methods and constants.
Deprecated
JsonConverter::indentSize
Fixed
- Adding forgotten support for
callable
in theQuery\Constraint
namespace. - Fix
HttpHeaders::forFileDownload
to be inline with RFC2183 and HTTP field name and value best practices.
Remove
- None
version 9.18.0
Added
League\Csv\JsonConverter::chunkSize
League\Csv\AbstractCsv::download
Deprecated
League\Csv\AbstractCsv::output
useLeague\Csv\AbstractCsv::download
insteadLeague\Csv\FragmentFinder
and derived methods are marked as experimental as their results will be changed in the next major version.
Fixed
League\Csv\JsonConverter::download
the filename is now nullableLeague\Csv\XMLConverter::download
the filename is now nullableLeague\Csv\JsonConverter::save
throws aTypeError
exception if the$destination
type is not supported.
Remove
- None
version 9.17.0
Added
League\Csv\SwapDelimiter::apppendTo
League\Csv\SwapDelimiter::prependTo
League\Csv\CharsetConverter::apppendTo
League\Csv\CharsetConverter::prependTo
League\Csv\XMLConverter::download
League\Csv\JsonConverter
League\Csv\Constraint\Criteria::andNot
League\Csv\Constraint\Criteria::orNot
League\Csv\Constraint\Criteria::xorNot
League\Csv\Serializer\MapRecord
attribute- adding the
convertEmptyStringToNull
options toMapCell
and toMapRecord
to improve string andnull
conversion - adding the
trimFieldValueBeforeCasting
options toMapCell
and toMapRecord
to improve string conversion - adding the
trimElementValueBeforeCasting
option toCasToArray
to improve conversion during denormalization - adding the
headerOffset
option toCasToArray
to improve conversion during denormalization. The optoon is only used with the CSV shape.
Deprecated
- None
Fixed
Cast*
methods accept more input type to improve Denormalization usage whenReader::addFormatter
is used or when the collection contains data other than string andnull
.Stream::getSize
is added to the internalStream
classStream::getContents
is added to the internalStream
classMapIterator::toIterator
is added to the internal classMapIterator
class to convert anyiterable
into anIterator
.- Casting a CSV to an
array
it now will be a collection of array instead of a simplearray
. - Added the internal class
HttpHeaders
to improve file download throughout the codebase.
Removed
leage\csv-doctrine
is no longer a sub-split of the mainleague/csv
package.