All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning.
[v0.6.2] - 2017-01-18
- Stop mutating entity data when rendering entities (#36)
[v0.6.1] - 2016-12-21
- Automatically convert line breaks to
br
elements.
[v0.6.0] - 2016-12-19
This release is likely to be a breaking change. It is not released as such because the exporter has not reached 1.0 yet.
- Change
hr
rendering to be done with entities instead of block types. Instead of having aTOKEN
entity rendering asNull
inside ahorizontal-rule
block rendering ashr
, we now have aHORIZONTAL_RULE
entitiy rendering asHR
inside anatomic
block rendering asfragment
.
- Remove custom block type
pullquote
[v0.5.2] - 2016-12-10
- Fix state being kept between exports, causing blocks to be duplicated in re-runs.
[v0.5.1] - 2016-11-17
- Fix broken link in README
[v0.5.0] - 2016-11-17
This release is likely to be a breaking change. It is not released as such because the exporter has not reached 1.0 yet.
- Add support for more scenarios with nested blocks. Jumping depths eg. 0, 2, 3. Starting directly above 0 eg. 2, 2, 0. Not using 0 at all eg. 3, 3, 3.
- Entity decorators now have complete control on where their content (markup, not just text) is inserted into the DOM. This is done via the
children
prop in a similar fashion to React's.
- Built-in entities are no longer available as part of the library. They should be defined in userland.
[v0.4.0] - 2016-10-15
This release is likely to be a breaking change. It is not released as such because the exporter has not reached 1.0 yet.
- Now using Beautiful Soup 4 and the html5lib parser instead of lxml.
- Entities are now available from
draftjs_exporter.entities
instead ofdraftjs_exporter.entities.<entity>
- Support for simpler
wrapper
options definition:{'unordered-list-item' : { 'element': 'li', 'wrapper': 'ul'}}
- Support for options definition for every element, not just wrappers:
{'header-two' : { 'element': ['h2', {'className': 'c-amazing-heading'}]}}
- Support for None in the children of an element in
DOM.create_element
, for conditional rendering like what React does. - Support for entity class in
DOM.create_element
.
- Fix behavior of wrapper stack in nested wrappers (#15)
[v0.3.3] - 2016-10-06
Last release before switching to BeautifulSoup4 / html5lib. If we ever need to switch back to lxml, it should be as simple as looking at the code at v0.3.3.
- Add wrapper method to create new elements.
- Add wrapper method to retrieve an element's list of classes.
[v0.3.2] - 2016-07-25
- Fix exporter crashing on empty blocks (renders empty string instead)
[v0.3.1] - 2016-07-20
- Use HTML parser instead of XML for DOM API
[v0.3.0] - 2016-07-20
- Automatic conversion of entity data to HTML attributes (int & boolean to string,
className
toclass
). - Default, extensible block & inline style maps for common HTML elements.
- React-like API to create custom entity decorators.
- DOM API to abstract HTML building code.
- Dynamically generate test cases from JSON fixture
- Raise exception for undefined entity decorators
- (Breaking change) Exporter API changed to be closer to React's
- (Breaking change) Entity decorator API changed to be closer to React's
- Nested blocks backtracking creating multiple wrappers at the same depths instead of reusing existing ones (#9)
- Removed Token entity (identical as Null)
[v0.2.0] - 2016-07-05
- Support for
<hr/>
tag /TOKEN
entities - Support for wrapped item nesting (arbitrary depth)
[v0.1.0] - 2016-07-04
First usable release!
[x.y.z] - YYYY-MM-DD (Template: http://keepachangelog.com/)
- Something was added to the API / a new feature was introduced.