@discordjs/proxy 2.0.0-dev.1690762263-488aa58b2.0 → 2.0.0

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.
Files changed (2) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/package.json +3 -3
package/CHANGELOG.md CHANGED
@@ -2,6 +2,37 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
+ # [@discordjs/proxy@2.0.0](https://github.com/discordjs/discord.js/compare/@discordjs/proxy@1.4.1...@discordjs/proxy@2.0.0) - (2023-07-31)
6
+
7
+ ## Refactor
8
+
9
+ - **REST:** Remove double classing (#9722) ([8f4256d](https://github.com/discordjs/discord.js/commit/8f4256db8a52ac08359d0b3436f41b641ac4e382))
10
+ - **BREAKING CHANGE:** `REST` and `RequestManager` have been combined, most of the properties, methods, and events from both classes can now be found on `REST`
11
+ - **BREAKING CHANGE:** `REST#raw` has been removed in favor of `REST#queueRequest`
12
+ - **BREAKING CHANGE:** `REST#getAgent` has been removed in favor of `REST#agent`
13
+
14
+ * chore: update for /rest changes
15
+ - **rest:** Switch api to fetch-like and provide strategies (#9416) ([cdaa0a3](https://github.com/discordjs/discord.js/commit/cdaa0a36f586459f1e5ede868c4250c7da90455c))
16
+ - **BREAKING CHANGE:** NodeJS v18+ is required when using node due to the use of global `fetch`
17
+ - **BREAKING CHANGE:** The raw method of REST now returns a web compatible `Respone` object.
18
+ - **BREAKING CHANGE:** The `parseResponse` utility method has been updated to operate on a web compatible `Response` object.
19
+ - **BREAKING CHANGE:** Many underlying internals have changed, some of which were exported.
20
+ - **BREAKING CHANGE:** `DefaultRestOptions` used to contain a default `agent`, which is now set to `null` instead.
21
+
22
+ # [@discordjs/proxy@1.4.1](https://github.com/discordjs/discord.js/compare/@discordjs/proxy@1.4.0...@discordjs/proxy@1.4.1) - (2023-05-01)
23
+
24
+ ## Bug Fixes
25
+
26
+ - Fix external links (#9313) ([a7425c2](https://github.com/discordjs/discord.js/commit/a7425c29c4f23f1b31f4c6a463107ca9eb7fd7e2))
27
+
28
+ ## Documentation
29
+
30
+ - Generate static imports for types with api-extractor ([98a76db](https://github.com/discordjs/discord.js/commit/98a76db482879f79d6bb2fb2e5fc65ac2c34e2d9))
31
+
32
+ ## Refactor
33
+
34
+ - **proxy:** Rely on auth header instead (#9422) ([a49ed0a](https://github.com/discordjs/discord.js/commit/a49ed0a2d5934ad7af2e9cfbf7c5ccf171599591))
35
+
5
36
  # [@discordjs/proxy@1.4.1](https://github.com/discordjs/discord.js/compare/@discordjs/proxy@1.4.0...@discordjs/proxy@1.4.1) - (2023-05-01)
6
37
 
7
38
  ## Bug Fixes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@discordjs/proxy",
3
- "version": "2.0.0-dev.1690762263-488aa58b2.0",
3
+ "version": "2.0.0",
4
4
  "description": "Tools for running an HTTP proxy for Discord's API",
5
5
  "scripts": {
6
6
  "test": "vitest run",
@@ -56,8 +56,8 @@
56
56
  },
57
57
  "homepage": "https://discord.js.org",
58
58
  "dependencies": {
59
- "@discordjs/rest": "^1.7.1",
60
- "@discordjs/util": "^0.3.1",
59
+ "@discordjs/rest": "^2.0.0",
60
+ "@discordjs/util": "^1.0.0",
61
61
  "tslib": "^2.6.1",
62
62
  "undici": "^5.22.1"
63
63
  },