refactor: builders (#10448)

BREAKING CHANGE: formatters export removed (prev. deprecated)
BREAKING CHANGE: `SelectMenuBuilder` and `SelectMenuOptionBuilder` have been removed (prev. deprecated)
BREAKING CHANGE: `EmbedBuilder` no longer takes camalCase options
BREAKING CHANGE: `ActionRowBuilder` now has specialized `[add/set]X` methods as opposed to the current `[add/set]Components`
BREAKING CHANGE: Removed `equals` methods
BREAKING CHANGE: Sapphire -> zod for validation
BREAKING CHANGE: Removed the ability to pass `null`/`undefined` to clear fields, use `clearX()` instead
BREAKING CHANGE: Renamed all "slash command" symbols to instead use "chat input command"
BREAKING CHANGE: Removed `ContextMenuCommandBuilder` in favor of `MessageCommandBuilder` and `UserCommandBuilder`
BREAKING CHANGE: Removed support for passing the "string key"s of enums
BREAKING CHANGE: Removed `Button` class in favor for specialized classes depending on the style
BREAKING CHANGE: Removed nested `addX` styled-methods in favor of plural `addXs`

Co-authored-by: Vlad Frangu <me@vladfrangu.dev>
Co-authored-by: Almeida <github@almeidx.dev>
This commit is contained in:
Denis Cristea
2024-10-01 19:11:56 +03:00
committed by GitHub
parent c633d5c7f6
commit ab32f26cbb
91 changed files with 3772 additions and 3824 deletions

22
pnpm-lock.yaml generated
View File

@@ -670,27 +670,21 @@ importers:
packages/builders:
dependencies:
'@discordjs/formatters':
specifier: workspace:^
version: link:../formatters
'@discordjs/util':
specifier: workspace:^
version: link:../util
'@sapphire/shapeshift':
specifier: ^4.0.0
version: 4.0.0
discord-api-types:
specifier: ^0.37.101
version: 0.37.101
fast-deep-equal:
specifier: ^3.1.3
version: 3.1.3
ts-mixer:
specifier: ^6.0.4
version: 6.0.4
tslib:
specifier: ^2.6.3
version: 2.6.3
zod:
specifier: ^3.23.8
version: 3.23.8
devDependencies:
'@discordjs/api-extractor':
specifier: workspace:^
@@ -702,11 +696,11 @@ importers:
specifier: ^4.1.0
version: 4.1.0
'@types/node':
specifier: ^16.18.105
version: 16.18.105
specifier: ^18.19.44
version: 18.19.45
'@vitest/coverage-v8':
specifier: ^2.0.5
version: 2.0.5(vitest@2.0.5(@edge-runtime/vm@3.2.0)(@types/node@16.18.105)(happy-dom@14.12.3)(terser@5.31.6))
version: 2.0.5(vitest@2.0.5(@edge-runtime/vm@3.2.0)(@types/node@18.19.45)(happy-dom@14.12.3)(terser@5.31.6))
cross-env:
specifier: ^7.0.3
version: 7.0.3
@@ -727,7 +721,7 @@ importers:
version: 3.3.3
tsup:
specifier: ^8.2.4
version: 8.2.4(@microsoft/api-extractor@7.43.0(@types/node@16.18.105))(jiti@1.21.6)(postcss@8.4.41)(typescript@5.5.4)(yaml@2.5.0)
version: 8.2.4(@microsoft/api-extractor@7.43.0(@types/node@18.19.45))(jiti@1.21.6)(postcss@8.4.41)(typescript@5.5.4)(yaml@2.5.0)
turbo:
specifier: ^2.0.14
version: 2.0.14
@@ -736,7 +730,7 @@ importers:
version: 5.5.4
vitest:
specifier: ^2.0.5
version: 2.0.5(@edge-runtime/vm@3.2.0)(@types/node@16.18.105)(happy-dom@14.12.3)(terser@5.31.6)
version: 2.0.5(@edge-runtime/vm@3.2.0)(@types/node@18.19.45)(happy-dom@14.12.3)(terser@5.31.6)
packages/collection:
devDependencies: