Skip to content

Commit d7cccfa

Browse files
chore(release): 1.0.0
1 parent 3c9a1d8 commit d7cccfa

File tree

4 files changed

+73
-21
lines changed

4 files changed

+73
-21
lines changed

CHANGELOG.md

+53-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,59 @@
1-
# Change Log
1+
# Changelog
22

33
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.
44

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+
557
<a name="0.5.5"></a>
658
## [0.5.5](https://github.com/webpack-contrib/html-loader/compare/v0.5.4...v0.5.5) (2018-01-17)
759

README.md

+13-13
Original file line numberDiff line numberDiff line change
@@ -67,19 +67,19 @@ You may need to specify loaders for images in your configuration (recommended `f
6767

6868
Supported tags and attributes:
6969

70-
- `audio:src`
71-
- `embed:src`
72-
- `img:src`
73-
- `img:srcset`
74-
- `input:src`
75-
- `link:href`
76-
- `object:data`
77-
- `script:src`
78-
- `source:src`
79-
- `source:srcset`
80-
- `track:src`
81-
- `video:poster`
82-
- `video:src`
70+
- the `src` attribute of the `audio` tag
71+
- the `src` attribute of the `embed` tag
72+
- the `src` attribute of the `img` tag
73+
- the `srcset` attribute of the `img` tag
74+
- the `src` attribute of the `input` tag
75+
- the `href` attribute of the `link` tag (only for stylesheets)
76+
- the `data` attribute of the `object` tag
77+
- the `src` attribute of the `script` tag
78+
- the `src` attribute of the `source` tag
79+
- the `srcset` attribute of the `source` tag
80+
- the `src` attribute of the `track` tag
81+
- the `poster` attribute of the `video` tag
82+
- the `src` attribute of the `video` tag
8383

8484
#### `Boolean`
8585

package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"name": "html-loader",
3-
"version": "0.5.5",
4-
"description": "html loader module for webpack",
3+
"version": "1.0.0",
4+
"description": "Html loader module for webpack",
55
"license": "MIT",
6-
"repository": "ryanclark/html-loader",
6+
"repository": "webpack-contrib/html-loader",
77
"author": "Tobias Koppers @sokra",
8-
"homepage": "https://github.com/ryanclark/html-loader",
9-
"bugs": "https://github.com/ryanclark/html-loader/issues",
8+
"homepage": "https://github.com/webpack-contrib/html-loader",
9+
"bugs": "https://github.com/webpack-contrib/html-loader/issues",
1010
"funding": {
1111
"type": "opencollective",
1212
"url": "https://opencollective.com/webpack"
@@ -37,7 +37,7 @@
3737
"defaults": "webpack-defaults"
3838
},
3939
"files": [
40-
"lib"
40+
"dist"
4141
],
4242
"peerDependencies": {
4343
"webpack": "^4.0.0 || ^5.0.0"

0 commit comments

Comments
 (0)