Update ruflin/elastica requirement from ^7.1 to ^8.0
Updates the requirements on ruflin/elastica to permit the latest version.
Release notes
Sourced from ruflin/elastica's releases.
Release 8.0.0
This is first 8.x GA release for Elastica. It contains a list of breaking changes. Have a look at the Upgrade guide.
8.0.0 is a huge milestone and a big thanks to everyone in the community that made this possible!
Backward Compatibility Breaks
- Dropped support for PHP <8.0 #2131
- Removed deprecated classes in 7.x #2132
Elastica\Exception\ElasticsearchException-> useElastica\Exception\ResponseException::getResponse()::getFullError()insteadElastica\Exception\ResponseException::getElasticsearchException()-> useElastica\Exception\ResponseException::getResponse()::getFullError()insteadElastica\Processor\Append-> useElastica\Processor\AppendProcessorinsteadElastica\Processor\Attachment-> useElastica\Processor\AttachmentProcessorinsteadElastica\Processor\Convert-> useElastica\Processor\ConvertProcessorinsteadElastica\Processor\Date-> useElastica\Processor\DateProcessorinsteadElastica\Processor\DateIndexName-> useElastica\Processor\DateIndexNameProcessorinsteadElastica\Processor\DotExpander-> useElastica\Processor\DotExpanderProcessorinsteadElastica\Processor\Fail-> useElastica\Processor\FailProcessorinsteadElastica\Processor\Join-> useElastica\Processor\JoinProcessorinsteadElastica\Processor\Json-> useElastica\Processor\JsonProcessorinsteadElastica\Processor\Kv-> useElastica\Processor\KvProcessorinsteadElastica\Processor\Lowercase-> useElastica\Processor\LowercaseProcessorinsteadElastica\Processor\Remove-> useElastica\Processor\RemoveProcessorinsteadElastica\Processor\Rename-> useElastica\Processor\RenameProcessorinsteadElastica\Processor\Set-> useElastica\Processor\SetProcessorinsteadElastica\Processor\Sort-> useElastica\Processor\SortProcessorinsteadElastica\Processor\Split-> useElastica\Processor\SplitProcessorinsteadElastica\Processor\Trim-> useElastica\Processor\AppendProcessorinsteadElastica\Processor\Uppercase-> useElastica\Processor\UppercaseProcessorinsteadElastica\Query\Common-> useElastica\Query\MatchQueryinsteadElastica\QueryBuilder\DSL\Query::common_terms()-> useElastica\QueryBuilder\DSL\Query::match()insteadElastica\Transport\HttpAdapter-> useElastica\Transport\Httpinstead- Removed deprecated methods #2135
Elastica\Aggregation\Range::setKeyedResponse()-> useElastica\Aggregation\Range::setKeyed()insteadElastica\Bulk::toString()-> useElastica\Bulk::__toString()or cast to string insteadElastica\Query\MatchQuery::setFieldCutoffFrequency()Elastica\Query\MultiMatch::setCutoffFrequency()Elastica\QueryBuilder\DSL\Aggregation::global_agg()-> useElastica\QueryBuilder\DSL\Aggregation::global()insteadElastica\Request::toString()-> useElastica\Request::__toString()or cast to string insteadElastica\Result::getType()Elastica\Suggest\Phrase::addCandidateGenerator()-> useElastica\Suggest\Phrase::addDirectGenerator()insteadElastica\Util::getParamName()- Changed following aggregation constructors #2138
Elastica\Aggregation\AvgBucket: The second argument$bucketsPathis now mandatoryElastica\Aggregation\BucketScript: The second (array $bucketsPath) and the third (string $script) argument are now mandatoryElastica\Aggregation\BucketSelector: The second (array $bucketsPath) and the third (string $script) argument are now mandatoryElastica\Aggregation\Derivative: The second argument (string $bucketsPath) is now mandatoryElastica\Aggregation\NormalizeAggregation: The second (string $bucketsPath) and the third (string $method) argument are now mandatoryElastica\Aggregation\PercentilesBucket: The second argument (string $bucketsPath) is now mandatoryElastica\Aggregation\SerialDiff: The second argument (string $bucketsPath) is now mandatoryElastica\Aggregation\StatsBucket: The second argument (string $bucketsPath) is now mandatory
... (truncated)
Changelog
Sourced from ruflin/elastica's changelog.
8.0.0
This a major release with breaking changes. Have a look at the Upgrade guide.
Backward Compatibility Breaks
- Dropped support for PHP <8.0 #2131
- Removed deprecated classes in 7.x #2132
Elastica\Exception\ElasticsearchException-> useElastica\Exception\ResponseException::getResponse()::getFullError()insteadElastica\Exception\ResponseException::getElasticsearchException()-> useElastica\Exception\ResponseException::getResponse()::getFullError()insteadElastica\Processor\Append-> useElastica\Processor\AppendProcessorinsteadElastica\Processor\Attachment-> useElastica\Processor\AttachmentProcessorinsteadElastica\Processor\Convert-> useElastica\Processor\ConvertProcessorinsteadElastica\Processor\Date-> useElastica\Processor\DateProcessorinsteadElastica\Processor\DateIndexName-> useElastica\Processor\DateIndexNameProcessorinsteadElastica\Processor\DotExpander-> useElastica\Processor\DotExpanderProcessorinsteadElastica\Processor\Fail-> useElastica\Processor\FailProcessorinsteadElastica\Processor\Join-> useElastica\Processor\JoinProcessorinsteadElastica\Processor\Json-> useElastica\Processor\JsonProcessorinsteadElastica\Processor\Kv-> useElastica\Processor\KvProcessorinsteadElastica\Processor\Lowercase-> useElastica\Processor\LowercaseProcessorinsteadElastica\Processor\Remove-> useElastica\Processor\RemoveProcessorinsteadElastica\Processor\Rename-> useElastica\Processor\RenameProcessorinsteadElastica\Processor\Set-> useElastica\Processor\SetProcessorinsteadElastica\Processor\Sort-> useElastica\Processor\SortProcessorinsteadElastica\Processor\Split-> useElastica\Processor\SplitProcessorinsteadElastica\Processor\Trim-> useElastica\Processor\AppendProcessorinsteadElastica\Processor\Uppercase-> useElastica\Processor\UppercaseProcessorinsteadElastica\Query\Common-> useElastica\Query\MatchQueryinsteadElastica\QueryBuilder\DSL\Query::common_terms()-> useElastica\QueryBuilder\DSL\Query::match()insteadElastica\Transport\HttpAdapter-> useElastica\Transport\Httpinstead- Removed deprecated methods #2135
Elastica\Aggregation\Range::setKeyedResponse()-> useElastica\Aggregation\Range::setKeyed()insteadElastica\Bulk::toString()-> useElastica\Bulk::__toString()or cast to string insteadElastica\Query\MatchQuery::setFieldCutoffFrequency()Elastica\Query\MultiMatch::setCutoffFrequency()Elastica\QueryBuilder\DSL\Aggregation::global_agg()-> useElastica\QueryBuilder\DSL\Aggregation::global()insteadElastica\Request::toString()-> useElastica\Request::__toString()or cast to string insteadElastica\Result::getType()Elastica\Suggest\Phrase::addCandidateGenerator()-> useElastica\Suggest\Phrase::addDirectGenerator()insteadElastica\Util::getParamName()- Changed following aggregation constructors #2138
Elastica\Aggregation\AvgBucket: The second argument$bucketsPathis now mandatoryElastica\Aggregation\BucketScript: The second (array $bucketsPath) and the third (string $script) argument are now mandatoryElastica\Aggregation\BucketSelector: The second (array $bucketsPath) and the third (string $script) argument are now mandatoryElastica\Aggregation\Derivative: The second argument (string $bucketsPath) is now mandatoryElastica\Aggregation\NormalizeAggregation: The second (string $bucketsPath) and the third (string $method) argument are now mandatoryElastica\Aggregation\PercentilesBucket: The second argument (string $bucketsPath) is now mandatoryElastica\Aggregation\SerialDiff: The second argument (string $bucketsPath) is now mandatoryElastica\Aggregation\StatsBucket: The second argument (string $bucketsPath) is now mandatory
... (truncated)
Commits
2fc446ePrepare 8.0.0 GA release (#2215)f29780fAdd UPGRADE-8.0 guide (#2214)7446c55Prepare 8.0.0-alpha1 release (#2213)088b509Send scroll_id in body for clearScroll (#2211)28dfdaaRemove Elasticsearch 7 as the default for testing9f56ce0Update CHANGELOG.md to reflect strict_types changes (#2205)cbc602aEnable declare_strict_types option and apply@PHP80Migrationset with… (#2190)78d5a9eAdd support for the Combined Fields query type. (#2196)b04f280Re-work connections and connection pool in favor of Node Pool (#2188)bb817e0Update PHP version supported on 8.x branch (#2201)- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
-
@dependabot rebasewill rebase this PR -
@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it -
@dependabot mergewill merge this PR after your CI passes on it -
@dependabot squash and mergewill squash and merge this PR after your CI passes on it -
@dependabot cancel mergewill cancel a previously requested merge and block automerging -
@dependabot reopenwill reopen this PR if it is closed -
@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually -
@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency -
@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
@markstory We are probably using deprecated classes or methods
In the past major versions of ruflin/elastica also changed compatibility requirements with elasticsearch as well. Upgrading this package will take some effort around tests.
Closing because we now have a 5.x branch which is working with Elastic 9/ES 9
OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.
If you change your mind, just re-open this PR and I'll resolve any conflicts on it.