commandkit 1.2.0-dev.20251015015506 → 1.2.0-dev.20251015125345

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.
@@ -1,6 +1,6 @@
1
1
  const require_chunk = require('../chunk-nOFOJqeH.js');
2
2
  const require_constants = require('../constants-BMWH2YUr.js');
3
- const require_version = require('../version-q6N-AqDi.js');
3
+ const require_version = require('../version-yKPosjS0.js');
4
4
  let node_fs = require("node:fs");
5
5
  node_fs = require_chunk.__toESM(node_fs);
6
6
  let node_path = require("node:path");
@@ -16,4 +16,4 @@ declare enum SerializerType {
16
16
  }
17
17
  //#endregion
18
18
  export { SerializerType };
19
- //# sourceMappingURL=constants-CCFSX2NG.d.ts.map
19
+ //# sourceMappingURL=constants-DwLQQVLy.d.ts.map
@@ -51,4 +51,4 @@ declare function isCommandKitError(error: unknown): error is CommandKitError;
51
51
  declare function isErrorType(error: unknown, code: symbol | symbol[]): boolean;
52
52
  //#endregion
53
53
  export { CommandKitError, CommandKitErrorCodes, createCommandKitError, isCommandKitError, isErrorType };
54
- //# sourceMappingURL=error-codes-BiNRVMiV.d.ts.map
54
+ //# sourceMappingURL=error-codes-DM-Mbprh.d.ts.map
package/dist/index.d.ts CHANGED
@@ -39,7 +39,8 @@ import { DefaultLogger } from "./DefaultLogger-CHMVsizQ.js";
39
39
  import { CommandKitLoggerOptions, Logger, LoggerImpl, createLogger } from "./Logger-DyV7oli4.js";
40
40
  import { version } from "./version-DggMfP_1.js";
41
41
  import { debounce, defer, devOnly, getCurrentDirectory, getSourceDirectories } from "./utilities-CQUaua43.js";
42
- import { toFileURL } from "./resolve-file-url-DFtR8jRR.js";
43
- import { CommandKitErrorCodes, isErrorType } from "./error-codes-BiNRVMiV.js";
42
+ import { emitWarning, warnDeprecated, warnUnstable } from "./warning-Ddig3lHP.js";
43
+ import { toFileURL } from "./resolve-file-url-BDJud8AT.js";
44
+ import { CommandKitErrorCodes, isErrorType } from "./error-codes-DM-Mbprh.js";
44
45
  import { Client, Collection } from "discord.js";
