Releases: webpod/ip
Releases · webpod/ip
v0.0.1
0.0.1 — MVP
This release brings basic package functionality and fixes some critical legacy bugs.
- Eliminates CVE-2024-29415
- Enhances
IPv6/IPv4detection - Provides both CJS and ESM entrypoints
- Exposes browser-compatible
@webpod/ip/coremodule
Install
npm i @webpod/ipDrop-in
- const ip = require('ip')
+ const ip = require('@webpod/ip')Temporary workaround to avoid refactoring is using overrides / resolutions in your package.json:
{
"overrides": {
"ip": "@webpod/ip"
}
}Usage
The API is fully compatible with the latest ip@2.0.1
import ip from '@webpod/ip'
ip.address() // '192.168.1.50' (example local address)
ip.isPrivate('127.0.0.1') // true