unstale

npm / pug

pug

What changed in pug 3, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-27.

2 breaking3 new APIs and options1 behavior and defaults1 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli 0.2.8 on npm

pug 37 changes

Breaking changes 2

  • The minify option on filters now requires installing the relevant jstransformer.

    3.0.0release notes

  • Support for Node.js 6 and 8 has been dropped.

    3.0.0release notes

New APIs and options 3

  • Pug supports each ... of ... loops, including iteration over Maps, Sets, and arrays.

    3.0.0release notes

  • A plugin can replace code generation using generateCode.

    3.0.0release notes

  • Filters can use a renderBuffer property to process Buffer input.

    3.0.0release notes

Behavior and default changes 1

  • Read plugins must return Buffer to support filters that use renderBuffer; returning string remains supported otherwise.

    3.0.0release notes

Fixes and other changes 1