45
- export { ActionRow, ActionRowProps, AnyCommandExecute, AnyCommandKitElement, AppCommand, AppCommandHandler, AppCommandNative, AsyncFunction, AutocompleteCommand, AutocompleteCommandContext, AutocompleteCommandMiddlewareContext, BootstrapFunction, Button, ButtonChildrenLike, ButtonKit, ButtonKitPredicate, ButtonProps, COMMANDKIT_BOOTSTRAP_MODE, COMMANDKIT_CWD, COMMANDKIT_IS_CLI, COMMANDKIT_IS_DEV, COMMANDKIT_IS_TEST, ChannelSelectMenu, ChannelSelectMenuKit, ChannelSelectMenuKitPredicate, ChannelSelectMenuProps, ChatInputCommand, ChatInputCommandContext, type Client, Collection, Command, CommandBuilderLike, CommandContext, CommandContextOptions, CommandData, CommandDataSchema, CommandDataSchemaKey, CommandDataSchemaValue, CommandExecutionMode, CommandFlagContext, CommandKit, CommandKitButtonBuilderInteractionCollectorDispatch, CommandKitButtonBuilderInteractionCollectorDispatchContextData, CommandKitButtonBuilderOnEnd, CommandKitConfiguration, CommandKitElement, CommandKitElementData, CommandKitEnvironment, type CommandKitEnvironmentInternalData, CommandKitEnvironmentType, CommandKitErrorCodes, CommandKitEventDispatch, type CommandKitHMREvent, CommandKitLoggerOptions, CommandKitModalBuilderInteractionCollectorDispatch, CommandKitModalBuilderInteractionCollectorDispatchContextData, CommandKitModalBuilderOnEnd, CommandKitOptions, CommandKitPlugin, CommandKitPluginRuntime, CommandKitSelectMenuBuilderInteractionCollectorDispatch, CommandKitSelectMenuBuilderInteractionCollectorDispatchContextData, CommandKitSelectMenuBuilderOnEnd, CommandMetadata, CommandMetadataFunction, CommandRegistrar, CommandSource, CommandTypeData, CommandsRouter, CommandsRouterOptions, CommonBuilderKit, CommonDirectiveTransformer, CommonDirectiveTransformerOptions, CommonPluginRuntime, CommonSelectMenuProps, CompilerPlugin, CompilerPluginRuntime, Container, ContainerProps, Context, ContextParameters, CustomAppCommandProps, CustomEvaluationContext, CustomEvaluationFunction, DecideFunction, DefaultLogger, ElementType, EvaluationContext, EventFlagContext, EventHandler, EventInterceptor, EventInterceptorContextData, EventInterceptorErrorHandler, EventWorkerContext, EventsRouter, EventsRouterOptions, EventsTree, FeatureFlag, FeatureFlagDefinition, File, FileProps, FlagRunner, Fragment, FragmentElementProps, GenericFunction, HMREventType, ILogger, IdentifyFunction, InteractionCommandContext, InteractionCommandMiddlewareContext, Label, LabelProps, LoadedCommand, Logger, LoggerImpl, MaybeArray, MaybeFalsey, MaybePromise, MediaGallery, MediaGalleryItem, MediaGalleryItemProps, MediaGalleryProps, MentionableSelectMenu, MentionableSelectMenuKit, MentionableSelectMenuKitPredicate, MentionableSelectMenuProps, MessageCommand, MessageCommandContext, MessageCommandMiddlewareContext, MessageCommandOptions, MessageCommandOptionsSchema, MessageCommandParser, MessageContextMenuCommand, MessageContextMenuCommandContext, MessageContextMenuCommandMiddlewareContext, Middleware, MiddlewareContext, MiddlewareContextArgs, Modal, ModalKit, ModalKitPredicate, ModalProps, OnButtonKitClick, OnButtonKitEnd, OnChannelSelectMenuKitSubmit, OnMentionableSelectMenuKitSubmit, OnModalKitEnd, OnModalKitSubmit, OnRoleSelectMenuKitSubmit, OnSelectMenuKitEnd, OnSelectMenuKitSubmit, OnStringSelectMenuKitSubmit, OnUserSelectMenuKitSubmit, ParagraphInput, ParsedCommandData, ParsedEvent, ParsedMessageCommand, PluginTransformParameters, Poll, PollAnswer, PollAnswerProps, PollChildrenType, PollProps, PollQuestion, PollQuestionProps, PreRegisterCommandsEvent, PreparedAppCommandExecution, ResolvableCommand, ResolveBuilderInteraction, RoleSelectMenu, RoleSelectMenuKit, RoleSelectMenuKitPredicate, RoleSelectMenuProps, RunCommand, RuntimePlugin, Section, SectionProps, SelectMenuKitPredicate, SelectMenuProps, Separator, SeparatorProps, ShortInput, SlashCommandMiddlewareContext, StringEncodable, StringSelectMenu, StringSelectMenuKit, StringSelectMenuKitPredicate, StringSelectMenuOption, StringSelectMenuOptionProps, StringSelectMenuProps, TemplateHandler, TextDisplay, TextDisplayProps, TextInput, TextInputProps, Thumbnail, ThumbnailProps, TransformedResult, UserContextMenuCommand, UserContextMenuCommandContext, UserContextMenuCommandMiddlewareContext, UserSelectMenu, UserSelectMenuKit, UserSelectMenuKitPredicate, UserSelectMenuProps, bootstrapCommandkitCLI, commandkit, createElement, createElement as jsx, createElement as jsxs, createLogger, debounce, CommandKit as default, defer, defineConfig, devOnly, eventWorkerContext, exitContext, flag, getCommandKit, getConfig, getContext, getCurrentDirectory, getElement, getEventWorkerContext, getSourceDirectories, isCommandKitElement, isCommandWorkerContext, isCompilerPlugin, isErrorType, isEventWorkerContext, isInteractionSource, isMessageSource, isRuntimePlugin, makeContextAwareFunction, onApplicationBootstrap, onBootstrap, provideContext, redirect, rethrow, runInEventWorkerContext, setFlagProvider, stopEvents, stopMiddlewares, toFileURL, after as unstable_after, cancelAfter as unstable_cancelAfter, useEnvironment, useStore, version };
46
+ export { ActionRow, ActionRowProps, AnyCommandExecute, AnyCommandKitElement, AppCommand, AppCommandHandler, AppCommandNative, AsyncFunction, AutocompleteCommand, AutocompleteCommandContext, AutocompleteCommandMiddlewareContext, BootstrapFunction, Button, ButtonChildrenLike, ButtonKit, ButtonKitPredicate, ButtonProps, COMMANDKIT_BOOTSTRAP_MODE, COMMANDKIT_CWD, COMMANDKIT_IS_CLI, COMMANDKIT_IS_DEV, COMMANDKIT_IS_TEST, ChannelSelectMenu, ChannelSelectMenuKit, ChannelSelectMenuKitPredicate, ChannelSelectMenuProps, ChatInputCommand, ChatInputCommandContext, type Client, Collection, Command, CommandBuilderLike, CommandContext, CommandContextOptions, CommandData, CommandDataSchema, CommandDataSchemaKey, CommandDataSchemaValue, CommandExecutionMode, CommandFlagContext, CommandKit, CommandKitButtonBuilderInteractionCollectorDispatch, CommandKitButtonBuilderInteractionCollectorDispatchContextData, CommandKitButtonBuilderOnEnd, CommandKitConfiguration, CommandKitElement, CommandKitElementData, CommandKitEnvironment, type CommandKitEnvironmentInternalData, CommandKitEnvironmentType, CommandKitErrorCodes, CommandKitEventDispatch, type CommandKitHMREvent, CommandKitLoggerOptions, CommandKitModalBuilderInteractionCollectorDispatch, CommandKitModalBuilderInteractionCollectorDispatchContextData, CommandKitModalBuilderOnEnd, CommandKitOptions, CommandKitPlugin, CommandKitPluginRuntime, CommandKitSelectMenuBuilderInteractionCollectorDispatch, CommandKitSelectMenuBuilderInteractionCollectorDispatchContextData, CommandKitSelectMenuBuilderOnEnd, CommandMetadata, CommandMetadataFunction, CommandRegistrar, CommandSource, CommandTypeData, CommandsRouter, CommandsRouterOptions, CommonBuilderKit, CommonDirectiveTransformer, CommonDirectiveTransformerOptions, CommonPluginRuntime, CommonSelectMenuProps, CompilerPlugin, CompilerPluginRuntime, Container, ContainerProps, Context, ContextParameters, CustomAppCommandProps, CustomEvaluationContext, CustomEvaluationFunction, DecideFunction, DefaultLogger, ElementType, EvaluationContext, EventFlagContext, EventHandler, EventInterceptor, EventInterceptorContextData, EventInterceptorErrorHandler, EventWorkerContext, EventsRouter, EventsRouterOptions, EventsTree, FeatureFlag, FeatureFlagDefinition, File, FileProps, FlagRunner, Fragment, FragmentElementProps, GenericFunction, HMREventType, ILogger, IdentifyFunction, InteractionCommandContext, InteractionCommandMiddlewareContext, Label, LabelProps, LoadedCommand, Logger, LoggerImpl, MaybeArray, MaybeFalsey, MaybePromise, MediaGallery, MediaGalleryItem, MediaGalleryItemProps, MediaGalleryProps, MentionableSelectMenu, MentionableSelectMenuKit, MentionableSelectMenuKitPredicate, MentionableSelectMenuProps, MessageCommand, MessageCommandContext, MessageCommandMiddlewareContext, MessageCommandOptions, MessageCommandOptionsSchema, MessageCommandParser, MessageContextMenuCommand, MessageContextMenuCommandContext, MessageContextMenuCommandMiddlewareContext, Middleware, MiddlewareContext, MiddlewareContextArgs, Modal, ModalKit, ModalKitPredicate, ModalProps, OnButtonKitClick, OnButtonKitEnd, OnChannelSelectMenuKitSubmit, OnMentionableSelectMenuKitSubmit, OnModalKitEnd, OnModalKitSubmit, OnRoleSelectMenuKitSubmit, OnSelectMenuKitEnd, OnSelectMenuKitSubmit, OnStringSelectMenuKitSubmit, OnUserSelectMenuKitSubmit, ParagraphInput, ParsedCommandData, ParsedEvent, ParsedMessageCommand, PluginTransformParameters, Poll, PollAnswer, PollAnswerProps, PollChildrenType, PollProps, PollQuestion, PollQuestionProps, PreRegisterCommandsEvent, PreparedAppCommandExecution, ResolvableCommand, ResolveBuilderInteraction, RoleSelectMenu, RoleSelectMenuKit, RoleSelectMenuKitPredicate, RoleSelectMenuProps, RunCommand, RuntimePlugin, Section, SectionProps, SelectMenuKitPredicate, SelectMenuProps, Separator, SeparatorProps, ShortInput, SlashCommandMiddlewareContext, StringEncodable, StringSelectMenu, StringSelectMenuKit, StringSelectMenuKitPredicate, StringSelectMenuOption, StringSelectMenuOptionProps, StringSelectMenuProps, TemplateHandler, TextDisplay, TextDisplayProps, TextInput, TextInputProps, Thumbnail, ThumbnailProps, TransformedResult, UserContextMenuCommand, UserContextMenuCommandContext, UserContextMenuCommandMiddlewareContext, UserSelectMenu, UserSelectMenuKit, UserSelectMenuKitPredicate, UserSelectMenuProps, bootstrapCommandkitCLI, commandkit, createElement, createElement as jsx, createElement as jsxs, createLogger, debounce, CommandKit as default, defer, defineConfig, devOnly, emitWarning, eventWorkerContext, exitContext, flag, getCommandKit, getConfig, getContext, getCurrentDirectory, getElement, getEventWorkerContext, getSourceDirectories, isCommandKitElement, isCommandWorkerContext, isCompilerPlugin, isErrorType, isEventWorkerContext, isInteractionSource, isMessageSource, isRuntimePlugin, makeContextAwareFunction, onApplicationBootstrap, onBootstrap, provideContext, redirect, rethrow, runInEventWorkerContext, setFlagProvider, stopEvents, stopMiddlewares, toFileURL, after as unstable_after, cancelAfter as unstable_cancelAfter, useEnvironment, useStore, version, warnDeprecated, warnUnstable };
package/dist/index.js CHANGED
@@ -4,7 +4,7 @@ require('./colors-DL3ucTiT.js');
4
4
  const require_ActionRow = require('./ActionRow-uJxU4UGo.js');
