- Add
prop-types
to dependencies asPropTypes
fromreact
is deprecated - Use
webpack@2
in example
- Move
react
andreact-dom
to peerDependencies to avoid loading multiple versions ofreact
- Add
renderToStaticMarkup
as static method onDocumentMeta
- Rewrite as ES6 class
- Update
babel
to6.x
- Added code-coverage (markdalgleish)
- Added multiple nested pages to the client-side example
- Fix issue with cloning/rendering children
- Added server-side rendering example
- React >= v0.14.0 is required as of v2.0.0
- Passing null as value resets any previous declared value and remove the meta tag
- Allow array of strings as value in prop type validation
- Avoid crashing when trying to render without any props mounted
react-side-effect
has been updated to v1.0.1, which included breaking changes. Most of these is handled internally, maintaining the same API forreact-document-meta
. See below for breaking changes.
DocumentMeta.rewind()
no longer takes an argument with options, and therefore.rewind({ asReact: true })
and.rewind({ asHtml: true })
is no longer possible. Two new static methods has been added to support this feature:.renderAsReact()
and.renderAsHTML()