mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-19 13:03:31 +01:00
build: Upgrade v14 dependencies (#11427)
* build: upgrade dependencies * build: please Undici please * build: regenerate file * chore: fix docs by using bundler * fix: revert upgrade for package * build: fix versions
This commit is contained in:
@@ -68,7 +68,7 @@
|
||||
"@discordjs/formatters": "workspace:^",
|
||||
"@discordjs/util": "workspace:^",
|
||||
"@sapphire/shapeshift": "^4.0.0",
|
||||
"discord-api-types": "^0.38.33",
|
||||
"discord-api-types": "^0.38.40",
|
||||
"fast-deep-equal": "^3.1.3",
|
||||
"ts-mixer": "^6.0.4",
|
||||
"tslib": "^2.6.3"
|
||||
@@ -77,17 +77,17 @@
|
||||
"@discordjs/api-extractor": "workspace:^",
|
||||
"@discordjs/scripts": "workspace:^",
|
||||
"@favware/cliff-jumper": "^4.1.0",
|
||||
"@types/node": "^16.18.105",
|
||||
"@types/node": "^16.18.126",
|
||||
"@vitest/coverage-v8": "^2.0.5",
|
||||
"cross-env": "^7.0.3",
|
||||
"esbuild-plugin-version-injector": "^1.2.1",
|
||||
"eslint": "^8.57.0",
|
||||
"eslint": "^8.57.1",
|
||||
"eslint-config-neon": "^0.1.62",
|
||||
"eslint-formatter-pretty": "^6.0.1",
|
||||
"prettier": "^3.3.3",
|
||||
"tsup": "^8.2.4",
|
||||
"turbo": "^2.0.14",
|
||||
"typescript": "~5.5.4",
|
||||
"prettier": "^3.8.1",
|
||||
"tsup": "^8.5.1",
|
||||
"turbo": "^2.8.10",
|
||||
"typescript": "~5.8.3",
|
||||
"vitest": "^2.0.5"
|
||||
},
|
||||
"engines": {
|
||||
|
||||
@@ -25,8 +25,7 @@ export type AnyAPIActionRowComponent =
|
||||
*/
|
||||
export abstract class ComponentBuilder<
|
||||
DataType extends Partial<APIBaseComponent<ComponentType>> = APIBaseComponent<ComponentType>,
|
||||
> implements JSONEncodable<AnyAPIActionRowComponent>
|
||||
{
|
||||
> implements JSONEncodable<AnyAPIActionRowComponent> {
|
||||
/**
|
||||
* The API data associated with this component.
|
||||
*/
|
||||
|
||||
@@ -176,7 +176,7 @@ export function createComponentBuilder(
|
||||
case ComponentType.FileUpload:
|
||||
return new FileUploadBuilder(data);
|
||||
default:
|
||||
// @ts-expect-error This case can still occur if we get a newer unsupported component type
|
||||
// https://github.com/discordjs/discord.js/pull/11410
|
||||
throw new Error(`Cannot properly serialize component type: ${data.type}`);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -68,6 +68,7 @@ export class LabelBuilder extends ComponentBuilder<LabelBuilderData> {
|
||||
|
||||
this.data = {
|
||||
...rest,
|
||||
// @ts-expect-error https://github.com/discordjs/discord.js/pull/11410
|
||||
component: component ? createComponentBuilder(component) : undefined,
|
||||
type: ComponentType.Label,
|
||||
};
|
||||
|
||||
@@ -80,7 +80,8 @@ export class SlashCommandBuilder {
|
||||
}
|
||||
|
||||
export interface SlashCommandBuilder
|
||||
extends SharedNameAndDescription,
|
||||
extends
|
||||
SharedNameAndDescription,
|
||||
SharedSlashCommandOptions<SlashCommandOptionsOnlyBuilder>,
|
||||
SharedSlashCommandSubcommands<SlashCommandSubcommandsOnlyBuilder>,
|
||||
SharedSlashCommand {}
|
||||
@@ -89,7 +90,8 @@ export interface SlashCommandBuilder
|
||||
* An interface specifically for slash command subcommands.
|
||||
*/
|
||||
export interface SlashCommandSubcommandsOnlyBuilder
|
||||
extends SharedNameAndDescription,
|
||||
extends
|
||||
SharedNameAndDescription,
|
||||
SharedSlashCommandSubcommands<SlashCommandSubcommandsOnlyBuilder>,
|
||||
SharedSlashCommand {}
|
||||
|
||||
@@ -97,9 +99,7 @@ export interface SlashCommandSubcommandsOnlyBuilder
|
||||
* An interface specifically for slash command options.
|
||||
*/
|
||||
export interface SlashCommandOptionsOnlyBuilder
|
||||
extends SharedNameAndDescription,
|
||||
SharedSlashCommandOptions<SlashCommandOptionsOnlyBuilder>,
|
||||
SharedSlashCommand {}
|
||||
extends SharedNameAndDescription, SharedSlashCommandOptions<SlashCommandOptionsOnlyBuilder>, SharedSlashCommand {}
|
||||
|
||||
/**
|
||||
* An interface that ensures the `toJSON()` call will return something
|
||||
|
||||
@@ -127,5 +127,4 @@ export class SlashCommandSubcommandBuilder implements ToAPIApplicationCommandOpt
|
||||
}
|
||||
|
||||
export interface SlashCommandSubcommandBuilder
|
||||
extends SharedNameAndDescription,
|
||||
SharedSlashCommandOptions<SlashCommandSubcommandBuilder> {}
|
||||
extends SharedNameAndDescription, SharedSlashCommandOptions<SlashCommandSubcommandBuilder> {}
|
||||
|
||||
@@ -62,6 +62,7 @@ export class SlashCommandIntegerOption
|
||||
}
|
||||
|
||||
export interface SlashCommandIntegerOption
|
||||
extends ApplicationCommandNumericOptionMinMaxValueMixin,
|
||||
extends
|
||||
ApplicationCommandNumericOptionMinMaxValueMixin,
|
||||
ApplicationCommandOptionWithChoicesMixin<number>,
|
||||
ApplicationCommandOptionWithAutocompleteMixin {}
|
||||
|
||||
@@ -62,6 +62,7 @@ export class SlashCommandNumberOption
|
||||
}
|
||||
|
||||
export interface SlashCommandNumberOption
|
||||
extends ApplicationCommandNumericOptionMinMaxValueMixin,
|
||||
extends
|
||||
ApplicationCommandNumericOptionMinMaxValueMixin,
|
||||
ApplicationCommandOptionWithChoicesMixin<number>,
|
||||
ApplicationCommandOptionWithAutocompleteMixin {}
|
||||
|
||||
@@ -69,5 +69,4 @@ export class SlashCommandStringOption extends ApplicationCommandOptionBase {
|
||||
}
|
||||
|
||||
export interface SlashCommandStringOption
|
||||
extends ApplicationCommandOptionWithChoicesMixin<string>,
|
||||
ApplicationCommandOptionWithAutocompleteMixin {}
|
||||
extends ApplicationCommandOptionWithChoicesMixin<string>, ApplicationCommandOptionWithAutocompleteMixin {}
|
||||
|
||||
Reference in New Issue
Block a user