#
Changelog!
v1.2.2
- 🛠️ Fixed bug from issue #4 that caused incorrect parsing of status responses from modded servers.
- ⚙️ Added support for both CommonJS and ES module exports, and updated the module target to ESNext.
- ⚙️ Bumped the default protocol version from
767(1.21.1) to769(1.21.4)
v1.2.1
- 🟢 Exported
lookupandsetDnsServersindividually, alongside the default export containing both.
v1.2.0
- ⚙️ Changed
disableSrvanddisableJSONParsetoSRVLookupandJSONParserespectively, changing their default values to true. - ⚙️ Changed all
Buffers toUint8Arrays, 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
.jsimports 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
nullinstead of zero.
v1.1.4
- 🟢 Added lookup option
protocolVersionto 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.lookupfunction. 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
createConnectionsocket, resulting fromcreateConnectionasking for either all IPs (array) or just the first one (object) which I needed to return differently.
v1.1.0
- 🟢 Added lookup option
disableJSONParseto completely skip parsing JSON. - ⚙️ Renamed primary lookup option
hostnametohost,hostnamestays as an alias.