normalize-url

Normalize a URL

MIT License

Downloads
110.4M
Stars
824
Committers
43

Bot releases are hidden (Show)

normalize-url - Latest Release

Published by sindresorhus 7 months ago

  • Fix handling of protocol-less URLs with a port dec5dc6

https://github.com/sindresorhus/normalize-url/compare/v8.0.0...v8.0.1

normalize-url -

Published by sindresorhus almost 2 years ago

Breaking

  • Require Node.js 14 52f2290
  • Ignore URLs with custom protocols and just pass them through (#178) 882cb84
  • ftp protocol is no longer normalized. It's just passed through.
  • Human-friendly URLs with basic auth is no longer handled as it conflicts with custom protocols

Improvements

  • Make defaultProtocol option accept protocol without colon c7fd781
    • You can still pass in a protocol with colon. However, if you use TypeScript, it enforces it without.

https://github.com/sindresorhus/normalize-url/compare/v7.2.0...v8.0.0

normalize-url -

Published by sindresorhus about 2 years ago

normalize-url -

Published by sindresorhus about 2 years ago

normalize-url -

Published by sindresorhus almost 3 years ago

  • Fix encoding consistency with sorted and non-sorted URL parameters (#158) c42f53b

https://github.com/sindresorhus/normalize-url/compare/v7.0.2...v7.0.3

normalize-url -

Published by sindresorhus about 3 years ago

  • Fix the removeDirectoryIndex option TypeScript type 4d35ea1

https://github.com/sindresorhus/normalize-url/compare/v7.0.1...v7.0.2

normalize-url -

Published by sindresorhus about 3 years ago

normalize-url -

Published by sindresorhus over 3 years ago

Breaking

  • Require Node.js 12.20 (#138) 9a44d07
  • This package is now pure ESM. Please read this.

https://github.com/sindresorhus/normalize-url/compare/v6.1.0...v7.0.0

normalize-url -

Published by sindresorhus over 3 years ago

  • Accept a boolean for the removeQueryParameters option (#136) 6216336

https://github.com/sindresorhus/normalize-url/compare/v6.0.1...v6.1.0

normalize-url -

Published by sindresorhus over 3 years ago

Also fixed for v5 in 5.3.1 and for v4 in 4.5.1. Versions below 4.3.0 are not affected by this.

https://github.com/sindresorhus/normalize-url/compare/v6.0.0...v6.0.1

normalize-url -

Published by sindresorhus over 3 years ago

Breaking

  • Add stripTextFragment option (#130) 01a4a91
    It should not affect most use-cases, but it is turned on by default and it does change the URL slightly, so it's marked as breaking just to be safe.

https://github.com/sindresorhus/normalize-url/compare/v5.3.0...v6.0.0

normalize-url -

Published by sindresorhus about 4 years ago

  • Throw a friendly error on view-source: input (#124) ddf2584

https://github.com/sindresorhus/normalize-url/compare/v5.2.1...v5.3.0

normalize-url -

Published by sindresorhus about 4 years ago

  • Fix removeSingleSlash option adding slashes (#122) 1e06753

https://github.com/sindresorhus/normalize-url/compare/v5.2.0...v5.2.1

normalize-url -

Published by sindresorhus about 4 years ago

normalize-url -

Published by sindresorhus about 4 years ago

  • Improve stripWWW logic (#117) 0ee9d94
  • Allow any protocol in the duplicate slashes normalization (#115) 14b79c6

https://github.com/sindresorhus/normalize-url/compare/v5.0.0...v5.1.0

normalize-url -

Published by sindresorhus over 4 years ago

Note that if you're using normalize-url in the browser, you should probably stay on v4 as this version uses newer syntax not available in all browsers.

Breaking

  • Require Node.js 10 (#103) 7b4ad64

Breaking for TypeScript users

  • Only use a CommonJS export for the TypeScript definition
    You need to change import normalizeUrl from 'normalize-url'; to import normalizeUrl = require('normalize-url');

Fixes

  • Don't throw if decoding the path fails (#104) 062b426

https://github.com/sindresorhus/normalize-url/compare/v4.5.0...v5.0.0

normalize-url -

Published by sindresorhus about 5 years ago

  • Strip default MIME type and charset in data URLs (#100) 308909b

https://github.com/sindresorhus/normalize-url/compare/v4.4.1...v4.5.0

normalize-url -

Published by sindresorhus about 5 years ago

  • Fix data URL should not support query strings (#97) fb92bcb

https://github.com/sindresorhus/normalize-url/compare/v4.4.0...v4.4.1

normalize-url -

Published by sindresorhus about 5 years ago

normalize-url -

Published by sindresorhus over 5 years ago

  • Refactor TypeScript definition to CommonJS compatible export (#93) 566d22f

https://github.com/sindresorhus/normalize-url/compare/v4.2.0...v4.3.0