@discordjs/rest 2.0.1-dev.1692230968-24fbb11ba.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +54 -4
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/dist/web.js +2 -2
- package/dist/web.js.map +1 -1
- package/dist/web.mjs +2 -2
- package/dist/web.mjs.map +1 -1
- package/package.json +11 -11
package/CHANGELOG.md
CHANGED
|
@@ -2,17 +2,67 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
|
|
5
|
+
# [@discordjs/rest@2.0.1](https://github.com/discordjs/discord.js/compare/@discordjs/rest@2.0.0...@discordjs/rest@2.0.1) - (2023-08-17)
|
|
6
|
+
|
|
7
|
+
## Documentation
|
|
8
|
+
|
|
9
|
+
- Update Node.js requirement to 16.11.0 (#9764) ([188877c](https://github.com/discordjs/discord.js/commit/188877c50af70f0d5cffb246620fa277435c6ce6))
|
|
10
|
+
|
|
11
|
+
# [@discordjs/rest@2.0.0](https://github.com/discordjs/discord.js/compare/@discordjs/rest@1.7.1...@discordjs/rest@2.0.0) - (2023-07-31)
|
|
12
|
+
|
|
13
|
+
## Features
|
|
14
|
+
|
|
15
|
+
- No-de-no-de, now with extra buns (#9683) ([386f206](https://github.com/discordjs/discord.js/commit/386f206caf74a04c426799af9796ca96dcb37056))
|
|
16
|
+
- **BREAKING CHANGE:** The REST and RequestManager classes now extend AsyncEventEmitter
|
|
17
|
+
from `@vladfrangu/async_event_emitter`, which aids in cross-compatibility
|
|
18
|
+
between Node, Deno, Bun, CF Workers, Vercel Functions, etc.
|
|
19
|
+
- **BREAKING CHANGE:** DefaultUserAgentAppendix has been adapted to support multiple
|
|
20
|
+
different platforms (previously mentioned Deno, Bun, CF Workers, etc)
|
|
21
|
+
- **BREAKING CHANGE:** the entry point for `@discordjs/rest` will now differ
|
|
22
|
+
in non-node-like environments (CF Workers, etc.)
|
|
23
|
+
- **Co-authored-by:** Suneet Tipirneni <77477100+suneettipirneni@users.noreply.github.com>
|
|
24
|
+
- **Co-authored-by:** Jiralite <33201955+Jiralite@users.noreply.github.com>
|
|
25
|
+
- **Co-authored-by:** suneettipirneni <suneettipirneni@icloud.com>
|
|
26
|
+
- User avatar decorations (#8914) ([8d97017](https://github.com/discordjs/discord.js/commit/8d9701745840e23854e8f0b057d21cb10e7d1d54))
|
|
27
|
+
- Support new username system (#9512) ([1ab60f9](https://github.com/discordjs/discord.js/commit/1ab60f9da4d6b7ea144fa05b97b029a4bfaeede2))
|
|
28
|
+
|
|
29
|
+
## Refactor
|
|
30
|
+
|
|
31
|
+
- **REST:** Remove double classing (#9722) ([8f4256d](https://github.com/discordjs/discord.js/commit/8f4256db8a52ac08359d0b3436f41b641ac4e382))
|
|
32
|
+
- **BREAKING CHANGE:** `REST` and `RequestManager` have been combined, most of the properties, methods, and events from both classes can now be found on `REST`
|
|
33
|
+
- **BREAKING CHANGE:** `REST#raw` has been removed in favor of `REST#queueRequest`
|
|
34
|
+
- **BREAKING CHANGE:** `REST#getAgent` has been removed in favor of `REST#agent`
|
|
35
|
+
|
|
36
|
+
* chore: update for /rest changes
|
|
37
|
+
- **rest:** Switch api to fetch-like and provide strategies (#9416) ([cdaa0a3](https://github.com/discordjs/discord.js/commit/cdaa0a36f586459f1e5ede868c4250c7da90455c))
|
|
38
|
+
- **BREAKING CHANGE:** NodeJS v18+ is required when using node due to the use of global `fetch`
|
|
39
|
+
- **BREAKING CHANGE:** The raw method of REST now returns a web compatible `Respone` object.
|
|
40
|
+
- **BREAKING CHANGE:** The `parseResponse` utility method has been updated to operate on a web compatible `Response` object.
|
|
41
|
+
- **BREAKING CHANGE:** Many underlying internals have changed, some of which were exported.
|
|
42
|
+
- **BREAKING CHANGE:** `DefaultRestOptions` used to contain a default `agent`, which is now set to `null` instead.
|
|
43
|
+
|
|
44
|
+
# [@discordjs/rest@1.7.1](https://github.com/discordjs/discord.js/compare/@discordjs/rest@1.7.0...@discordjs/rest@1.7.1) - (2023-05-01)
|
|
45
|
+
|
|
46
|
+
## Bug Fixes
|
|
47
|
+
|
|
48
|
+
- Fix external links (#9313) ([a7425c2](https://github.com/discordjs/discord.js/commit/a7425c29c4f23f1b31f4c6a463107ca9eb7fd7e2))
|
|
49
|
+
|
|
50
|
+
## Documentation
|
|
51
|
+
|
|
52
|
+
- Reference package names properly (#9426) ([d6bca9b](https://github.com/discordjs/discord.js/commit/d6bca9bb4d976dc069a5039250db7d5b3e9142ef))
|
|
53
|
+
- Generate static imports for types with api-extractor ([98a76db](https://github.com/discordjs/discord.js/commit/98a76db482879f79d6bb2fb2e5fc65ac2c34e2d9))
|
|
54
|
+
|
|
5
55
|
# [@discordjs/rest@2.0.0](https://github.com/discordjs/discord.js/compare/@discordjs/rest@1.7.1...@discordjs/rest@2.0.0) - (2023-07-31)
|
|
6
56
|
|
|
7
57
|
## Features
|
|
8
58
|
|
|
9
59
|
- No-de-no-de, now with extra buns (#9683) ([386f206](https://github.com/discordjs/discord.js/commit/386f206caf74a04c426799af9796ca96dcb37056))
|
|
10
|
-
- **BREAKING CHANGE:** The REST and RequestManager classes now extend AsyncEventEmitter
|
|
11
|
-
from `@vladfrangu/async_event_emitter`, which aids in cross-compatibility
|
|
60
|
+
- **BREAKING CHANGE:** The REST and RequestManager classes now extend AsyncEventEmitter
|
|
61
|
+
from `@vladfrangu/async_event_emitter`, which aids in cross-compatibility
|
|
12
62
|
between Node, Deno, Bun, CF Workers, Vercel Functions, etc.
|
|
13
|
-
- **BREAKING CHANGE:** DefaultUserAgentAppendix has been adapted to support multiple
|
|
63
|
+
- **BREAKING CHANGE:** DefaultUserAgentAppendix has been adapted to support multiple
|
|
14
64
|
different platforms (previously mentioned Deno, Bun, CF Workers, etc)
|
|
15
|
-
- **BREAKING CHANGE:** the entry point for `@discordjs/rest` will now differ
|
|
65
|
+
- **BREAKING CHANGE:** the entry point for `@discordjs/rest` will now differ
|
|
16
66
|
in non-node-like environments (CF Workers, etc.)
|
|
17
67
|
- **Co-authored-by:** Suneet Tipirneni <77477100+suneettipirneni@users.noreply.github.com>
|
|
18
68
|
- **Co-authored-by:** Jiralite <33201955+Jiralite@users.noreply.github.com>
|
package/dist/index.js
CHANGED
|
@@ -123,7 +123,7 @@ __name(resolveBody, "resolveBody");
|
|
|
123
123
|
// src/lib/utils/constants.ts
|
|
124
124
|
var import_util = require("@discordjs/util");
|
|
125
125
|
var import_v10 = require("discord-api-types/v10");
|
|
126
|
-
var DefaultUserAgent = `DiscordBot (https://discord.js.org, 2.0.1
|
|
126
|
+
var DefaultUserAgent = `DiscordBot (https://discord.js.org, 2.0.1)`;
|
|
127
127
|
var DefaultUserAgentAppendix = (0, import_util.getUserAgentAppendix)();
|
|
128
128
|
var DefaultRestOptions = {
|
|
129
129
|
agent: null,
|
|
@@ -1392,7 +1392,7 @@ var REST = class _REST extends import_async_event_emitter.AsyncEventEmitter {
|
|
|
1392
1392
|
};
|
|
1393
1393
|
|
|
1394
1394
|
// src/shared.ts
|
|
1395
|
-
var version = "2.0.1
|
|
1395
|
+
var version = "2.0.1";
|
|
1396
1396
|
|
|
1397
1397
|
// src/index.ts
|
|
1398
1398
|
globalThis.FormData ??= import_undici2.FormData;
|