| 1 |
CHANGELOG |
| 2 |
========= |
| 3 |
|
| 4 |
5.4 |
| 5 |
--- |
| 6 |
|
| 7 |
* Add `Crawler::innerText` method. |
| 8 |
|
| 9 |
5.3 |
| 10 |
--- |
| 11 |
|
| 12 |
* The `parents()` method is deprecated. Use `ancestors()` instead. |
| 13 |
* Marked the `containsOption()`, `availableOptionValues()`, and `disableValidation()` methods of the |
| 14 |
`ChoiceFormField` class as internal |
| 15 |
|
| 16 |
5.1.0 |
| 17 |
----- |
| 18 |
|
| 19 |
* Added an internal cache layer on top of the CssSelectorConverter |
| 20 |
* Added `UriResolver` to resolve an URI according to a base URI |
| 21 |
|
| 22 |
5.0.0 |
| 23 |
----- |
| 24 |
|
| 25 |
* Added argument `$selector` to `Crawler::children()` |
| 26 |
* Added argument `$default` to `Crawler::text()` and `html()` |
| 27 |
|
| 28 |
4.4.0 |
| 29 |
----- |
| 30 |
|
| 31 |
* Added `Form::getName()` method. |
| 32 |
* Added `Crawler::matches()` method. |
| 33 |
* Added `Crawler::closest()` method. |
| 34 |
* Added `Crawler::outerHtml()` method. |
| 35 |
* Added an argument to the `Crawler::text()` method to opt-in normalizing whitespaces. |
| 36 |
|
| 37 |
4.3.0 |
| 38 |
----- |
| 39 |
|
| 40 |
* Added PHPUnit constraints: `CrawlerSelectorAttributeValueSame`, `CrawlerSelectorExists`, `CrawlerSelectorTextContains` |
| 41 |
and `CrawlerSelectorTextSame` |
| 42 |
* Added return of element name (`_name`) in `extract()` method. |
| 43 |
* Added ability to return a default value in `text()` and `html()` instead of throwing an exception when node is empty. |
| 44 |
* When available, the [](https://github.com/Masterminds/html5-phphtml5-php library](https://github.com/Masterminds/html5-php](https://github.com/Masterminds/html5-php) is used to |
| 45 |
parse HTML added to a Crawler for better support of HTML5 tags. |
| 46 |
|
| 47 |
4.2.0 |
| 48 |
----- |
| 49 |
|
| 50 |
* The `$currentUri` constructor argument of the `AbstractUriElement`, `Link` and |
| 51 |
`Image` classes is now optional. |
| 52 |
* The `Crawler::children()` method will have a new `$selector` argument in version 5.0, |
| 53 |
not defining it is deprecated. |
| 54 |
|
| 55 |
3.1.0 |
| 56 |
----- |
| 57 |
|
| 58 |
* All the URI parsing logic have been abstracted in the `AbstractUriElement` class. |
| 59 |
The `Link` class is now a child of `AbstractUriElement`. |
| 60 |
* Added an `Image` class to crawl images and parse their `src` attribute, |
| 61 |
and `selectImage`, `image`, `images` methods in the `Crawler` (the image version of the equivalent `link` methods). |
| 62 |
|
| 63 |
2.5.0 |
| 64 |
----- |
| 65 |
|
| 66 |
* [BC BREAK] The default value for checkbox and radio inputs without a value attribute have changed |
| 67 |
from '1' to 'on' to match the HTML specification. |
| 68 |
* [BC BREAK] The typehints on the `Link`, `Form` and `FormField` classes have been changed from |
| 69 |
`\DOMNode` to `DOMElement`. Using any other type of `DOMNode` was triggering fatal errors in previous |
| 70 |
versions. Code extending these classes will need to update the typehints when overwriting these methods. |
| 71 |
|
| 72 |
2.4.0 |
| 73 |
----- |
| 74 |
|
| 75 |
* `Crawler::addXmlContent()` removes the default document namespace again if it's an only namespace. |
| 76 |
* added support for automatic discovery and explicit registration of document |
| 77 |
namespaces for `Crawler::filterXPath()` and `Crawler::filter()` |
| 78 |
* improved content type guessing in `Crawler::addContent()` |
| 79 |
* [BC BREAK] `Crawler::addXmlContent()` no longer removes the default document |
| 80 |
namespace |
| 81 |
|
| 82 |
2.3.0 |
| 83 |
----- |
| 84 |
|
| 85 |
* added Crawler::html() |
| 86 |
* [BC BREAK] Crawler::each() and Crawler::reduce() now return Crawler instances instead of DomElement instances |
| 87 |
* added schema relative URL support to links |
| 88 |
* added support for HTML5 'form' attribute |
| 89 |
|
| 90 |
2.2.0 |
| 91 |
----- |
| 92 |
|
| 93 |
* added a way to set raw path to the file in FileFormField - necessary for |
| 94 |
simulating HTTP requests |
| 95 |
|
| 96 |
2.1.0 |
| 97 |
----- |
| 98 |
|
| 99 |
* added support for the HTTP PATCH method |
| 100 |
* refactored the Form class internals to support multi-dimensional fields |
| 101 |
(the public API is backward compatible) |
| 102 |
* added a way to get parsing errors for Crawler::addHtmlContent() and |
| 103 |
Crawler::addXmlContent() via libxml functions |
| 104 |
* added support for submitting a form without a submit button |
| 105 |
|