Skip to content

Releases: sindresorhus/normalize-url

v6.0.0

07 Apr 08:54
Compare
Choose a tag to compare

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.

v5.3.0...v6.0.0

v5.3.0

11 Oct 16:05
Compare
Choose a tag to compare
  • Throw a friendly error on view-source: input (#124) ddf2584

v5.2.1...v5.3.0

v5.2.1

30 Sep 10:49
Compare
Choose a tag to compare
  • Fix removeSingleSlash option adding slashes (#122) 1e06753

v5.2.0...v5.2.1

v5.2.0

28 Sep 19:02
Compare
Choose a tag to compare

v5.1.0

02 Aug 11:36
Compare
Choose a tag to compare
  • Improve stripWWW logic (#117) 0ee9d94
  • Allow any protocol in the duplicate slashes normalization (#115) 14b79c6

v5.0.0...v5.1.0

v5.0.0

31 Jan 17:21
Compare
Choose a tag to compare

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

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

v4.5.0...v5.0.0

v4.5.0

29 Sep 04:05
Compare
Choose a tag to compare
  • Strip default MIME type and charset in data URLs (#100) 308909b

v4.4.1...v4.5.0

v4.4.1

20 Sep 17:38
Compare
Choose a tag to compare
  • Fix data URL should not support query strings (#97) fb92bcb

v4.4.0...v4.4.1

v4.4.0

20 Sep 09:22
Compare
Choose a tag to compare

v4.3.0...v4.4.0

v4.3.0

03 Apr 05:03
Compare
Choose a tag to compare
  • Refactor TypeScript definition to CommonJS compatible export (#93) 566d22f

v4.2.0...v4.3.0