diff --git a/.changeset/absolute-path-file-url.md b/.changeset/absolute-path-file-url.md deleted file mode 100644 index df9831a..0000000 --- a/.changeset/absolute-path-file-url.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"schema-utils": minor ---- - -The `absolutePath` keyword reads a `file:` URL the way Node's own URL parser does: the scheme may be followed by any number of slashes, so `file:/directory` is accepted alongside `file:///directory`, and it is matched case-insensitively, so `FILE:///directory` is too. A scheme with no slash after it — `file:directory` — still names no absolute path and is rejected. diff --git a/CHANGELOG.md b/CHANGELOG.md index 69daf93..16c85db 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## 4.5.0 + +### Minor Changes + +- The `absolutePath` keyword reads a `file:` URL the way Node's own URL parser does: the scheme may be followed by any number of slashes, so `file:/directory` is accepted alongside `file:///directory`, and it is matched case-insensitively, so `FILE:///directory` is too. A scheme with no slash after it — `file:directory` — still names no absolute path and is rejected. (by [@alexander-akait](https://github.com/alexander-akait) in [#226](https://github.com/webpack/schema-utils/pull/226)) + ## 4.4.0 ### Minor Changes diff --git a/package.json b/package.json index c2a4d1b..47e5937 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "schema-utils", - "version": "4.4.0", + "version": "4.5.0", "description": "webpack Validation Utils", "keywords": [ "webpack"