v4.0.0
Breaking Changes
The autoload
feature has been removed.
Now rules bundles need to be loaded explicitly:
const metascraper = require('metascraper')([
require('metascraper-author')(),
require('metascraper-date')(),
require('metascraper-description')(),
require('metascraper-image')(),
require('metascraper-logo')(),
require('metascraper-clearbit-logo')(),
require('metascraper-publisher')(),
require('metascraper-title')(),
require('metascraper-url')()
])
Migration guide
If you are using metrascraper.load
Just rename it to metascraper
. The .load
method is now the main exported function.
If you ar using metascraper autoload
Replace it with the snippet code on top. It's loading the defaults rules bundles present in v3.