Skip to content

Releases: 3nr1c/structure

Fixed a bug with array_fill

16 Sep 22:37
Compare
Choose a tag to compare
Pre-release
0.6-alpha2

Fix array_fill bug

0.6-alpha

09 Sep 11:14
Compare
Choose a tag to compare
0.6-alpha Pre-release
Pre-release
Added ArrayS::setJsonFormat

Release 0.5.2

20 Aug 21:24
Compare
Choose a tag to compare
  • Bugfix: array items tagged as "null" were giving an error

Release 0.5.1

17 Aug 21:36
Compare
Choose a tag to compare

Bugfix with NumericS

Release 0.5.0

17 Aug 14:00
Compare
Choose a tag to compare

Changelog 0.5.0

  • Compilation of strings for ArrayS, ScalarS (value sets) and NumericS (integer ranges) to avoid re-parsing
  • Failure reporting: all check methods accept as second argument a variable to be created to return what failed, if the test evaluates to false. The last occurred error can be retrieved with Structure::getLastFail() and removed with Structure::clearLastFail()
  • ArrayS: quantifiers for simple array description: "type[*]", "type[+]", "type[10+]"
  • ArrayS: multiple types for a value: "integer|float", "string|null"
  • ArrayS: mixed simple arrays: "(integer|float)[]"
  • ArrayS: nested simple arrays: "integer[][]", "(integer[]|string[])[]"
  • ScalarS: true and false tokens can be escaped to become strings: "{\\true, \\false}"
  • StringS: length test. It can be defined with setLength. For arrays, the syntax is "string(min..max)"

Release 0.4.3

13 Aug 09:35
Compare
Choose a tag to compare

Added quantifiers for ArrayS:

$array->setFormat("integer[*]");
$array->setFormat("string[+]");
$array->setFormat("float[3+]");

Release 0.4.2

12 Aug 13:34
Compare
Choose a tag to compare

Added $numeric attribute to IntegerS and FloatS

Release 0.4.1

28 Jul 15:33
Compare
Choose a tag to compare

Bugfix

Release 0.4

27 Jul 23:50
Compare
Choose a tag to compare

Numeric types have now infinities! They can be used in ArrayS as well.

Release 0.3

24 Jul 16:39
Compare
Choose a tag to compare
Release 0.3