Skip to content

Releases: Pixelicc/mowojang-js

v0.3.2

22 Oct 07:35
Compare
Choose a tag to compare

What's Changed

  • Improved types to not throw errors on tsc check
  • Bumped workflow pnpm/action-setup to v4
  • Bump typescript from 5.6.2 to 5.6.3 by @dependabot in #41
  • Bump axios-cache-interceptor from 1.6.0 to 1.6.1 by @dependabot in #42
  • Bump @types/node from 22.7.3 to 22.7.8 by @dependabot in #44

Full Changelog: v0.3.1...v0.3.2

v0.3.0

08 Jul 10:08
Compare
Choose a tag to compare

The package repository has been renamed to mowojang-js for a simpler naming convention. Documentation within the code and the README.md file has been improved. Moreover, unnecessary published folders and files have been removed, resulting in a smaller package size.

What's Changed

Full Changelog: v0.2.2...v0.3.0

v0.2.2

28 Jun 13:45
Compare
Choose a tag to compare

What's Changed

  • Fixed Options being required when creating a Client
  • Improved Types for utility and validator Functions

Full Changelog: v0.2.1...v0.2.2

v0.2.1

28 Jun 13:12
Compare
Choose a tag to compare

What's Changed

  • Fixed UUID validate export being named in lowercase
  • Bump @types/node from 20.14.7 to 20.14.8 by @dependabot in #17

Full Changelog: v0.2.0...v0.2.1

v0.2.0

21 Jun 14:27
Compare
Choose a tag to compare

Major Changes

The Library is now based on Client Class to interact with the Mowojang API.

Creating a new Client would be done the following way:

import { Client as MowojangClient } from "mowojang"

const Mowojang = new MowojangClient()

const UUID = await Mowojang.getUUID("Pixelic")
const username = await Mowojang.getUsername("14727fae-fbdc-4aff-848c-d2713eb9939e")

Other Exports such as the Utilities and Validator Functions now need to be imported the following way:

import { utils, validate } from "mowojang"

const isValid = validate.UUID("14727fae-fbdc-4aff-848c-d2713eb9939e")
const undashed = utils.undashUUID("14727fae-fbdc-4aff-848c-d2713eb9939e")

There were also major changes to the now exported classes and their naming schemes.
The following methods to interact with the Mowojang API are implemented:

  • getProfiles(): Retrieve full Player Data of multiple Players by UUID or Username
  • getProfile(): Retrieve full Player Data by UUID or Username
  • getSessions(): Retrieve Player Session Data of multiple Players by UUID or Username
  • getSession(): Retrieve Player Session Data by UUID or Username
  • getUUID(): Converts Username to UUID
  • getUsername(): Converts UUID to Username
  • getSkin(): Returns the Skin the specified Player is currently wearing
  • getSkinBuffer(): Skin-Data fetched via getSkin() as a Buffer
  • getCape(): Returns the Cape the specified Player is currently wearing
  • getCapeBuffer(): Cape-Data fetched via getCape() as a Buffer

Furthermore the Library this way supports full control over your caching behaviour through exposing the internally used axios-cache-interceptor library config. More details about this can be found here.

v0.1.0

18 May 09:25
0f1cf82
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.0.6...v0.1.0

v0.0.6

29 Apr 15:19
Compare
Choose a tag to compare

What's Changed

  • Bump axios-cache-interceptor from 1.5.1 to 1.5.2 by @dependabot in #8
  • Now supports the newest Node 22 LTS Release -> Support of this Package has now been changed to Node >=20.0.0

Full Changelog: v0.0.5...v0.0.6

Mowojang v0.0.5

26 Apr 18:46
Compare
Choose a tag to compare

New:

Bumps:

  • Bumped typescript from 5.4.3 to 5.4.5
  • Bumped @types/node from 20.11.30 to 20.12.7

Mowojang v0.0.4

30 Mar 18:20
Compare
Choose a tag to compare

Added Caching through axios-cache-interceptor.

All Requests to the Mowojang-API will now be cached in Memory by default for 5 Minutes to save on Network Requests and improve Performance. This behavior can be adjusted by adjusting the cache, cacheTTL and cacheOverride field in the options Argument.