Skip to content

chore(deps): bump @djs-core/runtime from 1.10.0 to 1.12.0#139

Closed
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/bun/djs-core/runtime-1.12.0
Closed

chore(deps): bump @djs-core/runtime from 1.10.0 to 1.12.0#139
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/bun/djs-core/runtime-1.12.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jun 18, 2026

Copy link
Copy Markdown
Contributor

Bumps @djs-core/runtime from 1.10.0 to 1.12.0.

Release notes

Sourced from @​djs-core/runtime's releases.

@​djs-core/runtime@​1.12.0

Minor Changes

  • 1313559: Add .autocomplete(optionName, fn) helper on Command for per-option autocomplete handlers. The function receives (value, interaction) and returns choices directly — no need to call getFocused() or respond() manually. Multiple options are supported by chaining. .runAutocomplete() remains available as a low-level fallback and is called when no per-option handler matches.

  • 9cbd5e7: Add automatic TypeScript inference for command options in .run(). Option names and required status are inferred from the builder chain — no manual typing needed.

    new Command()
      .addStringOption((opt) => opt.setName("fruit").setRequired(true))
      .addStringOption((opt) => opt.setName("color"))
      .run(async (interaction, options) => {
        options.fruit; // string
        options.color; // string | null
      });

Patch Changes

  • fe6bbc7: Refactor ButtonHandler, ModalHandler, and SelectMenuHandler to extend a shared BaseHandler abstract class, eliminating ~90 lines of duplicated Map/dispatch logic.

@​djs-core/runtime@​1.11.0

Minor Changes

  • 96bc0d0: Security

    • Remove shell: true from spawnSync calls in plugin installer (prevents RCE via crafted plugin names)

    New APIs

    • closeDataStore() — cleanly closes the SQLite database and stops the cleanup interval (useful for shutdown hooks and tests)
    • isUnknownCommandError() exported from utils/discord-errors — typed guard for Discord API error 10063

    Bug fixes

    • isChatInputCommand() replaces deprecated isCommand() — context menu interactions no longer incorrectly hit the slash command handler
    • getInteractionData now returns { data, expired } | null instead of unknown | undefined, distinguishing expired tokens from tokens that were never stored
    • ephemeral: true replaced with flags: MessageFlags.Ephemeral in error replies
    • Duplicate GuildIntegrations and GuildScheduledEvents intents removed from defaults
    • CoreConfig now includes partials and experimental.bundle fields, matching the public Config interface

    Performance

    • DataStore is now lazily initialized — the database and cleanup interval only start on first use
    • CommandHandler resolves routes via Map.get() (O(1)) instead of Array.find() (O(n))

    Refactoring

    • WithCustomId mixin eliminates ~230 lines duplicated across 7 interaction classes
    • buildCommandStructure / routesToEntries extracted to utils/compile-command.ts
    • resolvePlugin() extracted to utils/plugin-resolver.ts

... (truncated)

Changelog

Sourced from @​djs-core/runtime's changelog.

1.12.0

Minor Changes

  • 1313559: Add .autocomplete(optionName, fn) helper on Command for per-option autocomplete handlers. The function receives (value, interaction) and returns choices directly — no need to call getFocused() or respond() manually. Multiple options are supported by chaining. .runAutocomplete() remains available as a low-level fallback and is called when no per-option handler matches.

  • 9cbd5e7: Add automatic TypeScript inference for command options in .run(). Option names and required status are inferred from the builder chain — no manual typing needed.

    new Command()
      .addStringOption((opt) => opt.setName("fruit").setRequired(true))
      .addStringOption((opt) => opt.setName("color"))
      .run(async (interaction, options) => {
        options.fruit; // string
        options.color; // string | null
      });

Patch Changes

  • fe6bbc7: Refactor ButtonHandler, ModalHandler, and SelectMenuHandler to extend a shared BaseHandler abstract class, eliminating ~90 lines of duplicated Map/dispatch logic.

1.11.0

Minor Changes

  • 96bc0d0: Security

    • Remove shell: true from spawnSync calls in plugin installer (prevents RCE via crafted plugin names)

    New APIs

    • closeDataStore() — cleanly closes the SQLite database and stops the cleanup interval (useful for shutdown hooks and tests)
    • isUnknownCommandError() exported from utils/discord-errors — typed guard for Discord API error 10063

    Bug fixes

    • isChatInputCommand() replaces deprecated isCommand() — context menu interactions no longer incorrectly hit the slash command handler
    • getInteractionData now returns { data, expired } | null instead of unknown | undefined, distinguishing expired tokens from tokens that were never stored
    • ephemeral: true replaced with flags: MessageFlags.Ephemeral in error replies
    • Duplicate GuildIntegrations and GuildScheduledEvents intents removed from defaults
    • CoreConfig now includes partials and experimental.bundle fields, matching the public Config interface

    Performance

    • DataStore is now lazily initialized — the database and cleanup interval only start on first use
    • CommandHandler resolves routes via Map.get() (O(1)) instead of Array.find() (O(n))

    Refactoring

    • WithCustomId mixin eliminates ~230 lines duplicated across 7 interaction classes

... (truncated)

Commits
  • 5f5bd1a Version Packages (#55)
  • 758d29b fix(ci): ignore website/ in biome, fix @​ts-ignore text in comments
  • dbfc2d5 fix(ci): replace @​ts-expect-error with @​ts-ignore on Command option overrides
  • a1d6f78 fix(ci): fix biome and knip failures
  • 9cbd5e7 feat(runtime): add automatic TypeScript inference for command options in .run()
  • 1313559 feat(runtime): add per-option autocomplete helper on Command
  • fe6bbc7 refactor(runtime): extract BaseHandler to unify Button, Modal, SelectMenu han...
  • b688cff chore: pin all dependency versions, remove range specifiers
  • 62976bd fix(ci): migrate biome config to 2.5.0, fix knip and noNonNullAssertion errors
  • 2c6b7e6 fix(runtime): use correct data property name in ContextMenu.cloneWithType
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [@djs-core/runtime](https://github.com/Cleboost/djs-core/tree/HEAD/packages/runtime) from 1.10.0 to 1.12.0.
- [Release notes](https://github.com/Cleboost/djs-core/releases)
- [Changelog](https://github.com/Cleboost/djs-core/blob/master/packages/runtime/CHANGELOG.md)
- [Commits](https://github.com/Cleboost/djs-core/commits/@djs-core/runtime@1.12.0/packages/runtime)

---
updated-dependencies:
- dependency-name: "@djs-core/runtime"
  dependency-version: 1.12.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Jun 18, 2026
@dependabot @github

dependabot Bot commented on behalf of github Jun 23, 2026

Copy link
Copy Markdown
Contributor Author

Superseded by #143.

@dependabot dependabot Bot closed this Jun 23, 2026
@dependabot dependabot Bot deleted the dependabot/bun/djs-core/runtime-1.12.0 branch June 23, 2026 15:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants