#
Changelog!
v1.2.1
- 🟢 Exported
lookup
andsetDnsServers
individually, alongside the default export containing both.
v1.2.0
- ⚙️ Changed
disableSrv
anddisableJSONParse
toSRVLookup
andJSONParse
respectively, changing their default values to true. - ⚙️ Changed all
Buffer
s toUint8Array
s, improving compatibility throughout runtimes. - ⚙️ Bumped the default protocol version from
764
(1.20.2) to767
(1.21.1) - 🛠️ Added hard limit on port property
- 🛠️ Changed uncompiled
.js
imports to.ts
, making it work with Deno. - 🛠️ Added jsr.json file
- 🛠️ Fixed SRV lookups not being prevented when port wasn't set 25565/was an IP
- ➖ Removed (previously dysfunctional) soft block on localhost addresses when looking up SRV. Code will initiate a SRV lookup with any local address, has to be disabled with
SRVLookup
.
v1.1.5
- 🛠️ Fixed latency being returned as
null
instead of zero.
v1.1.4
- 🟢 Added lookup option
protocolVersion
to send requests as different Minecraft versions.
v1.1.3
- 🛠️ Fixed Issue #1 of not being able to catch errors, by rejecting network errors instead of throwing them.
v1.1.2
- 🛠️ Changed imports to prefix with
node:
so this package can be used with Deno. - ⚙️ Standardized quotes from single quotes to double quotes.
v1.1.1
🛠️ Fixed a bug which prevented users from
.catch
-ing errors thrown from the.lookup
function. Any errors that cannot be caught in minecraftstatuspinger should be reported to issues.🛠️ Fixed a bug where the custom DNS lookup wouldn't properly deliver the DNS data to the
createConnection
socket, resulting fromcreateConnection
asking for either all IPs (array) or just the first one (object) which I needed to return differently.
v1.1.0
- 🟢 Added lookup option
disableJSONParse
to completely skip parsing JSON. - ⚙️ Renamed primary lookup option
hostname
tohost
,hostname
stays as an alias.