diff --git a/CHANGELOG.md b/CHANGELOG.md index 4ff9220..802a793 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,16 @@ # Changelog +## Version 3.0.1 + +- Fixed bug with `https:` URLs defaulting to port `80` instead of `443` if no port is specified. + Thanks to @dskvr for reporting + + This affects comparing URLs with the default HTTPs port to URLs without it. + For example, comparing `https://example.com/` to `https://example.com:443/` or vice versa. + + They should be treated as equivalent but weren't due to the incorrect port + being used for `https:`. + ## Version 3.0.0 - Changed to using global URL object instead of importing. – Thanks to @brendankenny diff --git a/README.md b/README.md index fdd7d59..fc723b8 100644 --- a/README.md +++ b/README.md @@ -94,6 +94,17 @@ Returns the preferred host name specified by the `host:` directive or null if th # Changes +### Version 3.0.1 + +- Fixed bug with `https:` URLs defaulting to port `80` instead of `443` if no port is specified. + Thanks to @dskvr for reporting + + This affects comparing URLs with the default HTTPs port to URLs without it. + For example, comparing `https://example.com/` to `https://example.com:443/` or vice versa. + + They should be treated as equivalent but weren't due to the incorrect port + being used for `https:`. + ### Version 3.0.0 - Changed to using global URL object instead of importing. – Thanks to @brendankenny diff --git a/package.json b/package.json index 518afb2..10018c5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "robots-parser", - "version": "3.0.0", + "version": "3.0.1", "description": "A specification compliant robots.txt parser with wildcard (*) matching support.", "keywords": [ "robots.txt",