Skip to content

Releases: wikimedia/html-metadata

Fix regression in 3.0.0. release

30 Apr 09:37

Choose a tag to compare

Fixes #121 which was a regression introduced in the 3.0.0 release.

What's Changed

  • Replace istanbul with nyc package by @mvolz in #120
  • Fix "no uri supplied in argument" error by @mvolz in #122

Full Changelog: v3.0.0...v3.0.1

v3.0.0

06 Mar 11:20
c6387c7

Choose a tag to compare

3.0.0 : Require Node >= 18 and drop callback support

Breaking changes

  • Requires Node >= 18
  • Callback style is no longer supported natively. You can migrate your code by wrapping any functions with a Bluebird Promise and then calling .nodeify (basically reverse what was done in #111 and #116) or using some other nodeify library that converts Promises into callbacks. However, please note that using the Bluebird library itself recommends using native Promises instead.
  • The loadFromFile function is no longer available, as this method let you pass a file name dynamically which in some cases can be hijacked. To replace it, you can load the file yourself and pass that to the loadFromString method instead.
  • Functions now return native Promises instead of Bluebird Promises; these should behave normally if you are already using Bluebird Promises as if they were regular Promises, i.e. if you're just using natively supported functions such as .then(). However any Bluebird-specific functions will not be available (i.e. .reflect(), isFulfilled()), so if you are using these you will need to either wrap the Promise with a Bluebird Promise, or preferably convert your code to use the native Promise implementation instead.

Fixes

  • Schema.org microdata now supports self closing tags and respects content attribute.

All changes

  • Change dead link in test by @mvolz in #107
  • Remove support for node <18 by @mvolz in #108
  • Replace preq with fetch in tests by @mvolz in #109
  • [BREAKING CHANGE] Remove preq from library by @mvolz in #110
  • [BREAKING CHANGE] Remove support for callback (node-style) requests by @mvolz in #111
  • Update eslint-config-wikimedia and lint by @mvolz in #112
  • [BREAKING CHANGE] Use native Promises by @mvolz in #116
  • Add blank line by @mvolz in #113
  • Update linting library by @mvolz in #114
  • build: Bump mocha from 10.3.0 to 11.1.0 by @jdforrester in #117
  • build: update microdata-node and add tests by @mvolz in #118
  • Update README.md by @mvolz in #119

Full Changelog: v2.0.1...v3.0.0

Require node >= 16

24 Aug 11:56

Choose a tag to compare

What's Changed

  • updating scraping.js to fix HTTP 406 error while runing the test suite by @Jacobojijo in #99
  • Add linting by @mvolz in #100
  • Fix prototype function pollution by @mvolz in #101

New Contributors

Full Changelog: v1.7.2...v2.0.0

v1.7.2

24 Aug 11:53
1cb4c9e

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v1.7.1...v1.7.2

Improve metadata coverage, expose loadHTML method, deprecate support for node 0.10 & 0.12

25 Jan 10:29

Choose a tag to compare

This change deprecates support for node 0.10 and .12 and is compatible with 4, 6, & 8. It also updates packages to their latest versions.

The following improvements to the metadata scraping were made:

  • Adds in PRISM metadata method parsePrism
  • Adds in icon and apple touch icon metadata to the parseGeneral method
  • Adds in xml lang attribute in the parseGeneral method if the html lang property is not available

Additional, a loadHTML method was exposed for scraping downloaded HTML files.

Fix warns and reject Errors instead of strings

20 Feb 09:41

Choose a tag to compare

  • Fix warns
  • Clean up tests & replace url that was timing out
  • Rejection values return Errors instead of strings

Adds support for JSON-LD in script tags

08 Dec 23:45

Choose a tag to compare

Adds support for JSON-LD in script tags

Adds support for Twitter cards

04 Dec 11:08

Choose a tag to compare