Releases: Pixelicc/mowojang-js
v0.3.2
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
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
- Bump typescript from 5.5.2 to 5.5.3 by @dependabot in #18
- Bump @types/node from 20.14.9 to 20.14.10 by @dependabot in #19
- mowojang-js by @Pixelicc in #20
Full Changelog: v0.2.2...v0.3.0
v0.2.2
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
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
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 UsernamegetProfile()
: Retrieve full Player Data by UUID or UsernamegetSessions()
: Retrieve Player Session Data of multiple Players by UUID or UsernamegetSession()
: Retrieve Player Session Data by UUID or UsernamegetUUID()
: Converts Username to UUIDgetUsername()
: Converts UUID to UsernamegetSkin()
: Returns the Skin the specified Player is currently wearinggetSkinBuffer()
: Skin-Data fetched via getSkin() as a BuffergetCape()
: Returns the Cape the specified Player is currently wearinggetCapeBuffer()
: 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
v0.0.6
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
New:
- Added Auto-Purge of Cache to save on Memory
- Minor other changes
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
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.