Releases: preactjs/preact-render-to-string
6.0.0
Major Changes
-
#241
e8cbf66Thanks @developit! - Improve performance by another 5-10% usingswitchand short-circuiting, and move pretty-printing + shallow rendering intopreact-render-to-string/jsx. -
#282
6376f62Thanks @JoviDeCroock! - Remove trailing space for void_elements, this could fail some test_assertions as
<img />will become<img/>, the otherVOID_ELEMENTSthis will be applied for
can be found here -
#286
7a8b590Thanks @JoviDeCroock! - Remove the castin to VNode forpreact/debug, this is fixed in Preact >= 10.13.0
Patch Changes
-
#286
7a8b590Thanks @JoviDeCroock! - Change style calculation to use a Set rather than Regex -
#285
a0546feThanks @JoviDeCroock! - Fix CJS export -
#288
0b04860Thanks @glenchao! - Enumerate draggable attribute, so the output isn'tdraggablebutdraggable="true" -
#283
3defa9dThanks @JoviDeCroock! - Follow up fixes to #278 -
#289
07ebc66Thanks @JoviDeCroock! - Supportdataattribute -
#270
5c6877dThanks @developit! - improve unmount option hook call performance -
#278
8cf7cefThanks @JoviDeCroock! - Improve performance by- storing the void_elements in a Set
- hoisting the
x-linkregex - remove case-insensitive from regexes and calling
.toLowerCase()instead - caching suffixes for css-props
5.2.6
Patch Changes
- #257
8b944b2Thanks @marvinhagemeister! - Fixpreact/debugincorrectly throwing errors on text children
5.2.5
Patch Changes
- #246
ad35c4cThanks @developit and @marvinhagemeister! - Fix object and function children being rendered asundefined
- #248
aa12b3cThanks @marvinhagemeister! - Fix vnode masks not matching with core due to top level component Fragments
5.2.2
Patch Changes
-
#235
2f6d6e8Thanks @marvinhagemeister! - Remove duplicate type path inpackage.json. Only one oftypesortypingsis needed. -
98cce12Thanks @JoviDeCroock! - Addtypesentry topackage.json.
- #228
e4fe799Thanks @developit! - Improve string encoding performance by ~50%
- #229
d83def7Thanks @JoviDeCroock! - Split up hot paths and make separate path for opts.pretty for performance
5.2.1
Patch Changes
- #224
645f3cbThanks @rschristian! - EnsuresdefaultCheckedis serialized ascheckedattribute
- #225
31ac323Thanks @JoviDeCroock! - Optimize perf by using smarter string builder
5.1.21
5.1.21
Patch Changes
- #215
a8672dbThanks @AleksandrHovhannisyan! - Don't add selected attribute to elements if they already contain that attribute
5.1.20
Patch Changes
-
#209
298d05eThanks @rschristian! - On empty className w/ compat, class attribute will no longer be duplicated -
#203 Thanks @developit! - Fix serialize defaultValue as value attribute
5.1.19
- Fix hooks not working in jsx renderer (#196, thanks @marvinhagemeister)
5.1.18
5.1.17
This release contains a few minor performance improvements.
- Skip effect checks during rendering (#193, thanks @JoviDeCroock)
- Add
encodeEntitiesfast path for inputs that don't need anything replaced (#194, thanks @jviide) - Add fast path for
Fragmentsand improveencodeEntitiesperformance on Intel CPUs (#192, thanks @developit)
Maintenance
- Benchmark runner updates (#189, thanks @developit)
- Update test setup (#188, thanks @marvinhagemeister)