Skip to content

Commit 1151baf

Browse files
committed
publish v4.1.0
1 parent a8fceaa commit 1151baf

File tree

3 files changed

+14
-9
lines changed

3 files changed

+14
-9
lines changed

CHANGELOG.md

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](http://keepachangelog.com/)
66
and this project adheres to [Semantic Versioning](http://semver.org/).
77

8-
## 4.1.0 - Unreleased
8+
## [4.1.0] - 2020-04-19
99
### Added
10-
- Ability to send settings to `CurlClient`. Added the `cookies_path` setting to customize the file used for cookies. #345
11-
- `Document::selectCss()` function to select elements using css selectors instead xpath (it requires symfony/css-selector)
12-
- `Document::removeCss()` function to remove elements using css selectors instead xpath (it requires symfony/css-selector)
13-
- Ability to configure OEmbed parameters from the outside
10+
- Ability to send settings to `CurlClient`. Added the `cookies_path` setting to customize the file used for cookies. [#345]
11+
- `Document::selectCss()` function to select elements using css selectors instead xpath (it requires `symfony/css-selector`)
12+
- `Document::removeCss()` function to remove elements using css selectors instead xpath (it requires `symfony/css-selector`)
13+
- Ability to configure OEmbed parameters from the outside using the `oembed:query_parameters` setting [#346]
1414

1515
## 4.0.0 - 2020-03-13
1616
Full library refactoring.
@@ -36,3 +36,8 @@ Full library refactoring.
3636
- `images` value
3737
- `providerImage` (use `favicon` or `icon` instead)
3838
- Support for files (pdf, jpg, video, etc).
39+
40+
[#345]: https://github.com/oscarotero/Embed/issues/345
41+
[#346]: https://github.com/oscarotero/Embed/issues/346
42+
43+
[4.1.0]: https://github.com/oscarotero/Embed/compare/v4.0.0...v4.1.0

composer.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@
4343
"brick/varexporter": "^0.3.1",
4444
"symfony/css-selector": "^5.0"
4545
},
46+
"suggest": {
47+
"symfony/css-selector": "If you want to get elements using css selectors"
48+
},
4649
"autoload": {
4750
"psr-4": {
4851
"Embed\\": "src"

src/QueryResult.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,7 @@ class QueryResult
1515

1616
public function __construct(DOMNodeList $result, Extractor $extractor)
1717
{
18-
foreach ($result as $node) {
19-
$this->nodes[] = $node;
20-
}
21-
18+
$this->nodes = iterator_to_array($result, false);
2219
$this->extractor = $extractor;
2320
}
2421

0 commit comments

Comments
 (0)