All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Fix unsafe keyword argument parsing.
- Updated matrix-basic-types peer dependency for V12 room ID's.
-
The
TextCommandReadercan now read V12 room ID's. -
The mention detection regex has been simplified.
- The prepare step was changed to postinstall by a misunderstanding.
@gnuxie/typescript-resultwas locally linked in package-lock.json smh.
- Account for differences in yarn's intepretation of the
preparescript and modern npm's.
- Upgraded from yarn classic to npm.
- Updated outdated peer dependency for @the-draupnir-project/matrix-basic-types
- Quote syntax to quote strings.
- Boolean presentation type and translator to string.
- Added a pathway to create negative integers.
- Return an
UnexpectedArgumentErrorinstead of aResultErrorwhen an unexpected additional argument is provided to a command.
- Fixed a bug in the command dispatcher normaliser that would mean only the first argument or designator to any command would be included in the normalised command. the-draupnir-project/Draupnir#707.
- The signature of the
CommandDispatcherprefixExtractorcallback has been changed so that it is possible to transform the entire command body with acommandNormaliser. This was changed primarily to fix the-draupnir-project/Draupnir#678.
makeCommandNormaliserhas been added that covers all the typical corner cases for making a bot respond to mentions.
-
Numbers will now be parsed by the
TextCommandReaderas a new number presentaiton type. -
PresentationTypeTranslatorsnow exist so that you can allow presentation types to be translated between each other. -
Several standard presentation type translators have been created that target the
StringPresentationType. This is because the command reader parses types such as matrix user id's into specialized ones, and this can mess with commands that are accepting a string. For example, a reason for a ban.
- Added special handing of the
--no-confirmkeyword to the matrix interface adaptor. This allows you to specify confirmation prompts for commands.
-
<h1>through<h6>are now supported in DeadDocument. -
<hr />is now supported in DeadDocument.
- Improved inference on
MatrixInterfaceAdaptor['describeRenderer'].
- Verify that commands have renderers inside command dispatcher.
- Upgraded to
@the-draupnir-project/matrix-basic-types@0.2.0. - Upgraded to
@gnuxie/typescript-result@1.0.0.
RestParameterDescriptioncan now only prompt one presentation for rest.
CommandExecutorHelpernow has aparseAndInvokemethod to aid unit testing commands.
- When an argument is missing, command parsers will always get a
PromptRequiredErrorif a prompt is available on the associated parameter description.
MatrixInterfaceAdaptorcallbacks have been simplified and moved into a common interface.
CommandExecutorHelpertype inference.CommandExecutorHelperkeyword properties are now partial instead of required.
CommandExecutorHelperto help unit test command executors.
- A bug where command designators were not interned into command entries.
CompleteCommand.toPartialCommand()method was missing after parsing commands with the standard command parser.
- Everything.
- Better inference from parameter descriptions, no need to specify types in the executor.
- Tests moved from Draupnir, some bugs squashed.
- Too much work done.
- Initial release.