Skip to content

Latest commit

 

History

History
78 lines (60 loc) · 2.95 KB

CHANGELOG.md

File metadata and controls

78 lines (60 loc) · 2.95 KB

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog and this project adheres to Semantic Versioning.

2.1.0 - 2022-07-27

Added

  • Support for track, data and meter elements

Fixed

  • Properties with itemtype="http://schema.org/Boolean" are parsed correctly.

2.0.1 - 2022-06-22

Fixed

  • Allow itemProp to have an empty string (#126, #127)

2.0.0 - 2022-04-28

Added

  • Package as both ESM and CommonJS module (#66)

Changed

  • The return type of microdata changed from T to T | null (#108)

Added

  • Added toArray utility function to convert children into an array of 0, 1 or more objects

Changed

  • Primitive types using itemtype="http://schema.org/Integer" etc. with http: protocol are no longer recognised. Starting with this version it only recognises itemtype="https://schema.org/Integer" etc. with https: protocol. See this post for more details.

Added

  • Improve types to accept document as a scope #8

Added

  • Support all specific DataType subtypes.

Fixed

  • Better error messages when attributes are missing

1.2.0 - 2020-04-02

Added

  • An optional (element: Element) => string | undefined function can be passed as the last argument to provide a custom function to look up element values. This is useful for extracting values from non-standard elements, such as a CodeMirror editor.

1.1.0 - 2019-03-16

Changed

  • microdata and microdataAll return generic types

1.0.1 - 2019-03-16

Fixed

  • Trim text content on multiple lines

1.0.0 - 2019-03-16

Added

  • First release