Skip to content

Commit

Permalink
feat: major improvment
Browse files Browse the repository at this point in the history
  • Loading branch information
xhayper committed Jul 30, 2024
1 parent 4e041d7 commit c51b188
Show file tree
Hide file tree
Showing 14 changed files with 483 additions and 1,113 deletions.
5 changes: 4 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,7 @@ tsconfig.json
*.tgz

# lockfile
pnpm-lock.yaml
pnpm-lock.yaml

# idfk
dist/tsconfig.tsbuildinfo
11 changes: 0 additions & 11 deletions .vscode/settings.json

This file was deleted.

13 changes: 0 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,6 @@

`@xhayper/discord-rpc` is a fork of [discordjs/RPC](https://github.com/discordjs/RPC) with type safety and some additional features.

## Features

- flatpak / snap support
- Low dependencies count
- Proper error exception
- Up-To-Date with Discord's IPC command / event list
- Less than 100kb bundle size

## Optional packages (when using WebSocket)

- [bufferutil](https://www.npmjs.com/package/bufferutil)
- [utf-8-validate](https://www.npmjs.com/package/utf-8-validate)

## Example

```ts
Expand Down
30 changes: 16 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@xhayper/discord-rpc",
"version": "1.1.8",
"version": "1.2.0",
"description": "a fork of discordjs/RPC",
"main": "dist/index.js",
"author": "xhayper",
Expand All @@ -10,6 +10,10 @@
"type": "git",
"url": "git+https://github.com/xhayper/discord-rpc.git"
},
"bugs": {
"url": "https://github.com/xhayper/discord-rpc/issues"
},
"homepage": "https://github.com/xhayper/discord-rpc#readme",
"keywords": [
"typescript",
"discord",
Expand All @@ -20,25 +24,23 @@
"discord-ipc"
],
"scripts": {
"build": "del-cli -f dist && tsc",
"build": "rimraf dist && tsc",
"prepack": "pnpm run build"
},
"dependencies": {
"axios": "^1.7.2",
"@discordjs/rest": "^2.3.0",
"@vladfrangu/async_event_emitter": "^2.4.4",
"discord-api-types": "^0.37.93",
"ws": "^8.18.0"
},
"optionalDependencies": {
"bufferutil": "^4.0.8",
"utf-8-validate": "^6.0.4"
},
"devDependencies": {
"@types/node": "^14.*",
"@types/ws": "^8.5.11",
"del-cli": "^5.1.0",
"discord-api-types": "^0.37.93"
"@sapphire/ts-config": "^5.0.1",
"@types/node": "^16",
"@types/ws": "^8.5.12",
"rimraf": "^6.0.1",
"typescript": "^5.5.4"
},
"engines": {
"node": ">=14.18.0"
},
"packageManager": "[email protected]"
"node": ">=16.11.0"
}
}
Loading

0 comments on commit c51b188

Please sign in to comment.