5
5
  const require_error_codes = require('./error-codes-Ds0bnPvT.js');
6
6
  const require_commandkit = require('./commandkit-DabqpQ6v.js');
7
- require('./warning-CszH8HeS.js');
7
+ const require_warning = require('./warning-CszH8HeS.js');
8
8
  require('./common-0Iw8ZeM6.js');
9
9
  require('./common-CCx-FJI4.js');
10
10
  const require_container = require('./container-DC0eQigs.js');
@@ -41,7 +41,7 @@ require('./CommandKitEventsChannel-2l9Za-le.js');
41
41
  require('./store-ZwL2gN6a.js');
42
42
  require('./app-CrjK9yWX.js');
43
43
  require('./ILogger-B0q7p7L1.js');
44
- const require_version = require('./version-q6N-AqDi.js');
44
+ const require_version = require('./version-yKPosjS0.js');
45
45
  const require_feature_flags = require('./feature-flags-BoBV4Dsj.js');
46
46
  const require_init = require('./init-CBb0StSB.js');
47
47
  let discord_js = require("discord.js");
@@ -129,6 +129,7 @@ exports.default = src_default;
129
129
  exports.defer = require_commandkit.defer;
130
130
  exports.defineConfig = require_commandkit.defineConfig;
131
131
  exports.devOnly = require_commandkit.devOnly;
