Skip to content

Commit

Permalink
feat!: prepare 4.0.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
Caleb Blankemeyer committed Sep 11, 2024
1 parent d2e4b8a commit 52d620c
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 47 deletions.
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,13 @@
[docs]: https://node-hypixel.zikeji.com
[hypixel]: https://api.hypixel.net/

With thorough **[IntelliSense](https://code.visualstudio.com/docs/editor/intellisense)** support & **[100% test coverage](https://coveralls.io/github/zikeji/node-hypixel)**, this is an unopinionated async/await API wrapper for [Hypixel's Public API][hypixel]. It is developed in TypeScript complete with [documentation][docs], [typed interfaces](https://node-hypixel.zikeji.com/ts-api/) for all API responses, built-in rate-limit handling, [flexible cache support](https://node-hypixel.zikeji.com/guide/advanced/cache/), and some [helper functions](https://node-hypixel.zikeji.com/guide/helpers/player-ranks/).
With **[IntelliSense](https://code.visualstudio.com/docs/editor/intellisense)** support, this is an unopinionated async/await API wrapper for [Hypixel's Public API][hypixel]. It is developed in TypeScript complete with [documentation][docs], [typed interfaces](https://node-hypixel.zikeji.com/ts-api/) for all API responses, built-in rate-limit handling, [flexible cache support](https://node-hypixel.zikeji.com/guide/advanced/cache/), and some [helper functions](https://node-hypixel.zikeji.com/guide/helpers/player-ranks/).

## 3.0 to 4.0 Migration
## 4.0.0 Information

This is a major upgrade, where I've rebased types on the v2 endpoints published by Hypixel and removed my previous OpenAPI.yaml. I've added some typing extensions to facilitate type completion, but the initial 4.0 release is very barebones, just aiming to get an API client compatible with v2 up and running. Deno support was also removed.
4.0 is a major breaking version, where I've rebased types on the v2 endpoints published by Hypixel and removed my previous OpenAPI.yaml.

I've added `AugmentedTypes.ts` to "augment" their typings, but they are very barebones in the current state. Pull requests augmenting types are welcome, I will more than likely not be exploring the typings like I did in the past, and merely add what I want/need.

## Installation

Expand All @@ -42,7 +44,7 @@ const client = new Client("API_KEY");
const status = await client.status.uuid("20934ef9488c465180a78f861586b4cf"); // Minikloon
console.log(status);
// {"online": false}
const stats = await client.watchdogstats();
const stats = await client.punishmentstats();
console.log(stats);
// {watchdog_lastMinute: 1, staff_rollingDaily: 2609, watchdog_total: 5591714, watchdog_rollingDaily: 4213, …}
})();
Expand Down
4 changes: 4 additions & 0 deletions docs/.vuepress/plugins/pages.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ module.exports = {
},
],
features: [
{
title: "Hypixel API V2 Support",
details: "With the V1 API being phased out, it's ever crucial to begin updating your projects to their V2 endpoints."
},
{
title: "Rate Limiting Queue",
details: "Built in async rate limiting queue prevents prevents requests from failing by queueing and waiting for the queue to clear."
Expand Down
35 changes: 0 additions & 35 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 1 addition & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@zikeji/hypixel",
"version": "3.1.1",
"description": "With thorough IntelliSense support & 100% test coverage, this is an unopinionated async/await API wrapper for Hypixel's Public API. It is developed in TypeScript complete with documentation, typed interfaces for all API responses (and an OpenAPI 3.0 schema!), built-in rate-limit handling, flexible cache support, helper functions, and support for undocumented endpoints.",
"description": "With IntelliSense support & test coverage, this is an unopinionated async/await API wrapper for Hypixel's Public API. It is developed in TypeScript complete with documentation, typed interfaces for all API responses, built-in rate-limit handling, flexible cache support, and helper functions.",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"engines": {
Expand Down Expand Up @@ -192,12 +192,6 @@
"changelogTitle": "# Changelog\n\nAll notable changes to this project will be documented in this file. See\n[Conventional Commits](https://conventionalcommits.org) for commit guidelines."
}
],
[
"@semantic-release/exec",
{
"prepareCmd": "sed -i 's/deno\\.land\\/x\\/hypixel@v[[:digit:]]\\+\\.[[:digit:]]\\+\\.[[:digit:]]\\+/deno.land\\/x\\/hypixel\\/v${nextRelease.version}/' README.md"
}
],
[
"@semantic-release/npm",
{
Expand Down Expand Up @@ -245,7 +239,6 @@
"@mr-hope/vuepress-plugin-last-update": "^1.9.6",
"@mr-hope/vuepress-types": "^1.13.3",
"@semantic-release/changelog": "^5.0.1",
"@semantic-release/exec": "^5.0.0",
"@semantic-release/git": "^9.0.0",
"@types/chai": "^4.2.15",
"@types/chai-as-promised": "^7.1.3",
Expand Down

0 comments on commit 52d620c

Please sign in to comment.