New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@sapphire/framework

Package Overview
Dependencies
Maintainers
0
Versions
860
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sapphire/framework - npm Package Versions

1
8485

1.0.0-alpha.9

Diff

Changelog

Source

1.0.0-alpha.9 (2021-02-07)

⚠ BREAKING CHANGES

  • preconditions: Changed PreconditionContext.command to external

Features

  • events: added UnknownCommandPayload.commandName (#166) (3dbcffd)

  • preconditions: make IPreconditionContainer#run's context optional (#167) (57ad8d2)

favna.
published 1.0.0-alpha.8 •

Changelog

Source

1.0.0-alpha.8 (2021-02-07)

⚠ BREAKING CHANGES

  • events: Changed Events.UnknownCommandName event arguments to UnknownCommandNamePayload.
  • events: Changed Events.UnknownCommand event arguments to UnknownCommandPayload.

Co-authored-by: Jeroen Claassens support@favware.tech

  • events: CoreMessageParser is not longer a message event listener

Features

  • events: create Events.PreMessageParsed (#164) (0311838)

  • events: remove UnknownCommandName, changed UnknownCommand (#165) (c3273d1)

favna.
published 1.0.0-alpha.7 •

Changelog

Source

1.0.0-alpha.7 (2021-02-06)

⚠ BREAKING CHANGES

  • errors: Changed UserError identifier from 'ArgumentBooleanInvalidBoolean' to Identifiers.ArgumentBoolean.
  • errors: Changed UserError identifier from 'ArgumentCategoryChannelInvalidChannel' to Identifiers.ArgumentCategoryChannel.
  • errors: Changed UserError identifier from 'ArgumentChannelMissingChannel' to Identifiers.ArgumentChannel.
  • errors: Changed UserError identifier from 'ArgumentDateInvalidNumber' to Identifiers.ArgumentDate.
  • errors: Changed UserError identifier from 'ArgumentDateTooSmall' to Identifiers.ArgumentDateTooSmall.
  • errors: Changed UserError identifier from 'ArgumentDateTooBig' to Identifiers.ArgumentDateTooBig.
  • errors: Changed UserError identifier from 'ArgumentDMChannelInvalidChannel' to Identifiers.ArgumentDMChannel.
  • errors: Changed UserError identifier from 'ArgumentFloatInvalidFloat' to Identifiers.ArgumentFloat.
  • errors: Changed UserError identifier from 'ArgumentFloatTooSmall' to Identifiers.ArgumentFloatTooSmall.
  • errors: Changed UserError identifier from 'ArgumentFloatTooBig' to Identifiers.ArgumentFloatTooBig.
  • errors: Changed UserError identifier from 'ArgumentGuildChannelMissingGuild' to Identifiers.ArgumentGuildChannelMissingGuild.
  • errors: Changed UserError identifier from 'ArgumentGuildChannelUnknownChannel' to Identifiers.ArgumentGuildChannel.
  • errors: Changed UserError identifier from 'ArgumentHyperlinkInvalidURL' to Identifiers.ArgumentHyperlink.
  • errors: Changed UserError identifier from 'ArgumentIntegerInvalidNumber' to Identifiers.ArgumentInteger.
  • errors: Changed UserError identifier from 'ArgumentIntegerTooSmall' to Identifiers.ArgumentIntegerTooSmall.
  • errors: Changed UserError identifier from 'ArgumentIntegerTooBig' to Identifiers.ArgumentIntegerTooBig.
  • errors: Changed UserError identifier from 'ArgumentMemberMissingGuild' to Identifiers.ArgumentMemberMissingGuild.
  • errors: Changed UserError identifier from 'ArgumentMemberUnknownMember' to Identifiers.ArgumentMember.
  • errors: Changed UserError identifier from 'ArgumentMessageUnknownMessage' to Identifiers.Message.
  • errors: Changed UserError identifier from 'ArgumentNewsChannelInvalidChannel' to Identifiers.NewsChannel.
  • errors: Changed UserError identifier from 'ArgumentNumberInvalidNumber' to Identifiers.Number.
  • errors: Changed UserError identifier from 'ArgumentNumberTooSmall' to Identifiers.ArgumentNumberTooSmall.
  • errors: Changed UserError identifier from 'ArgumentNumberTooBig' to Identifiers.ArgumentNumberTooBig.
  • errors: Changed UserError identifier from 'ArgumentRoleMissingGuild' to Identifiers.ArgumentRoleMissingGuild.
  • errors: Changed UserError identifier from 'ArgumentRoleUnknownRole' to Identifiers.Role.
  • errors: Changed UserError identifier from 'ArgumentStringTooShort' to Identifiers.ArgumentStringTooShort.
  • errors: Changed UserError identifier from 'ArgumentStringTooLong' to Identifiers.ArgumentStringTooLong.
  • errors: Changed UserError identifier from 'ArgumentTextChannelInvalidChannel' to Identifiers.TextChannel.
  • errors: Changed UserError identifier from 'ArgumentUserUnknownUser' to Identifiers.User.
  • errors: Changed UserError identifier from 'ArgumentVoiceChannelInvalidChannel' to Identifiers.VoiceChannel.
  • errors: Changed UserError identifier from 'CommandDisabled' to Identifiers.CommandDisabled.
  • errors: Changed UserError identifier from 'UnavailableArgument' to Identifiers.ArgsUnavailable.
  • errors: Changed UserError identifier from 'MissingArguments' to Identifiers.ArgsMissing.
  • errors: Changed UserError identifier from 'Cooldown' to Identifiers.PreconditionCooldown.
  • errors: Changed UserError identifier from 'DMOnly' to Identifiers.PreconditionDMOnly.
  • errors: Changed UserError identifier from 'GuildOnly' to Identifiers.PreconditionGuildOnly.
  • errors: Changed UserError identifier from 'NSFW' to Identifiers.PreconditionNSFW.
  • errors: Changed UserError identifier from 'Permissions' to Identifiers.PreconditionPermissions.
  • preconditions: Added PreconditionContext as third parameter to IPreconditionContainer#run.
  • preconditions: Changed PermissionsPrecondition#context from PreconditionContext to Record<PropertyKey, unknown>.
  • preconditions: Changed PreconditionContainerSingle#context from PreconditionContext to Record<PropertyKey, unknown>.
  • preconditions: Changed PreconditionSingleResolvableDetails#context from PreconditionContext to Record<PropertyKey, unknown>.
  • preconditions: Added PreconditionContext as third parameter to IPreconditionCondition#run.
  • args: changed Args.err to return Err<ArgumentError<T>> instead of ArgumentError<T>

Features

  • args: add Args#ok, refactored Args#error to return Err<ArgumentError<T>> (#159) (65316a6)
  • args: change visibility of parser from private to protected (#160) (3ad6f85)
  • command: add CommandContext#commandPrefix (#157) (c8c7417)
  • command-events: pass more context (#162) (11a6274)
  • errors: expose all identifiers in an enum (#161) (3371f35)
  • preconditions: add context to Container and Condition (#158) (de6bc03)
favna.
published 1.0.0-alpha.6 •

Changelog

Source

1.0.0-alpha.6 (2021-02-04)

Bug Fixes

favna.
published 1.0.0-alpha.5 •

Changelog

Source

1.0.0-alpha.5 (2021-02-02)

⚠ BREAKING CHANGES

  • client: client.arguments is now client.stores.get('arguments')
  • client: client.commands is now client.stores.get('commands')
  • client: client.events is now client.stores.get('events')
  • client: client.preconditions is now client.stores.get('preconditions')
  • client: client.registerUserDirectories is now client.stores.registerUserDirectories
  • client: client.deregisterStore is now client.stores.deregister
  • client: client.registerStore is now client.stores.register
  • command parser: The events prefixedMessage, unknownCommandName, and unknownCommand 3rd parameter now have the type string | RegExp
  • command parser: CommandContext.prefix now has the type string | RegExp
  • The UserError, PreconditionError, ArgumentError classes, and the ok, err functions now take a single parameter which is an object of properties, rather than multiple parameters.

Features

  • args: add Args#commandContext (#154) (63c195b)
  • client: change stores from a Set to a Map (#129) (01f7161)
  • command: add generateDashLessAliases (#146) (e94649c)
  • command parser: add regexPrefix client option (#145) (86e6b79)
  • preconditions: make Permission errors less vague (#151) (c6b04e1)
  • make errors take objects instead of many params (#144) (f638410)

Bug Fixes

  • update discord redirect URL (61edce2)
favna.
published 1.0.0-alpha.4 •

Changelog

Source

1.0.0-alpha.4 (2021-01-28)

Features

Bug Fixes

  • add discord.js utilities for type guards (cf74431)
favna.
published 1.0.0-alpha.3 •

Changelog

Source

1.0.0-alpha.3 (2021-01-14)

Features

Bug Fixes

favna.
published 1.0.0-alpha.2 •

Changelog

Source

1.0.0-alpha.2 (2021-01-03)

Features

Bug Fixes

favna.
published 1.0.0-alpha.1 •

Changelog

Source

1.0.0-alpha.1 (2020-12-28)

Features

  • new preconditions (#119) (10c7a1b)
  • arguments: Add Message argument, use discord-utilities (#118) (c70af0a)
  • logger: make Logger.levels protected (5a4b8d6)
kyranet
published 1.0.0-alpha.0 •

Changelog

Source

1.0.0-alpha.0 (2020-12-22)

Features

  • re-export public-facing structures from pieces (#113) (648a57d)
  • output type declarations to a single .d.ts file (#112) (2652a9b)
  • allow case insensitive commands (#105) (a9485ec)
  • arguments: add CoreBoolean argument (#96) (c4c25c3)
  • arguments: Add extended argument functionality (#101) (8fa9e7b)
  • arguments: added more resolvers (#63) (4eb1016)
  • arguments: Improve ID/mention checking of members, roles, and users (#100) (008dd44)
  • arguments: more helpers, added richer errors (#59) (59027d8)
  • commands: add an optional context parameter (#93) (8e1d4f8)
  • add event types to event pieces (#27) (770101f)
  • add pregenericsinitialization plugin hook (#45) (972c2d4)
  • added a lot more features (4051121)
  • added cooldown precondition (#76) (cfabf52)
  • added events (524f58c)
  • added missing imports (7688a0a)
  • added permissions precondition and utilities (#64) (123a975)
  • added Result, finished PreconditionContainer (08092b1)
  • added some minor QoL features, and a lot of docs (#84) (909efb7)
  • async login plugin hooks (#46) (95be214)
  • implement additional parsing methods for core arguments (#82) (33dc791)
  • pass error into Events.CommandDenied (#77) (d329b0f)
  • args: add Args#repeat (5924a53)
  • args: add overload for IArgument (#39) (0adac4b)
  • client: move auto-register to registerUserDirectories (cbb7667)
  • client: register and load stores (#31) (db581a9)
  • core: add base i18n handlers (#43) (a83b77a)
  • core: added logger (#38) (021085c)
  • events: add commandSuccess, change commandFinish (#65) (0d107e4)
  • flags: Add flag parsing (#47) (905d1fc)
  • index: re-export useful exports from @sapphire/pieces (#40) (d89ee44)
  • loader: automatically register client's directories (ff86b04)
  • commands and command store (#2) (73cdf0e)
  • finish command handler (#29) (a890d74)
  • implement monitors (#1) (9fde455)
  • initial work in precondition runners (bd2be01)
  • more events (7f7be02)
  • plugin support (#28) (a992b7e)
  • type documented events (#25) (df95f00)
  • Monitor: add decorators (#7) (5d3accd)

Bug Fixes

  • renamed Events.SharedReady -> Events.ShardReady (#107) (d8ca2c0)
  • args: add boolean to ArgType (#97) (67b4da8)
  • events: Return early in CorePreCommandRun if the command is not enabled (#99) (7ac3ba0)
  • argument undefined error (#34) (23de1b2)
  • do not run disabled commands (#78) (a24175c)
  • failing command tests (#24) (ceeb286)
  • make tests pass (3068899)
  • remove bug breaking prefixless commands (#80) (fc40a6c)
  • resolved bug where all pieces were nameless (989e0c7)
  • resolved build errors (09bb56f)
  • small docs inconsistency (#87) (f560742)
  • small typo (#53) (cee4a77)
  • typing error (#68) (961c33b)
  • args: make options optional (584c6ef)
  • arguments: error names (#36) (6b3c195)
  • command-handler: handle command name resolution better (0c868e1)
  • command-handler: make checks more strict (#62) (77352e8)
  • command-handler: pass parameters through all events (44cfe86)
  • command-handler: use the right variable (a12e61e)
  • core: arguments docs (#44) (1421c05)
  • eslint: cast idOffset to a number (923bf43)
  • event: set emitter to client if unset (a3bb96e)
1
8485
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc