Skip to content

Releases: Top-gg-Community/node-sdk

v3.1.6

08 Sep 16:26
6a59ddd
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v3.1.5...v3.1.6

v3.1.5

16 Apr 04:07
c51ae4d
Compare
Choose a tag to compare

Deprecate the discriminator property on ShortUser @ #77 thanks @null8626

v3.1.4

23 Mar 03:12
cc14fb8
Compare
Choose a tag to compare

The first release in a while!

Some quality of life changes thanks to @VoltrexKeyva @ #75

  • Update dependencies and developer dependencies to their latest versions.
  • Switch from Node-Fetch to Undici.
  • Update the GitHub Actions workflows to their latest versions.
  • Remove Node.js v12 from the testing matrix as it reached it's EoL (End-of-Life) stage, and add Node.js v16 and v18 to the testing matrix.
  • Align all examples (in README and JSDocs) to the code style of the codebase.
  • Inline JSDocs that only have a description.
  • Format the typedoc.json file and remove the usage of the minimal theme as it was removed.
  • Move the APIOptions interface to the src/typings.ts file and export it so it's shown in the documentation.
  • Bump version to 3.1.4.

v3.1.3

03 Dec 20:01
a2d9685
Compare
Choose a tag to compare
  • Fixes a TypeScript error to do with a catch block in Webhook #73

A possible breaking change to meet intended behavior. Before anything thrown in the webhook listener function would be passed to the error callback, now it only will respond back anything thrown that is an instance of Error, as is typed.

v3.1.2

02 Jul 15:22
f12cea6
Compare
Choose a tag to compare

New documentation! Please reference the new TypeDoc located at https://topgg.js.org

Few non-noticeable code changes

  • New linting following the top-gg eslint rules
  • Replaced qs with URLSearchParams since qs is legacy

v3.1.1

18 Apr 19:45
314da60
Compare
Choose a tag to compare

Fixes express typings issue when using the package in a TypeScript build. #56

v3.1.0

13 Apr 23:49
590d0ad
Compare
Choose a tag to compare
  • Added Webhook.listener() to replace Webhook.middleware()

Example

// ...
const webhook = new Webhook('auth')

const app = express()

app.post('/botvote', webhook.listener((vote) => {
  console.log(vote.user) // 172075838806818817
}))
// ...

v3.0.9

04 Mar 15:40
aef08ca
Compare
Choose a tag to compare

Changed the way types are exported allowing for the following in TypeScript

import { BotStats /* other types */ } from '@top-gg/sdk/dist/typings'

Which was previously not possible for external packages.

v3.0.8

02 Mar 01:34
2bb947e
Compare
Choose a tag to compare
  • Change docs URL
  • Fix typos in a few method docs
  • Specified that .hasVoted() is last 12 hours
  • Auto-respond with status 200 as per docs

v3.0.7 | Add bannerUrl to typings

02 Feb 21:27
7914507
Compare
Choose a tag to compare
Add new bannerUrl to typings (#43)

* Update typings.ts

* bump

* Update Changelog.md