v1.1.0
Plenty of new features in this new release of ABS!
We wanted to deliver a few more things with 1.1.0
(such as parallel commands) but considering we already have a whole bunch of new features lined up we decided to release now rather than waiting for a couple additional features that might take a few more weeks. As a result of this, we created the 1.2.x milestone and moved all pending issues there.
Let's go through the most notable changes in this release!
New features
- added a
sleep(ms)
function which halts the scripts for a duration, specified in milliseconds (#158) in
, the membership test operator, now supports searching keys in hashes (#154)in
, the membership test operator, now supports searching for a substring in a string (#148)~
, the similarity operator, now supports numbers: a number is similar to another one if their integer representation is the same (1.23 ~ 1 # true
) (#140)- you can now loop through hashes uses
for k, v in hash { ... }
(#139) - destructuring now supports hashes:
some, key = {"some": 1, key: 1}
(#151) - you can now trigger system commands both with
$(command)
and`command`
. This allows less verbose code such as`ls -la`.ok
which is not possible with$(ls -la)
as the command needs to be on its own line (#41) - added a few builtin functions on hashes:
keys()
,values()
,items()
andpop(key)
(#147)
Bugfixes
null == null # false
(#152)- assignments to array / hash indexes (
x[0] = 1
andx.key = 1
) are now supported (#141)