Breaking changes
Requires PHP 8.4. Support for PHP 8.2 and 8.3 has been dropped.
Quantity is gone. schema.org v30.0 reclassified Quantity as a DataType (like Text and Number), so it is no longer generated as a class. Spatie\SchemaOrg\Quantity, Contracts\QuantityContract and Schema::quantity() have been removed.
Distance, Duration, Energy and Mass lost their inherited properties. Because their only parent was Quantity, they no longer declare the twelve Thing properties (name, description, url, identifier, …) and no longer implement ThingContract, IntangibleContract or QuantityContract. Calls like Schema::distance()->name('…') still work at runtime through BaseType::__call, but static analysis, IDE completion and instanceof checks against those contracts will not.
Other changes
Thirteen new types: AuthenticateAction, ConferenceEvent, Credential, DENonprofitType, Error, ITNonprofitType, InstantaneousEvent, LoginAction, OperatingSystem, PerformingArtsEvent, ResetPasswordAction, RuntimePlatform, SequentialArt.
What's Changed
- Upgrade schema.org definitions to v30.0 by @endelwar in #244
- Keep the ReferencedType generator template in sync with src by @freekmurze in #246
- Upgrade test suite to Pest 5 by @freekmurze in #245
New Contributors
Full Changelog: 4.0.2...5.0.0