|
| 1 | +# News in version 2.0.0 |
| 2 | + |
| 3 | +## API Additions |
| 4 | + |
| 5 | +* Add `Button.disabled`. |
| 6 | + |
| 7 | +## Incompatible Changes |
| 8 | + |
| 9 | +* Drop support for Python 2.7 and 3.4. |
| 10 | + |
| 11 | +# News in version 1.2.2 |
| 12 | + |
| 13 | +## API Additions |
| 14 | + |
| 15 | +* Add `GenValue` and `GenValueGenerator` to `htmlgen`. |
| 16 | + |
| 17 | +# News in version 1.2.1 |
| 18 | + |
| 19 | +## API Additions |
| 20 | + |
| 21 | +* `from htmlgen import ElementBase` now works. |
| 22 | + |
| 23 | +## Bug Fixes |
| 24 | + |
| 25 | +* Add missing `ElementBase` to type stubs. |
| 26 | + |
| 27 | +# News in version 1.2.0 |
| 28 | + |
| 29 | +## API Additions |
| 30 | + |
| 31 | +* Make `ElementBase` public. |
| 32 | +* Add `GenValue` and `GenValueGenerator` type aliases. |
| 33 | +* Fix annotation of `Heading`. |
| 34 | + |
| 35 | +# News in version 1.1.0 |
| 36 | + |
| 37 | +## Improvements |
| 38 | + |
| 39 | +* PEP 561 support. |
| 40 | +* Improve type hints. |
| 41 | + |
| 42 | +# News in version 1.0.0 |
| 43 | + |
| 44 | +No changes. |
| 45 | + |
| 46 | +# News in version 0.99.3 |
| 47 | + |
| 48 | +## API-Incompatible Changes |
| 49 | + |
| 50 | +* Revert deriving from ABC classes. |
| 51 | + |
| 52 | +# News in version 0.99.2 |
| 53 | + |
| 54 | +## API Additions |
| 55 | + |
| 56 | +* `Element.data` does now derive from MutableMapping and implements all its |
| 57 | + methods. |
| 58 | + |
| 59 | +## Improvements |
| 60 | + |
| 61 | +* Derive `ChildGenerator`, `HTMLChildGenerator`, and `Element` from |
| 62 | + Sized. |
| 63 | + |
| 64 | +## Bug Fixes |
| 65 | + |
| 66 | +* Fix a few stubs. |
| 67 | +* Fix incorrect usage of `AnyStr`. |
| 68 | + |
| 69 | +# News in version 0.99.1 |
| 70 | + |
| 71 | +## API-Incompatible Changes |
| 72 | + |
| 73 | +* `html_attribute()` at al. are now directly implemented using the descriptor |
| 74 | + protocol, and not derived from property. |
| 75 | + |
| 76 | +## Improvements |
| 77 | + |
| 78 | +* Add stub files. |
| 79 | + |
| 80 | +# News in version 0.99.0 |
| 81 | + |
| 82 | +First Beta Release |
| 83 | + |
| 84 | +## API Additions |
| 85 | + |
| 86 | +* Add generate_html_string(). |
| 87 | +* Add css_class_attribute(). |
| 88 | +* Add Checkbox (<input type="checkbox">), RadioButton (<input type="radio">), |
| 89 | + and Label (<label>). |
| 90 | + |
| 91 | +## API-Incompatible Changes |
| 92 | + |
| 93 | +* Remove html_attribute() from htmlgen.element. |
| 94 | + |
| 95 | +## Improvements |
| 96 | + |
| 97 | +* Render CSS classes alphabetically for easier unit testing. |
| 98 | + |
| 99 | +## Bug Fixes |
| 100 | + |
| 101 | +* Fix PendingDeprecationWarnings. |
| 102 | + |
| 103 | +# News in version 0.9 |
| 104 | + |
| 105 | +## API Additions |
| 106 | + |
| 107 | +* Add IteratorGenerator. |
| 108 | +* Add HiddenInput (<input type="hidden">), FileInput (<input type="file">), |
| 109 | + SearchInput (<input type="search">), and TimeInput (<input type="time">). |
| 110 | +* Add LineBreak (<br>). |
| 111 | +* Table now has two overridable generator methods generate_header_rows() and |
| 112 | + generate_rows(). |
| 113 | +* Add TextArea.placeholder property. |
| 114 | +* Add NumberInput.number property. |
| 115 | +* Add Form.target property and Form.set_blank_target(). |
| 116 | +* Add data_attribute(), list_html_attribute() and time_html_attribute(). |
| 117 | + |
| 118 | +## API-Incompatible Changes |
| 119 | + |
| 120 | +* Improve Element.id handling and raise ValueError on invalid ids. |
| 121 | +* The default name of all input elements has been changed from None to the |
| 122 | + empty string to match Input.name. |
| 123 | +* NumberInput constructor: Replace value argument by number. |
| 124 | + |
| 125 | +# News in version 0.8 |
| 126 | + |
| 127 | +## API Additions |
| 128 | + |
| 129 | +* Add form elements TextArea (<textarea>), Select (<select>), OptionGroup |
| 130 | + (<optgroup>), and Option (<option>). |
| 131 | +* Add is_element() to check whether an object is an element generator of |
| 132 | + a certain type. |
| 133 | +* Forms now support multipart submissions using the Form.encryption_type and |
| 134 | + Form.multipart attributes. |
| 135 | + |
| 136 | +## API-Incompatible Changes |
| 137 | + |
| 138 | +* Fix the default HTTP method to be "GET" for forms as per HTML spec. This |
| 139 | + avoids unexpected behaviour and the need for problematic workarounds |
| 140 | + with "POST" forms. |
| 141 | + |
| 142 | +# News in version 0.7 |
| 143 | + |
| 144 | +## API Additions |
| 145 | + |
| 146 | +* Add input elements Button (<button>), NumberInput (<input type="number">), |
| 147 | + PasswordInput (<input type="password">), and DateInput (<input |
| 148 | + type="date">). |
| 149 | + |
| 150 | +## API-Incompatible Changes |
| 151 | + |
| 152 | +* Move attribute functions from htmlgen.elements to htmlgen.attribute. |
| 153 | + (But you should import them directly from htmlgen anyway.) |
| 154 | + |
| 155 | +## Improvements |
| 156 | + |
| 157 | +* Improved error handling and reporting. |
| 158 | + |
| 159 | +## Documentation |
| 160 | + |
| 161 | +* Add element list document elements.rst. |
| 162 | + |
| 163 | +## Bug Fixes |
| 164 | + |
| 165 | +* Add float_html_attribute to htmlgen. |
| 166 | + |
| 167 | +# News in version 0.6.1 |
| 168 | + |
| 169 | +## Bug Fixes |
| 170 | + |
| 171 | +* Fixed error when passing elements to TableCell's and TableHeaderCell's |
| 172 | + constructor. |
| 173 | + |
| 174 | +# News in version 0.6 |
| 175 | + |
| 176 | +## API Additions |
| 177 | + |
| 178 | +* Add TableHeaderCell to htmlgen (missing from 0.5). |
| 179 | +* Division constructor now accepts initial content arguments. |
| 180 | + |
| 181 | +## API-Incompatible Changes |
| 182 | + |
| 183 | +* All element constructors that took an initial content argument now take |
| 184 | + any number of content arguments, i.e. the following is now possible: |
| 185 | + >>> Paragraph("This is ", Emphasis("initial"), " content.") |
| 186 | + |
| 187 | +# News in version 0.5 |
| 188 | + |
| 189 | +## API Additions |
| 190 | + |
| 191 | +* Add table elements Table (<table>), TableHead (<thead>), |
| 192 | + TableBody (<tbody>), TableRow (<tr>), TableHeaderCell (<th>), |
| 193 | + TableCell (<td>), ColumnGroup (<colgroup>), and Column (<col>). |
| 194 | + |
| 195 | +# News in version 0.4 |
| 196 | + |
| 197 | +## API Additions |
| 198 | + |
| 199 | +* Add data property to element classes. This provides an API to |
| 200 | + easily set and query data-* attributes. |
| 201 | +* Add structural element Article (<article>). |
| 202 | +* Add inline elements Link (<a>) and Time (<time>). |
| 203 | +* Add description list elements DescriptionList (<dl>), |
| 204 | + DescriptionTerm (<dt>), and DescriptionDefinition (<dd>). |
| 205 | + |
| 206 | +# News in version 0.3 |
| 207 | + |
| 208 | +## API Additions |
| 209 | + |
| 210 | +* Add child-management methods and properties to ChildGenerator and |
| 211 | + HTMLChildGenerator: |
| 212 | + * remove() |
| 213 | + * remove_raw() (HTMLChildGenerator only) |
| 214 | + * children |
| 215 | +* Add new base class NonVoidElement, derive Element from this class. |
| 216 | + This base class can be used for elements with content that do not |
| 217 | + support the usual container interface. |
| 218 | +* Add document-level elements Document, HTMLRoot (<html>), Head (<head>), |
| 219 | + Body (<body>), Title (<title>), Meta (<meta>), Script (<script>), |
| 220 | + HeadLink (<link>), and Main (<main>). |
| 221 | +* Add structural elements Section (<section>), Navigation (<nav>), |
| 222 | + Aside (<aside>), Header (<header>), Footer (<footer>), and Heading |
| 223 | + (<h1> to <h6>). |
| 224 | +* Add list elements OrderedList (<ol>), UnorderedList (<ul>), and |
| 225 | + ListItem (<li>). |
| 226 | +* Add has_css_class() method to elements. |
| 227 | + |
| 228 | +## Improvements |
| 229 | + |
| 230 | +* Element attributes are now always rendered in alphabetical order. This |
| 231 | + makes testing elements easier. |
| 232 | + |
| 233 | +# News in version 0.2 |
| 234 | + |
| 235 | +## API Additions |
| 236 | + |
| 237 | +* Add elements Paragraph (<p>), Preformatted (<pre>), Image (<img>), |
| 238 | + Highlight (<b>), Strong (<strong>), Alternate (<i>), Emphasis (<em>), |
| 239 | + and Small (<small>). |
| 240 | +* Add float_html_attribute(). |
| 241 | +* Add remove_css_classes() method to elements. |
| 242 | + |
| 243 | +## API-Incompatible Changes |
| 244 | + |
| 245 | +* Rename ShortElement to VoidElement to conform to the HTML 5 standard. |
| 246 | + |
| 247 | +# News in version 0.1.1 |
| 248 | + |
| 249 | +## API Additions |
| 250 | + |
| 251 | +* Add ShortElement to htmlgen. |
| 252 | + |
| 253 | +## Bug Fixes |
| 254 | + |
| 255 | +* Elements are now always truthy. |
0 commit comments