Releases: greys-tools/pkapi.js
Releases · greys-tools/pkapi.js
v7.5.1
v7.5.0
What's New
- Added linting, formatting, and typechecking with workflows
- Fixed issues with tests
- Removed unneeded try-catch statements
- Fixed failure when specifying
fetch: [ 'config' ]withAPI.getSystem() - Changed User-Agent to use version number directly from package.json
- Fixed date errors with the internal
formatDatefunction
PRs from Contributors
- fix(RateLimiter): fix flakey tests by @z0w13 in #16
- Add linting, formatting and typechecking commands and GitHub workflows by @z0w13 in #17
- refactor: remove redundant try-catch statements by @z0w13 in #18
Full Changelog: v7.4.0...v7.5.0
v7.4.0
Release 7.3.1
🔨 Fixes
- Made .d.ts files discoverable from the package.json (thanks @adri326 !)
Release 7.2.1
🔨 Fixes
- Fixed a couple spots where the token wasn't sent with requests (thanks @z0w13!)
Release 7.2.0
🔨 Fixes
- the SystemAutoproxySettings model is now properly exported. whoops!
- previously, all props that were considered nullable weren't actually marked as nullable for TS users with strict mode (or
strictNullChecks) on. that should be fixed now for props that you can set tonullto clear on the API
feel free to open an issue or PR if we missed a couple spots with nullable props! we tried our best to follow PK's API docs but there are a few things on there that aren't documented fully 😅
Release 7.1.0
❗ New
- The group model now has the
systemproperty when fetched usinggetGroup(), reflecting the behavior of PK's API
(This has been a thing on the API for a bit, but wasn't documented until recently)
Release 7.0.0
🔨 Fixes
- Fixed an issue where certain nullable dates weren't treated as nullable, and thus were converted anyways (resulting in a
Datewith a timestamp of 0) (Fixes #7)
This is technically a breaking change for a couple reasons:
- While the field is marked as nullable (aka potentially falsey), this was always returning something truthy, and anyone relying on this behavior will have their code broken
- Related to the above: anyone not checking if the property is truthy may run into issues when trying to treat the object as a
Date(as now it may be null)
Release 6.2.1
🔨 Fixes
- Fetching fronters on a system with no switches no longer errors out and will instead return
undefined
Release 6.2.0
❗ New
- There are new arguments on
System.getGroups():with_members: set totrueto fetch group membersraw: set totrueto only receive member UUIDs, directly from the API
- Relatedly, there are also new arguments for
System.getSwitches()before: set to a Date in order to fetch switches from before that timelimit: supply a number to limit how many switches to fetch
avatar_urlanddisplay_namehave been added to the system guild settings object
Everything should be tested and working, but feel free to let us know if anything goes wrong!