Skip to content

Releases: pugjs/pug

pug-strip-comments@2.0.0

25 May 12:19
c077df4
Compare
Choose a tag to compare

Breaking Changes

  • Drop support for node 6 and 8 (#3243)

pug-runtime@3.0.0

25 May 12:19
c077df4
Compare
Choose a tag to compare

Breaking Changes

  • Drop support for node 6 and 8 (#3243)

Bug Fixes

  • wrap setting err.message with a try/catch (#2996)

pug-parser@6.0.0

25 May 12:19
c077df4
Compare
Choose a tag to compare

Breaking Changes

  • Drop support for node 6 and 8 (#3243)

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

pug-load@3.0.0

25 May 12:19
c077df4
Compare
Choose a tag to compare

Breaking Changes

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

  • Drop support for node 6 and 8 (#3243)

New Features

  • File nodes now get a raw property that is a Buffer, in addition to the str (#3213)

pug-linker@4.0.0

25 May 12:19
c077df4
Compare
Choose a tag to compare

Breaking Changes

  • Drop support for node 6 and 8 (#3243)

pug-lexer@5.0.0

25 May 12:19
c077df4
Compare
Choose a tag to compare

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

pug-filters@4.0.0

25 May 12:19
c077df4
Compare
Choose a tag to compare

Breaking Changes

  • 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 expect a Buffer instead of a string (#3213)

    e.g.

    // options.js
    exports.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 string
        renderBuffer: 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.pug
    include:png my-small-image.png

pug-error@2.0.0

25 May 12:19
c077df4
Compare
Choose a tag to compare

Breaking Changes

  • Drop support for node 6 and 8 (#3243)

pug-code-gen@3.0.1

25 May 22:40
13e46e9
Compare
Choose a tag to compare

Bug Fixes

  • Update with to resolve core-js deprecation notice (#3259)

pug-code-gen@3.0.0

25 May 12:19
c077df4
Compare
Choose a tag to compare

Breaking Changes

  • Drop support for node 6 and 8 (#3243)

New Features

  • Support EachOf nodes (#3179)