html-react-parser 0.12.0 → 0.13.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 +169 -218
- package/README.md +51 -0
- package/dist/html-react-parser.js +39 -26
- package/dist/html-react-parser.js.map +1 -1
- package/dist/html-react-parser.min.js +1 -1
- package/dist/html-react-parser.min.js.map +1 -1
- package/index.d.ts +2 -0
- package/lib/dom-to-react.js +39 -26
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,367 +2,279 @@
|
|
|
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
|
-
<a name="0.
|
|
6
|
-
# [0.
|
|
5
|
+
<a name="0.13.0"></a>
|
|
6
|
+
# [0.13.0](https://github.com/remarkablemark/html-react-parser/compare/v0.12.0...v0.13.0) (2020-06-07)
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
### Features
|
|
10
10
|
|
|
11
|
-
* **
|
|
12
|
-
* **index:**
|
|
11
|
+
* **dom-to-react:** add option `trim` that skips whitespace nodes ([413eaa0](https://github.com/remarkablemark/html-react-parser/commit/413eaa0))
|
|
12
|
+
* **index:** type `trim` in HTMLReactParserOptions ([be71b13](https://github.com/remarkablemark/html-react-parser/commit/be71b13))
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
## [0.11.1](https://github.com/remarkablemark/html-react-parser/compare/v0.11.0...v0.11.1) (2020-06-03)
|
|
18
|
-
|
|
16
|
+
## [0.12.0](https://github.com/remarkablemark/html-react-parser/compare/v0.11.1...v0.12.0) (2020-06-04)
|
|
19
17
|
|
|
20
|
-
###
|
|
18
|
+
### Features
|
|
21
19
|
|
|
22
|
-
|
|
20
|
+
- **index:** add htmlparser2 type to HTMLReactParserOptions ([81f74fb](https://github.com/remarkablemark/html-react-parser/commit/81f74fb))
|
|
21
|
+
- **index:** add options.htmlparser2 ([c4ecf64](https://github.com/remarkablemark/html-react-parser/commit/c4ecf64))
|
|
23
22
|
|
|
23
|
+
## [0.11.1](https://github.com/remarkablemark/html-react-parser/compare/v0.11.0...v0.11.1) (2020-06-03)
|
|
24
24
|
|
|
25
|
+
### Performance Improvements
|
|
25
26
|
|
|
26
|
-
|
|
27
|
-
# [0.11.0](https://github.com/remarkablemark/html-react-parser/compare/v0.10.5...v0.11.0) (2020-06-02)
|
|
27
|
+
- **index:** return empty array if first argument is empty string ([7f61f97](https://github.com/remarkablemark/html-react-parser/commit/7f61f97))
|
|
28
28
|
|
|
29
|
+
## [0.11.0](https://github.com/remarkablemark/html-react-parser/compare/v0.10.5...v0.11.0) (2020-06-02)
|
|
29
30
|
|
|
30
31
|
### Features
|
|
31
32
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
- **package:** upgrade html-dom-parser@0.3.0 ([d30bfdc](https://github.com/remarkablemark/html-react-parser/commit/d30bfdc))
|
|
35
34
|
|
|
36
35
|
## [0.10.5](https://github.com/remarkablemark/html-react-parser/compare/v0.10.4...v0.10.5) (2020-05-26)
|
|
37
36
|
|
|
38
|
-
|
|
39
37
|
### Tests
|
|
40
38
|
|
|
41
|
-
|
|
42
|
-
|
|
39
|
+
- **html-to-react:** tidy and organize tests in html-to-react.js ([8dfbfe0](https://github.com/remarkablemark/html-react-parser/commit/8dfbfe03a65f900b2661dc80227883a77bef766c))
|
|
43
40
|
|
|
44
41
|
### Build System
|
|
45
42
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
### [0.10.4](https://github.com/remarkablemark/html-react-parser/compare/v0.10.3...v0.10.4) (2020-05-25)
|
|
43
|
+
- **package:** add missing peerDependency `typescript` ([91fb693](https://github.com/remarkablemark/html-react-parser/commit/91fb693c9ca9e4c473b1f532d0e03e6c42b90916))
|
|
44
|
+
- **package:** upgrade devDependencies ([b2dc83b](https://github.com/remarkablemark/html-react-parser/commit/b2dc83b9834b70424c1525d5b30b7c6c32016838))
|
|
45
|
+
- **rollup:** upgrade rollup, consolidate config, remove cross-env ([55b2b4e](https://github.com/remarkablemark/html-react-parser/commit/55b2b4e7a647e9829e89a45524ece86d0ab620bd))
|
|
51
46
|
|
|
47
|
+
## [0.10.4](https://github.com/remarkablemark/html-react-parser/compare/v0.10.3...v0.10.4) (2020-05-25)
|
|
52
48
|
|
|
53
49
|
### Tests
|
|
54
50
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
### [0.10.3](https://github.com/remarkablemark/html-react-parser/compare/v0.10.2...v0.10.3) (2020-03-28)
|
|
51
|
+
- **attributes-to-props:** test that CSS comment is not parsed ([0c27987](https://github.com/remarkablemark/html-react-parser/commit/0c27987ff10fa13f3f2f35ba1aba0b88b0e0d92e))
|
|
52
|
+
- **dom-to-react:** tidy tests and add case for single node replace ([452f6be](https://github.com/remarkablemark/html-react-parser/commit/452f6be01500adffd740b0b1edb7a06790ba46f7))
|
|
53
|
+
- tidy tests, replace `assert.equal` with `assert.strictEqual` ([ef04eff](https://github.com/remarkablemark/html-react-parser/commit/ef04effebdd2f753c99f706599d656b314442d08))
|
|
60
54
|
|
|
55
|
+
## [0.10.3](https://github.com/remarkablemark/html-react-parser/compare/v0.10.2...v0.10.3) (2020-03-28)
|
|
61
56
|
|
|
62
57
|
### Bug Fixes
|
|
63
58
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
### [0.10.2](https://github.com/remarkablemark/html-react-parser/compare/v0.10.1...v0.10.2) (2020-03-13)
|
|
59
|
+
- update .d.ts docstrings ([bae05c0](https://github.com/remarkablemark/html-react-parser/commit/bae05c0a00ac4917b8d0d3137098010a13f8377d))
|
|
60
|
+
- use JSX.Element for type definitions ([d8e2ada](https://github.com/remarkablemark/html-react-parser/commit/d8e2adad4410544bbff4b5c9b827225aa96ed5d5))
|
|
68
61
|
|
|
62
|
+
## [0.10.2](https://github.com/remarkablemark/html-react-parser/compare/v0.10.1...v0.10.2) (2020-03-13)
|
|
69
63
|
|
|
70
64
|
### Bug Fixes
|
|
71
65
|
|
|
72
|
-
|
|
73
|
-
|
|
66
|
+
- **index:** add default export for parser ([6259959](https://github.com/remarkablemark/html-react-parser/commit/62599594de72c12c0c9fe9a8642ee52ed0488734))
|
|
74
67
|
|
|
75
68
|
### Tests
|
|
76
69
|
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
### [0.10.1](https://github.com/remarkablemark/html-react-parser/compare/v0.10.0...v0.10.1) (2020-02-08)
|
|
70
|
+
- **html-to-react:** add test to ensure default export for parser ([efba1d4](https://github.com/remarkablemark/html-react-parser/commit/efba1d402000b25b8800e33c2b934351b64bac0c))
|
|
71
|
+
- **html-to-react:** have a stronger assert ([064f0df](https://github.com/remarkablemark/html-react-parser/commit/064f0dfc742f67d57941a02bfdb70a76b56be472))
|
|
81
72
|
|
|
73
|
+
## [0.10.1](https://github.com/remarkablemark/html-react-parser/compare/v0.10.0...v0.10.1) (2020-02-08)
|
|
82
74
|
|
|
83
75
|
### Bug Fixes
|
|
84
76
|
|
|
85
|
-
|
|
77
|
+
- **index:** make `replace` property optional in `index.d.ts` ([801512b](https://github.com/remarkablemark/html-react-parser/commit/801512ba353e46ba931ee018ea8a9ec6c2d5da60)), closes [#134](https://github.com/remarkablemark/html-react-parser/issues/134)
|
|
86
78
|
|
|
87
79
|
## [0.10.0](https://github.com/remarkablemark/html-react-parser/compare/v0.9.2...v0.10.0) (2019-11-09)
|
|
88
80
|
|
|
89
|
-
|
|
90
81
|
### Build System
|
|
91
82
|
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
83
|
+
- **package:** upgrade dependency style-to-object@0.3.0 ([87a0486](https://github.com/remarkablemark/html-react-parser/commit/87a0486))
|
|
84
|
+
- **package:** upgrade devDependencies ([aaddf1b](https://github.com/remarkablemark/html-react-parser/commit/aaddf1b))
|
|
95
85
|
|
|
96
86
|
### Features
|
|
97
87
|
|
|
98
|
-
|
|
99
|
-
|
|
88
|
+
- **dom-to-react:** support Preact ([c3e77bb](https://github.com/remarkablemark/html-react-parser/commit/c3e77bb))
|
|
100
89
|
|
|
101
90
|
### Tests
|
|
102
91
|
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
### [0.9.2](https://github.com/remarkablemark/html-react-parser/compare/v0.9.1...v0.9.2) (2019-11-04)
|
|
92
|
+
- **types:** move TypeScript tests from `lint` to `test` directory ([7c9ab9d](https://github.com/remarkablemark/html-react-parser/commit/7c9ab9d))
|
|
108
93
|
|
|
94
|
+
## [0.9.2](https://github.com/remarkablemark/html-react-parser/compare/v0.9.1...v0.9.2) (2019-11-04)
|
|
109
95
|
|
|
110
96
|
### Bug Fixes
|
|
111
97
|
|
|
112
|
-
|
|
113
|
-
|
|
98
|
+
- refactor TypeScript declaration file for `index.d.ts` ([f1fc00b](https://github.com/remarkablemark/html-react-parser/commit/f1fc00b))
|
|
114
99
|
|
|
115
100
|
### Build System
|
|
116
101
|
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
### [0.9.1](https://github.com/remarkablemark/html-react-parser/compare/v0.9.0...v0.9.1) (2019-07-09)
|
|
102
|
+
- **package:** remove `opencollective-postinstall` ([6e0b870](https://github.com/remarkablemark/html-react-parser/commit/6e0b870))
|
|
103
|
+
- **package:** upgrade dependency html-dom-parser@0.2.3 ([891eda4](https://github.com/remarkablemark/html-react-parser/commit/891eda4)), closes [#126](https://github.com/remarkablemark/html-react-parser/issues/126)
|
|
123
104
|
|
|
105
|
+
## [0.9.1](https://github.com/remarkablemark/html-react-parser/compare/v0.9.0...v0.9.1) (2019-07-09)
|
|
124
106
|
|
|
125
107
|
### Build System
|
|
126
108
|
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
109
|
+
- replace `webpack` with `rollup` in order to optimize bundle ([a04ef27](https://github.com/remarkablemark/html-react-parser/commit/a04ef27))
|
|
110
|
+
- **index:** fix rollup error of mixing named and default exports ([230de70](https://github.com/remarkablemark/html-react-parser/commit/230de70))
|
|
131
111
|
|
|
132
112
|
## [0.9.0](https://github.com/remarkablemark/html-react-parser/compare/v0.8.1...v0.9.0) (2019-07-09)
|
|
133
113
|
|
|
134
|
-
|
|
135
114
|
### Bug Fixes
|
|
136
115
|
|
|
137
|
-
|
|
138
|
-
|
|
116
|
+
- **attributes-to-props:** handle attr named after Object properties ([3f857bb](https://github.com/remarkablemark/html-react-parser/commit/3f857bb))
|
|
139
117
|
|
|
140
118
|
### Build System
|
|
141
119
|
|
|
142
|
-
|
|
143
|
-
|
|
120
|
+
- **package:** update `react-property` to 1.0.1 ([26ebef9](https://github.com/remarkablemark/html-react-parser/commit/26ebef9))
|
|
144
121
|
|
|
145
122
|
### Features
|
|
146
123
|
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
124
|
+
- **attributes-to-props:** check for overloaded boolean values ([1151cfb](https://github.com/remarkablemark/html-react-parser/commit/1151cfb))
|
|
125
|
+
- **attributes-to-props:** replace `react-dom` with `react-property` ([d6274b9](https://github.com/remarkablemark/html-react-parser/commit/d6274b9)), closes [#107](https://github.com/remarkablemark/html-react-parser/issues/107)
|
|
150
126
|
|
|
151
127
|
### Tests
|
|
152
128
|
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
### [0.8.1](https://github.com/remarkablemark/html-react-parser/compare/v0.8.0...v0.8.1) (2019-07-03)
|
|
129
|
+
- **attributes-to-props:** improve test names ([17fbdfd](https://github.com/remarkablemark/html-react-parser/commit/17fbdfd))
|
|
158
130
|
|
|
131
|
+
## [0.8.1](https://github.com/remarkablemark/html-react-parser/compare/v0.8.0...v0.8.1) (2019-07-03)
|
|
159
132
|
|
|
160
133
|
### Tests
|
|
161
134
|
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
135
|
+
- **html-to-react:** update variable name to fix test ([73237dd](https://github.com/remarkablemark/html-react-parser/commit/73237dd))
|
|
165
136
|
|
|
166
137
|
## [0.8.0](https://github.com/remarkablemark/html-react-parser/compare/v0.7.1...v0.8.0) (2019-06-24)
|
|
167
138
|
|
|
168
|
-
|
|
169
139
|
### Bug Fixes
|
|
170
140
|
|
|
171
|
-
|
|
172
|
-
|
|
141
|
+
- **attributes-to-props:** fix lint error `no-prototype-builtins` ([fa66dfc](https://github.com/remarkablemark/html-react-parser/commit/fa66dfc))
|
|
173
142
|
|
|
174
143
|
### Build System
|
|
175
144
|
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
145
|
+
- **package:** refactor webpack config and generate sourcemap ([5dd4f07](https://github.com/remarkablemark/html-react-parser/commit/5dd4f07))
|
|
146
|
+
- **package:** rename npm script `cover` to `test:cover` ([7d806c8](https://github.com/remarkablemark/html-react-parser/commit/7d806c8))
|
|
147
|
+
- **package:** update `html-dom-parser@0.2.2` and devDependencies ([b39ac53](https://github.com/remarkablemark/html-react-parser/commit/b39ac53))
|
|
148
|
+
- **package:** update dependencies and devDependencies ([8765ea9](https://github.com/remarkablemark/html-react-parser/commit/8765ea9))
|
|
149
|
+
- **package:** update dependency `style-to-object` to 0.2.3 ([c2cc2ec](https://github.com/remarkablemark/html-react-parser/commit/c2cc2ec))
|
|
182
150
|
|
|
183
151
|
### Features
|
|
184
152
|
|
|
185
|
-
|
|
186
|
-
|
|
153
|
+
- **dom-to-react:** skip and do not parse <script> content ([1fb5ee2](https://github.com/remarkablemark/html-react-parser/commit/1fb5ee2))
|
|
187
154
|
|
|
188
155
|
### Tests
|
|
189
156
|
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
157
|
+
- **html-to-react:** add test that verifies `domToReact` is exported ([320c364](https://github.com/remarkablemark/html-react-parser/commit/320c364))
|
|
158
|
+
- verify invalid style for `attributesToProps` throws an error ([b97f2e1](https://github.com/remarkablemark/html-react-parser/commit/b97f2e1))
|
|
194
159
|
|
|
195
|
-
<a name="0.7.1"></a>
|
|
196
160
|
## [0.7.1](https://github.com/remarkablemark/html-react-parser/compare/v0.7.0...v0.7.1) (2019-05-27)
|
|
197
161
|
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
<a name="0.7.0"></a>
|
|
201
162
|
## [0.7.0](https://github.com/remarkablemark/html-react-parser/compare/v0.6.4...v0.7.0) (2019-04-05)
|
|
202
163
|
|
|
203
|
-
|
|
204
164
|
### Bug Fixes
|
|
205
165
|
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
166
|
+
- **coveralls:** moved dtslint tests to lint folder ([306fceb](https://github.com/remarkablemark/html-react-parser/commit/306fceb))
|
|
167
|
+
- **types:** html-dom-parser > html-react-parser ([438b9af](https://github.com/remarkablemark/html-react-parser/commit/438b9af))
|
|
209
168
|
|
|
210
169
|
### Features
|
|
211
170
|
|
|
212
|
-
|
|
171
|
+
- **types:** add lib/dom-to-react declaration ([27ed8b6](https://github.com/remarkablemark/html-react-parser/commit/27ed8b6))
|
|
213
172
|
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
<a name="0.6.4"></a>
|
|
217
173
|
## [0.6.4](https://github.com/remarkablemark/html-react-parser/compare/v0.6.3...v0.6.4) (2019-03-29)
|
|
218
174
|
|
|
219
|
-
|
|
220
175
|
### Bug Fixes
|
|
221
176
|
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
177
|
+
- **dom-to-react:** allow custom keys for replacement ([abf20a2](https://github.com/remarkablemark/html-react-parser/commit/abf20a2))
|
|
178
|
+
- **dom-to-react:** fix typos in the test ([4eec53e](https://github.com/remarkablemark/html-react-parser/commit/4eec53e))
|
|
225
179
|
|
|
226
|
-
|
|
227
|
-
<a name="0.6.3"></a>
|
|
228
180
|
## [0.6.3](https://github.com/remarkablemark/html-react-parser/compare/v0.6.2...v0.6.3) (2019-03-19)
|
|
229
181
|
|
|
230
|
-
|
|
231
182
|
### Bug Fixes
|
|
232
183
|
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
184
|
+
- **typescript:** test.tsx after dtslint run ([38e6bba](https://github.com/remarkablemark/html-react-parser/commit/38e6bba))
|
|
236
185
|
|
|
237
|
-
<a name="0.6.2"></a>
|
|
238
186
|
## [0.6.2](https://github.com/remarkablemark/html-react-parser/compare/v0.6.1...v0.6.2) (2019-03-07)
|
|
239
187
|
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
<a name="0.6.1"></a>
|
|
243
188
|
## [0.6.1](https://github.com/remarkablemark/html-react-parser/compare/v0.6.0...v0.6.1) (2019-01-03)
|
|
244
189
|
|
|
245
|
-
|
|
246
190
|
### Bug Fixes
|
|
247
191
|
|
|
248
|
-
|
|
249
|
-
|
|
192
|
+
- **utilities:** allow numbers in custom style names ([5a6600f](https://github.com/remarkablemark/html-react-parser/commit/5a6600f))
|
|
250
193
|
|
|
251
|
-
|
|
252
|
-
<a name="0.6.0"></a>
|
|
253
194
|
## [0.6.0](https://github.com/remarkablemark/html-react-parser/compare/v0.5.0...v0.6.0) (2018-12-17)
|
|
254
195
|
|
|
255
|
-
|
|
256
196
|
### Features
|
|
257
197
|
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
198
|
+
- **utilities:** add support for custom styles beginning with "--\*" ([2c0a9dc](https://github.com/remarkablemark/html-react-parser/commit/2c0a9dc))
|
|
261
199
|
|
|
262
|
-
<a name="0.5.0"></a>
|
|
263
200
|
## [0.5.0](https://github.com/remarkablemark/html-react-parser/compare/v0.4.7...v0.5.0) (2018-12-16)
|
|
264
201
|
|
|
265
|
-
|
|
266
202
|
### Bug Fixes
|
|
267
203
|
|
|
268
|
-
|
|
269
|
-
|
|
204
|
+
- **attributes-to-props:** undo default function parameter ([1017b25](https://github.com/remarkablemark/html-react-parser/commit/1017b25))
|
|
270
205
|
|
|
271
206
|
### Features
|
|
272
207
|
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
208
|
+
- support custom elements in React 16 ([7b2c5a8](https://github.com/remarkablemark/html-react-parser/commit/7b2c5a8))
|
|
276
209
|
|
|
277
|
-
<a name="0.4.7"></a>
|
|
278
210
|
## [0.4.7](https://github.com/remarkablemark/html-react-parser/compare/v0.4.6...v0.4.7) (2018-09-14)
|
|
279
211
|
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
<a name="0.4.6"></a>
|
|
283
212
|
## [0.4.6](https://github.com/remarkablemark/html-react-parser/compare/v0.4.5...v0.4.6) (2018-05-13)
|
|
284
213
|
|
|
285
|
-
|
|
286
214
|
### Bug Fixes
|
|
287
215
|
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
216
|
+
- accidentally left a console ([953e564](https://github.com/remarkablemark/html-react-parser/commit/953e564))
|
|
217
|
+
- added test case for viewBox ([261ffb7](https://github.com/remarkablemark/html-react-parser/commit/261ffb7))
|
|
218
|
+
- moving svg mock to correct place ([6ffb148](https://github.com/remarkablemark/html-react-parser/commit/6ffb148))
|
|
219
|
+
- svg attributes now correctly handled ([94643e1](https://github.com/remarkablemark/html-react-parser/commit/94643e1))
|
|
294
220
|
|
|
295
|
-
<a name="0.4.5"></a>
|
|
296
221
|
## [0.4.5](https://github.com/remarkablemark/html-react-parser/compare/v0.4.4...v0.4.5) (2018-05-09)
|
|
297
222
|
|
|
298
|
-
|
|
299
223
|
### Bug Fixes
|
|
300
224
|
|
|
301
|
-
|
|
302
|
-
|
|
225
|
+
- **package:** upgrade style-to-object@0.2.1 ([d065c60](https://github.com/remarkablemark/html-react-parser/commit/d065c60))
|
|
303
226
|
|
|
304
|
-
|
|
305
|
-
<a name="0.4.4"></a>
|
|
306
227
|
## [0.4.4](https://github.com/remarkablemark/html-react-parser/compare/v0.4.3...v0.4.4) (2018-05-07)
|
|
307
228
|
|
|
308
|
-
|
|
309
229
|
### Bug Fixes
|
|
310
230
|
|
|
311
|
-
|
|
231
|
+
- **package:** upgrade react-dom-core@0.0.3 ([b4a1c6e](https://github.com/remarkablemark/html-react-parser/commit/b4a1c6e))
|
|
312
232
|
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
<a name="0.4.3"></a>
|
|
316
233
|
## [0.4.3](https://github.com/remarkablemark/html-react-parser/compare/v0.4.2...v0.4.3) (2018-03-27)
|
|
317
234
|
|
|
318
|
-
|
|
319
235
|
### Bug Fixes
|
|
320
236
|
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
237
|
+
- **parser:** fix boolean attributes parsing ([e478a44](https://github.com/remarkablemark/html-react-parser/commit/e478a44))
|
|
238
|
+
- **parser:** fix case when style is empty string ([fa2a8b4](https://github.com/remarkablemark/html-react-parser/commit/fa2a8b4))
|
|
324
239
|
|
|
325
|
-
|
|
326
|
-
<a name="0.4.2"></a>
|
|
327
240
|
## [0.4.2](https://github.com/remarkablemark/html-react-parser/compare/v0.4.1...v0.4.2) (2018-02-20)
|
|
328
241
|
|
|
329
|
-
|
|
330
242
|
### Bug Fixes
|
|
331
243
|
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
244
|
+
- **package:** upgrade html-dom-parser@0.1.3 and devDependencies ([1c236ed](https://github.com/remarkablemark/html-react-parser/commit/1c236ed))
|
|
245
|
+
- **release:** do not lint standard-version commit message ([2d35a1f](https://github.com/remarkablemark/html-react-parser/commit/2d35a1f))
|
|
336
246
|
|
|
337
|
-
<a name="0.4.1"></a>
|
|
338
247
|
## [0.4.1](https://github.com/remarkablemark/html-react-parser/compare/v0.4.0...v0.4.1) (2017-11-28)
|
|
339
248
|
|
|
340
|
-
|
|
341
249
|
### Bug Fixes
|
|
342
250
|
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
251
|
+
- **attributes-to-props.js:** Remove unappropriate console logging and remove double quote from tests ([10ff149](https://github.com/remarkablemark/html-react-parser/commit/10ff149))
|
|
252
|
+
- **attributes-to-props.js:** Use AST to transform style attributes into an style object ([68cd565](https://github.com/remarkablemark/html-react-parser/commit/68cd565))
|
|
253
|
+
- **utilities.js:** Format string to lowercase before converting to camel case and assert the string is a string ([4522666](https://github.com/remarkablemark/html-react-parser/commit/4522666))
|
|
347
254
|
|
|
255
|
+
## [0.4.0](https://github.com/remarkablemark/html-react-parser/compare/v0.3.6...v0.4.0) (2017-10-01)
|
|
348
256
|
|
|
349
|
-
## [0.4.0](https://github.com/remarkablemark/html-react-parser/compare/v0.3.6...v0.4.0) - 2017-10-01
|
|
350
257
|
### Added
|
|
351
|
-
|
|
258
|
+
|
|
259
|
+
- [react-dom-core](https://github.com/remarkablemark/react-dom-core) to dependencies (closes [#43](https://github.com/remarkablemark/html-react-parser/issues/43))
|
|
352
260
|
- `react-dom` 16 no longer exposes `lib`, which includes the DOM property configs
|
|
353
261
|
- Upgrade devDependencies of `react` and `react-dom` to 16
|
|
354
262
|
- Update README and examples
|
|
355
263
|
|
|
356
|
-
## [0.3.6](https://github.com/remarkablemark/html-react-parser/compare/v0.3.5...v0.3.6)
|
|
264
|
+
## [0.3.6](https://github.com/remarkablemark/html-react-parser/compare/v0.3.5...v0.3.6) (2017-09-30)
|
|
265
|
+
|
|
357
266
|
### Changed
|
|
267
|
+
|
|
358
268
|
- Dependencies
|
|
359
269
|
- html-dom-parser@0.1.2
|
|
360
270
|
- Fixes IE9 client parser bug
|
|
361
271
|
- Set react and react-dom versions to `^15.4`
|
|
362
272
|
- Version 16 no longer exposes `HTMLDOMPropertyConfig` and `SVGDOMPropertyConfig`
|
|
363
273
|
|
|
364
|
-
## [0.3.5](https://github.com/remarkablemark/html-react-parser/compare/v0.3.4...v0.3.5)
|
|
274
|
+
## [0.3.5](https://github.com/remarkablemark/html-react-parser/compare/v0.3.4...v0.3.5) (2017-06-26)
|
|
275
|
+
|
|
365
276
|
### Changed
|
|
277
|
+
|
|
366
278
|
- Dependencies
|
|
367
279
|
- html-dom-parser@0.1.1
|
|
368
280
|
- Fixes IE client parser bug
|
|
@@ -370,8 +282,10 @@ All notable changes to this project will be documented in this file. See [standa
|
|
|
370
282
|
- webpack@3.0.0
|
|
371
283
|
- Update webpack to enable scope hoisting
|
|
372
284
|
|
|
373
|
-
## [0.3.4](https://github.com/remarkablemark/html-react-parser/compare/v0.3.3...v0.3.4)
|
|
285
|
+
## [0.3.4](https://github.com/remarkablemark/html-react-parser/compare/v0.3.3...v0.3.4) (2017-06-17)
|
|
286
|
+
|
|
374
287
|
### Changed
|
|
288
|
+
|
|
375
289
|
- Dependencies:
|
|
376
290
|
- html-dom-parser@0.1.0
|
|
377
291
|
- coveralls@2.13.1
|
|
@@ -380,106 +294,143 @@ All notable changes to this project will be documented in this file. See [standa
|
|
|
380
294
|
- webpack@2.6.1
|
|
381
295
|
|
|
382
296
|
### Removed
|
|
297
|
+
|
|
383
298
|
- Dependencies:
|
|
384
299
|
- jsdomify
|
|
385
300
|
|
|
386
|
-
## [0.3.3](https://github.com/remarkablemark/html-react-parser/compare/v0.3.2...v0.3.3)
|
|
301
|
+
## [0.3.3](https://github.com/remarkablemark/html-react-parser/compare/v0.3.2...v0.3.3) (2017-01-27)
|
|
302
|
+
|
|
387
303
|
### Added
|
|
388
|
-
|
|
304
|
+
|
|
305
|
+
- Created CHANGELOG with details on each version release ([#37](https://github.com/remarkablemark/html-react-parser/issues/37))
|
|
389
306
|
|
|
390
307
|
### Changed
|
|
391
|
-
- Update examples to load parser from relative `dist/` directory (#36)
|
|
392
308
|
|
|
393
|
-
|
|
394
|
-
- Removed unnecessary field "browser" in `package.json` (#36)
|
|
309
|
+
- Update examples to load parser from relative `dist/` directory ([#36](https://github.com/remarkablemark/html-react-parser/issues/36))
|
|
310
|
+
- Removed unnecessary field "browser" in `package.json` ([#36](https://github.com/remarkablemark/html-react-parser/issues/36))
|
|
311
|
+
|
|
312
|
+
## [0.3.2](https://github.com/remarkablemark/html-react-parser/compare/v0.3.1...v0.3.2) (2017-01-26)
|
|
395
313
|
|
|
396
|
-
## [0.3.2](https://github.com/remarkablemark/html-react-parser/compare/v0.3.1...v0.3.2) - 2017-01-26
|
|
397
314
|
### Fixed
|
|
398
|
-
- Decode HTML entities by default on node (#34)
|
|
399
315
|
|
|
400
|
-
|
|
316
|
+
- Decode HTML entities by default on node ([#34](https://github.com/remarkablemark/html-react-parser/issues/34))
|
|
317
|
+
|
|
318
|
+
## [0.3.1](https://github.com/remarkablemark/html-react-parser/compare/v0.3.0...v0.3.1) (2017-01-10)
|
|
319
|
+
|
|
401
320
|
### Changed
|
|
321
|
+
|
|
402
322
|
- Updated README by fixing CDN installation instructions and adding JSFiddle
|
|
403
323
|
|
|
404
|
-
## [0.3.0](https://github.com/remarkablemark/html-react-parser/compare/v0.2.0...v0.3.0)
|
|
324
|
+
## [0.3.0](https://github.com/remarkablemark/html-react-parser/compare/v0.2.0...v0.3.0) (2016-11-18)
|
|
325
|
+
|
|
405
326
|
### Changed
|
|
327
|
+
|
|
406
328
|
- Upgrade `react` and `react-dom` to >15.4
|
|
407
329
|
|
|
408
|
-
## [0.2.0](https://github.com/remarkablemark/html-react-parser/compare/v0.1.1...v0.2.0)
|
|
330
|
+
## [0.2.0](https://github.com/remarkablemark/html-react-parser/compare/v0.1.1...v0.2.0) (2016-11-18)
|
|
331
|
+
|
|
409
332
|
### Added
|
|
333
|
+
|
|
410
334
|
- Create npm script `clean` that removes `dist/` directory
|
|
411
335
|
|
|
412
336
|
### Fixed
|
|
337
|
+
|
|
413
338
|
- Silence webpack warning by keeping react <15.4 in this version
|
|
414
339
|
|
|
415
|
-
## [0.1.1](https://github.com/remarkablemark/html-react-parser/compare/v0.1.0...v0.1.1)
|
|
340
|
+
## [0.1.1](https://github.com/remarkablemark/html-react-parser/compare/v0.1.0...v0.1.1) (2016-11-17)
|
|
341
|
+
|
|
416
342
|
### Fixed
|
|
343
|
+
|
|
417
344
|
- `HTMLDOMPropertyConfig.js` and `SVGDOMPropertyConfig.js` have been moved from `react/lib/` to `react-dom/lib/` in v15.4
|
|
418
345
|
|
|
419
|
-
## [0.1.0](https://github.com/remarkablemark/html-react-parser/compare/v0.0.7...v0.1.0)
|
|
346
|
+
## [0.1.0](https://github.com/remarkablemark/html-react-parser/compare/v0.0.7...v0.1.0) (2016-10-14)
|
|
347
|
+
|
|
420
348
|
### Changed
|
|
421
|
-
|
|
349
|
+
|
|
350
|
+
- Replace HTML to DOM converter with [html-dom-parser](https://github.com/remarkablemark/html-dom-parser) ([#28](https://github.com/remarkablemark/html-react-parser/issues/28))
|
|
422
351
|
- Save `html-dom-parser`
|
|
423
352
|
- Remove `domhandler` and `htmlparser2`
|
|
424
353
|
- Update tests and README
|
|
425
354
|
|
|
426
|
-
## [0.0.7](https://github.com/remarkablemark/html-react-parser/compare/v0.0.6...v0.0.7)
|
|
355
|
+
## [0.0.7](https://github.com/remarkablemark/html-react-parser/compare/v0.0.6...v0.0.7) (2016-09-27)
|
|
356
|
+
|
|
427
357
|
### Added
|
|
428
|
-
|
|
358
|
+
|
|
359
|
+
- Examples of using the parser with script tag and RequireJS ([#26](https://github.com/remarkablemark/html-react-parser/issues/26))
|
|
429
360
|
|
|
430
361
|
### Changed
|
|
431
|
-
- Update build (#25)
|
|
432
|
-
- Update README description, instructions, and examples (#27)
|
|
433
362
|
|
|
434
|
-
|
|
363
|
+
- Update build ([#25](https://github.com/remarkablemark/html-react-parser/issues/25))
|
|
364
|
+
- Update README description, instructions, and examples ([#27](https://github.com/remarkablemark/html-react-parser/issues/27))
|
|
365
|
+
|
|
366
|
+
## [0.0.6](https://github.com/remarkablemark/html-react-parser/compare/v0.0.5...v0.0.6) (2016-09-27)
|
|
367
|
+
|
|
435
368
|
### Added
|
|
436
|
-
|
|
437
|
-
-
|
|
369
|
+
|
|
370
|
+
- README example with advanced usage of `replace` option from @poacher2k ([#17](https://github.com/remarkablemark/html-react-parser/issues/17))
|
|
371
|
+
- Contributors section to README ([#21](https://github.com/remarkablemark/html-react-parser/issues/21))
|
|
438
372
|
|
|
439
373
|
### Changed
|
|
440
|
-
|
|
374
|
+
|
|
375
|
+
- Use webpack to build UMD bundle ([#22](https://github.com/remarkablemark/html-react-parser/issues/22))
|
|
441
376
|
|
|
442
377
|
### Fixed
|
|
443
|
-
- Regex bug on client parser (#24)
|
|
444
378
|
|
|
445
|
-
|
|
379
|
+
- Regex bug on client parser ([#24](https://github.com/remarkablemark/html-react-parser/issues/24))
|
|
380
|
+
|
|
381
|
+
## [0.0.5](https://github.com/remarkablemark/html-react-parser/compare/v0.0.4...v0.0.5) (2016-08-30)
|
|
382
|
+
|
|
446
383
|
### Changed
|
|
447
|
-
|
|
384
|
+
|
|
385
|
+
- Remove `key` parameter from `replace` and use `React.cloneElement` ([#18](https://github.com/remarkablemark/html-react-parser/issues/18))
|
|
448
386
|
|
|
449
387
|
### Fixed
|
|
450
|
-
- Parsing of `<script>` and `<style>` tags (#20)
|
|
451
388
|
|
|
452
|
-
|
|
389
|
+
- Parsing of `<script>` and `<style>` tags ([#20](https://github.com/remarkablemark/html-react-parser/issues/20))
|
|
390
|
+
|
|
391
|
+
## [0.0.4](https://github.com/remarkablemark/html-react-parser/compare/v0.0.3...v0.0.4) (2016-08-29)
|
|
392
|
+
|
|
453
393
|
### Added
|
|
454
|
-
|
|
455
|
-
-
|
|
456
|
-
-
|
|
394
|
+
|
|
395
|
+
- Send coverage report generated by [istanbul](http://gotwarlost.github.io/istanbul/) to [coveralls](https://coveralls.io) ([#12](https://github.com/remarkablemark/html-react-parser/issues/12))
|
|
396
|
+
- Display badges in README ([#13](https://github.com/remarkablemark/html-react-parser/issues/13), [#15](https://github.com/remarkablemark/html-react-parser/issues/15))
|
|
397
|
+
- Update parser's `replace` option with additional 2nd parameter `key` ([#16](https://github.com/remarkablemark/html-react-parser/issues/16))
|
|
457
398
|
|
|
458
399
|
### Fixed
|
|
459
|
-
- Void elements (e.g., `<img />`) should not have children (#16)
|
|
460
|
-
- Set default `key` parameter for sibling elements due to [keys warning](https://fb.me/react-warning-keys) (#16)
|
|
461
400
|
|
|
462
|
-
|
|
401
|
+
- Void elements (e.g., `<img />`) should not have children ([#16](https://github.com/remarkablemark/html-react-parser/issues/16))
|
|
402
|
+
- Set default `key` parameter for sibling elements due to [keys warning](https://fb.me/react-warning-keys) ([#16](https://github.com/remarkablemark/html-react-parser/issues/16))
|
|
403
|
+
|
|
404
|
+
## [0.0.3](https://github.com/remarkablemark/html-react-parser/compare/v0.0.2...v0.0.3) (2016-08-24)
|
|
405
|
+
|
|
463
406
|
### Added
|
|
464
|
-
|
|
465
|
-
-
|
|
407
|
+
|
|
408
|
+
- Make package [UMD](https://github.com/ForbesLindesay/umd/blob/master/template.js) compatible ([#9](https://github.com/remarkablemark/html-react-parser/issues/9))
|
|
409
|
+
- Throw an error if first argument is not a string ([#10](https://github.com/remarkablemark/html-react-parser/issues/10))
|
|
466
410
|
|
|
467
411
|
### Changed
|
|
468
|
-
|
|
412
|
+
|
|
413
|
+
- Differentiate between node and browser environments for parser ([#5](https://github.com/remarkablemark/html-react-parser/issues/5))
|
|
469
414
|
|
|
470
415
|
### Fixed
|
|
471
|
-
- HTML to DOM conversion on the client (#10)
|
|
472
416
|
|
|
473
|
-
|
|
417
|
+
- HTML to DOM conversion on the client ([#10](https://github.com/remarkablemark/html-react-parser/issues/10))
|
|
418
|
+
|
|
419
|
+
## [0.0.2](https://github.com/remarkablemark/html-react-parser/compare/v0.0.1...v0.0.2) (2016-08-23)
|
|
420
|
+
|
|
474
421
|
### Added
|
|
475
|
-
|
|
476
|
-
- [
|
|
422
|
+
|
|
423
|
+
- [ESLint](http://eslint.org) as the linter ([#2](https://github.com/remarkablemark/html-react-parser/issues/2))
|
|
424
|
+
- [Travis CI](https://travis-ci.org) ([#4](https://github.com/remarkablemark/html-react-parser/issues/4))
|
|
477
425
|
|
|
478
426
|
### Fixed
|
|
427
|
+
|
|
479
428
|
- `package.json` **peerDependencies** for `react` and `react-dom`
|
|
480
429
|
|
|
481
|
-
## [0.0.1](https://github.com/remarkablemark/html-react-parser/tree/v0.0.1)
|
|
430
|
+
## [0.0.1](https://github.com/remarkablemark/html-react-parser/tree/v0.0.1) (2016-08-23)
|
|
431
|
+
|
|
482
432
|
### Added
|
|
433
|
+
|
|
483
434
|
- HTML to React parser which consists of:
|
|
484
435
|
- HTML string to DOM object converter
|
|
485
436
|
- DOM object to React nodes converter
|