Update dependency @discordjs/rest to v2 #327

Merged
Vylpes merged 1 commit from renovate/discordjs-rest-2.x into develop 2023-08-07 17:46:37 +01:00
Member

This PR contains the following updates:

Package Type Update Change
@discordjs/rest (source) dependencies major ^1.1.0 -> ^2.0.0

Release Notes

discordjs/discord.js

v2.0.0

Compare Source

Features

  • No-de-no-de, now with extra buns (#​9683) (386f206)
    • BREAKING CHANGE: The REST and RequestManager classes now extend AsyncEventEmitter
      from @vladfrangu/async_event_emitter, which aids in cross-compatibility
      between Node, Deno, Bun, CF Workers, Vercel Functions, etc.
    • BREAKING CHANGE: DefaultUserAgentAppendix has been adapted to support multiple
      different platforms (previously mentioned Deno, Bun, CF Workers, etc)
    • BREAKING CHANGE: the entry point for @discordjs/rest will now differ
      in non-node-like environments (CF Workers, etc.)
    • Co-authored-by: Suneet Tipirneni 77477100+suneettipirneni@users.noreply.github.com
    • Co-authored-by: Jiralite 33201955+Jiralite@users.noreply.github.com
    • Co-authored-by: suneettipirneni suneettipirneni@icloud.com
  • User avatar decorations (#​8914) (8d97017)
  • Support new username system (#​9512) (1ab60f9)

Refactor

  • REST: Remove double classing (#​9722) (8f4256d)
    • BREAKING CHANGE: REST and RequestManager have been combined, most of the properties, methods, and events from both classes can now be found on REST
    • BREAKING CHANGE: REST#raw has been removed in favor of REST#queueRequest
    • BREAKING CHANGE: REST#getAgent has been removed in favor of REST#agent
  • chore: update for /rest changes
  • rest: Switch api to fetch-like and provide strategies (#​9416) (cdaa0a3)
    • BREAKING CHANGE: NodeJS v18+ is required when using node due to the use of global fetch
    • BREAKING CHANGE: The raw method of REST now returns a web compatible Respone object.
    • BREAKING CHANGE: The parseResponse utility method has been updated to operate on a web compatible Response object.
    • BREAKING CHANGE: Many underlying internals have changed, some of which were exported.
    • BREAKING CHANGE: DefaultRestOptions used to contain a default agent, which is now set to null instead.

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [@discordjs/rest](https://discord.js.org) ([source](https://github.com/discordjs/discord.js)) | dependencies | major | [`^1.1.0` -> `^2.0.0`](https://renovatebot.com/diffs/npm/@discordjs%2frest/1.7.1/2.0.0) | --- ### Release Notes <details> <summary>discordjs/discord.js</summary> ### [`v2.0.0`](https://github.com/discordjs/discord.js/blob/HEAD/packages/rest/CHANGELOG.md#discordjsrest200-httpsgithubcomdiscordjsdiscordjscomparediscordjsrest171discordjsrest200---2023-07-31) [Compare Source](https://github.com/discordjs/discord.js/compare/@discordjs/rest@1.7.1...@discordjs/rest@2.0.0) #### Features - No-de-no-de, now with extra buns ([#&#8203;9683](https://github.com/discordjs/discord.js/issues/9683)) ([386f206](https://github.com/discordjs/discord.js/commit/386f206caf74a04c426799af9796ca96dcb37056)) - **BREAKING CHANGE:** The REST and RequestManager classes now extend AsyncEventEmitter from `@vladfrangu/async_event_emitter`, which aids in cross-compatibility between Node, Deno, Bun, CF Workers, Vercel Functions, etc. - **BREAKING CHANGE:** DefaultUserAgentAppendix has been adapted to support multiple different platforms (previously mentioned Deno, Bun, CF Workers, etc) - **BREAKING CHANGE:** the entry point for `@discordjs/rest` will now differ in non-node-like environments (CF Workers, etc.) - **Co-authored-by:** Suneet Tipirneni <77477100+suneettipirneni@users.noreply.github.com> - **Co-authored-by:** Jiralite <33201955+Jiralite@users.noreply.github.com> - **Co-authored-by:** suneettipirneni <suneettipirneni@icloud.com> - User avatar decorations ([#&#8203;8914](https://github.com/discordjs/discord.js/issues/8914)) ([8d97017](https://github.com/discordjs/discord.js/commit/8d9701745840e23854e8f0b057d21cb10e7d1d54)) - Support new username system ([#&#8203;9512](https://github.com/discordjs/discord.js/issues/9512)) ([1ab60f9](https://github.com/discordjs/discord.js/commit/1ab60f9da4d6b7ea144fa05b97b029a4bfaeede2)) #### Refactor - **REST:** Remove double classing ([#&#8203;9722](https://github.com/discordjs/discord.js/issues/9722)) ([8f4256d](https://github.com/discordjs/discord.js/commit/8f4256db8a52ac08359d0b3436f41b641ac4e382)) - **BREAKING CHANGE:** `REST` and `RequestManager` have been combined, most of the properties, methods, and events from both classes can now be found on `REST` - **BREAKING CHANGE:** `REST#raw` has been removed in favor of `REST#queueRequest` - **BREAKING CHANGE:** `REST#getAgent` has been removed in favor of `REST#agent` <!----> - chore: update for /rest changes <!----> - **rest:** Switch api to fetch-like and provide strategies ([#&#8203;9416](https://github.com/discordjs/discord.js/issues/9416)) ([cdaa0a3](https://github.com/discordjs/discord.js/commit/cdaa0a36f586459f1e5ede868c4250c7da90455c)) - **BREAKING CHANGE:** NodeJS v18+ is required when using node due to the use of global `fetch` - **BREAKING CHANGE:** The raw method of REST now returns a web compatible `Respone` object. - **BREAKING CHANGE:** The `parseResponse` utility method has been updated to operate on a web compatible `Response` object. - **BREAKING CHANGE:** Many underlying internals have changed, some of which were exported. - **BREAKING CHANGE:** `DefaultRestOptions` used to contain a default `agent`, which is now set to `null` instead. </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC43NC4yIiwidXBkYXRlZEluVmVyIjoiMzQuNzQuMiJ9-->
RenovateBot added 1 commit 2023-08-07 00:01:36 +01:00
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build is failing
598103a363
Update dependency @discordjs/rest to v2
Vylpes added the
type
dependencies
label 2023-08-07 17:42:27 +01:00
Vylpes added this to the 3.2 milestone 2023-08-07 17:42:32 +01:00
Vylpes self-assigned this 2023-08-07 17:42:37 +01:00
Vylpes approved these changes 2023-08-07 17:46:32 +01:00
Vylpes merged commit 9968e2e5fb into develop 2023-08-07 17:46:37 +01:00
Vylpes deleted branch renovate/discordjs-rest-2.x 2023-08-07 17:46:37 +01:00
Vylpes added spent time 2023-08-07 17:46:42 +01:00
5 minutes
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Total time spent: 5 minutes
Vylpes
5 minutes
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: RabbitLabs/vylbot-app#327
No description provided.