- Updated SDK constraint to
">=2.12.0 <4.0.0"
- Updated dependencies:
http
from^0.13.3
to^1.2.2
string_validator
from^0.3.0
to^1.1.0
html
from^0.15.0
to^0.15.4
- Replaced
pedantic
withlints
^4.0.0
test
from^1.17.5
to^1.25.8
- Improve Documentation
- NNBD (Null Safety) enabled
- Various API changes
extract()
andresponsetoDocument
are now encapsulated inside theMetadataFetch
class. This is to avoid global clashes when imported.- Removed the
requestURL
extension which served as a static variable attached tohttp.Document
, which caused problems. Metadata.parse(document, url: myURL)
now accepts theurl
keyword argument. This is used as a fallback url inMetadata.url
and to resolve relative (non-absolute URL) images.
- Fix resolution of relative URL for images
- Relative image url now uses the absolute path
- Improved JsonLD Parser
- Added JSON serialization
- Added Twitter Card Parser
- Metadata structure now includes url
- Minor Improvements
- Improve API and generalized the Metadata Parser
- Added more documentation
- Various improvements throughout
- Initial version, created by Stagehand