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