mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-15 19:13:31 +01:00
build: bump dependencies (#10671)
This commit is contained in:
@@ -66,28 +66,28 @@
|
||||
"funding": "https://github.com/discordjs/discord.js?sponsor",
|
||||
"dependencies": {
|
||||
"@discordjs/util": "workspace:^",
|
||||
"discord-api-types": "^0.37.109",
|
||||
"discord-api-types": "^0.37.114",
|
||||
"ts-mixer": "^6.0.4",
|
||||
"tslib": "^2.8.1",
|
||||
"zod": "^3.23.8",
|
||||
"zod": "^3.24.1",
|
||||
"zod-validation-error": "^3.4.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@discordjs/api-extractor": "workspace:^",
|
||||
"@discordjs/scripts": "workspace:^",
|
||||
"@favware/cliff-jumper": "^4.1.0",
|
||||
"@types/node": "^20.17.8",
|
||||
"@vitest/coverage-v8": "^2.1.5",
|
||||
"@types/node": "^20.17.10",
|
||||
"@vitest/coverage-v8": "^2.1.8",
|
||||
"cross-env": "^7.0.3",
|
||||
"esbuild-plugin-version-injector": "^1.2.1",
|
||||
"eslint": "^8.57.1",
|
||||
"eslint-config-neon": "^0.1.62",
|
||||
"eslint-formatter-pretty": "^6.0.1",
|
||||
"prettier": "^3.3.3",
|
||||
"prettier": "^3.4.2",
|
||||
"tsup": "^8.3.5",
|
||||
"turbo": "^2.3.0",
|
||||
"turbo": "^2.3.3",
|
||||
"typescript": "~5.5.4",
|
||||
"vitest": "^2.1.5"
|
||||
"vitest": "^2.1.8"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=20"
|
||||
|
||||
@@ -7,7 +7,7 @@ import { ComponentBuilder } from '../Component.js';
|
||||
* A builder that creates API-compatible JSON data for buttons.
|
||||
*/
|
||||
export abstract class BaseButtonBuilder<ButtonData extends APIButtonComponent> extends ComponentBuilder<ButtonData> {
|
||||
protected declare readonly data: Partial<ButtonData>;
|
||||
declare protected readonly data: Partial<ButtonData>;
|
||||
|
||||
/**
|
||||
* Sets whether this button is disabled.
|
||||
|
||||
@@ -4,7 +4,7 @@ export interface EmojiOrLabelButtonData
|
||||
extends Pick<Exclude<APIButtonComponent, APIButtonComponentWithSKUId>, 'emoji' | 'label'> {}
|
||||
|
||||
export class EmojiOrLabelButtonMixin {
|
||||
protected declare readonly data: EmojiOrLabelButtonData;
|
||||
declare protected readonly data: EmojiOrLabelButtonData;
|
||||
|
||||
/**
|
||||
* Sets the emoji to display on this button.
|
||||
|
||||
@@ -19,7 +19,7 @@ export interface CommandData
|
||||
export abstract class CommandBuilder<Command extends RESTPostAPIApplicationCommandsJSONBody>
|
||||
implements JSONEncodable<Command>
|
||||
{
|
||||
protected declare readonly data: CommandData;
|
||||
declare protected readonly data: CommandData;
|
||||
|
||||
/**
|
||||
* Sets the contexts of this command.
|
||||
|
||||
@@ -26,7 +26,7 @@ export class ChatInputCommandSubcommandGroupBuilder
|
||||
extends SharedNameAndDescription
|
||||
implements JSONEncodable<APIApplicationCommandSubcommandGroupOption>
|
||||
{
|
||||
protected declare readonly data: ChatInputCommandSubcommandGroupData & SharedNameAndDescriptionData;
|
||||
declare protected readonly data: ChatInputCommandSubcommandGroupData & SharedNameAndDescriptionData;
|
||||
|
||||
public get options(): readonly ChatInputCommandSubcommandBuilder[] {
|
||||
return (this.data.options ??= []);
|
||||
|
||||
@@ -7,7 +7,7 @@ export interface ApplicationCommandNumericOptionMinMaxValueData
|
||||
* This mixin holds minimum and maximum symbols used for options.
|
||||
*/
|
||||
export abstract class ApplicationCommandNumericOptionMinMaxValueMixin {
|
||||
protected declare readonly data: ApplicationCommandNumericOptionMinMaxValueData;
|
||||
declare protected readonly data: ApplicationCommandNumericOptionMinMaxValueData;
|
||||
|
||||
/**
|
||||
* Sets the maximum number value of this option.
|
||||
|
||||
@@ -26,7 +26,7 @@ export interface ApplicationCommandOptionChannelTypesData
|
||||
* This mixin holds channel type symbols used for options.
|
||||
*/
|
||||
export class ApplicationCommandOptionChannelTypesMixin {
|
||||
protected declare readonly data: ApplicationCommandOptionChannelTypesData;
|
||||
declare protected readonly data: ApplicationCommandOptionChannelTypesData;
|
||||
|
||||
/**
|
||||
* Adds channel types to this option.
|
||||
|
||||
@@ -15,7 +15,7 @@ export interface ApplicationCommandOptionWithAutocompleteData extends Pick<Autoc
|
||||
* This mixin holds choices and autocomplete symbols used for options.
|
||||
*/
|
||||
export class ApplicationCommandOptionWithAutocompleteMixin {
|
||||
protected declare readonly data: ApplicationCommandOptionWithAutocompleteData;
|
||||
declare protected readonly data: ApplicationCommandOptionWithAutocompleteData;
|
||||
|
||||
/**
|
||||
* Whether this option uses autocomplete.
|
||||
|
||||
@@ -10,7 +10,7 @@ export interface ApplicationCommandOptionWithChoicesData {
|
||||
* This mixin holds choices and autocomplete symbols used for options.
|
||||
*/
|
||||
export class ApplicationCommandOptionWithChoicesMixin<ChoiceType extends number | string> {
|
||||
protected declare readonly data: ApplicationCommandOptionWithChoicesData;
|
||||
declare protected readonly data: ApplicationCommandOptionWithChoicesData;
|
||||
|
||||
/**
|
||||
* Adds multiple choices to this option.
|
||||
|
||||
@@ -21,7 +21,7 @@ export interface SharedChatInputCommandOptionsData {
|
||||
* @typeParam TypeAfterAddingOptions - The type this class should return after adding an option.
|
||||
*/
|
||||
export class SharedChatInputCommandOptions {
|
||||
protected declare readonly data: SharedChatInputCommandOptionsData;
|
||||
declare protected readonly data: SharedChatInputCommandOptionsData;
|
||||
|
||||
public get options(): readonly ApplicationCommandOptionBase[] {
|
||||
return (this.data.options ??= []);
|
||||
|
||||
@@ -16,7 +16,7 @@ export interface SharedChatInputCommandSubcommandsData {
|
||||
* @typeParam TypeAfterAddingSubcommands - The type this class should return after adding a subcommand or subcommand group.
|
||||
*/
|
||||
export class SharedChatInputCommandSubcommands {
|
||||
protected declare readonly data: SharedChatInputCommandSubcommandsData;
|
||||
declare protected readonly data: SharedChatInputCommandSubcommandsData;
|
||||
|
||||
/**
|
||||
* Adds subcommand groups to this command.
|
||||
|
||||
@@ -23,7 +23,7 @@ export abstract class ApplicationCommandOptionBase
|
||||
{
|
||||
protected static readonly predicate: z.ZodTypeAny = basicOptionPredicate;
|
||||
|
||||
protected declare readonly data: ApplicationCommandOptionBaseData & SharedNameAndDescriptionData;
|
||||
declare protected readonly data: ApplicationCommandOptionBaseData & SharedNameAndDescriptionData;
|
||||
|
||||
public constructor(type: ApplicationCommandOptionType) {
|
||||
super();
|
||||
|
||||
@@ -18,7 +18,7 @@ export class ChatInputCommandStringOption extends Mixin(
|
||||
) {
|
||||
protected static override readonly predicate = stringOptionPredicate;
|
||||
|
||||
protected declare readonly data: ApplicationCommandOptionBaseData &
|
||||
declare protected readonly data: ApplicationCommandOptionBaseData &
|
||||
ApplicationCommandOptionWithAutocompleteData &
|
||||
ApplicationCommandOptionWithChoicesData &
|
||||
Partial<Pick<APIApplicationCommandStringOption, 'max_length' | 'min_length'>>;
|
||||
|
||||
Reference in New Issue
Block a user