Skip to content

Latest commit

 

History

History
317 lines (179 loc) · 8.06 KB

CHANGELOG.md

File metadata and controls

317 lines (179 loc) · 8.06 KB

Changelog

v3.6.3 - 2024-03-05

Changed

v3.6.2 - 2024-03-05

Changed

  • Renamed output filenames, use cjs extension for CommonJS build.
  • Updated dom-parse dependency to v3.1.0.

v3.6.1 - 2023-07-05

Changed

Removed

v3.6.0 - 2023-06-15

Changed

v3.5.0 - 2022-04-14

Changed

  • 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 allow false to skip rendering replacement.

v3.4.0 - 2021-04-24

Added

Changed

  • Changed type checking in renderMarkup function to use invariant function.
  • Updated css-to-style dependency to v1.4.0.
  • Updated dom-parse dependency to v2.1.0.
  • Updated options parameter in renderMarkup to handle null.
  • Updated Markup.propTypes to only be defined in non-production environments.
  • Updated replace option to handle React elements as replacement.

Removed

v3.3.0 - 2020-11-07

Added

  • Added source maps to build output.

Changed

  • 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 is undefined.
  • Updated Markup component to use internal functions directly instead of renderMarkup.

Removed

  • Removed invalid items from list of attributes/property names.

v3.2.0 - 2020-11-01

Changed

  • Refactored internals to handle more attribute names.

Fixed

  • Fixed an issue where camelCased elements (i.e. <linearGradient>) would be incorrectly lowercased.
  • Fixed allowed and replace options to correctly treat tag names as case-sensitive.

v3.1.0 - 2020-10-31

Added

  • Added type checking of properties in options parameter.
  • Added kind-of dependency.

Changed

  • Improved type checking of markup and options parameters.
  • Refactored attrToPropName for more robust prop-name lookup.
  • Updated react peer-dependency to also support v17.

Removed

  • Removed defaultProps in favour of default values in object destructuring.

v3.0.0 - 2020-09-02

Added

  • Added Markup component.
  • Added prop-types dependency.

Changed

  • 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 returns null early if passed an empty string.
  • Updated propTypes to only be defined in non-production environments.

Removed

  • BREAKING Removed renderMarkup as default export.

v2.1.3 - 2020-07-04

Changed

v2.1.2 - 2020-07-03

Changed

  • Improved performance of prop names lookup.
  • Updated css-to-style dependency to v1.3.3.

v2.1.1 - 2020-07-03

Added

Changed

  • Refactored internals for lighter code and better performance.
  • Updated dom-parse dependency to v2.0.2.

v2.1.0 - 2020-06-23

Added

  • Added trim option to remove whitespace text nodes.

Changed

  • Refactored internals to filter allowed elements earlier.

v2.0.5 - 2020-06-23

Fixed

  • Fixed a bug where ReactDOM will throw an exception on void element tags.

v2.0.4 - 2020-06-13

Fixed

  • Updated allowed option logic to work.

v2.0.3 - 2020-06-13

Added

  • More documentation and examples to readme.md.

Changed

  • Refactored internals.

v2.0.2 - 2020-06-09

Added

  • Added CommonJS build.
  • Added module property in package.json to ES Module build.

Changed

v2.0.1 - 2020-06-09

Changed

  • Improved type-checking of markup parameter.
  • Refactored internals.

v2.0.0 - 2020-06-09

Added

  • Added allowed option.
  • Updated markup parameter to now handle null and undefined.

Changed

  • 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

v1.2.2 - 2020-04-27

Changed

v1.2.1 - 2020-01-14

v1.2.0 - 2020-01-13

Added

Changed

  • Upgraded jsdom to v16.0.0.

v1.1.2 - 2020-01-13

v1.1.1 - 2020-01-13

Changed

v1.1.0 - 2020-01-11

Added

  • Added built-in support for server-side rendering—again.
  • Added jsdom for parsing DOM on Node.js.
  • Added browser and server builds.

Changed

Removed

v1.0.4 - 2019-06-15

Changed

v1.0.3 - 2019-02-24

Removed

  • Removed dead code.

v1.0.2 - 2019-02-24

Added

  • Added check for reserved react prop names (i.e. key, dangerouslySetInnerHTML, etc.)
  • Added type-checking for options parameter.

Removed

v1.0.1 - 2019-02-23

Added

Removed

  • Removed jsdom dependency, due to it inflating bundle size.

v1.0.0 - 2019-02-23

Added

  • Added type-checking of markup parameter.

Changed

  • 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.

v0.2.0 - 2018-09-27

Added

  • Returns null if markup parameter is falsey or not a string.

v0.1.0 - 2018-08-06

Initial public version! 🎉