v1.2.0
1.2.0 (2024-01-13)
Quick Info
This release removes a diacritic fallback that was part of the code and only keep the modern approach using the normalize()
function which is supported by all modern browsers. The fallback implementation was using a long list of unicode mapping with string replacement and that was taking a lot of space, by removing this unnecessary fallback we actually decrease our library size by quite a lot (see below). If for whatever reason removing this causes any problems, users could add their own custom implementation via the diacriticParser
option (see new Diacritic Parser Example).
Size Difference
file on disk and uncompressed (final size should be much smaller with gzip)
before | after | diff | notes |
---|---|---|---|
956Kb (979,219) | 882Kb (903,442) | 74Kb (or 7.74% smaller) | all bundles uncompressed |
51.7Kb (53,037) | 46.3Kb (49,152) | 3.9Kb (or 7.32% smaller ) | ESM+styles (no locale) zipped |
Features
- remove previous diacritic unicodes and add
diacriticParser
(#190) (aaa9d92) - by @ghiscoding