132
+ exports.emitWarning = require_warning.emitWarning;
132
133
  exports.eventWorkerContext = require_EventWorkerContext.eventWorkerContext;
133
134
  exports.exitContext = require_commandkit.exitContext;
134
135
  exports.flag = require_feature_flags.flag;
@@ -163,4 +164,6 @@ exports.unstable_cancelAfter = require_commandkit.cancelAfter;
163
164
  exports.useEnvironment = require_commandkit.useEnvironment;
164
165
  exports.useStore = require_commandkit.useStore;
165
166
  exports.version = require_version.version;
167
+ exports.warnDeprecated = require_warning.warnDeprecated;
168
+ exports.warnUnstable = require_warning.warnUnstable;
166
169
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../src/index.ts"],"sourcesContent":["import { CommandKit } from './commandkit';\n\nexport default CommandKit;\n\nexport * from './commandkit';\nexport * from './components';\nexport * from './components/common/EventInterceptor';\nexport * from './config/config';\nexport * from './context/async-context';\nexport {\n type CommandKitEnvironmentInternalData,\n CommandKitEnvironment,\n CommandKitEnvironmentType,\n cancelAfter as unstable_cancelAfter,\n after as unstable_after,\n} from './context/environment';\nexport * from './app/index';\nexport * from './logger/DefaultLogger';\nexport * from './logger/ILogger';\nexport * from './logger/Logger';\nexport * from './app/router/index';\nexport type * from './types';\nexport * from './version';\nexport * from './plugins/index';\nexport * from './flags/feature-flags';\nexport {\n getCurrentDirectory,\n getSourceDirectories,\n devOnly,\n debounce,\n defer,\n} from './utils/utilities';\nexport { toFileURL } from './utils/resolve-file-url';\nexport * from './app/interrupt/signals';\nexport type { CommandKitHMREvent } from './utils/dev-hooks';\nexport * from './utils/constants';\nexport * from './app/events/EventWorkerContext';\nexport { CommandKitErrorCodes, isErrorType } from './utils/error-codes';\nexport { Collection, type Client } from 'discord.js';\n\n// cli\nexport { bootstrapCommandkitCLI } from './cli/init';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,kBAAe"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../src/index.ts"],"sourcesContent":["import { CommandKit } from './commandkit';\n\nexport default CommandKit;\n\nexport * from './commandkit';\nexport * from './components';\nexport * from './components/common/EventInterceptor';\nexport * from './config/config';\nexport * from './context/async-context';\nexport {\n type CommandKitEnvironmentInternalData,\n CommandKitEnvironment,\n CommandKitEnvironmentType,\n cancelAfter as unstable_cancelAfter,\n after as unstable_after,\n} from './context/environment';\nexport * from './app/index';\nexport * from './logger/DefaultLogger';\nexport * from './logger/ILogger';\nexport * from './logger/Logger';\nexport * from './app/router/index';\nexport type * from './types';\nexport * from './version';\nexport * from './plugins/index';\nexport * from './flags/feature-flags';\nexport {\n getCurrentDirectory,\n getSourceDirectories,\n devOnly,\n debounce,\n defer,\n} from './utils/utilities';\nexport { warnDeprecated, emitWarning, warnUnstable } from './utils/warning';\nexport { toFileURL } from './utils/resolve-file-url';\nexport * from './app/interrupt/signals';\nexport type { CommandKitHMREvent } from './utils/dev-hooks';\nexport * from './utils/constants';\nexport * from './app/events/EventWorkerContext';\nexport { CommandKitErrorCodes, isErrorType } from './utils/error-codes';\nexport { Collection, type Client } from 'discord.js';\n\n// cli\nexport { bootstrapCommandkitCLI } from './cli/init';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,kBAAe"}
@@ -1,2 +1,2 @@
1
- import { SerializerType } from "../constants-CCFSX2NG.js";
1
+ import { SerializerType } from "../constants-DwLQQVLy.js";
2
2
  export { SerializerType };
