- Updated dom-parse dependency to v3.2.1.
- Renamed output filenames, use
cjs
extension 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
replace
option to also allowfalse
to skip rendering replacement.
- Added tiny-invariant dependency.
- Changed type checking in
renderMarkup
function to useinvariant
function. - Updated css-to-style dependency to v1.4.0.
- Updated dom-parse dependency to v2.1.0.
- Updated
options
parameter inrenderMarkup
to handlenull
. - Updated
Markup.propTypes
to only be defined in non-production environments. - Updated
replace
option to handle React elements as replacement.
- Removed kind-of dependency.
- Added source maps to build output.
- Updated
allowed
option to allow callback function passed to conditionally filter elements. - Updated
replace
option to allow callback function passed to conditionally replace elements. - Updated
replace
option to skip replacing element if replacement isundefined
. - Updated
Markup
component 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
allowed
andreplace
options to correctly treat tag names as case-sensitive.
- Added type checking of properties in
options
parameter. - Added kind-of dependency.
- Improved type checking of
markup
andoptions
parameters. - Refactored
attrToPropName
for more robust prop-name lookup. - Updated react peer-dependency to also support v17.
- Removed
defaultProps
in favour of default values in object destructuring.
- Added
Markup
component. - Added prop-types dependency.
- BREAKING Requires react peer-dependency to be v16.6.0 or newer.
- Updated dom-parse dependency to v2.0.3.
renderMarkup
is now a named export.renderMarkup
returnsnull
early if passed an empty string.- Updated
propTypes
to only be defined in non-production environments.
- BREAKING Removed
renderMarkup
as 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": false
in package.json.
- Refactored internals for lighter code and better performance.
- Updated dom-parse dependency to v2.0.2.
- Added
trim
option 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
allowed
option logic to work.
- More documentation and examples to readme.md.
- Refactored internals.
- Added CommonJS build.
- Added
module
property 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
markup
parameter. - Refactored internals.
- Added
allowed
option. - Updated
markup
parameter to now handlenull
andundefined
.
- BREAKING CommonJS build has been replaced with ES Module build.
- Improved type-checking of
markup
parameter. - 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
engines
property in package.json.
- Upgraded jsdom to v16.0.0.
- Changed
main
property 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
options
parameter.
- 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
markup
parameter.
- BREAKING Changed DOM parser from XHTML to HTML document type.
- BREAKING Updated
markup
parameter 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
null
ifmarkup
parameter is falsey or not a string.
Initial public version! 🎉