-
Notifications
You must be signed in to change notification settings - Fork 9.6k
deps: update jsonld to latest #12257
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| "@context": { | ||
| "image": { | ||
| "@id": "@error" | ||
| "@id": "/error/" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'@error' here became a warning, so this uses a different invalid value
| "jsonld": "^1.5.0", | ||
| "jsonlint-mod": "^1.7.5", | ||
| "jsonld": "^4.0.1", | ||
| "jsonlint-mod": "^1.7.6", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not
| } | ||
|
|
||
| export function expand(object: any, options: JsonldOptions): Promise<any>; | ||
| export function expand(object: unknown, options: JsonldOptions): Promise<any>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there are definitelytyped types for jsonld now, but expand() still has the old callback-based documentLoader, so easier to still just maintain types for our own tiny corner of the library. It would be nice to eventually switch and not rely on LH.StructuredData.ExpandedSchemaRepresentation being the source of truth, though.
4252045 to
dbbb499
Compare
fixes #12244
We only use
require('jsonld').expand(), so it was a pretty easy update :)