Skip to content

Replace ml/json-ld with a built-in JSON-LD reader (4.8.0) - #594

Open
Vitorinox wants to merge 1 commit into
masterfrom
feat/4.8.0-jsonld
Open

Vitorinox wants to merge 1 commit into
masterfrom
feat/4.8.0-jsonld

Conversation

@Vitorinox

Copy link
Copy Markdown
Collaborator

Fixes #554
Fixes #582

JSON-LD is now expanded by a small built-in reader, so Embed no longer depends on the unmaintained ml/json-ld library.

  • Remote @context URLs are still never fetched; schema.org contexts stay bundled, as in 4.5.1.
  • $info->getLinkedData() (get, getAll, all) is unchanged, and existing fixtures are untouched.
  • PHP 8.4 and 8.5 no longer emit deprecations while reading JSON-LD.

Tested with Homebrew PHP 7.4 and 8.1 to 8.5, plus PHPStan. PHP 8.4 and 8.5 were run with deprecations turned into exceptions.

JSON-LD is expanded without the unmaintained library, so PHP 8.4 and 8.5
no longer emit deprecations. Remote contexts are still never fetched;
schema.org contexts stay bundled. LinkedData's public API is unchanged.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PHP 8.5 deprecations from ml/json-ld (tracking, see #554) Swap out ml/json-ld dependency with one that is maintained (required for PHP 8.4)

1 participant