package/dist/kv/kv.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import "../constants-CCFSX2NG.js";
2
- import { SerializedValue } from "../serde-D4H23l2F.js";
1
+ import "../constants-DwLQQVLy.js";
2
+ import { SerializedValue } from "../serde-BLi3Garu.js";
3
3
  import { DatabaseSync } from "node:sqlite";
4
4
 
5
5
  //#region src/kv/kv.d.ts
@@ -1,3 +1,3 @@
1
- import "../constants-CCFSX2NG.js";
2
- import { SerializedValue, deserializer, serializer } from "../serde-D4H23l2F.js";
1
+ import "../constants-DwLQQVLy.js";
2
+ import { SerializedValue, deserializer, serializer } from "../serde-BLi3Garu.js";
3
3
  export { SerializedValue, deserializer, serializer };
@@ -8,4 +8,4 @@
8
8
  declare function toFileURL(filePath: string, withTs?: boolean): string;
9
9
  //#endregion
10
10
  export { toFileURL };
11
- //# sourceMappingURL=resolve-file-url-DFtR8jRR.d.ts.map
11
+ //# sourceMappingURL=resolve-file-url-BDJud8AT.d.ts.map
@@ -1,4 +1,4 @@
1
- import { SerializerType } from "./constants-CCFSX2NG.js";
1
+ import { SerializerType } from "./constants-DwLQQVLy.js";
2
2
 
