Releases: koreanbots/js-sdk
Releases · koreanbots/js-sdk
v3.2.1
What's Changed
- Stable v3.2.1 SDK by @zero734kr in #141
- Export typings from sdk
Full Changelog: 3.2.0...3.2.1
v3.2.0
What's Changed
- Stable v3.2.0 SDK by @zero734kr in #124
- Added support for
KOREANSERVERS
(Official english name TBD) list. It is accessible withkoreanbots.servers.fetch()
- Added support for
- feat: AVIF image widget support by @zero734kr in 5108cb7
- feat: WidgetMakeOptions#convertOptions and HEIF image widget support by @zero734kr in #128
Full Changelog: 3.1.0...3.2.0
v3.1.0
Breaking Changes (Summary)
- v3.1 only compatible with Node.js v16.6 or above.
- v3.1 only compatible with discord.js v13 or above.
- Performance improvements by using undici instead of node-fetch.
- Cache policy changed.
Discord#inviteUrl
has been renamed toDiscord#url
.- The invite url format of
Discord#url
has been changed fromhttps://discord.gg/<code>
tohttps://discord.com/invite/<code>
. Added support for servers list. It is accessible with(Canceled in this version)koreanbots.servers.fetch()
.
Dependency Changes
- Removed dependencies related with commitlint because it was the root of the vulnerability alert, as they never (or sometimes?) published new versions with the update of their vulnerable dependencies.
- node-fetch has been removed in favor of undici.
- The abort-controller package has been removed in favor of the native Node.js v16 AbortController API.
- All dependencies have been updated to the latest version.
Why undici instead of node-fetch?
- node-fetch is not compatible with CJS imports from v3.
- undici is faster than node-fetch. see benchmark results
- undici is maintained by contributors of nodejs.
Why Node.js v16.6 or above?
With undici being used, koreanbots JS/TS SDK v3.1 will only be compatible with nodejs v16.6 and above, because undici only supports above that. Therefore, the sdk will only be compatible with discord.js v13 above.
LimitedCollection of discord.js and changed cache policies
LifetimeCollection removed in favor of LimitedCollection from discord.js
- BREAKING: Cache policies have been changed as LimitedCollection only supports sweeping at certain intervals, so instead of
maxAge
being applied to all values each by themselves, they will all be deleted after a few intervals , regardless of just entered the cache store. max
has been renamed tomaxSize
with use of LimitedCollectionmaxAge
has been renamed tosweepInterval
with use of LimitedCollection, changing the cache policy as mentioned above.
What's Changed
- Release v3 SDK by @zero734kr in #95
- build(deps): bump undici from 4.7.0 to 4.8.0 by @dependabot in #110
- build(deps): bump actions/setup-node from 2.2.0 to 2.4.1 by @dependabot in #103
- build(deps-dev): bump typedoc from 0.22.4 to 0.22.7 by @dependabot in #111
- build(deps-dev): bump @next/env from 11.1.2 to 12.0.0 by @dependabot in #115
- build(deps-dev): bump @types/node from 16.10.2 to 16.11.6 by @dependabot in #113
- build(deps-dev): bump jest from 27.2.4 to 27.3.1 by @dependabot in #112
- Release v3.1.0 SDK by @zero734kr in #120
- build(deps): bump discord.js from 13.1.0 to 13.2.0 by @dependabot in #121
- Bump version by @zero734kr in #122
Full Changelog: 3.1.0-rc.1...3.1.0
Release 3.1.0-rc.1 SDK
Release Highlights (Summary)
- v3.1 only compatible with Node.js v16.6 or above.
- v3.1 only compatible with discord.js v13 or above.
- Performance improvements by using undici instead of node-fetch.
- Cache policy changed.
Discord#inviteUrl
has been renamed toDiscord#url
.- The invite url format of
Discord#url
has been changed fromhttps://discord.gg/<code>
tohttps://discord.com/invite/<code>
. Added support for servers list. It is accessible with(Canceled in this version)koreanbots.servers.fetch()
.
What's Changed [auto generated]
- Release v2 SDK (stable) by @zero734kr in #80
- build(deps-dev): bump eslint from 7.23.0 to 7.32.0 by @dependabot in #88
- build(deps-dev): bump @commitlint/config-conventional from 12.0.1 to 13.1.0 by @dependabot in #85
- build(deps-dev): bump typedoc from 0.21.4 to 0.22.2 by @dependabot in #98
- BREAKING: Koreanbots JS/TS SDK v3.1 by @zero734kr in #104
Full Changelog: 3.0.0-rc.16...3.1.0-rc.1
Dependency Changes
- Removed dependencies related with commitlint because it was the root of the vulnerability alert, as they never (or sometimes?) published new versions with the update of their vulnerable dependencies.
- node-fetch has been removed in favor of undici.
- The abort-controller package has been removed in favor of the native Node.js v16 AbortController API.
- All dependencies have been updated to the latest version.
Why undici instead of node-fetch?
- node-fetch is not compatible with CJS imports from v3.
- undici is faster than node-fetch. see benchmark results
- undici is maintained by contributors of nodejs.
Why Node.js v16.6 or above?
With undici being used, koreanbots JS/TS SDK v3.1 will only be compatible with nodejs v16.6 and above, because undici only supports above that. Therefore, the sdk will only be compatible with discord.js v13 above.
LimitedCollection of discord.js and changed cache policies
LifetimeCollection removed in favor of LimitedCollection from discord.js
- BREAKING: Cache policies have been changed as LimitedCollection only supports sweeping at certain intervals, so instead of
maxAge
being applied to all values each by themselves, they will all be deleted after a few intervals , regardless of just entered the cache store. max
has been renamed tomaxSize
with use of LimitedCollectionmaxAge
has been renamed tosweepInterval
with use of LimitedCollection, changing the cache policy as mentioned above.
v3.0.0
Release Highlights
- Added support for koreanbots API v2 (#18) (0600153)
- Added support for discord.js v13 (#93) (d7d251a)
- New documentation website! Click here
- Reading the documentation with this guide is super important and super recommended to know how to use new methods introduced in this major version.
- Added support for Apple Silicon ARM (only M1 at this point) (fbf5688)
Breaking Changes
- The parameter name
count
inMybot#update
has been renamed toservers
. (7e6b405)
Features
- Added support for
shards
property inMybot#update
(7e6b405)
v3.0.0-rc.8
Dependency Change
- Change version lock of discord.js
v3.0.0-rc.7
Dependency Change
- Move discord.js from peerDependencies to dependencies. (e2021cd)
v3.0.0-rc.6
Bug Fixes
- Fix build error (9622946)