Releases: evaera/Cmdr
Cmdr v1.12.0
Warning: This update includes a critical security fix
Your attention is drawn to this this security advisory.
- Add
convertTimestamp
default command, outputs a human-readable timestamp from epoch seconds - Add
positiveInteger
,nonNegativeInteger
,byte
(0-255),digit
(0-9) built-in types (including respective plural types) - Add
json
built-in type, takes in a Json string and provides a Luau table - Add internal IsServer assertions for
RegisterDefaultCommands
andcommandServerScript
- Add 'tips' to the help command output
- Make window scroll to bottom on input
- Make fuzzy finders search the entire string, rather than looking at the start
- Make autocomplete menu scrollable
- Fix window not resizing on clear
- Remove global initialization scripts feature for security reasons
If you relied on the global initialization scripts feature (for instance - to register aliases) you should use CmdrClient.Dispatcher:Run("insert command string")
.
User-specific initialization scripts have not been removed and will continue to run.
More on global initialization scripts
You can get closer to the previous global initialization scripts feature by running these three commands as part of your CmdrClient:
alias \"init-edit-global|Edit the global initialization script for all users\" edit ${var $init} \\\\\n && var= $init ||
alias \"init-run-global|Re-runs the global initialization script manually.\" run-lines ${var $init}
init-run-global
Your existing global initialization scripts will continue to work, so long as
run-lines ${var $init}
continues to be executed.We recommend avoiding this behaviour, as described in the security advisory linked above, this could lead to a security incident.
Pull Requests
- Implement auto scroll to the bottom of the canvas on user text input by @anyastrophic in #263
- Fix Window Resizing by @wilyt1 in #265
- Add Command to Convert Timestamp by @wilyt1 in #266
- Delay Updating the Window Height by @wilyt1 in #273
- Add More Number Types by @wilyt1 in #275
- Improve FuzzyFind/AutoComplete by @Sxribe in #269
- Fix AutoComplete Menu Max Size by @wilyt1 in #268
- init-edit and init-edit-global permission fix by @noatblok in #279
- Add JSON Type by @wilyt1 in #274
- Implement Errors for commandServerScript and RegisterDefaultCommands by @wilyt1 in #277
- Add Tips To Help Command by @wilyt1 in #278
New Contributors
- @anyastrophic made their first contribution in #263
- @Sxribe made their first contribution in #269
- @noatblok made their first contribution in #279
Full Changelog: v1.11.0...v1.12.0
Cmdr v1.11.0
Cmdr v1.11.0
- Add support for new Roblox CoreGui Chat
- Add ArgumentOperatorAliases option to types which allows specifying short hands like "me", "others", "all", etc for any type
Pull Requests
- Remove assets/ and docs/ from published Wally package by @autonordev in #257
- Fix command bar being obscured by TextChatService by @CAZ-H in #259
- Bump json-schema and jsprim in /docs by @dependabot in #262
- Bump minimatch from 3.0.4 to 3.1.2 in /docs by @dependabot in #258
- Add ArgumentOperatorAliases to Player types by @benhdev in #261
New Contributors
Full Changelog: v1.10.0...v1.11.0
Cmdr v1.10.0
Cmdr v1.10.0
- Improve help command
- Alias command now supports optional arguments
- Legacy RoStrap support has been removed
- Command string text size is now capped at 100K
- Improved error messages when registering commands
- Improved docs
- Improved automatic line sizing
- Fix bug causing var and varSet to yield on require which could make clients fetch server modules too late
- The
run-lines
command now runs on the client
Pull requests
- Typo in Registry:RegisterType by @Ozzypig in #235
- Fix Help Command Bug by @wilyt1 in #246
- Add Optional Argument to Alias by @wilyt1 in #247
- Remove RoStrap support by @autonordev in #250
- Change var and varSet Commands to Not Yield on Require by @wilyt1 in #245
- Make the help command better handle commands without a description by @autonordev in #253
- Add Further Validation to Command Objects by @wilyt1 in #254
- Add selene to aftman manifest by @autonordev in #252
- Mention Wally as a setup option in docs by @seyaidev in #244
- Bump http-cache-semantics from 4.1.0 to 4.1.1 in /docs by @dependabot in #242
- Automatic Line Sizing by @shane-sommer in #231
- Improve run-lines Functionality by @TheNexusAvenger in #233
New Contributors
Full Changelog: v1.9.0...v1.10.0
Cmdr v1.9.0
v1.9.0
- Significantly improved the performance of Util.EmulateTabstops for long strings by using a string builder table (~250-350x) (#190)
- Allows for long strings to be displayed in the output without a freeze
- Added column logic to properly align text containing newlines
- Fix a new error caused by
var
&varSet
in places with DataStore access disabled. (#188) - Fix incorrect DataStore used by
var
andvarSet
commands. - Fix incorrect number of arguments passed to
AutoComplete
,Validate
andParse
on using value operators like**
and.
(Types). - Fix
ValidateOnce
not working on types created withUtil.MakeListableType
. - Fix label positioning broke by roblox update
- Update announce command to check if sender and recipient can chat
- Added RichText option to Window:AddLine
- Replace TeleportPartyAsync with TeleportAsync in teleport command
- Scroll to bottom on typing began
Pull requests
- Update endingUnit String Pattern by @wilyt1 in #159
- Update README.md by @edvinsmineikis in #162
- Change how tables are indexed by @Code-Sync in #165
- Organize the help command by @Code-Sync in #164
- Bump url-parse from 1.4.7 to 1.5.1 in /docs by @dependabot in #166
- Bump ssri from 6.0.1 to 6.0.2 in /docs by @dependabot in #163
- Bump y18n from 4.0.0 to 4.0.1 in /docs by @dependabot in #160
- Bump elliptic from 6.5.3 to 6.5.4 in /docs by @dependabot in #158
- Bump prismjs from 1.21.0 to 1.23.0 in /docs by @dependabot in #156
- Bump ini from 1.3.5 to 1.3.8 in /docs by @dependabot in #154
- Add Wally manifest by @LPGhatguy in #180
- Add Math Command and Math Operator Type by @wilyt1 in #181
- Fix spelling mistake by @jpod32 in #182
- Bump lodash from 4.17.19 to 4.17.21 in /docs by @dependabot in #167
- Bump browserslist from 4.13.0 to 4.16.6 in /docs by @dependabot in #169
- Bump dns-packet from 1.3.1 to 1.3.4 in /docs by @dependabot in #170
- Bump ws from 6.2.1 to 6.2.2 in /docs by @dependabot in #172
- Bump postcss from 7.0.32 to 7.0.36 in /docs by @dependabot in #173
- Bump prismjs from 1.23.0 to 1.24.0 in /docs by @dependabot in #175
- Bump path-parse from 1.0.6 to 1.0.7 in /docs by @dependabot in #178
- Bump color-string from 1.5.3 to 1.6.0 in /docs by @dependabot in #184
- Bump url-parse from 1.5.1 to 1.5.3 in /docs by @dependabot in #185
- Prevent quadratic backtracking in TrimString function by @Validark in #174
- Fix grammatical mistake by @Ulferno in #183
- Fix varServer's DataStore check by @Hexcede in #191
- Fix Util.EmulateTabstops performance & newline alignment by @Hexcede in #189
- Change GetGlobalDataStore to GetDataStore in #193
- Make Output Text Selectable by @wilyt1 in #194
- Fix incorrect number of arguments passed to
AutoComplete
,Validate
andParse
on using value operators like**
by @bubshayz in #197 - Update clear.lua to accommodate changes made in PR #194 by @Pruina in #201
- Fix
ValidateOnce
not working on types created withUtil.MakeListableType
by @bubshayz in #203 - Bump follow-redirects from 1.12.1 to 1.14.8 in /docs by @dependabot in #208
- Bump prismjs from 1.24.0 to 1.27.0 in /docs by @dependabot in #211
- Bump url-parse from 1.5.3 to 1.5.10 in /docs by @dependabot in #212
- Bump minimist from 1.2.5 to 1.2.6 in /docs by @dependabot in #213
- Bump async from 2.6.3 to 2.6.4 in /docs by @dependabot in #215
- Bump eventsource from 1.0.7 to 1.1.1 in /docs by @dependabot in #216
- Bump node-fetch from 2.6.1 to 2.6.7 in /docs by @dependabot in #220
- Bump terser from 4.8.0 to 4.8.1 in /docs by @dependabot in #222
- Entry Line Behavior by @shane-sommer in #226
- Update announceServer.lua by @shane-sommer in #227
- Output RichText by @shane-sommer in #228
- Replace TeleportPartyAsync with TeleportAsync by @wilyt1 in #168
- Update CanvasPosition on Text Change by @wilyt1 in #223
New Contributors
- @wilyt1 made their first contribution in #159
- @edvinsmineikis made their first contribution in #162
- @Code-Sync made their first contribution in #165
- @LPGhatguy made their first contribution in #180
- @jpod32 made their first contribution in #182
- @Ulferno made their first contribution in #183
- @Hexcede made their first contribution in #191
- @bubshayz made their first contribution in #197
- @Pruina made their first contribution in #201
- @shane-sommer made their first contribution in #226
Full Changelog: v1.8.4...v1.9.0
Cmdr v1.8.4
v1.8.4
- Fix an error when using function arguments.
Cmdr v1.8.3
v1.8.3
- "% teamPlayers" prefix was accidentally removed from
players
type, so this adds it back.
Cmdr v1.8.2
v1.8.2
- Fix pressing tab doesn't insert space (#149)
Cmdr v1.8.1
v1.8.1
- Fixes issue with autocomplete in lists
- Fixes init-run command in unpublished games
- Fix boolean type erroring given the empty string
Cmdr v1.8.0
- Add
var
andvar=
default commands, which act as a persistent key-value store.- Keys can begin with a dot to be per-session only.
- Keys can begin with a $ to be game-wide, shared among all players.
- Keys can begin with $. to be game-wide and per-session.
- Add
fetch
command, which fetches and returns data from the Internet. - Generalize the
*
,.
,?
, and?N
operators from the player type for all types.- Adds a
Default
function to types to determine their "default" value, this maps to.
*
is determined by calling theAutocomplete
function with an empty string?
is a single random value from the above;?N
represents a list of N random values;**
is*
(all) minus.
(default), which is commonly referred to as "others" in theplayer
type
- Adds a
- Fix client side validation to disallow sending commands with incomplete arguments
- New commands
json-array-encode
andjson-array-decode
- New command
resolve
, which resolves the argument value operators into lists. - New commands
len
,pick
, andrand
. run
now has an alias:>
replace
now has an alias://
run
command now supports multiple commands delimited by&&
- Slot operator allows you to insert the output of the previous command in a chain of commands separated by
&&
. For example:> echo evaera && kill ||
(evaera dies)
- Slot operator allows you to insert the output of the previous command in a chain of commands separated by
- New command
edit
allows you to edit text within a text area - New
join
andmap
commands - New
goto-place
,follow-player
,rejoin
, andget-player-place-instance
commands. - New
refresh
command. - New
uptime
command. - Cmdr no longer removes preceding skipped arguments (
""
) when using AutoComplete on a later argument (#104) GetCommandsAsStrings
has been renamed toGetCommandNames
; old name still works for backwards compatibility
Cmdr v1.7.1
v1.7.0
- Cmdr now calls tostring on error objects emitted from commands (#144)
- Cmdr now includes the full trace back in error messages.
- Aliases can now include type checking and name information in arguments (#56)
- New default command: "me". Displays the current player's name.
- Make
bring
andto
commands built-in aliases forteleport
.to
has effectively moved from theDefaultDebug
group to theDefaultAdmin
group. (#115) - The default activation key is now F2
v1.7.1
- Handle non-string error values correctly