Pug 3.0.0
Published in
3 min readMay 26, 2020
This week I released pug 3.0.0. This release brings a few really exciting new features, as well as a couple of small breaking changes. I also took this opportunity to update the supported versions of node.js to match the official LTS versions. The breaking changes are minimal, and should not impact most users. The highlights include:
- The new
each … of …
syntax lets you iterate over Maps and Sets as well as Arrays, and is more efficient than theeach … in …
syntax. Don’t worry though, the old syntax is still there, and you do not have to do anything to update if you don’t want to.