public-ip

Get your public IP address - very fast!

MIT License

Downloads
627K
Stars
1K
Committers
15

Bot releases are visible (Hide)

public-ip - Latest Release

Published by sindresorhus 3 months ago

public-ip -

Published by sindresorhus 3 months ago

public-ip -

Published by sindresorhus 7 months ago

  • Don't throw CancelError if ipv6() resolves first (#70) 5490c81

https://github.com/sindresorhus/public-ip/compare/v6.0.1...v6.0.2

public-ip -

Published by sindresorhus over 2 years ago

public-ip -

Published by sindresorhus over 2 years ago

Breaking

  • Use named exports instead of methods on a default export (#63) 4e1d895
    • import publicIp from 'public-ip'; publicIp.v6();import {publicIpv6} from 'public-ip'; publicIpv6();
  • Allow getting either IPv6 or IPv4 (#63) 4e1d895

https://github.com/sindresorhus/public-ip/compare/v5.0.0...v6.0.0

public-ip -

Published by sindresorhus almost 3 years ago

Breaking

  • Require Node.js 14 e53d7fe
  • This package is now pure ESM. Please read this.

Improvements

  • Throw a special error subclass when the public IP address could not be found d353d7c

https://github.com/sindresorhus/public-ip/compare/v4.0.4...v5.0.0

public-ip -

Published by sindresorhus over 3 years ago

public-ip -

Published by sindresorhus almost 4 years ago

  • Fix problem with calling the browser version concurrently (#53) f0a7f07

https://github.com/sindresorhus/public-ip/compare/v4.0.2...v4.0.3

public-ip -

Published by sindresorhus over 4 years ago

public-ip -

Published by sindresorhus over 4 years ago

  • Make the promise.cancel() method actually work (#42) c4303d5

https://github.com/sindresorhus/public-ip/compare/v4.0.0...v4.0.1

public-ip -

Published by sindresorhus almost 5 years ago

Breaking

  • Rename the http option to onlyHttps.
    Previously, the default behavior was to use DNS, and if that failed, the request would fail. What's changed is that by default it will now try DNS, and if that fails, it will fall back to HTTPS. The option was renamed to better reflect that HTTPS is used even when {onlyHttps: false}.

Enhancements

  • Add built-in fallbacks for DNS and HTTP checks (#34) fdcbb7d
  • Add fallbackUrls option to enable users to add additional HTTP fallbacks (#34) fdcbb7d

https://github.com/sindresorhus/public-ip/compare/v3.2.0...v4.0.0

public-ip -

Published by sindresorhus about 5 years ago

  • Add fallback service for the https option (#33) 3a4db72

https://github.com/sindresorhus/public-ip/compare/v3.1.0...v3.2.0

public-ip -

Published by sindresorhus over 5 years ago

public-ip -

Published by sindresorhus almost 6 years ago

Breaking:

  • Require Node.js 8 and upgrade the got dependency. e7e0c3a