Skip to content

Commit

Permalink
chore(release): 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait committed Mar 19, 2020
1 parent 3c9a1d8 commit d7cccfa
Show file tree
Hide file tree
Showing 4 changed files with 73 additions and 21 deletions.
54 changes: 53 additions & 1 deletion CHANGELOG.md
@@ -1,7 +1,59 @@
# Change Log
# Changelog

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.

## [1.0.0](https://github.com/ryanclark/html-loader/compare/v0.5.5...v1.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`](https://github.com/webpack-contrib/html-loader#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](https://github.com/webpack-contrib/html-loader#object)
* 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](https://github.com/webpack-contrib/html-loader#object)
* 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](https://github.com/webpack-contrib/html-loader#urlfilter)
* allow to setup how to handle and filter tags and attributes, please look at the [documentation](https://github.com/webpack-contrib/html-loader#list)
* 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

<a name="0.5.5"></a>
## [0.5.5](https://github.com/webpack-contrib/html-loader/compare/v0.5.4...v0.5.5) (2018-01-17)

Expand Down
26 changes: 13 additions & 13 deletions README.md
Expand Up @@ -67,19 +67,19 @@ You may need to specify loaders for images in your configuration (recommended `f

Supported tags and attributes:

- `audio:src`
- `embed:src`
- `img:src`
- `img:srcset`
- `input:src`
- `link:href`
- `object:data`
- `script:src`
- `source:src`
- `source:srcset`
- `track:src`
- `video:poster`
- `video:src`
- 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

#### `Boolean`

Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions package.json
@@ -1,12 +1,12 @@
{
"name": "html-loader",
"version": "0.5.5",
"description": "html loader module for webpack",
"version": "1.0.0",
"description": "Html loader module for webpack",
"license": "MIT",
"repository": "ryanclark/html-loader",
"repository": "webpack-contrib/html-loader",
"author": "Tobias Koppers @sokra",
"homepage": "https://github.com/ryanclark/html-loader",
"bugs": "https://github.com/ryanclark/html-loader/issues",
"homepage": "https://github.com/webpack-contrib/html-loader",
"bugs": "https://github.com/webpack-contrib/html-loader/issues",
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/webpack"
Expand Down Expand Up @@ -37,7 +37,7 @@
"defaults": "webpack-defaults"
},
"files": [
"lib"
"dist"
],
"peerDependencies": {
"webpack": "^4.0.0 || ^5.0.0"
Expand Down

0 comments on commit d7cccfa

Please sign in to comment.