# Changelog!


v1.2.1

NPM JSR

  • 🟢 Exported lookup and setDnsServers individually, alongside the default export containing both.

v1.2.0

NPM JSR

  • ⚙️ Changed disableSrv and disableJSONParse to SRVLookup and JSONParse respectively, changing their default values to true.
  • ⚙️ Changed all Buffers to Uint8Arrays, improving compatibility throughout runtimes.
  • ⚙️ Bumped the default protocol version from 764 (1.20.2) to 767 (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

NPM JSR

  • 🛠️ Fixed latency being returned as null instead of zero.

v1.1.4

NPM

  • 🟢 Added lookup option protocolVersion to send requests as different Minecraft versions.

v1.1.3

NPM

  • 🛠️ Fixed Issue #1 of not being able to catch errors, by rejecting network errors instead of throwing them.

v1.1.2

NPM

  • 🛠️ 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

NPM

  • 🛠️ 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 from createConnection asking for either all IPs (array) or just the first one (object) which I needed to return differently.


v1.1.0

NPM

  • 🟢 Added lookup option disableJSONParse to completely skip parsing JSON.
  • ⚙️ Renamed primary lookup option hostname to host, hostname stays as an alias.

All versions: NPM | JSR