- Updated dom-parse dependency to v3.2.1.
- Renamed output filenames, use
cjsextension for CommonJS build. - Updated dom-parse dependency to v3.1.0.
- Replaced react-display-name with internal implementation.
- Removed react-display-name dependency.
- Updated dom-parse dependency to v3.0.0.
- Updated prop-types dependency to v15.8.1.
- Updated tiny-invariant dependency to v1.2.0.
- Updated react peer-dependency to also support v18.
- Updated
replaceoption to also allowfalseto skip rendering replacement.
- Added tiny-invariant dependency.
- Changed type checking in
renderMarkupfunction to useinvariantfunction. - Updated css-to-style dependency to v1.4.0.
- Updated dom-parse dependency to v2.1.0.
- Updated
optionsparameter inrenderMarkupto handlenull. - Updated
Markup.propTypesto only be defined in non-production environments. - Updated
replaceoption to handle React elements as replacement.
- Removed kind-of dependency.
- Added source maps to build output.
- Updated
allowedoption to allow callback function passed to conditionally filter elements. - Updated
replaceoption to allow callback function passed to conditionally replace elements. - Updated
replaceoption to skip replacing element if replacement isundefined. - Updated
Markupcomponent to use internal functions directly instead ofrenderMarkup.
- Removed invalid items from list of attributes/property names.
- Refactored internals to handle more attribute names.
- Fixed an issue where camelCased elements (i.e.
<linearGradient>) would be incorrectly lowercased. - Fixed
allowedandreplaceoptions to correctly treat tag names as case-sensitive.
- Added type checking of properties in
optionsparameter. - Added kind-of dependency.
- Improved type checking of
markupandoptionsparameters. - Refactored
attrToPropNamefor more robust prop-name lookup. - Updated react peer-dependency to also support v17.
- Removed
defaultPropsin favour of default values in object destructuring.
- Added
Markupcomponent. - Added prop-types dependency.
- BREAKING Requires react peer-dependency to be v16.6.0 or newer.
- Updated dom-parse dependency to v2.0.3.
renderMarkupis now a named export.renderMarkupreturnsnullearly if passed an empty string.- Updated
propTypesto only be defined in non-production environments.
- BREAKING Removed
renderMarkupas default export.
- Improved generation of keys with react-display-name.
- Improved performance of prop names lookup.
- Updated css-to-style dependency to v1.3.3.
- Set
"sideEffects": falsein package.json.
- Refactored internals for lighter code and better performance.
- Updated dom-parse dependency to v2.0.2.
- Added
trimoption to remove whitespace text nodes.
- Refactored internals to filter allowed elements earlier.
- Fixed a bug where ReactDOM will throw an exception on void element tags.
- Updated
allowedoption logic to work.
- More documentation and examples to readme.md.
- Refactored internals.
- Added CommonJS build.
- Added
moduleproperty in package.json to ES Module build.
- Updated css-to-style dependency to v1.3.1.
- Updated dom-parse dependency to v2.0.1.
- Improved type-checking of
markupparameter. - Refactored internals.
- Added
allowedoption. - Updated
markupparameter to now handlenullandundefined.
- BREAKING CommonJS build has been replaced with ES Module build.
- Improved type-checking of
markupparameter. - Refactored internals.
- Replaced internal DOM parser and jsdom with dom-parse.
- Removed explicit check for void elements with html-void-elements.
- Updated html-void-elements dependency to v1.0.5.
- Updated jsdom dependency to v16.2.2.
- Added
enginesproperty in package.json.
- Upgraded jsdom to v16.0.0.
- Changed
mainproperty in package.json to browser build.
- Added built-in support for server-side rendering—again.
- Added jsdom for parsing DOM on Node.js.
- Added browser and server builds.
- Updated css-to-style dependency to v1.3.0.
- Removed SSR section of readme.md.
- Updated html-void-elements dependency to v1.0.4.
- Removed dead code.
- Added check for reserved react prop names (i.e.
key,dangerouslySetInnerHTML, etc.) - Added type-checking for
optionsparameter.
- Removed explicit check for valid HTML, MathML and SVG element tags.
- Removed html-tag-names, mathml-tag-names and svg-tag-names.
- Added SSR section to readme.md.
- Removed jsdom dependency, due to it inflating bundle size.
- Added type-checking of
markupparameter.
- BREAKING Changed DOM parser from XHTML to HTML document type.
- BREAKING Updated
markupparameter to require a string. - Builds are now done with Rollup.
- Updated css-to-style dependency to v1.2.1.
- Refactored internals.
- Replaced xmldom with jsdom.
- Returns
nullifmarkupparameter is falsey or not a string.
Initial public version! 🎉