All Versions
15
Latest Version
Avg Release Cycle
171 days
Latest Release
7 days ago

Changelog History
Page 1

  • v6.0.0

    May 25, 2020

    💥 Breaking Changes

    ⬇️ Drop support for node 6 and 8 (#3243)

    👌 Support eachOf tokens and output EachOf nodes (#3179)

  • v5.0.1

    June 18, 2019
  • v5.0.0

    May 25, 2020

    💥 Breaking Changes

    ⬇️ Drop support for node 6 and 8 (#3243)

    👌 Support each ... of ... (#3179)

    The pug lexer can now output a new token type: eachOf

  • v4.1.0

    June 18, 2019
  • v4.0.0

    May 25, 2020

    💥 Breaking Changes

    • ⬇️ Drop support for node 6 and 8 (#3243)
  • v3.1.1

    June 18, 2019
  • v3.0.6

    June 18, 2019
  • v3.0.0

    May 25, 2020

    💥 Breaking Changes

    🔌 read plugins must now return Buffer if you want to support filters that use renderBuffer (#3213)

    🔌 If you don't wish to support this advanced use case, you can continue returning string. If you did not provide a read plugin, you do not need to do anything.

    The minify option on filters now requires you to install the relevant jstransformer (#3084)

    👍 Currently we support:

    • jstransformer-uglify-js for JavaScript

    - jstransformer-clean-css for CSS

    ⬇️ Drop support for node 6 and 8 (#3243)

    🆕 New Features

    👌 Support filters that apply to Buffers (#3213)

    e.g.

    // options.jsexports.filters = {png: {// instead of a function, specify an object with a "renderBuffer" property// whose value is a function that takes a Buffer instead of a stringrenderBuffer: function(buffer, options) {var data = Buffer.from(buffer).toString('base64');return '\<img src="data:image/png;base64, ' + data + '"/\>';}}};
    

    You can then use the filter like:

    // foo.puginclude:png my-small-image.png
    

    ➕ Add support for replacing code gen via a plugin with generateCode (#3230)

    👌 Support each ... of ... loops (#3179)

    each value of iterable li= value
    

    👍 This requires an environment that supports the for (const val of iterable) syntax in JS. You can iterate over Maps, Sets etc. as well as arrays. There is also some destructuring of map keys:

    - const map = new Map([['a', 'x'], ['b', 'y']]);each [key, value] of map li strong= key= value
    
  • v2.0.12

    June 18, 2019
  • v2.0.5

    June 18, 2019