html-react-parser 0.10.5 → 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 +185 -203
- package/README.md +92 -2
- package/dist/html-react-parser.js +101 -81
- 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 +20 -7
- package/index.js +14 -5
- package/lib/dom-to-react.d.ts +3 -3
- package/lib/dom-to-react.js +39 -26
- package/package.json +11 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,337 +1,280 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Change Log
|
|
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
|
-
|
|
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)
|
|
6
7
|
|
|
7
8
|
|
|
8
|
-
###
|
|
9
|
-
|
|
10
|
-
* **html-to-react:** tidy and organize tests in html-to-react.js ([8dfbfe0](https://github.com/remarkablemark/html-react-parser/commit/8dfbfe03a65f900b2661dc80227883a77bef766c))
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
### Build System
|
|
9
|
+
### Features
|
|
14
10
|
|
|
15
|
-
* **
|
|
16
|
-
* **
|
|
17
|
-
* **rollup:** upgrade rollup, consolidate config, remove cross-env ([55b2b4e](https://github.com/remarkablemark/html-react-parser/commit/55b2b4e7a647e9829e89a45524ece86d0ab620bd))
|
|
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))
|
|
18
13
|
|
|
19
|
-
### [0.10.4](https://github.com/remarkablemark/html-react-parser/compare/v0.10.3...v0.10.4) (2020-05-25)
|
|
20
14
|
|
|
21
15
|
|
|
22
|
-
|
|
16
|
+
## [0.12.0](https://github.com/remarkablemark/html-react-parser/compare/v0.11.1...v0.12.0) (2020-06-04)
|
|
23
17
|
|
|
24
|
-
|
|
25
|
-
* **dom-to-react:** tidy tests and add case for single node replace ([452f6be](https://github.com/remarkablemark/html-react-parser/commit/452f6be01500adffd740b0b1edb7a06790ba46f7))
|
|
26
|
-
* tidy tests, replace `assert.equal` with `assert.strictEqual` ([ef04eff](https://github.com/remarkablemark/html-react-parser/commit/ef04effebdd2f753c99f706599d656b314442d08))
|
|
18
|
+
### Features
|
|
27
19
|
|
|
28
|
-
|
|
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))
|
|
29
22
|
|
|
23
|
+
## [0.11.1](https://github.com/remarkablemark/html-react-parser/compare/v0.11.0...v0.11.1) (2020-06-03)
|
|
30
24
|
|
|
31
|
-
###
|
|
25
|
+
### Performance Improvements
|
|
32
26
|
|
|
33
|
-
|
|
34
|
-
* use JSX.Element for type definitions ([d8e2ada](https://github.com/remarkablemark/html-react-parser/commit/d8e2adad4410544bbff4b5c9b827225aa96ed5d5))
|
|
27
|
+
- **index:** return empty array if first argument is empty string ([7f61f97](https://github.com/remarkablemark/html-react-parser/commit/7f61f97))
|
|
35
28
|
|
|
36
|
-
|
|
29
|
+
## [0.11.0](https://github.com/remarkablemark/html-react-parser/compare/v0.10.5...v0.11.0) (2020-06-02)
|
|
37
30
|
|
|
31
|
+
### Features
|
|
38
32
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
* **index:** add default export for parser ([6259959](https://github.com/remarkablemark/html-react-parser/commit/62599594de72c12c0c9fe9a8642ee52ed0488734))
|
|
33
|
+
- **package:** upgrade html-dom-parser@0.3.0 ([d30bfdc](https://github.com/remarkablemark/html-react-parser/commit/d30bfdc))
|
|
42
34
|
|
|
35
|
+
## [0.10.5](https://github.com/remarkablemark/html-react-parser/compare/v0.10.4...v0.10.5) (2020-05-26)
|
|
43
36
|
|
|
44
37
|
### Tests
|
|
45
38
|
|
|
46
|
-
|
|
47
|
-
* **html-to-react:** have a stronger assert ([064f0df](https://github.com/remarkablemark/html-react-parser/commit/064f0dfc742f67d57941a02bfdb70a76b56be472))
|
|
48
|
-
|
|
49
|
-
### [0.10.1](https://github.com/remarkablemark/html-react-parser/compare/v0.10.0...v0.10.1) (2020-02-08)
|
|
39
|
+
- **html-to-react:** tidy and organize tests in html-to-react.js ([8dfbfe0](https://github.com/remarkablemark/html-react-parser/commit/8dfbfe03a65f900b2661dc80227883a77bef766c))
|
|
50
40
|
|
|
41
|
+
### Build System
|
|
51
42
|
|
|
52
|
-
|
|
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))
|
|
53
46
|
|
|
54
|
-
|
|
47
|
+
## [0.10.4](https://github.com/remarkablemark/html-react-parser/compare/v0.10.3...v0.10.4) (2020-05-25)
|
|
55
48
|
|
|
56
|
-
|
|
49
|
+
### Tests
|
|
57
50
|
|
|
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))
|
|
58
54
|
|
|
59
|
-
|
|
55
|
+
## [0.10.3](https://github.com/remarkablemark/html-react-parser/compare/v0.10.2...v0.10.3) (2020-03-28)
|
|
60
56
|
|
|
61
|
-
|
|
62
|
-
* **package:** upgrade devDependencies ([aaddf1b](https://github.com/remarkablemark/html-react-parser/commit/aaddf1b))
|
|
57
|
+
### Bug Fixes
|
|
63
58
|
|
|
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))
|
|
64
61
|
|
|
65
|
-
|
|
62
|
+
## [0.10.2](https://github.com/remarkablemark/html-react-parser/compare/v0.10.1...v0.10.2) (2020-03-13)
|
|
66
63
|
|
|
67
|
-
|
|
64
|
+
### Bug Fixes
|
|
68
65
|
|
|
66
|
+
- **index:** add default export for parser ([6259959](https://github.com/remarkablemark/html-react-parser/commit/62599594de72c12c0c9fe9a8642ee52ed0488734))
|
|
69
67
|
|
|
70
68
|
### Tests
|
|
71
69
|
|
|
72
|
-
|
|
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))
|
|
73
72
|
|
|
73
|
+
## [0.10.1](https://github.com/remarkablemark/html-react-parser/compare/v0.10.0...v0.10.1) (2020-02-08)
|
|
74
74
|
|
|
75
|
+
### Bug Fixes
|
|
75
76
|
|
|
76
|
-
|
|
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)
|
|
77
78
|
|
|
79
|
+
## [0.10.0](https://github.com/remarkablemark/html-react-parser/compare/v0.9.2...v0.10.0) (2019-11-09)
|
|
78
80
|
|
|
79
|
-
###
|
|
81
|
+
### Build System
|
|
80
82
|
|
|
81
|
-
|
|
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))
|
|
82
85
|
|
|
86
|
+
### Features
|
|
83
87
|
|
|
84
|
-
|
|
88
|
+
- **dom-to-react:** support Preact ([c3e77bb](https://github.com/remarkablemark/html-react-parser/commit/c3e77bb))
|
|
85
89
|
|
|
86
|
-
|
|
87
|
-
* **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) [remarkablemark/html-dom-parser#18](https://github.com/remarkablemark/html-react-parser/issues/18)
|
|
90
|
+
### Tests
|
|
88
91
|
|
|
92
|
+
- **types:** move TypeScript tests from `lint` to `test` directory ([7c9ab9d](https://github.com/remarkablemark/html-react-parser/commit/7c9ab9d))
|
|
89
93
|
|
|
94
|
+
## [0.9.2](https://github.com/remarkablemark/html-react-parser/compare/v0.9.1...v0.9.2) (2019-11-04)
|
|
90
95
|
|
|
91
|
-
###
|
|
96
|
+
### Bug Fixes
|
|
92
97
|
|
|
98
|
+
- refactor TypeScript declaration file for `index.d.ts` ([f1fc00b](https://github.com/remarkablemark/html-react-parser/commit/f1fc00b))
|
|
93
99
|
|
|
94
100
|
### Build System
|
|
95
101
|
|
|
96
|
-
|
|
97
|
-
|
|
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)
|
|
104
|
+
|
|
105
|
+
## [0.9.1](https://github.com/remarkablemark/html-react-parser/compare/v0.9.0...v0.9.1) (2019-07-09)
|
|
98
106
|
|
|
107
|
+
### Build System
|
|
99
108
|
|
|
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))
|
|
100
111
|
|
|
101
112
|
## [0.9.0](https://github.com/remarkablemark/html-react-parser/compare/v0.8.1...v0.9.0) (2019-07-09)
|
|
102
113
|
|
|
103
|
-
|
|
104
114
|
### Bug Fixes
|
|
105
115
|
|
|
106
|
-
|
|
107
|
-
|
|
116
|
+
- **attributes-to-props:** handle attr named after Object properties ([3f857bb](https://github.com/remarkablemark/html-react-parser/commit/3f857bb))
|
|
108
117
|
|
|
109
118
|
### Build System
|
|
110
119
|
|
|
111
|
-
|
|
112
|
-
|
|
120
|
+
- **package:** update `react-property` to 1.0.1 ([26ebef9](https://github.com/remarkablemark/html-react-parser/commit/26ebef9))
|
|
113
121
|
|
|
114
122
|
### Features
|
|
115
123
|
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
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)
|
|
119
126
|
|
|
120
127
|
### Tests
|
|
121
128
|
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
### [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))
|
|
127
130
|
|
|
131
|
+
## [0.8.1](https://github.com/remarkablemark/html-react-parser/compare/v0.8.0...v0.8.1) (2019-07-03)
|
|
128
132
|
|
|
129
133
|
### Tests
|
|
130
134
|
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
135
|
+
- **html-to-react:** update variable name to fix test ([73237dd](https://github.com/remarkablemark/html-react-parser/commit/73237dd))
|
|
134
136
|
|
|
135
137
|
## [0.8.0](https://github.com/remarkablemark/html-react-parser/compare/v0.7.1...v0.8.0) (2019-06-24)
|
|
136
138
|
|
|
137
|
-
|
|
138
139
|
### Bug Fixes
|
|
139
140
|
|
|
140
|
-
|
|
141
|
-
|
|
141
|
+
- **attributes-to-props:** fix lint error `no-prototype-builtins` ([fa66dfc](https://github.com/remarkablemark/html-react-parser/commit/fa66dfc))
|
|
142
142
|
|
|
143
143
|
### Build System
|
|
144
144
|
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
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))
|
|
151
150
|
|
|
152
151
|
### Features
|
|
153
152
|
|
|
154
|
-
|
|
155
|
-
|
|
153
|
+
- **dom-to-react:** skip and do not parse <script> content ([1fb5ee2](https://github.com/remarkablemark/html-react-parser/commit/1fb5ee2))
|
|
156
154
|
|
|
157
155
|
### Tests
|
|
158
156
|
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
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))
|
|
162
159
|
|
|
163
|
-
|
|
164
|
-
<a name="0.7.1"></a>
|
|
165
160
|
## [0.7.1](https://github.com/remarkablemark/html-react-parser/compare/v0.7.0...v0.7.1) (2019-05-27)
|
|
166
161
|
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
<a name="0.7.0"></a>
|
|
170
162
|
## [0.7.0](https://github.com/remarkablemark/html-react-parser/compare/v0.6.4...v0.7.0) (2019-04-05)
|
|
171
163
|
|
|
172
|
-
|
|
173
164
|
### Bug Fixes
|
|
174
165
|
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
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))
|
|
178
168
|
|
|
179
169
|
### Features
|
|
180
170
|
|
|
181
|
-
|
|
182
|
-
|
|
171
|
+
- **types:** add lib/dom-to-react declaration ([27ed8b6](https://github.com/remarkablemark/html-react-parser/commit/27ed8b6))
|
|
183
172
|
|
|
184
|
-
|
|
185
|
-
<a name="0.6.4"></a>
|
|
186
173
|
## [0.6.4](https://github.com/remarkablemark/html-react-parser/compare/v0.6.3...v0.6.4) (2019-03-29)
|
|
187
174
|
|
|
188
|
-
|
|
189
175
|
### Bug Fixes
|
|
190
176
|
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
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))
|
|
194
179
|
|
|
195
|
-
|
|
196
|
-
<a name="0.6.3"></a>
|
|
197
180
|
## [0.6.3](https://github.com/remarkablemark/html-react-parser/compare/v0.6.2...v0.6.3) (2019-03-19)
|
|
198
181
|
|
|
199
|
-
|
|
200
182
|
### Bug Fixes
|
|
201
183
|
|
|
202
|
-
|
|
184
|
+
- **typescript:** test.tsx after dtslint run ([38e6bba](https://github.com/remarkablemark/html-react-parser/commit/38e6bba))
|
|
203
185
|
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
<a name="0.6.2"></a>
|
|
207
186
|
## [0.6.2](https://github.com/remarkablemark/html-react-parser/compare/v0.6.1...v0.6.2) (2019-03-07)
|
|
208
187
|
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
<a name="0.6.1"></a>
|
|
212
188
|
## [0.6.1](https://github.com/remarkablemark/html-react-parser/compare/v0.6.0...v0.6.1) (2019-01-03)
|
|
213
189
|
|
|
214
|
-
|
|
215
190
|
### Bug Fixes
|
|
216
191
|
|
|
217
|
-
|
|
218
|
-
|
|
192
|
+
- **utilities:** allow numbers in custom style names ([5a6600f](https://github.com/remarkablemark/html-react-parser/commit/5a6600f))
|
|
219
193
|
|
|
220
|
-
|
|
221
|
-
<a name="0.6.0"></a>
|
|
222
194
|
## [0.6.0](https://github.com/remarkablemark/html-react-parser/compare/v0.5.0...v0.6.0) (2018-12-17)
|
|
223
195
|
|
|
224
|
-
|
|
225
196
|
### Features
|
|
226
197
|
|
|
227
|
-
|
|
198
|
+
- **utilities:** add support for custom styles beginning with "--\*" ([2c0a9dc](https://github.com/remarkablemark/html-react-parser/commit/2c0a9dc))
|
|
228
199
|
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
<a name="0.5.0"></a>
|
|
232
200
|
## [0.5.0](https://github.com/remarkablemark/html-react-parser/compare/v0.4.7...v0.5.0) (2018-12-16)
|
|
233
201
|
|
|
234
|
-
|
|
235
202
|
### Bug Fixes
|
|
236
203
|
|
|
237
|
-
|
|
238
|
-
|
|
204
|
+
- **attributes-to-props:** undo default function parameter ([1017b25](https://github.com/remarkablemark/html-react-parser/commit/1017b25))
|
|
239
205
|
|
|
240
206
|
### Features
|
|
241
207
|
|
|
242
|
-
|
|
208
|
+
- support custom elements in React 16 ([7b2c5a8](https://github.com/remarkablemark/html-react-parser/commit/7b2c5a8))
|
|
243
209
|
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
<a name="0.4.7"></a>
|
|
247
210
|
## [0.4.7](https://github.com/remarkablemark/html-react-parser/compare/v0.4.6...v0.4.7) (2018-09-14)
|
|
248
211
|
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
<a name="0.4.6"></a>
|
|
252
212
|
## [0.4.6](https://github.com/remarkablemark/html-react-parser/compare/v0.4.5...v0.4.6) (2018-05-13)
|
|
253
213
|
|
|
254
|
-
|
|
255
214
|
### Bug Fixes
|
|
256
215
|
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
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))
|
|
261
220
|
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
<a name="0.4.5"></a>
|
|
265
221
|
## [0.4.5](https://github.com/remarkablemark/html-react-parser/compare/v0.4.4...v0.4.5) (2018-05-09)
|
|
266
222
|
|
|
267
|
-
|
|
268
223
|
### Bug Fixes
|
|
269
224
|
|
|
270
|
-
|
|
271
|
-
|
|
225
|
+
- **package:** upgrade style-to-object@0.2.1 ([d065c60](https://github.com/remarkablemark/html-react-parser/commit/d065c60))
|
|
272
226
|
|
|
273
|
-
|
|
274
|
-
<a name="0.4.4"></a>
|
|
275
227
|
## [0.4.4](https://github.com/remarkablemark/html-react-parser/compare/v0.4.3...v0.4.4) (2018-05-07)
|
|
276
228
|
|
|
277
|
-
|
|
278
229
|
### Bug Fixes
|
|
279
230
|
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
231
|
+
- **package:** upgrade react-dom-core@0.0.3 ([b4a1c6e](https://github.com/remarkablemark/html-react-parser/commit/b4a1c6e))
|
|
283
232
|
|
|
284
|
-
<a name="0.4.3"></a>
|
|
285
233
|
## [0.4.3](https://github.com/remarkablemark/html-react-parser/compare/v0.4.2...v0.4.3) (2018-03-27)
|
|
286
234
|
|
|
287
|
-
|
|
288
235
|
### Bug Fixes
|
|
289
236
|
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
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))
|
|
293
239
|
|
|
294
|
-
|
|
295
|
-
<a name="0.4.2"></a>
|
|
296
240
|
## [0.4.2](https://github.com/remarkablemark/html-react-parser/compare/v0.4.1...v0.4.2) (2018-02-20)
|
|
297
241
|
|
|
298
|
-
|
|
299
242
|
### Bug Fixes
|
|
300
243
|
|
|
301
|
-
|
|
302
|
-
|
|
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))
|
|
303
246
|
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
<a name="0.4.1"></a>
|
|
307
247
|
## [0.4.1](https://github.com/remarkablemark/html-react-parser/compare/v0.4.0...v0.4.1) (2017-11-28)
|
|
308
248
|
|
|
309
|
-
|
|
310
249
|
### Bug Fixes
|
|
311
250
|
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
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))
|
|
315
254
|
|
|
255
|
+
## [0.4.0](https://github.com/remarkablemark/html-react-parser/compare/v0.3.6...v0.4.0) (2017-10-01)
|
|
316
256
|
|
|
317
|
-
|
|
318
|
-
## [0.4.0](https://github.com/remarkablemark/html-react-parser/compare/v0.3.6...v0.4.0) - 2017-10-01
|
|
319
257
|
### Added
|
|
320
|
-
|
|
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))
|
|
321
260
|
- `react-dom` 16 no longer exposes `lib`, which includes the DOM property configs
|
|
322
261
|
- Upgrade devDependencies of `react` and `react-dom` to 16
|
|
323
262
|
- Update README and examples
|
|
324
263
|
|
|
325
|
-
## [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
|
+
|
|
326
266
|
### Changed
|
|
267
|
+
|
|
327
268
|
- Dependencies
|
|
328
269
|
- html-dom-parser@0.1.2
|
|
329
270
|
- Fixes IE9 client parser bug
|
|
330
271
|
- Set react and react-dom versions to `^15.4`
|
|
331
272
|
- Version 16 no longer exposes `HTMLDOMPropertyConfig` and `SVGDOMPropertyConfig`
|
|
332
273
|
|
|
333
|
-
## [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
|
+
|
|
334
276
|
### Changed
|
|
277
|
+
|
|
335
278
|
- Dependencies
|
|
336
279
|
- html-dom-parser@0.1.1
|
|
337
280
|
- Fixes IE client parser bug
|
|
@@ -339,8 +282,10 @@ All notable changes to this project will be documented in this file. See [standa
|
|
|
339
282
|
- webpack@3.0.0
|
|
340
283
|
- Update webpack to enable scope hoisting
|
|
341
284
|
|
|
342
|
-
## [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
|
+
|
|
343
287
|
### Changed
|
|
288
|
+
|
|
344
289
|
- Dependencies:
|
|
345
290
|
- html-dom-parser@0.1.0
|
|
346
291
|
- coveralls@2.13.1
|
|
@@ -349,106 +294,143 @@ All notable changes to this project will be documented in this file. See [standa
|
|
|
349
294
|
- webpack@2.6.1
|
|
350
295
|
|
|
351
296
|
### Removed
|
|
297
|
+
|
|
352
298
|
- Dependencies:
|
|
353
299
|
- jsdomify
|
|
354
300
|
|
|
355
|
-
## [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
|
+
|
|
356
303
|
### Added
|
|
357
|
-
|
|
304
|
+
|
|
305
|
+
- Created CHANGELOG with details on each version release ([#37](https://github.com/remarkablemark/html-react-parser/issues/37))
|
|
358
306
|
|
|
359
307
|
### Changed
|
|
360
|
-
- Update examples to load parser from relative `dist/` directory (#36)
|
|
361
308
|
|
|
362
|
-
|
|
363
|
-
- 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)
|
|
364
313
|
|
|
365
|
-
## [0.3.2](https://github.com/remarkablemark/html-react-parser/compare/v0.3.1...v0.3.2) - 2017-01-26
|
|
366
314
|
### Fixed
|
|
367
|
-
- Decode HTML entities by default on node (#34)
|
|
368
315
|
|
|
369
|
-
|
|
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
|
+
|
|
370
320
|
### Changed
|
|
321
|
+
|
|
371
322
|
- Updated README by fixing CDN installation instructions and adding JSFiddle
|
|
372
323
|
|
|
373
|
-
## [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
|
+
|
|
374
326
|
### Changed
|
|
327
|
+
|
|
375
328
|
- Upgrade `react` and `react-dom` to >15.4
|
|
376
329
|
|
|
377
|
-
## [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
|
+
|
|
378
332
|
### Added
|
|
333
|
+
|
|
379
334
|
- Create npm script `clean` that removes `dist/` directory
|
|
380
335
|
|
|
381
336
|
### Fixed
|
|
337
|
+
|
|
382
338
|
- Silence webpack warning by keeping react <15.4 in this version
|
|
383
339
|
|
|
384
|
-
## [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
|
+
|
|
385
342
|
### Fixed
|
|
343
|
+
|
|
386
344
|
- `HTMLDOMPropertyConfig.js` and `SVGDOMPropertyConfig.js` have been moved from `react/lib/` to `react-dom/lib/` in v15.4
|
|
387
345
|
|
|
388
|
-
## [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
|
+
|
|
389
348
|
### Changed
|
|
390
|
-
|
|
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))
|
|
391
351
|
- Save `html-dom-parser`
|
|
392
352
|
- Remove `domhandler` and `htmlparser2`
|
|
393
353
|
- Update tests and README
|
|
394
354
|
|
|
395
|
-
## [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
|
+
|
|
396
357
|
### Added
|
|
397
|
-
|
|
358
|
+
|
|
359
|
+
- Examples of using the parser with script tag and RequireJS ([#26](https://github.com/remarkablemark/html-react-parser/issues/26))
|
|
398
360
|
|
|
399
361
|
### Changed
|
|
400
|
-
- Update build (#25)
|
|
401
|
-
- Update README description, instructions, and examples (#27)
|
|
402
362
|
|
|
403
|
-
|
|
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
|
+
|
|
404
368
|
### Added
|
|
405
|
-
|
|
406
|
-
-
|
|
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))
|
|
407
372
|
|
|
408
373
|
### Changed
|
|
409
|
-
|
|
374
|
+
|
|
375
|
+
- Use webpack to build UMD bundle ([#22](https://github.com/remarkablemark/html-react-parser/issues/22))
|
|
410
376
|
|
|
411
377
|
### Fixed
|
|
412
|
-
- Regex bug on client parser (#24)
|
|
413
378
|
|
|
414
|
-
|
|
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
|
+
|
|
415
383
|
### Changed
|
|
416
|
-
|
|
384
|
+
|
|
385
|
+
- Remove `key` parameter from `replace` and use `React.cloneElement` ([#18](https://github.com/remarkablemark/html-react-parser/issues/18))
|
|
417
386
|
|
|
418
387
|
### Fixed
|
|
419
|
-
- Parsing of `<script>` and `<style>` tags (#20)
|
|
420
388
|
|
|
421
|
-
|
|
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
|
+
|
|
422
393
|
### Added
|
|
423
|
-
|
|
424
|
-
-
|
|
425
|
-
-
|
|
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))
|
|
426
398
|
|
|
427
399
|
### Fixed
|
|
428
|
-
- Void elements (e.g., `<img />`) should not have children (#16)
|
|
429
|
-
- Set default `key` parameter for sibling elements due to [keys warning](https://fb.me/react-warning-keys) (#16)
|
|
430
400
|
|
|
431
|
-
|
|
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
|
+
|
|
432
406
|
### Added
|
|
433
|
-
|
|
434
|
-
-
|
|
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))
|
|
435
410
|
|
|
436
411
|
### Changed
|
|
437
|
-
|
|
412
|
+
|
|
413
|
+
- Differentiate between node and browser environments for parser ([#5](https://github.com/remarkablemark/html-react-parser/issues/5))
|
|
438
414
|
|
|
439
415
|
### Fixed
|
|
440
|
-
- HTML to DOM conversion on the client (#10)
|
|
441
416
|
|
|
442
|
-
|
|
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
|
+
|
|
443
421
|
### Added
|
|
444
|
-
|
|
445
|
-
- [
|
|
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))
|
|
446
425
|
|
|
447
426
|
### Fixed
|
|
427
|
+
|
|
448
428
|
- `package.json` **peerDependencies** for `react` and `react-dom`
|
|
449
429
|
|
|
450
|
-
## [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
|
+
|
|
451
432
|
### Added
|
|
433
|
+
|
|
452
434
|
- HTML to React parser which consists of:
|
|
453
435
|
- HTML string to DOM object converter
|
|
454
436
|
- DOM object to React nodes converter
|