UNPKG

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