fix(deps): update dependency league/csv to v9.20.1 #646
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
9.8.0
->9.20.1
Release Notes
thephpleague/csv (league/csv)
v9.20.1
Compare Source
Added
Deprecated
Fixed
Removed
v9.20.0
Compare Source
Added
XMLConverter::formatter
HTMLConverter::formatter
Writer::encloseNone
Writer::encloseNecessary
Writer::noEnclosure
Deprecated
Fixed
JsonConverter::formatter
now accepts callable before onlyClosure
where accepted.Writer::$enclose_all
is no longer a boolean but an integerRemoved
v9.19.0
Compare Source
Added
JsonConverter::withPrettyPrint
now accepts an optional$identSize
parameter as its unique parameter.Statement::when
to enable conditionable query building.Deprecated
attribute to signal deprecated public API methods and constants.Deprecated
JsonConverter::indentSize
Fixed
callable
in theQuery\Constraint
namespace.HttpHeaders::forFileDownload
to be inline with RFC2183 and HTTP field name and value best practices.Remove
v9.18.0
Compare Source
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
v9.17.0
Compare Source
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
attributeconvertEmptyStringToNull
options toMapCell
and toMapRecord
to improve string andnull
conversiontrimFieldValueBeforeCasting
options toMapCell
and toMapRecord
to improve string conversiontrimElementValueBeforeCasting
option toCasToArray
to improve conversion during denormalizationheaderOffset
option toCasToArray
to improve conversion during denormalization. The optoon is only used with the CSV shape.Deprecated
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
.array
it now will be a collection of array instead of a simplearray
.HttpHeaders
to improve file download throughout the codebase.Removed
leage\csv-doctrine
is no longer a sub-split of the mainleague/csv
package.v9.16.0
Compare Source
Added
Bom
enumStream::ftell
Statement::orderByAsc
Statement::orderByDesc
Statement::andWhere
Statement::whereNot
Statement::orWhere
Statement::xorWhere
Statement::andWhereColumn
Statement::whereNotColumn
Statement::orWhereColumn
Statement::xorWhereColumn
Statement::andWhereOffset
Statement::whereNotOffset
Statement::orWhereOffset
Statement::xorWhereOffset
Query
feature to allow easier filtering, ordering and querying tabular dataDeprecated
ByteSequence
Interface use theBom
enum insteadInfo::fetchBOMSequence
useBom::tryFromSequence
insteadLeague\Csv\Doctrine
use the newLeague\Csv\Constraint
feature insteadLeague\Csv\Statement::create
arguments; The method should be used without any argument at all. All arguments will be removed in the next major version.Fixed
Reader
andResultSet
docblocksBom
enum instead ofInfo::fetchBOMSequence
AbstractCsv
BOM related properties are moved to beingBom
instances instead of nullable string.setOutpuBOM
will only accept valid BOM sequences all other values except the empty string will throw aValueError
exception;ext-mbstring
extension to work. But you should have it install in your system in order to use thembstring
related stream filters.ResultSet::chunkBy
not working as documented.Removed
v9.15.0
Compare Source
Added
Statement::select
TabularDataReader::getRecordsAsObject
TabularDataReader::chunkBy
TabularDataReader::mapHeader
Deprecated
TabularDataReader::getObjects
useTabularDataReader::getRecordsAsObject
insteadFixed
Reader::select
andResultSet::select
now internally useStatement::select
Statement
should not throw whenLimitIterator
is used in combinaison withArrayIterator
.Statement
internal codebase improvement.$header
argument onStatement::process
is no longer deprecated.E_USER_DEPRECATED
is no longer triggered.mbstring
extensionTabularDataReader::fetchColumn
is no longer deprecatedRemoved
v9.14.0
Compare Source
Added
League\Csv\TabularDataReader::nthAsObject
equivalent tonth
but returns an object ornull
League\Csv\TabularDataReader::firstAsObject
equivalent tofirst
but returns an object or nullLeague\Csv\Serializer\Denormalizer::types
list all the registered typesDeprecated
Fixed
Removed
v9.13.0
Compare Source
Added
League\Csv\SwapDelimiter
stream filter to allow working with multibyte CSV delimiterLeague\Csv\Serializer\AfterMapping
to work around the limitation of not using the class constructor during denormalization.League\Csv\Serializer\Denormalizer
to allow registering type alias to improve callback usage.League\Csv\Serializer\MapCell
has a new propertyignore
to allow ignoring a property or a method during denormalization.Deprecated
Fixed
Removed
v9.12.0
Compare Source
Added
TabulatDataReader::value
TabulatDataReader::select
TabulatDataReader::getObjects
TabulatDataReader::matching
TabulatDataReader::matchingFirst
TabulatDataReader::matchingFirstOrFail
ResultSet::fromRecords
Stream::setMaxLineLen
Stream::getMaxLineLen
League\Csv\Serializer\Denormalizer
to allow denormalizing records into objects #508League\Csv\FragmentFinder
to implement RFC7111Deprecated
$header
argument onStatement::process
is deprecated and will be removed inthe next version. Use
TabularDataReader::getRecords
on the returned value instead.It's usage will trigger a
E_USER_DEPRECATED
call.Fixed
$header
argument forTabularDataReader::getRecords
becomes a full mapper between the records column offset and the column names #498ResultSet
constructor now allows the records to be anarray
.Stream
object will throw aRuntimeException
if the rewind action failsfseek
fails (returns-1
) aRuntimeException
will be thrown.Stream
can iterate and return the full line respectingSplFielObject
flags. Previously it only returned the CSV records.MapIterator::fromIterable
to instantiate aMapIterator
object from any iterable structure.Removed
v9.11.0
Compare Source
Added
EscapeFormula::unescapeRecord
does the opposite ofEscapeFormula::escapeRecord
TabularReader::each
(implemented on theReader
and theResultSet
object)TabularReader::exists
(implemented on theReader
and theResultSet
object)TabularReader::reduce
(implemented on theReader
and theResultSet
object)****TabularReader::filter
(implemented on theReader
and theResultSet
object)TabularReader::slice
(implemented on theReader
and theResultSet
object)TabularReader::sorted
(implemented on theReader
and theResultSet
object)Reader::addFormatter
(implemented on theReader
and theResultSet
object)Deprecated
EscapeFormula::__invoke
useEscapeFormula::escapeRecord
insteadFixed
Removed
v9.10.0
Compare Source
Added
Writer::forceEnclosure
andWriter::relaxEnclosure
to control the presence of enclosure in the generated CSVWriter::getEndOfLine
andWriter::setEndOfLine
Deprecated
EncloseField
stream filter in favor of the newWriter::forceEnclosure
method.Writer::getNewline
andWriter::setNewline
in favor ofWriter::getEndOfLine
andWriter::setEndOfLine
Fixed
Stream::fwrite
to allow writing to a file in a normalized way. Internal use.Removed
v9.9.0
Compare Source
Added
TabularDataWriter
interface to represent how to write to a tabular data document.TabularDataReader::first
to replaceTabularDataReader::fetchOne
TabularDataReader::nth
to replaceTabularDataReader::fetchOne
CharsetConverter::addBOMSkippingTo
to improve BOM skipping see bug #483Deprecated
TabularDataReader::fetchOne
Fixed
Stream::createFromResource
Stream::__construct
is made private. The class is already marked as internal so BC break does not apply on it.Using PHP8 feature to rewrite internal codebase
Replaced simple comparisons with strict comparison operator where types are obvious in internal codebase by @astepin
Marked class constants explicitly as public by @astepin
Minimal support version PHP8.1.2
Fix Docblock and method signature using PHP8 feature (Union Type)
Fix Internal codebase around
seek
usage and `#75917 requires PHP8.1.2Remove internal usage of deprecated methods
Removed
Stream::fwrite
The class is already marked as internal so BC break does not apply on it.Stream::fgets
The class is already marked as internal so BC break does not apply on it.$eol
argumentConfiguration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.