|  | 
| 1 |  | -# Change Log | 
|  | 1 | +# Changelog | 
| 2 | 2 | 
 | 
| 3 | 3 | All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. | 
| 4 | 4 | 
 | 
|  | 5 | +## [1.0.0](https://github.com/ryanclark/html-loader/compare/v0.5.5...v1.0.0) (2020-03-19) | 
|  | 6 | + | 
|  | 7 | + | 
|  | 8 | +### ⚠ BREAKING CHANGES | 
|  | 9 | + | 
|  | 10 | +* for parsing HTML now we use `htmlparser2` package | 
|  | 11 | +* the `attrs` option was renamed to the `attributes` option | 
|  | 12 | +* the `interpolate` option was removed, please consider migration on the [`preprocessor`](https://github.com/webpack-contrib/html-loader#preprocessor) | 
|  | 13 | +* the `minimize` option is `true` by default in `production` mode. You need to list all options for `html-minifier` if you use `object` notation. | 
|  | 14 | +* uppercase tags and uppercase attributes are handled by default | 
|  | 15 | +* the `root` option was moved under the `attributes` option, please look at the [documentation](https://github.com/webpack-contrib/html-loader#object) | 
|  | 16 | +* emit an error on broken HTML syntax when minimization is enabled | 
|  | 17 | +* By default, now we process the following tags with attributes: | 
|  | 18 | +  * the `src` attribute of the `audio` tag | 
|  | 19 | +  * the `src` attribute of the `embed` tag | 
|  | 20 | +  * the `src` attribute of the `img` tag | 
|  | 21 | +  * the `srcset` attribute of the `img` tag | 
|  | 22 | +  * the `src` attribute of the `input` tag | 
|  | 23 | +  * the `href` attribute of the `link` tag (only for stylesheets) | 
|  | 24 | +  * the `data` attribute of the `object` tag | 
|  | 25 | +  * the `src` attribute of the `script` tag | 
|  | 26 | +  * the `src` attribute of the `source` tag | 
|  | 27 | +  * the `srcset` attribute of the `source` tag | 
|  | 28 | +  * the `src` attribute of the `track` tag | 
|  | 29 | +  * the `poster` attribute of the `video` tag | 
|  | 30 | +  * the `src` attribute of the `video` tag | 
|  | 31 | +* the `attributes` option should be `Boolean` or `Object`, please look at the [documentation](https://github.com/webpack-contrib/html-loader#object) | 
|  | 32 | +* the `exportAsDefault` option were removed in favor the `esModules` option | 
|  | 33 | +* the `exportAsEs6Default` option were removed in favor the `esModules` option | 
|  | 34 | + | 
|  | 35 | +### Features | 
|  | 36 | + | 
|  | 37 | +* handle more tags and attributes | 
|  | 38 | +* added the `preprocessor` option | 
|  | 39 | +* added the `esModule` option | 
|  | 40 | +* add the `rulFilter` option for filtering some of urls, please look at the [documentation](https://github.com/webpack-contrib/html-loader#urlfilter) | 
|  | 41 | +* allow to setup how to handle and filter tags and attributes, please look at the [documentation](https://github.com/webpack-contrib/html-loader#list) | 
|  | 42 | +* improve error reporting | 
|  | 43 | + | 
|  | 44 | +### Bug Fixes | 
|  | 45 | + | 
|  | 46 | +* adding quotes when necessary for unquoted sources | 
|  | 47 | +* do not handle empty attributes | 
|  | 48 | +* escape `\u2028` and `\u2029` characters | 
|  | 49 | +* handle only valid srcset tags | 
|  | 50 | +* parser tags and attributes according spec | 
|  | 51 | +* reduce `import`/`require` count | 
|  | 52 | +* reduce size of generated modules | 
|  | 53 | +* respect `#hash` in sources | 
|  | 54 | +* support ES6 syntax in `script` tags when minimize | 
|  | 55 | +* support ES6 import of urls | 
|  | 56 | + | 
| 5 | 57 | <a name="0.5.5"></a> | 
| 6 | 58 | ## [0.5.5](https://github.com/webpack-contrib/html-loader/compare/v0.5.4...v0.5.5) (2018-01-17) | 
| 7 | 59 | 
 | 
|  | 
0 commit comments