file-loader
Advanced tools
Comparing version 5.1.0 to 6.0.0
@@ -5,2 +5,9 @@ # Changelog | ||
## [6.0.0](https://github.com/webpack-contrib/file-loader/compare/v5.1.0...v6.0.0) (2020-03-17) | ||
### ⚠ BREAKING CHANGES | ||
* use `md4` by default for hashing ([#369](https://github.com/webpack-contrib/file-loader/issues/369)) ([ad39022](https://github.com/webpack-contrib/file-loader/commit/ad3902284d28adeddf667212a39faa4c6bfb2964)) | ||
## [5.1.0](https://github.com/webpack-contrib/file-loader/compare/v5.0.2...v5.1.0) (2020-02-19) | ||
@@ -7,0 +14,0 @@ |
@@ -20,3 +20,4 @@ "use strict"; | ||
function loader(content) { | ||
const options = _loaderUtils.default.getOptions(this) || {}; | ||
const options = _loaderUtils.default.getOptions(this); | ||
(0, _schemaUtils.default)(_options.default, options, { | ||
@@ -23,0 +24,0 @@ name: 'File Loader', |
{ | ||
"name": "file-loader", | ||
"version": "5.1.0", | ||
"version": "6.0.0", | ||
"description": "A file loader module for webpack", | ||
@@ -44,9 +44,9 @@ "license": "MIT", | ||
"dependencies": { | ||
"loader-utils": "^1.4.0", | ||
"schema-utils": "^2.5.0" | ||
"loader-utils": "^2.0.0", | ||
"schema-utils": "^2.6.5" | ||
}, | ||
"devDependencies": { | ||
"@babel/cli": "^7.8.4", | ||
"@babel/core": "^7.8.4", | ||
"@babel/preset-env": "^7.8.4", | ||
"@babel/core": "^7.8.7", | ||
"@babel/preset-env": "^7.8.7", | ||
"@commitlint/cli": "^8.3.5", | ||
@@ -58,3 +58,3 @@ "@commitlint/config-conventional": "^8.3.4", | ||
"commitlint-azure-pipelines-cli": "^1.0.3", | ||
"cross-env": "^7.0.0", | ||
"cross-env": "^7.0.2", | ||
"del": "^5.1.0", | ||
@@ -68,4 +68,4 @@ "del-cli": "^3.0.0", | ||
"jest-junit": "^10.0.0", | ||
"lint-staged": "^10.0.7", | ||
"memfs": "^3.1.1", | ||
"lint-staged": "^10.0.8", | ||
"memfs": "^3.1.2", | ||
"memory-fs": "^0.5.0", | ||
@@ -76,3 +76,3 @@ "npm-run-all": "^4.1.5", | ||
"url-loader": "^3.0.0", | ||
"webpack": "^4.41.6" | ||
"webpack": "^4.42.0" | ||
}, | ||
@@ -79,0 +79,0 @@ "keywords": [ |
@@ -190,3 +190,3 @@ <div align="center"> | ||
Type: `String|Function` | ||
Default: [`__webpack_public_path__`](https://webpack.js.org/api/module-variables/#__webpack_public_path__-webpack-specific-) | ||
Default: [`__webpack_public_path__`](https://webpack.js.org/api/module-variables/#__webpack_public_path__-webpack-specific-)+outputPath | ||
@@ -470,3 +470,3 @@ Specifies a custom public path for the target file(s). | ||
Type: `String` | ||
Default: `md5` | ||
Default: `md4` | ||
@@ -478,3 +478,3 @@ Specifies the hash method to use for hashing the file content. | ||
Type: `String` | ||
Default: `md5` | ||
Default: `md4` | ||
@@ -501,6 +501,5 @@ Specifies the hash method to use for hashing the file content. | ||
Type: `String` | ||
Default: `'md5'` | ||
Default: `'md4'` | ||
The type of hash that the has function should use. Valid values include: `md5`, | ||
`sha1`, `sha256`, and `sha512`. | ||
The type of hash that the has function should use. Valid values include: `md4`, `md5`, `sha1`, `sha256`, and `sha512`. | ||
@@ -507,0 +506,0 @@ #### `length` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
35636
764
+ Addedjson5@2.2.3(transitive)
+ Addedloader-utils@2.0.4(transitive)
- Removedjson5@1.0.2(transitive)
- Removedloader-utils@1.4.2(transitive)
- Removedminimist@1.2.8(transitive)
Updatedloader-utils@^2.0.0
Updatedschema-utils@^2.6.5