Skip to content

Releases: crwlrsoft/schema-org

v0.3.1

30 Nov 12:03
Compare
Choose a tag to compare

Fixed

  • Support usage with the new Symfony major version v7.

v0.3.0

25 Sep 11:49
Compare
Choose a tag to compare

Added

  • Objects in an array with key @graph like in this example https://schema.org/Article#eg-0399, can now also be parsed. As well as child objects in an array (see the test case with the graph notation). Thanks to @ruerdev 🙏🏻👏🏻

v0.2.1

25 May 19:39
Compare
Choose a tag to compare

Fixed

  • If a schema.org object has a non string type, it is ignored and a warning is logged, if the class has a logger.

v0.2.0

17 May 20:19
Compare
Choose a tag to compare

Added

  • You can now optionally pass a PSR-3 LoggerInterface to the SchemaOrg class, so it'll log decoding errors.

Fixed

  • The Json class from the crwlr/utils is now used to decode JSON strings. It tries to fix keys without quotes, which is allowed in relaxed JSON. Further, JSON-LD <script> blocks containing an invalid JSON string are ignored and don't lead to an error anymore.

v0.1.0

21 Sep 23:17
Compare
Choose a tag to compare

Initial version containing SchemaOrg class that finds schema.org JSON-LD objects in HTML documents and converts them to instances of the classes from the spatie schema-org package.