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
- Support for
track
,data
andmeter
elements
- Properties with
itemtype="http://schema.org/Boolean"
are parsed correctly.
2.0.1 - 2022-06-22
2.0.0 - 2022-04-28
- Package as both ESM and CommonJS module (#66)
- The return type of
microdata
changed fromT
toT | null
(#108)
- Added
toArray
utility function to convert children into an array of 0, 1 or more objects
- Primitive types using
itemtype="http://schema.org/Integer"
etc. withhttp:
protocol are no longer recognised. Starting with this version it only recognisesitemtype="https://schema.org/Integer"
etc. withhttps:
protocol. See this post for more details.
- Improve types to accept document as a scope #8
- Support all specific DataType subtypes.
- Better error messages when attributes are missing
1.2.0 - 2020-04-02
- 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
microdata
andmicrodataAll
return generic types
1.0.1 - 2019-03-16
- Trim text content on multiple lines
1.0.0 - 2019-03-16
- First release