Skip to content

Commit fd4b9f3

Browse files
committed
refactor: revolt.js -> stoat.js (publish 7.3.0)
1 parent 719d9c5 commit fd4b9f3

File tree

4 files changed

+18
-18
lines changed

4 files changed

+18
-18
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2021-2023 Paul Makles
3+
Copyright (c) 2021-2025 Pawel Makles
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# revolt.js
1+
# stoat.js
22

3-
![revolt.js](https://img.shields.io/npm/v/revolt.js) ![revolt-api](https://img.shields.io/npm/v/revolt-api?label=Revolt%20API)
3+
![stoat.js](https://img.shields.io/npm/v/stoat.js) ![stoat-api](https://img.shields.io/npm/v/stoat-api?label=Stoat%20API)
44

5-
**revolt.js** is a JavaScript library for interacting with the entire Revolt API.
5+
**stoat.js** is a JavaScript library for interacting with the Stoat API
66

77
## Requirements
88

@@ -14,7 +14,7 @@ To use this module, you must be using at least:
1414
## Example Usage
1515

1616
```javascript
17-
import { Client } from "revolt.js";
17+
import { Client } from "stoat.js";
1818

1919
let client = new Client();
2020

@@ -46,15 +46,15 @@ function MyApp() {
4646
}
4747
```
4848

49-
## Revolt API Types
49+
## Stoat API Types
5050

5151
> [!WARNING]
5252
> It is advised you do not use this unless necessary. If you find somewhere that isn't covered by the library, please open an issue as this library aims to transform all objects.
5353
54-
All `revolt-api` types are re-exported from this library under `API`.
54+
All `stoat-api` types are re-exported from this library under `API`.
5555

5656
```typescript
57-
import { API } from "revolt.js";
57+
import { API } from "stoat.js";
5858

5959
// API.Channel;
6060
// API.[..];

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
2-
"name": "revolt.js",
3-
"version": "7.2.0",
2+
"name": "stoat.js",
3+
"version": "7.3.0",
44
"type": "module",
55
"exports": {
66
".": "./lib/index.js"
77
},
88
"types": "lib/index.d.ts",
9-
"repository": "https://github.com/revoltchat/revolt.js",
10-
"author": "Paul Makles <insrt.uk>",
9+
"repository": "https://github.com/stoatchat/javascript-client-sdk",
10+
"author": "insert <insrt.uk>",
1111
"license": "MIT",
1212
"scripts": {
1313
"build": "tsc",
@@ -23,7 +23,7 @@
2323
"README.md",
2424
"lib"
2525
],
26-
"description": "Library for interacting with the Revolt API.",
26+
"description": "Library for interacting with the Stoat API",
2727
"packageManager": "[email protected]+sha512.d615db246fe70f25dcfea6d8d73dee782ce23e2245e3c4f6f888249fb568149318637dca73c2c5c8ef2a4ca0d5657fb9567188bfab47f566d1ee6ce987815c39",
2828
"dependencies": {
2929
"@solid-primitives/map": "^0.7.1",

src/Client.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ export type ClientOptions = Partial<EventClientOptions> & {
162162
};
163163

164164
/**
165-
* Revolt.js Clients
165+
* Stoat.js Clients
166166
*/
167167
export class Client extends AsyncEventEmitter<Events> {
168168
readonly account;
@@ -193,13 +193,13 @@ export class Client extends AsyncEventEmitter<Events> {
193193
#reconnectTimeout: number | undefined;
194194

195195
/**
196-
* Create Revolt.js Client
196+
* Create Stoat.js Client
197197
*/
198198
constructor(options?: Partial<ClientOptions>, configuration?: RevoltConfig) {
199199
super();
200200

201201
this.options = {
202-
baseURL: "https://api.revolt.chat",
202+
baseURL: "https://stoat.chat/api",
203203
partials: false,
204204
eagerFetching: true,
205205
syncUnreads: false,
@@ -279,7 +279,7 @@ export class Client extends AsyncEventEmitter<Events> {
279279
this.#reconnectTimeout = setTimeout(
280280
() => this.connect(),
281281
this.options.retryDelayFunction(this.connectionFailureCount()) *
282-
1e3,
282+
1e3,
283283
) as never;
284284

285285
this.#setConnectionFailureCount((count) => count + 1);
@@ -317,7 +317,7 @@ export class Client extends AsyncEventEmitter<Events> {
317317
this.events.disconnect();
318318
this.#setReady(false);
319319
this.events.connect(
320-
this.configuration?.ws ?? "wss://ws.revolt.chat",
320+
this.configuration?.ws ?? "wss://stoat.chat/events",
321321
typeof this.#session === "string" ? this.#session : this.#session!.token,
322322
);
323323
}

0 commit comments

Comments
 (0)