Skip to content

3.0.0

Choose a tag to compare

@tomaj tomaj released this 22 Nov 12:39
· 32 commits to master since this release
c6f0230

Tagged on 2019-08-13.

Added

  • Tomaj\Scraper\Author and Tomaj\Scraper\Section value objects with id() and name().
  • SchemaParser reads sections (with their ids) from articleTerms entries of type Category; articleSection is used when articleTerms is missing.

Changed

  • BREAKING CHANGE: Meta::addAuthor() takes an Author and Meta::addSection() takes a Section; getAuthors() / getSections() return these objects instead of arrays / strings. Replace $author['name'] with $author->name() and $author['id'] with $author->id().

Full Changelog: 2.0.1...3.0.0