3
3
  //#region src/kv/serde.d.ts
4
4
  interface SerializedValue {
@@ -9,4 +9,4 @@ declare function serializer(value: any): SerializedValue;
9
9
  declare function deserializer(serialized: SerializedValue): any;
10
10
  //#endregion
11
11
  export { SerializedValue, deserializer, serializer };
12
- //# sourceMappingURL=serde-D4H23l2F.d.ts.map
12
+ //# sourceMappingURL=serde-BLi3Garu.d.ts.map
@@ -1,2 +1,2 @@
1
- import { CommandKitError, CommandKitErrorCodes, createCommandKitError, isCommandKitError, isErrorType } from "../error-codes-BiNRVMiV.js";
1
+ import { CommandKitError, CommandKitErrorCodes, createCommandKitError, isCommandKitError, isErrorType } from "../error-codes-DM-Mbprh.js";
2
2
  export { CommandKitError, CommandKitErrorCodes, createCommandKitError, isCommandKitError, isErrorType };
@@ -1,2 +1,2 @@
1
- import { toFileURL } from "../resolve-file-url-DFtR8jRR.js";
1
+ import { toFileURL } from "../resolve-file-url-BDJud8AT.js";
2
2
  export { toFileURL };
@@ -1,25 +1,2 @@
1
- //#region src/utils/warning.d.ts
2
- /**
3
- * Emit a warning message to the console as a CommandKitWarning.
4
- * @param message - The warning message to emit.
5
- * @param code - The warning code (default is 'CommandKitWarning').
6
- */
7
- declare function emitWarning(message: string, code?: string): void;
8
- /**
9
- * Emit a warning for unstable features in CommandKit.
10
- * @param name - The name of the unstable feature.
11
- * @example warnUnstable('MyUnstableFeature');
12
- */
13
- declare function warnUnstable(name: string): void;
14
- declare function warnDeprecated({
15
- what,
16
- message,
17
- where
18
- }: {
19
- what: string;
20
- where?: string;
21
- message?: string;
22
- }): void;
23
- //#endregion
24
- export { emitWarning, warnDeprecated, warnUnstable };
25
- //# sourceMappingURL=warning.d.ts.map
1
+ import { emitWarning, warnDeprecated, warnUnstable } from "../warning-Ddig3lHP.js";
2
+ export { emitWarning, warnDeprecated, warnUnstable };
@@ -6,7 +6,7 @@
6
6
  /**
7
7
  * The current version of CommandKit.
8
8
  */
9
- const version = "1.2.0-dev.20251015015506";
9
+ const version = "1.2.0-dev.20251015125345";
10
10
 
11
11
  //#endregion
12
12
  Object.defineProperty(exports, 'version', {
@@ -15,4 +15,4 @@ Object.defineProperty(exports, 'version', {
15
15
  return version;
16
16
  }
17
17
  });
18
- //# sourceMappingURL=version-q6N-AqDi.js.map
18
+ //# sourceMappingURL=version-yKPosjS0.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"version-q6N-AqDi.js","names":[],"sources":["../src/version.ts"],"sourcesContent":["/**\n * @private\n */\nfunction $version(): string {\n 'use macro';\n return require('../package.json').version;\n}\n\n/**\n * The current version of CommandKit.\n */\nexport const version: string = $version();\n"],"mappings":";;;;;;;;AAWA,MAAa,UAA4B"}
1
+ {"version":3,"file":"version-yKPosjS0.js","names":[],"sources":["../src/version.ts"],"sourcesContent":["/**\n * @private\n */\nfunction $version(): string {\n 'use macro';\n return require('../package.json').version;\n}\n\n/**\n * The current version of CommandKit.\n */\nexport const version: string = $version();\n"],"mappings":";;;;;;;;AAWA,MAAa,UAA4B"}
package/dist/version.js CHANGED
@@ -1,3 +1,3 @@
1
- const require_version = require('./version-q6N-AqDi.js');
1
+ const require_version = require('./version-yKPosjS0.js');
2
2
 
3
3
  exports.version = require_version.version;
@@ -0,0 +1,25 @@
1
+ //#region src/utils/warning.d.ts
2
+ /**
3
+ * Emit a warning message to the console as a CommandKitWarning.
4
+ * @param message - The warning message to emit.
5
+ * @param code - The warning code (default is 'CommandKitWarning').
6
+ */
7
+ declare function emitWarning(message: string, code?: string): void;
8
+ /**
9
+ * Emit a warning for unstable features in CommandKit.
10
+ * @param name - The name of the unstable feature.
11
+ * @example warnUnstable('MyUnstableFeature');
12
+ */
13
+ declare function warnUnstable(name: string): void;
14
+ declare function warnDeprecated({
15
+ what,
16
+ message,
17
+ where
18
+ }: {
19
+ what: string;
20
+ where?: string;
21
+ message?: string;
22
+ }): void;
23
+ //#endregion
24
+ export { emitWarning, warnDeprecated, warnUnstable };
25
+ //# sourceMappingURL=warning-Ddig3lHP.d.ts.map
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "commandkit",
3
3
  "description": "Beginner friendly command & event handler for Discord.js",
4
- "version": "1.2.0-dev.20251015015506",
4
+ "version": "1.2.0-dev.20251015125345",
5
5
  "license": "GPL-3.0-only",
6
6
  "type": "commonjs",
7
7
  "main": "./dist/index.js",
@@ -180,7 +180,7 @@
180
180
  "tsx": "^4.19.2",
181
181
  "typescript": "^5.7.3",
182
182
  "vitest": "^3.0.5",
183
- "tsconfig": "0.0.0-dev.20251015015506"
183
+ "tsconfig": "0.0.0-dev.20251015125345"
184
184
  },
185
185
  "engines": {
186
186
  "node": ">=24"