You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Removed Message::getAllArguments() in favor of Message::getIterator()@IteratorAggregate;
Changed Message::__invoke() with no arguments to be a shortcut of getTag();
Added Message::count()@countable;
Added .scrutinizer.yml;
Minor clean ups and polishes.
Copy file name to clipboardExpand all lines: RELEASE-1.0.0b5
+6-1Lines changed: 6 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,14 +1,19 @@
1
1
Console and some overall improvements.
2
2
3
3
* The PHAR file is now also a console. When installed, the console is available from the executable "roscon".
4
+
* __BREAKING CHANGES:__
5
+
- Removed Message::getAllArguments() in favor of IteratorAggregate implementation that returns an ArrayObject. For most intents and purposes, you should be able to just search&replace "->getAllArguments()" with an empty string (that will implicitly call getIterator()). If you require the arguments as a "real" array, you can replace "->getAllArguments()" with "->getIterator()->getArrayCopy()".
6
+
- Message::\_\_invoke() without arguments is now a shortcut for getTag() instead of getting all arguments.
7
+
- Util::changeMenu() now returns the Util object itself, except when you supply an empty string, when the current menu is returned (as before).
4
8
* New Util methods:
5
9
- getall()
6
10
- count()
7
11
- prepareScript()
12
+
* Message now implements Countable, reporting the number of arguments.
8
13
* Util::get() now uses RouterOS' "get" command, unless it returns an empty !done response (as it does for RouterOS versions prior to 6.0), in which case it automatically fallbacks to a print with a query.
9
14
* Util::escapeValue() and Util::parseValue() now support associative arrays (introduced in RouterOS 6.2).
15
+
* Util::escapeValue() now correctly converts DateTime objects to DateInterval objects relative to UNIX epoch time in UTC. Previously, the current time zone was used instead of UTC.
10
16
* Util::add() and Util::set()/Util::edit() now support flags as values with a numeric key.
11
-
* Util::changeMenu() now returns the Util object itself, except when you supply an empty string, when the current menu is returned (as before).
12
17
* ResponseCollection can now be searched by argument values, if you first designate an argument name with the new ResponseCollection::setIndex() method.
13
18
* ResponseCollection can now produce a sorted response collection based on user defined criteria using the new ResponseCollection::orderBy() method.
14
19
* Doc fixes (Notably: Clarified the acceptability of seekable streams as argument values, which has been present for a long time, but never documented).
0 commit comments