Skip to content

Latest commit

 

History

History
253 lines (143 loc) · 12.8 KB

CHANGELOG.md

File metadata and controls

253 lines (143 loc) · 12.8 KB

Changelog

All notable changes to this project will be documented in this file. See standard-version for commit guidelines.

4.0.0 (2022-06-15)

⚠ BREAKING CHANGES

  • minimum supported Node.js version is 14.15.0
  • update parse5 to 7.0.0

Bug Fixes

  • handle text with <script> in the script element (#444) (9949d82)

3.1.0 (2022-01-08)

Features

  • add possibility to extend default minimize options (#414) (0fa36af)

3.0.1 (2021-11-02)

Bug Fixes

3.0.0 (2021-10-21)

⚠ BREAKING CHANGES

  • minimum supported Node.js version is 12.13.0

Features

2.1.2 (2021-03-09)

Bug Fixes

  • avoid using file protocol (a309fe0)

2.1.1 (2021-02-24)

Bug Fixes

2.1.0 (2021-02-20)

Features

2.0.0 (2021-02-14)

⚠ BREAKING CHANGES

  • new URL('./source.ext', import.meta.url) syntax is using for importing sources (i.e. src/srcset/etc) and the esModule option is true by default, you can disable it by setting the esModule option to false
  • rename the attributes option to sources
  • the attributes.root option was removed in favor resolve.roots
  • minimum supported webpack version is 5
  • migrate from htmlparser2 to parse5

Features

  • handle more attribute for meta and link tags (348e4f5)
  • allow to disable default sources (#351) (480656f)

Bug Fixes

1.3.2 (2020-10-09)

Chore

  • update schema-utils

1.3.1 (2020-09-21)

Bug Fixes

1.3.0 (2020-08-25)

Features

  • ... syntax to extend default tag and attributes (#317) (f02bb48)

Bug Fixes

1.2.1 (2020-08-19)

Bug Fixes

1.2.0 (2020-08-18)

Features

Bug Fixes

1.1.0 (2020-04-02)

Features

  • added support for an async functions to the preprocessor option (#272) (e59324b)
  • allowed to handle an attribute without a tag (#273) (c0d6d5b)

Bug Fixes

1.0.0 (2020-03-19)

⚠ BREAKING CHANGES

  • for parsing HTML now we use htmlparser2 package
  • the attrs option was renamed to the attributes option
  • the interpolate option was removed, please consider migration on the preprocessor
  • the minimize option is true by default in production mode. You need to list all options for html-minifier if you use object notation.
  • uppercase tags and uppercase attributes are handled by default
  • the root option was moved under the attributes option, please look at the documentation
  • emit an error on broken HTML syntax when minimization is enabled
  • By default, now we process the following tags with attributes:
    • the src attribute of the audio tag
    • the src attribute of the embed tag
    • the src attribute of the img tag
    • the srcset attribute of the img tag
    • the src attribute of the input tag
    • the href attribute of the link tag (only for stylesheets)
    • the data attribute of the object tag
    • the src attribute of the script tag
    • the src attribute of the source tag
    • the srcset attribute of the source tag
    • the src attribute of the track tag
    • the poster attribute of the video tag
    • the src attribute of the video tag
  • the attributes option should be Boolean or Object, please look at the documentation
  • the exportAsDefault option were removed in favor the esModules option
  • the exportAsEs6Default option were removed in favor the esModules option

Features

  • handle more tags and attributes
  • added the preprocessor option
  • added the esModule option
  • add the rulFilter option for filtering some of urls, please look at the documentation
  • allow to setup how to handle and filter tags and attributes, please look at the documentation
  • improve error reporting

Bug Fixes

  • adding quotes when necessary for unquoted sources
  • do not handle empty attributes
  • escape \u2028 and \u2029 characters
  • handle only valid srcset tags
  • parser tags and attributes according spec
  • reduce import/require count
  • reduce size of generated modules
  • respect #hash in sources
  • support ES6 syntax in script tags when minimize
  • support ES6 import of urls

0.5.5 (2018-01-17)

Bug Fixes

  • index: don't prepend ./ to the URL on interpolate=require (options.interpolate) (#165) (9515410)

0.5.4 (2018-01-05)

Bug Fixes

  • ignore attribute if mailto: is present (#145) (4b13d4c)
  • index: escape double quotes correctly (options.interpolate) (#154) (1ef5de4)

0.5.1 (2017-08-08)

Bug Fixes

  • Support for empty tags in tag-attribute matching (#133) (6efa6de), closes #129

0.5.0 (2017-07-26)

Features

  • add support for empty tags in tag:attribute matching (#129) (70370dc)

0.4.5 (2017-07-26)

Bug Fixes

  • es6 default export (fae0309)
  • Handle es6 default export (e04e969)
  • getOptions: deprecation warn in loaderUtils (#114) (3d47e98)

Features