Skip to content

v4.0.0

Compare
Choose a tag to compare
@Kikobeats Kikobeats released this 24 Aug 08:25
· 1544 commits to master since this release
7901fb6

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.