All Notable changes to schema-org
will be documented in this file.
- @indyjonesnl made their first contribution in #201
Full Changelog: https://github.com/spatie/schema-org/compare/3.22.0...3.23.0
- upgrade to schema.org v23 by @Gummibeer in #212
Full Changelog: https://github.com/spatie/schema-org/compare/3.21.0...3.22.0
- upgrade to schema.org v22 by @Gummibeer in #211
Full Changelog: https://github.com/spatie/schema-org/compare/3.20.0...3.21.0
- upgrade to schema.org v21 by @Gummibeer in #210
Full Changelog: https://github.com/spatie/schema-org/compare/3.19.0...3.20.0
- upgrade to schema.org v20 by @Gummibeer in #209
Full Changelog: https://github.com/spatie/schema-org/compare/3.18.0...3.19.0
- upgrade to schema.org v19 by @Gummibeer in #208
Full Changelog: https://github.com/spatie/schema-org/compare/3.17.0...3.18.0
- upgrade to schema.org v18 by @Gummibeer in #207
Full Changelog: https://github.com/spatie/schema-org/compare/3.16.0...3.17.0
- upgrade to schema.org v17 by @Gummibeer in #206
Full Changelog: https://github.com/spatie/schema-org/compare/3.15.0...3.16.0
- upgrade to schema.org v16 by @Gummibeer in #204
- add support/test-run for php8.3 by @Gummibeer in #205
Full Changelog: https://github.com/spatie/schema-org/compare/3.14.0...3.15.0
Full Changelog: https://github.com/spatie/schema-org/compare/3.13.0...3.14.0
- add support for complex context by @Gummibeer in #189
Full Changelog: https://github.com/spatie/schema-org/compare/3.12.0...3.13.0
- Update generator to use schema v15 by @osopolar in #188
- @osopolar made their first contribution in #188
Full Changelog: https://github.com/spatie/schema-org/compare/3.11.0...3.12.0
- Rewrite tests to use pest instead of phpunit by @otsch in #179
- upgrade to schema:v14 by @Gummibeer in #181
- @otsch made their first contribution in #179
Full Changelog: https://github.com/spatie/schema-org/compare/3.10.0...3.11.0
- Add support for Laravel 9 - #176
- Upgrade to schema.org:v13.0 - #167
- Upgrade to schema.org:v12.0 - #170
- Upgrade to schema.org:v11.01 - #169
- Add custom
\Spatie\SchemaOrg\Graph
context support - #160
- Fix
@id
andidentifier
serialization for typed identifiers - #157
- Add PHP 8.0 support
- Add
\Spatie\SchemaOrg\ReferencedType
to reference types in schemas and graphs - #155
- Fix empty string property values - #153
- Add Multi-Typed-Entity support
\Spatie\SchemaOrg\MultiTypedEntity
- #148
- Upgrade to schema.org:v9 which includes all extensions
- Upgrade to schema.org:v8
Generated files with new JSON-LD source - some methods have been dropped which aren't part of the corresponding types but were listed in old RDFa - it's not a breaking release because of the same schema.org version and changes only because of schema file inconsistencies.
- Fix
\BadMethodCallException
message thrown in\Spatie\SchemaOrg\Graph
- Fix
\Spatie\SchemaOrg\Graph
docblock@method
annotations
- Add identifiers to
\Spatie\SchemaOrg\Graph
nodes #124
- RDFa update
- Fix after malformed RDFa import twitter.com/ScreamingDev
- RDFa update
- Fix types to implement their own contract
- Use contracts as type-hints in doc-blocks
- Add PHP 7.4 support
- Fix
Graph
magic call - RDFa update
- Drop PHP 7.2 support
- Drop PHP 7.1 support
- Drop PHP 7.0 support
- Fix identifier serialization
- Add reflection support
- RDFa update
- Fix null values
- Fix pending Types
- RDFa update
- Add
Graph
support
- Convert invalid objects that have a
__toString
method to strings
- Fix previous release
- Use
https
protocol for Schema.org links
- Supports multiple type inheritance. Types no longer extend each other, they all are a direct extension of
BaseType
- This release probably doesn't contain any breaking changes for most people. It breaks all type checks (e.g.
instanceof LocalBusiness
), but doesn't change the way types are generated
- Regenerated types
- Added:
Enumeration
child types with constants, e.g.Spatie\Schema\DayOfWeek::Monday
.
- Added: All types are now json serializable and have array access
- Fixed: Date format in schemas is now ISO8601 (
DateTime::ATOM
)
- Fixed:
@param
hints for numbers (float|int
)
- Added:
BaseType::addProperties
method to add multiple properties in one go - Fixed:
@param
hints now also have array versions of the accepted data types, likestring|string[]
- Added:
__call
catches unknown methods and callssetProperty
under the hood, using the method name as the property name and the first argument as property value - Added (by updating generated types):
CreativeWork::accessMode
,CreativeWork::accessModeSufficient
,CreativeWork::accessibilitySummary
,Event::audience
,FoodEstablishment::hasMenu
- Removed (by updating generated types, note that this isn't breaking because
__call
will catch your method calls):Menu::menuAddOn
- Fixed: New lines are considered and no longer break docs
- Fixed: HTML line breaks are removed from the docs
- Added: Objects that implements
DateTimeInterface
are now formatted to an ISO 8601 compliant string - Fixed: Some properties were missing due to some whitespace parsing issues
- Added:
if
function to conditionally modify the schema
- Fixed: Arrays of properties are now correctly serialized when converted to ld+json
- Initial release