All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning.
require('fs')
calls will now be ignored by browser bundlers, through using
browser
field in package.json
. Fallbacks for cases where fs
module is
not available were already in place prior to this release.attrs()
has been optimized.classes()
has been optimized, making it more than 9x faster.style()
has been optimized, making it 3-9x faster in average cases.escape()
has been optimized again, now with another 1-4x boost from the
last release.attrs()
, attr()
, and merge()
also got some minor improvements.
Although not benchmarked, we expect the new versions to perform better than
last release.require('pug-runtime/build')
, will not be visible through
require('pug-runtime/build')
anymore.pug_encode_html_rules
and pug_encode_char
, two internal variables, have
now been removed. Please note that any further changes to these internal
variables will not come with a major bump.require('pug-runtime/wrap')
is added to ease testing
client-side templates.escape()
has been optimized, making it about 20-30% faster. The new
implementation is inspired by the one from EJS.