html-react-parser 1.2.6 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,12 +2,36 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
- ### [1.2.6](https://github.com/remarkablemark/html-react-parser/compare/v1.2.5...v1.2.6) (2021-04-18)
5
+ ## [1.3.0](https://www.github.com/remarkablemark/html-react-parser/compare/v1.2.9...v1.3.0) (2021-09-07)
6
6
 
7
7
 
8
+ ### Features
9
+
10
+ * upgrade `react-property` to get react-dom 17 DOM/SVG properties ([f0fbbff](https://www.github.com/remarkablemark/html-react-parser/commit/f0fbbffa7b14262b696fb7ec33f050701bdf2e37))
11
+
12
+ ### [1.2.9](https://www.github.com/remarkablemark/html-react-parser/compare/v1.2.8...v1.2.9) (2021-09-06)
13
+
14
+
15
+ ### Build System
16
+
17
+ * **deps:** bump domhandler from 4.2.0 to 4.2.2 ([cac7ddf](https://www.github.com/remarkablemark/html-react-parser/commit/cac7ddfb370fb0fdf8daaec02dfb2a3c3a3f77c6))
18
+ * **deps:** bump html-dom-parser from 1.0.1 to 1.0.2 ([72cccad](https://www.github.com/remarkablemark/html-react-parser/commit/72cccad24661b0c2e74370f183b96cdfb5da98d0))
19
+ * **deps:** bump react-property from 1.0.1 to 1.0.2 ([9feedd7](https://www.github.com/remarkablemark/html-react-parser/commit/9feedd722db49bd1752b38476b0e14ca93ea41c1))
20
+
21
+ ## [1.2.8](https://github.com/remarkablemark/html-react-parser/compare/v1.2.7...v1.2.8) (2021-08-12)
22
+
23
+ ### Bug Fixes
24
+
25
+ - rename unit test per feedback ([f39cf38](https://github.com/remarkablemark/html-react-parser/commit/f39cf387cdf1d4866b7ff9538189cb1e1c862199))
26
+ - **utilities:** skip corrupted style attributes ([509486e](https://github.com/remarkablemark/html-react-parser/commit/509486e94a45477b17630850b35c0db1faf0a31e)), closes [#256](https://github.com/remarkablemark/html-react-parser/issues/256)
27
+
28
+ ## [1.2.7](https://github.com/remarkablemark/html-react-parser/compare/v1.2.6...v1.2.7) (2021-06-19)
29
+
30
+ ## [1.2.6](https://github.com/remarkablemark/html-react-parser/compare/v1.2.5...v1.2.6) (2021-04-18)
31
+
8
32
  ### Bug Fixes
9
33
 
10
- * **attributes-to-props:** correct attributes-to-props type `Props` ([1bd1824](https://github.com/remarkablemark/html-react-parser/commit/1bd182464773e39cf1865f48231ad55df95d42f9)), closes [#242](https://github.com/remarkablemark/html-react-parser/issues/242)
34
+ - **attributes-to-props:** correct attributes-to-props type `Props` ([1bd1824](https://github.com/remarkablemark/html-react-parser/commit/1bd182464773e39cf1865f48231ad55df95d42f9)), closes [#242](https://github.com/remarkablemark/html-react-parser/issues/242)
11
35
 
12
36
  ## [1.2.5](https://github.com/remarkablemark/html-react-parser/compare/v1.2.4...v1.2.5) (2021-04-13)
13
37
 
package/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  [![NPM version](https://img.shields.io/npm/v/html-react-parser.svg)](https://www.npmjs.com/package/html-react-parser)
6
6
  [![Build Status](https://github.com/remarkablemark/html-react-parser/workflows/build/badge.svg?branch=master)](https://github.com/remarkablemark/html-react-parser/actions?query=workflow%3Abuild)
7
- [![Coverage Status](https://coveralls.io/repos/github/remarkablemark/html-react-parser/badge.svg?branch=master)](https://coveralls.io/github/remarkablemark/html-react-parser?branch=master)
7
+ [![codecov](https://codecov.io/gh/remarkablemark/html-react-parser/branch/master/graph/badge.svg?token=wosFd1DBIR)](https://codecov.io/gh/remarkablemark/html-react-parser)
8
8
  [![Dependency status](https://david-dm.org/remarkablemark/html-react-parser.svg)](https://david-dm.org/remarkablemark/html-react-parser)
9
9
  [![NPM downloads](https://img.shields.io/npm/dm/html-react-parser.svg?style=flat-square)](https://www.npmjs.com/package/html-react-parser)
10
10
  [![Discord](https://img.shields.io/discord/422421589582282752.svg?label=&logo=discord&logoColor=ffffff&color=7389D8&labelColor=6A7EC2)](https://discord.gg/njExwXdrRJ)
@@ -55,6 +55,7 @@ parse('<p>Hello, World!</p>'); // React.createElement('p', {}, 'Hello, World!')
55
55
  - [Don't change case of tags](#dont-change-case-of-tags)
56
56
  - [TS Error: Property 'attribs' does not exist on type 'DOMNode'](#ts-error-property-attribs-does-not-exist-on-type-domnode)
57
57
  - [Can I enable `trim` for certain elements?](#can-i-enable-trim-for-certain-elements)
58
+ - [Webpack build warnings](#webpack-build-warnings)
58
59
  - [Performance](#performance)
59
60
  - [Contributors](#contributors)
60
61
  - [Code Contributors](#code-contributors)
@@ -71,13 +72,13 @@ parse('<p>Hello, World!</p>'); // React.createElement('p', {}, 'Hello, World!')
71
72
  [NPM](https://www.npmjs.com/package/html-react-parser):
72
73
 
73
74
  ```sh
74
- $ npm install html-react-parser --save
75
+ npm install html-react-parser --save
75
76
  ```
76
77
 
77
78
  [Yarn](https://yarnpkg.com/package/html-react-parser):
78
79
 
79
80
  ```sh
80
- $ yarn add html-react-parser
81
+ yarn add html-react-parser
81
82
  ```
82
83
 
83
84
  [CDN](https://unpkg.com/html-react-parser/):
@@ -461,12 +462,34 @@ The TypeScript error occurs because `DOMNode` needs be an instance of domhandler
461
462
 
462
463
  Yes, you can enable or disable [`trim`](#trim) for certain elements using the [`replace`](#replace) option. See [#205](https://github.com/remarkablemark/html-react-parser/issues/205).
463
464
 
465
+ ### Webpack build warnings
466
+
467
+ If you see the Webpack build warning:
468
+
469
+ ```
470
+ export 'default' (imported as 'parse') was not found in 'html-react-parser'
471
+ ```
472
+
473
+ Then update your Webpack config to:
474
+
475
+ ```js
476
+ // webpack.config.js
477
+ module.exports = {
478
+ // ...
479
+ resolve: {
480
+ mainFields: ['browser', 'main', 'module']
481
+ }
482
+ };
483
+ ```
484
+
485
+ See [#238](https://github.com/remarkablemark/html-react-parser/issues/238) and [#213](https://github.com/remarkablemark/html-react-parser/issues/213).
486
+
464
487
  ## Performance
465
488
 
466
489
  Run benchmark:
467
490
 
468
491
  ```sh
469
- $ npm run test:benchmark
492
+ npm run test:benchmark
470
493
  ```
471
494
 
472
495
  Output of benchmark run on MacBook Pro 2017:
@@ -480,7 +503,7 @@ html-to-react - Complex x 8,118 ops/sec ±2.99% (82 runs sampled)
480
503
  Run [Size Limit](https://github.com/ai/size-limit):
481
504
 
482
505
  ```sh
483
- $ npx size-limit
506
+ npx size-limit
484
507
  ```
485
508
 
486
509
  ## Contributors